Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
Display User's Email in Postbit/legacy for Admins and Mods Details »»
Display User's Email in Postbit/legacy for Admins and Mods
Version: 1.00, by vuiveclub vuiveclub is offline
Developer Last Online: Mar 2013 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.x Rating:
Released: 08-02-2007 Last Update: Never Installs: 8
Template Edits
 
No support by the author.

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  -->

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-03-2007, 09:52 PM
daz1967's Avatar
daz1967 daz1967 is offline
 
Join Date: Mar 2007
Location: birmingham
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need the extra ) in your code or it will cause an error installed & working but with the extra )
Reply With Quote
  #3  
Old 08-04-2007, 04:51 AM
Skavenger Skavenger is offline
 
Join Date: Sep 2005
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

because there are 2 '()'

Code:
<if condition="in_array($bbuserinfo[usergroupid], array(5,6,7))">
look what's in red
Reply With Quote
  #4  
Old 08-04-2007, 01:00 PM
Braders Braders is offline
 
Join Date: Apr 2007
Location: Moscow
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 08-04-2007, 08:39 PM
vuiveclub vuiveclub is offline
 
Join Date: Dec 2006
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edited to default, thanks all for support me!
Reply With Quote
  #6  
Old 08-04-2007, 11:55 PM
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Posts: 4,141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, sorry, you were right. I overlooked the first one. It was too late at night here when I was looking at it.
Reply With Quote
  #7  
Old 08-05-2007, 03:20 AM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great template edit!
Thanx for the sharing

Jacquii.
Reply With Quote
  #8  
Old 08-05-2007, 06:45 PM
Nathan2006's Avatar
Nathan2006 Nathan2006 is offline
 
Join Date: Feb 2006
Location: UK
Posts: 862
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you vuiveclub

I placed mine in the member info

Install
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:01 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04541 seconds
  • Memory Usage 2,263KB
  • Queries Executed 21 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete