vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Miscellaneous Hacks - Display User's Email in Postbit/legacy for Admins and Mods (https://vborg.vbsupport.ru/showthread.php?t=154230)

vuiveclub 08-02-2007 10:00 PM

Display User's Email in Postbit/legacy for Admins and Mods
 
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:
HTML Code:

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

<!-- 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 '()'

Code:

<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


All times are GMT. The time now is 06:54 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01505 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete