PDA

View Full Version : How tor remove Category name link,in breadcrumb - navbar,to make relevant adsense ads


basketmen
07-29-2011, 09:37 PM
Hi guys

this is default navbar_link template content :

<if condition="$show['breadcrumb']">
<span class="navbar">&gt; <a href="$nav_url">$nav_title</a></span>
<else />
$nav_title
</if>

$nav_title in bold above are showing the Category name, and the Forum name, in the navbar,
for example for this thread are :
vBulletin 3 Discussion (https://vborg.vbsupport.ru/forumdisplay.php?f=211) / vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)



i want to remove the Category name vBulletin 3 Discussion (https://vborg.vbsupport.ru/forumdisplay.php?f=211) only, so just showing vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15) forum link, how to do that?



the reason is to make adsense showing more relevant ads in the thread, in forums anywhere mostly the category name are not relevant text with the forum/thread






i already tried these but no one works, its only grab the forum id, for this Forum is 15, cant grab the Category id 211

<if condition="in_array($forumid, array(x,y,z))">

<if condition="$foruminfo[parentid]==-1">I'm a category</if>

<if condition="$foruminfo[options] & $_FORUMOPTIONS[cancontainthreads]">
CODE IF IT'S A FORUM
<else />
CODE IF IT'S A CATEGORY
</if>

<if condition="$foruminfo[cancontainthreads]">I can have a thread</if>

<if condition="$foruminfo[parentid] == 1"> code <else /> other code </if>



from this threads
https://www.vbulletin.com/forum/showthread.php/196552-Conditional-to-detect-Categories-(Not-resigning-yet)
https://www.vbulletin.com/forum/showthread.php/117497-Condition-Statement
https://vborg.vbsupport.ru/showthread.php?t=150269

s.sami
09-20-2011, 05:02 PM
hi bro i removed category names

i want to ask how can i redirect forum/forumdisplay.php?f=1 this link to forum/error.php this link ?