PDA

View Full Version : "Email this page" link when needed...



Arsenik
Wed 7th Apr '04, 4:26pm
How do i go about only showing the "email this page" link (thread options) :confused: when it is needed for usergroup X ...

Arsenik
Wed 7th Apr '04, 5:17pm
<if condition="$show['email_this_page']">
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[email_this_page]" /> <a href="sendmessage.php?$session[sessionurl]do=sendtofriend&amp;t=$threadid">$vbphrase[email_this_page]</a></td>
</tr>
</if>

I tried that... didnt work. What should the condition be :confused:

Zachery
Wed 7th Apr '04, 5:22pm
Its a vB3 option

You need to enable it at

AdminCP > vBulletin Options > Email Options > Enable Email features?

Arsenik
Wed 7th Apr '04, 5:25pm
Its a vB3 option

You need to enable it at

AdminCP > vBulletin Options > Email Options > Enable Email features?Yes i know i have to enable it :p It is enabled. What i want to do is only show the "Email this page" link when that usergroup option is enable and not to show it when its disable. Right now it shows it when its on and when its off on the usergroup options.... :(

Do you know what the condition should be? I took a guess and tried :

<if condition="$show['email_this_page']">

Zachery
Wed 7th Apr '04, 5:27pm
What usergroup option? the only usergroup option im aware of is send to friend, and i think thats somthing abit differnt, but correct me if im wrong

Arsenik
Wed 7th Apr '04, 5:28pm
What usergroup option? the only usergroup option im aware of is send to friend, and i think thats somthing abit differnt, but correct me if im wrongThats what i am talking about. The Email to a friend feature aka Email this page (on the thread options - look at attachment). :)

AdminCP > vBulletin Options > Email Options > Enable Email features? is to enable/disable all the email features

AdminCP > Usergroups > Usergroup Manager > Usergroup X > Can Use Email to Friend? Is to enable/disable the email to firend aka email this page feature for UserGroup X

The vb option is ON and the Usergroup X option is OFF... the link still shows on the thread option list (attachment) and i dont want it to show there when its disabled for usergroup X.

I now realize i wasnt clear in my first post... my bad.

Zachery
Wed 7th Apr '04, 5:42pm
Ah ok, now i understand how it works (i went and tried it for my self)

You can use a hard coded value for the time being


<if condition="$bbuserinfo[usergroupid] == X">
<if condition="$show['email_this_page']">
<tr>
<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[email_this_page]" /> <a href="sendmessage.php?$session[sessionurl]do=sendtofriend&amp;t=$threadid">$vbphrase[email_this_page]</a></td>
</tr>
</if>
</if>

Arsenik
Sat 10th Apr '04, 9:16pm
Thanks Zachery.