vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Statistics Modifications - Search and staff on forum home (box) (https://vborg.vbsupport.ru/showthread.php?t=157495)

BarryoBrien 09-09-2007 10:00 PM

Search and staff on forum home (box)
 
This mod is in a working stage its going onto a new style im creating.

What it is its a staff member's, login, search, statistics and birthday message.

Go to you forum home template --> search for
</head>
<body>
$header
$navbar


and add below that

Quote:

<!-- custom stuff -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border"0" width="100%">
<tr>
<th scope="col"><div align="center"><b>Forum Members:</b> $numbermembers<br />
<b>Total Threads:</b> $totalthreads<br />
<b>Posts:</b> $totalposts<br />
<br />
<b>Forum Staff:</b><br />
<a href="member.php?u=1">Barry</a><br />
<a href="member.php?u=16">Camo</a><br />
<a href="member.php?u=2">Dave</a><br />
<a href="member.php?u=819">Rick</a><br />
<a href="member.php?u=9">Twinkle</a><br />
<a href="member.php?u=5">Wynette</a><br />
<a href="member.php?u=271">13th_Disciple</a><br />
<br />
<br />
There are currently <span class="staff"><b><phrase 1="$numberregistered" 2="$numberguest"><br />($vbphrase[x_members_and_y_guests]</phrase>)
</b></span>
</div></th>
<th scope="col"><div align="center"><span class="smallfont">
<if condition="$show['member']">

<center><strong><phrase 1="$bbuserinfo[username]">Welcome, $bbuserinfo[username]!</phrase></strong><br />
<br />
<a href="search.php?do=getnew"><b><i>New Posts!</i></b></a><br />
<br />

<if condition="$show['pmstats']">
<phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">
<a href="private.php">Private Messages</a>
<br />
$vbphrase[unread_x_nav_compiled], $vbphrase[total_x_nav_compiled] <br />
</phrase>
</if>

<br />

<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">
You last visited: <br />
$pmbox[lastvisitdate] at $pmbox[lastvisittime]
</phrase></center>
<br />

<else />


<!-- login form -->
<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont"><label for="navbar_username">$vbphrase[username]</label></td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
</tr>
<tr>
<td class="smallfont"><label for="navbar_password">$vbphrase[password]</label></td>
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>
</tr>
<tr>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
</tr>
<tr>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->





</if>
</span>
<br /><strong>
<if condition="$show['searchbuttons']">
<form action="search.php?do=process" method="post">
<table cellpadding="0" cellspacing="0" border="0">

<tr>
<td class="vbmenu_option" title="nohilite">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<div><input type="text" class="bginput" name="query" size="16" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" /></div>
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
</table>
</form>
</if>
<br /><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase>
</div></th>
</tr>
</thead>
</table>
<br />
<!-- birthday stuff -->
<if condition="$show['birthdays']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border"0" width="100%">
<tr>
<th colspan="2" scope="col"><div align="left"><strong>$vbphrase[todays_birthdays]</strong></div></th>
<th scope="col"><div align="center"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]" border="0" /></div></th>
</tr>
<tr>
<th width="100%" scope="col"><div align="left">$birthdays</div></th>
</tr>
</table>
</if>
<!-- /end of bithday stuff -->
<!-- /end of custom stuff -->
<br />
You can change the staff id's to suit your site.


Remember this is in a working stage if you notice any errors or have suggestion post them here.

Also remember to mark as installed update will be sent out when new additions are added on.

Live demo http://www.websiteforumz.com/?styleid=20

FreshFroot 09-10-2007 05:53 PM

Needs some more work slowly, but the idea for the addon is great :D

staff80 09-10-2007 09:26 PM

working for me very fast, thanks for this addon.

Nick1337 09-10-2007 09:46 PM

Nice mod :D thanks

BarryoBrien 09-11-2007 06:47 AM

I am still working out the kinks but it will become alot better in time.


All times are GMT. The time now is 09:16 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.01761 seconds
  • Memory Usage 1,736KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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