PDA

View Full Version : $show['homepage'] in postbit


lim(x?-5x?) = ∞
01-03-2010, 01:12 AM
$show['homepage'] - where/how is this value set?

<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>

Hell Bomb
01-03-2010, 02:58 AM
This is found in the postbit and postbitlegacy templates. I am not sure where it is set, might want to take a look through the admincp options/usercp options.

Lynne
01-03-2010, 03:33 AM
Doing a search in the templates shows it is set in different files depend on where it is used. For the postbit, it's set in the file class_postbit.php.

Hell Bomb
01-03-2010, 05:12 AM
Doing a search in the templates shows it is set in different files depend on where it is used. For the postbit, it's set in the file class_postbit.php.

Awe, I thought he was asking a different question. Thought he was looking to put a link into the postbit for the posters homepage or something.

lim(x?-5x?) = ∞
01-03-2010, 09:26 AM
I was thinking about removing homepage links from postbits, obvious solution just to remove quoted code, but if it was possible to disable via global option - it will be better (work in all styles).

Lynne
01-03-2010, 02:50 PM
Just set the $show['homepage'] variable to false in a plugin.