PDA

View Full Version : Staff Contact


Mastar
16 Dec 2005, 07:55
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
16 Dec 2005, 08:42
The first Install clicked ;)

portalimiz
16 Dec 2005, 09:57
congrats
i installed

Tony G
16 Dec 2005, 10:12
Decent idea, thanks for sharing. :)

Corriewf
16 Dec 2005, 10:36
Looks good but can you use BB format for your code instead of just regular text?

ShadowOne
16 Dec 2005, 11:01
Is There A Way I Can Add This To A Table Instead?

kall
16 Dec 2005, 19:23
By default, this hack allows staff to contact other staff.. wouldn't it be more useful to allow OTHER groups to contact staff?

COBRAws
16 Dec 2005, 20:07
It would be more suitable if it used the sendmessage.php

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

Mastar
16 Dec 2005, 22:34
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
17 Dec 2005, 19:29
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
19 Dec 2005, 00:13
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
21 Dec 2005, 12:24
Wow thanks!

Treak
08 Mar 2006, 23:50
sweet mod!