Log in

View Full Version : Staff Contact


Mastar
12-15-2005, 10:00 PM
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
<if condition="$bbuserinfo['usergroupid'] == '5' OR $bbuserinfo['usergroupid'] == '6' OR $bbuserinfo['usergroupid'] == '7'">

Or add Usergroups by adding:
OR $bbuserinfo['usergroupid'] == '#'
(change '#' with your usergroup number)

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

To add more staff add:
<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:
***********************

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


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


<!-- 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:
***********************


<!-- NAVBAR POPUP MENUS -->


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


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

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

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

Into This:

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