[REQ] 7 Mods from vBulletin.org Please

Sig Of The Week (All Versions)

To do this go to AdminCP>Style Manager>Edit Templates>FORUMHOME

Find:

Code:
<!-- end what's going on box -->

Add Below:

Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><strong><center>$vba_options[portal_blockbullet]Ub3rhack3r5 Sig Of The Week</center></strong></span>
</td>
</tr>
<tr>
<td class="$getbgrow" width="100%">
<style>
.imgfade{filter:alpha(opacity=30); -moz-opacity:0.5;margin-left:3px}
.imgfull{filter:alpha(opacity=100); -moz-opacity:1;margin-left:3px}
</style>

<center>

<img src="http://img299.imageshack.us/img299/8530/bestmanipyk1.png" border="1"
</a><br>
<span style="font-weight: bold; color :green;">Congradulatons To Raven - Winner 19/03/2007 - Currently Sig Champion - Can you beat this?</span><font>

<center>
</td>
</tr>
</table>
<br />

Thats it all you have to do now is edit the text to your personal preference.

ALTERNATIVE

If you wish to have this at the top of your forum do as follows:

Under FORUMHOME

Find:

Code:
$header

Add Below:

Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><strong><center>$vba_options[portal_blockbullet]Ub3rhack3r5 Sig Of The Week</center></strong></span>
</td>
</tr>
<tr>
<td class="$getbgrow" width="100%">
<style>
.imgfade{filter:alpha(opacity=30); -moz-opacity:0.5;margin-left:3px}
.imgfull{filter:alpha(opacity=100); -moz-opacity:1;margin-left:3px}
</style>

<center>

<img src="http://img299.imageshack.us/img299/8530/bestmanipyk1.png" border="1"
</a><br>
<span style="font-weight: bold; color :green;">Congradulatons To Raven - Winner 19/03/2007 - Currently Sig Champion - Can you beat this?</span><font>

<center>
</td>
</tr>
</table>
<br />

User Legend: on ForumHome with mouseover

In forumhome template, find:

----------------------------------------
Code:
<!-- what's going on box -->

------------------------------------------------------

Add below:

-----------------------------------------------------
Code:
<script type="text/javascript">
<!--

setup_memberlegend = function(tobj)
{
	prefix = ''
	suffix = ''

	if (tobj.getAttribute('ital'))
	{
		prefix += '<em>'
		suffix += '</em>'
	}

	if (tobj.getAttribute('undr'))
	{
		prefix += '<u>'
		suffix += '</u>'
	}

	if (tobj.getAttribute('bold'))
	{
		prefix += '<b>'
		suffix += '</b>'
	}

	if (tobj.getAttribute('line'))
	{
		prefix += '<s>'
		suffix += '</s>'
	}

	if (tobj.getAttribute('clr'))
	{
		prefix += '<span style="color:' + tobj.getAttribute('clr') + ';">'
		suffix += '</span>'
	}



	fetch_object('memberlegend').innerHTML = prefix + tobj.getAttribute('group') + suffix
}

-->
</script>


--------------------------------------------

In forumhome template, find:

----------------------------------------

Code:
<!-- end logged-in users -->

------------------------------------------------------

Add below:

-----------------------------------------------------
Code:
<!-- User Legend By Digitalus-->
<tbody> <tr> <td class="thead" colspan="2"> <a style="float: right;" href="#top" onclick="return toggle_collapse('forumhome_legend')"><img src=$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_legend].gif alt="" name="collapseimg_forumhome_legend" width="16" height="16" border="0" id="collapseimg_forumhome_legend"></a> <a href="showgroups.php$session[sessionurl_q]" rel="nofollow">User Legend </a></td> 
		</tr> </tbody> <tbody id="collapseobj_forumhome_legend" style=""> <tr> <td class="alt2"><a href="showgroups.php$session[sessionurl_q]" rel="nofollow"><img title="Legend" src="$stylevar[imgdir_misc]/whos_online.gif" alt="Legend" border="0"></a></td> <td class="alt1" width="100%"> 				<div style="float:left;"><strong>Legend</strong>:</div>
                <div style="float:left;">&nbsp;</div>
		<div class="alt2" style="float:left;height:8px;width:8px;padding:0px;" group="Banned Member" ital="y" line="y" clr="#000000" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('memberlegend').innerHTML = ''">
			<div class="tborder" style="height:8px;width:8px;background:#000000;"></div>
		</div>
		<div style="float:left;">&nbsp;</div>
		<div class="alt2" style="float:left;height:8px;width:8px;padding:0px;" group="Member" bold="y" clr="#999999" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('memberlegend').innerHTML = ''">
			<div class="tborder" style="cursor:help;height:8px;width:8px;background:#999999;"></div>
		</div>
		<div style="float:left;">&nbsp;</div>
		<div class="alt2" style="float:left;height:8px;width:8px;padding:0px;" group="Vip Member" bold="y" clr="#FF9933" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('memberlegend').innerHTML = ''">
			<div class="tborder" style="cursor:help;height:8px;width:8px;background:#FF9933;"></div>
		</div>
		<div style="float:left;">&nbsp;</div>
		<div class="alt2" style="float:left;height:8px;width:8px;padding:0px;" group="Moderators" bold="y" clr="#339933" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('memberlegend').innerHTML = ''">
			<div class="tborder" style="cursor:help;height:8px;width:8px;background:#339933;"></div>
		</div>
		<div style="float:left;">&nbsp;</div>
		<div class="alt2" style="float:left;height:8px;width:8px;padding:0px;" group="Super Moderators" bold="y" clr="#0D3CEB" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('memberlegend').innerHTML = ''">
			<div class="tborder" style="cursor:help;height:8px;width:8px;background:#0D3CEB;"></div>
		</div>
		<div style="float:left;">&nbsp;</div>
		<div class="alt2" style="float:left;height:8px;width:8px;padding:0px;" group="Administrators" clr="#DC143C" bold="y" ital="y" undr="y" onmouseover="setup_memberlegend(this)" onmouseout="fetch_object('memberlegend').innerHTML = ''">
			<div class="tborder" style="cursor:help;height:8px;width:8px;background:#DC143C;"></div>
		</div>
		<div style="float:left;width:10px;height:1px;">&nbsp;</div>
		<div style="float:left;" id="memberlegend"></div> </td> </tr> </tbody>
<!-- End User Legend by Digitalus -->

Battlefield 2 Stats link in Profile

go to new profile field & add

Code:
Profile Field-single line

Title-BF2 Stats
Description-BF2 Stats PID
Take note of the field number

Find in postbit/postbit legacy

Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]

add underneath

Code:
<if condition="$post['fieldX']">
<a href="http://bf2tracker.com/bf2_userprofile.php?bf2id=$post[fieldX]" target="_blank"><img src="$stylevar[imgdir_misc]/bf2.gif" alt="<phrase 1="$userinfo[username]">$vbphrase[view_bf2_stats]</phrase>" border="0" /></a>
</if>

replace fieldX with your field number mine is field5

add a new phrase

Code:
Phrase

Varname-view_bf2_stats

Text-View BF2 Stats

upload bf2.gif to your styles/misc folder

go to edit profile & enter your pid number

Login via Email

Ok, basically I wanted to allow users to login via email. This is cheap and straight to the point, so feel free to add to this.

Unfortunately I could not find a hook to use for this, so I hacked my login.html.

Code:
if ($_POST['do'] == 'login')
{
    $vbulletin->input->clean_array_gpc('p', array(
        'vb_login_username' => TYPE_STR,
        'vb_login_password' => TYPE_STR,
        'vb_login_md5password' => TYPE_STR,
        'vb_login_md5password_utf' => TYPE_STR,
        'postvars' => TYPE_STR,
        'cookieuser' => TYPE_BOOL,
        'logintype' => TYPE_STR,
        'cssprefs' => TYPE_STR,
    ));
    
    if (isset($_POST['vb_login_username'])) {
        $status = eregi(
                "^[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,5})$",
                $vbulletin->GPC['vb_login_username']
        );
        if ($status !== FALSE) { 
            $query = "SELECT username FROM vb3_user WHERE email = '%s'";
            $query = sprintf($query, $vbulletin->GPC['vb_login_username']);

            $_resp = $db->query_read($query);
            $_user = $db->fetch_row($_resp);
            $_user = (string) @$_user[0];
            
            if (empty($_user) === FALSE) {
                $_POST['vb_login_username'] = $_user;
            }
            //var_dump($_user, $vbulletin->GPC['vb_login_username']);
            //exit;
        }
    }

     // can the user login?
     // to be continued.
 
Back
Top