vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Staff Contact (https://vborg.vbsupport.ru/showthread.php?t=103062)

Mastar 12-15-2005 10:00 PM

Staff Contact
 
This is my first mod so please be gentle!

Tested on Vb3.50 & Vb3.52

Install Time 2 mins
__________________

STAFF CONTACT For VB3.5.x
__________________

DESC: This email you staff by just a click of the dropdown menu in the forum's navbar.
Viewable be usergroups you select.

1 Template Edit: Navbar

You can change usergroups by editing: Change the # with yours
Code:

<if condition="$bbuserinfo['usergroupid'] == '5' OR $bbuserinfo['usergroupid'] == '6' OR $bbuserinfo['usergroupid'] == '7'">
Or add Usergroups by adding:
Code:

OR $bbuserinfo['usergroupid'] == '#'
(change '#' with your usergroup number)

To add more staff Cateogries add:
Code:

<tr><td class="thead">Contact Admins</td></tr>
(change 'Contact Admins' to your staff's Title)

To add more staff add:
Code:

<tr><td class="vbmenu_option"><a href="mailto:ME@YOU.com">MASTAR</a></tr></td>
(change 'ME@YOU' to your staff's email address)

==================
+INSTALLATION +
==================



***********************
In NavBar Template
FIND:

***********************

Code:

<if condition="$show['member']">
      <td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
    </if>

***********************
ADD UNDER
***********************


Code:

<!-- Admins Menu -->
 <if condition="$bbuserinfo['usergroupid'] == '5' OR $bbuserinfo['usergroupid'] == '6' OR $bbuserinfo['usergroupid'] == '7'">
<td id="admins" class="vbmenu_control"><a href="#admins">STAFF</a> <script type="text/javascript"> vbmenu_register("admins"); </script></td> </if>
<!-- Admins Menu -->

***********************
Still In NavBar Template
FIND:

***********************


Code:

<!-- NAVBAR POPUP MENUS -->
***********************
ADD UNDER
***********************


Code:

<!-- Admins Menu -->
 <div class="vbmenu_popup" id="admins_menu" style="display:none">
    <table cellpadding="4" cellspacing="1" border="0">

  <tr><td class="thead">Contact Admins</td></tr>
<tr><td class="vbmenu_option"><a href="mailto:ME@YOU.com">MASTAR</a></tr></td>
<tr><td class="vbmenu_option"><a href="mailto:ME@YOU.com">MASTAR</a></tr></td>
  <tr><td class="thead">Contact Super Mods</td></tr>
<tr><td class="vbmenu_option"><a href="mailto:ME@YOU.com">MASTAR</a></tr></td>
  <tr><td class="thead">Contact Mods</td></tr>
<tr><td class="vbmenu_option"><a href="mailto:ME@YOU.com">MASTAR</a></tr></td>

</table>
</if>
  </div>

<!-- Admins Menu -->

************************************************** ************************************************** ***************

That's It!
!CLICK INSTALL!

=============
+ MASTER +
=============

G-Force 199 12-16-2005 07:42 AM

The first Install clicked ;)

portalimiz 12-16-2005 08:57 AM

congrats
i installed

Tony G 12-16-2005 09:12 AM

Decent idea, thanks for sharing. :)

Corriewf 12-16-2005 09:36 AM

Looks good but can you use BB format for your code instead of just regular text?

ShadowOne 12-16-2005 10:01 AM

Is There A Way I Can Add This To A Table Instead?

kall 12-16-2005 06:23 PM

By default, this hack allows staff to contact other staff.. wouldn't it be more useful to allow OTHER groups to contact staff?

COBRAws 12-16-2005 07:07 PM

It would be more suitable if it used the sendmessage.php

Why? Because not everyone has an email program installed. IE: Cybercafes, etc

Mastar 12-16-2005 09:34 PM

Quote:

Originally Posted by kall
By default, this hack allows staff to contact other staff.. wouldn't it be more useful to allow OTHER groups to contact staff?

You can customize it however you want, add usergroups, change usergroups howeva you want.

I intitally was going in that direction, but changed my mind.

Quote:

Originally Posted by COBRAws
It would be more suitable if it used the sendmessage.php

Why? Because not everyone has an email program installed. IE: Cybercafes, etc

If you use hotmail, msn, yahoo, which ever you use as your default email reader/fetcher/client.

I didn't use sendmessage.php because I didn't want to go the site.

JsnakeJ 12-17-2005 06:29 PM

Its not as 'safe' to give out their emails like that as it would be to just go through the sendmessage.php page.

Good idea but I don't think my forum needs it. :)

Mastar 12-18-2005 11:13 PM

Quote:

Originally Posted by JsnakeJ
Its not as 'safe' to give out their emails like that as it would be to just go through the sendmessage.php page.

Good idea but I don't think my forum needs it. :)

You can change:

Code:

<tr><td class="vbmenu_option"><a href="mailto:ME@YOU.com">MASTAR</a></tr></td>
Into This:

Code:

<tr><td class="vbmenu_option"><a href="www.yoursite.com/sendmessage.php">Email Staff</a></tr></td>
so you would only have that one line in the second edit.

Snake 12-21-2005 11:24 AM

Wow thanks!

Treak 03-08-2006 10:50 PM

sweet mod!


All times are GMT. The time now is 06:49 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.01072 seconds
  • Memory Usage 1,748KB
  • 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
  • (10)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)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