PDA

View Full Version : Please help me in setting up categories of links.


kareti rama
12-17-2006, 06:24 PM
hello,
first, i wish to thank you for providing this free directory script. To day, i have downloaded your free software and installed it on my site. i will upgrade soon. but in the meanwhile i wish to make some changes to the free directory script that i have downloaded from your site.

i think the software version is v1.5

i wish to set up 3 types of links.

first one is featured links - only the administrator ( myself ) should be able to add them either manually in the admin area or using the submit form. i should be able to add around 20 such links under each category and sub category. these links should not require any payment or reciprocal link. these should be on the top of all other links.

second one is links with reciprocals - they may be called sponsered links - visitors should be able to add them using the submit form. these links should have a reciprocal to my site. these links should be below featured links and above ordinary links.

third one is ordinary links - these are links that dont have reciprocal links. these links are submitted using submit form.

i think the software version is v1.5

i am new to php, but i have good knowledge of html, css and web design and can follow your guidelines and modify the files accordingly.

i will be extremely thankful to you for all the help you provide.
thanks a lot for reading and replying.

Dave Baker
12-17-2006, 07:41 PM
Welcome Kareti to our support forum!
Admin Panel -> CONFIGS -> Featured Listings:
Featured links functionality enabled
Number of links that are displayed in Featured box: 20
Place Featured links to top of listings enabled
Display Featured Links in a box enabled
You can add link in "Featured links" through Admin Panel -> manage links listing/browse categories -> "add to featured" icon (right-bottom corner of each link)

In order to make two kind of link "reciprocals" and "ordinary":
Admin Panel -> CONFIGS -> Link Checking -> Reciprocal link checking -> "Save Changes" button

***Open templates/YourTemplate/suggest-link.tpl and find code(around line 23)***

{if not $editor}
<div class="field">{$lang.your_email}<br />
<input type="text" name="email" size="30" maxlength="100" id="email" value="{$tmp.email}" /></div>
{else}
<input type="hidden" name="email" value="{$editor.email}" />
{/if}

***Below this code add***

<p class="field"><input type="radio" name="recip" value="1" id="r1" checked/> add link to reciprocal links
<p class="field"><input type="radio" name="recip" value="0" id="r1" /> add link to ordinary links

***Save file***
***Open suggest-link.php and find code***

/** reciprocal link checking **/
if ($gDirConfig['reciprocal_check'])
{
$link['recip_valid'] = check_reciprocal($_POST['reciprocal']);
}

***Replace with following code***

/** reciprocal link checking **/
if ($gDirConfig['reciprocal_check'] && $_POST['recip'])
{
$link['recip_valid'] = check_reciprocal($_POST['reciprocal']);
}

***In this file fin code***

if (($gDirConfig['reciprocal_check']) && ($link['recip_valid'] != 1))
{
$error = true;
$msg .= "<li>{$gDirLang['error_no_backlink']}</li>";
}

***Replace with following***

if (($gDirConfig['reciprocal_check']) && ($link['recip_valid'] != 1) && $_POST['recip'])
{
$error = true;
$msg .= "<li>{$gDirLang['error_no_backlink']}</li>";
}

***Save file***
"reciprocals links" links will be below featured links and above ordinary links. Ordinary links will appear in Admin Panel -> non-reciprocal links. Featured Links will not appear on this page.

kareti rama
12-17-2006, 09:13 PM
Dave Baker, thank you very much for your support.
your modifications worked great.
i have tried another very popular directory software before and i feel this software is much better than that.

i have another doubt.
i could add featured links. but i dont want to display their urls. because they will be affiliate links.
please inform me how to hide the display of urls for featured links.
i only wish to display the anchor text and description for these links

thanks.

Dave Baker
12-17-2006, 09:56 PM
***Open templates/YourTemplate/link-display.tpl and find code(around line 36)***

<div class="url">{$link.url}</div>

***Remove or comment out it****

kareti rama
12-17-2006, 10:21 PM
Thanks for your reply. i have a few doubts.

1) i wish not to display the url only for featured links and wish to show only the link text and description.

but wisht to show the url, link text, description for all other links.
will this modification work?

2) i wish to make an arrangement where each category and subcategory will have their on featured links. these links should not show on other cetegories and other pages.

i submit a site using submit form for some category.
then i choose that link as featured in the admin panel. i wish it to be featured in that particular category only.

please help me in making such an arrangement.
thanks.

Dave Baker
12-17-2006, 10:32 PM
This only thing at present, that I can offer. It is easy to make in Pro versions, but hard in Free.