PDA

View Full Version : Miscellaneous Hacks - Display User's Email in Postbit/legacy for Admins and Mods


vuiveclub
08-02-2007, 10:00 PM
This little modification shows user's e-mail for Admins and moderators in Postbit
If this user allow other members to send email messages, you will able to send email via sendmessage.php,
if not, you'll have to send via outlook express

Find in template Postbit/Postbit_legacy:

<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>


Above Add:

<!-- USEREMAIL / www.vuiveclub.net -->
<if condition="in_array($bbuserinfo[usergroupid], array(5,6,7))">
<if condition="$post['showemail']"> <div>$vbphrase[email]: <a href="sendmessage.php?do=mailmember&u=$post[userid]"/>$post[email]</a></div>
<else /><div>$vbphrase[email]: <a href="mailto:$post[email]"/>$post[email]</a></div>
</if>
</if>
<!-- USEREMAIL / www.vuiveclub.net -->

daz1967
08-03-2007, 09:52 PM
You need the extra ) in your code or it will cause an error installed & working but with the extra )

Skavenger
08-04-2007, 04:51 AM
because there are 2 '()'

<if condition="in_array($bbuserinfo[usergroupid], array(5,6,7))">

look what's in red

Braders
08-04-2007, 01:00 PM
I too get a 'parse error' without the extra bracket, with two right-sided brackets it seems to work fine.

The error I get is as follows:

Parse error: parse error, unexpected ';' in /var/www/vhosts/xxxxxxx.xx/httpdocs/testforum/includes/adminfunctions_template.php(3593) : eval()'d code on line 472

vuiveclub
08-04-2007, 08:39 PM
Edited to default, thanks all for support me!

HMBeaty
08-04-2007, 11:55 PM
Oh, sorry, you were right. I overlooked the first one. It was too late at night here when I was looking at it. :(

PoetJA-1975
08-05-2007, 03:20 AM
Great template edit!
Thanx for the sharing ;)

Jacquii.

Nathan2006
08-05-2007, 06:45 PM
Thank you vuiveclub

I placed mine in the member info :D

Install