vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Showgroup Contact [Email] button (https://vborg.vbsupport.ru/showthread.php?t=46385)

Floris 12-04-2002 10:00 PM

Showgroup Contact [Email] button
 
Filename: install_showgroups_contact.txt
Author: xiphoid (http://www.creations.nl/)

Hack name: Showgroup Contact [Email] button

Version: 1.0 for vBulletin 2.2.9 final
Will work on older versions of vBulletin: Untested but might

Requested by: GZ_Tanis (https://vborg.vbsupport.ru/showthrea...threadid=45919)
Original hack thread: vBulletin.org (https://vborg.vbsupport.ru/showthrea...threadid=46385)

Description:

On the page 'forum leaders' is currently only the option to display the 'send a private message' button, this hack adds the 'email' buttons behind it.

Installation steps:

See .zip

GZ_Tanis 12-05-2002 12:05 AM

Kewl thanks Xiphoid Ill install this now on our board and let you know if it works for 2.2.8

Floris 12-05-2002 12:15 AM

Glad to hear you are happy with it.

Let me know if it works and if not, I (or others) will try to help you out. For now, I am going to bed - 3 in the night :D

Oh, and if it works, feel free to rate the thread and click the 'installed' button :)

GZ_Tanis 12-05-2002 12:16 AM

hmmm it screwed up my spacing big time take a look


http://gzleagues.com/forum/showgroups.php3?s=

GZ_Tanis 12-05-2002 12:46 AM

Ok i got it now bud :) everything looks great !!!! I have no idea what happemd that first time but I started over and everything worked the 2nd time..


I cant wait for the rest now !!!!

Floris 12-05-2002 09:01 AM

Quote:

Originally posted by GZ_Tanis
hmmm it screwed up my spacing big time take a look


http://gzleagues.com/forum/showgroups.php3?s=

Try to re-apply the template changes, but this time according to the way you have your templates setup allready - when you first showed me, you had an extra column that isn't there by default.


Quote:

Originally posted by GZ_Tanis
Ok i got it now bud :) everything looks great !!!! I have no idea what happemd that first time but I started over and everything worked the 2nd time..


I cant wait for the rest now !!!!

Ah, good. Glad you got it working. And as you can see, it works for 2.2.8 :P

The rest has to wait a little, but at least I had this part done.
I just have too much to do right now to really look into it.

Floris 12-06-2002 09:58 AM

Hi there,

I just had some extra time and was able to figure out how to put the user titles there too.

In the 'hacked' showgroups.php find this code:
Code:

if ($user['showemail'] == 0) {
and above it add:
Code:

$usertitle = $user[usertitle];
Then in showgroups.php find this code:
Code:

$locationfieldselect usergroup.title, user.username, user.userid, user.invisible, user.showemail, user.receivepm,
and replace that with this code:
Code:

$locationfieldselect usergroup.title, user.username, user.userid, user.invisible, user.usertitle, user.showemail, user.receivepm,
Then in showgroups.php find this code:
Code:

user.username, user.userid, user.invisible, user.showemail, user.receivepm, user.lastactivity, user.lastvisit
and replace that with this code:
Code:

user.username, user.userid, user.invisible, user.usertitle, user.showemail, user.receivepm, user.lastactivity, user.lastvisit
Now open up the showgroups_adminbit and showgroups_bit templates and place $usertitle anywhere in it where you want it to appear (don't forget to add a <br> before it if you want to have it on a new line)

Done!

Chris M 12-06-2002 05:30 PM

Thanks:)

Satan

GZ_Tanis 12-07-2002 12:27 AM

hmmm it didnt work for the titels part.

remember when we was talking I wanted to change the LOCATION option. in other words instead of showing the leaders location on that page I wanted it to show the User tItle. I changed it like u said but I just get a blank spot where it shuld be.

Any ideas?

GZ_Tanis 12-07-2002 12:34 AM

Man I need to start trying something FIRST before posting I didnt get it LOL


I got it but I had to change something that u had you quoted

Quote:

Now open up the showgroups_adminbit and showgroups_bit templates and place $usertitle anywhere in it where you want it to appear (don't forget to add a <br> before it if you want to have it on a new line)


When it should be that u need to put $user[usertitle] any where for it to show up.


Every things works like a charm now DUDE THANK YOU VERY MUCH!!!!!!!!!!


All times are GMT. The time now is 10:40 AM.

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.01196 seconds
  • Memory Usage 1,739KB
  • 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
  • (6)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete