PDA

View Full Version : I want to remove Suggest Link from index


hakan
02-10-2007, 02:28 PM
hello

I want to remove Suggest Link from index page. Only Show categories and subgategories ( because of when suggest link Root and indexpage show

or : I change the configration

Categories dropdown instead of tree = enable

but when I suggets a link, show only Main category names in tree, not show subcategories names

pls help me

Sergey Ten
02-10-2007, 03:42 PM
Hello hakan!

[ Open your templates/your_template/Layout.php ]
[ Find code ]


$menu['suggest-link']['caption'] = $gDirLang['suggest_link'];
$menu['suggest-link']['url'] = $url."suggest-link.php?id=".$aCategory;


[ Replace with ]


if(0 != $aCategory)
{
$menu['suggest-link']['caption'] = $gDirLang['suggest_link'];
$menu['suggest-link']['url'] = $url."suggest-link.php?id=".$aCategory;
}


[ Save change ]

hakan
02-11-2007, 10:44 AM
thank you Sergey Ten. it's working :)

Sergey Ten
02-13-2007, 12:11 AM
You are welcome hakan!

Mominur Rahman
02-24-2007, 07:38 PM
Hi, how can I show suggest url in home page but when someone click it from home page it shows page stated like this -

It is easy to add your site to , just browse through the categories and choose the one that best suits your site. Click the "Suggest URL" tab at the top right corner of the page

Thanks.

shelly
02-24-2007, 08:27 PM
Hi Mominur Rahman

You must go to your admin page

on the left - click on browse categories

at the top click on the edit symbol ( it's a little pen or pencil)

then you can lock the ROOT category.

Next - on your home page try to suggest url - you should get a message that says 'this category is locked by the administrator' or something similar.

now go back to to your admin - and click on manage language and do a phrase search for what the message was saying on your homepage when trying to suggest url - click on the phrase and then change it to what you want!

P.S. Disable 'Categories dropdown instead of tree' to not show ROOT

Mominur Rahman
02-24-2007, 10:04 PM
Thanks. That works. :)