Heh...I had coded it earlier, but our stupid internet cutoff:bored:
Here you go!
Run this sql query:
[sql]ALTER TABLE user ADD customcursor smallint(6) DEFAULT '0' NOT NULL[/sql]
Open forum/member.php
Find:
Code:
if ($bbuserinfo[emailnotification]) {
$emailnotificationchecked="checked";
$emailnotificationnotchecked="";
} else {
$emailnotificationchecked="";
$emailnotificationnotchecked="checked";
}
add below:
Code:
if ($bbuserinfo[customcursor]) {
$customcursorchecked="checked";
$customcursornotchecked="";
} else {
$customcursorchecked="";
$customcursornotchecked="checked";
}
Find:
Code:
$emailnotification=iif($emailnotification=="yes",1,0);
add below:
Code:
$customcursor=iif($customcursor=="yes",1,0);
Find: (unhacked vB)
Code:
$DB_site->query("UPDATE user
SET ".$updatestyles."adminemail='$adminemail',
showemail='$showemail',invisible='$invisible',cookieuser='$cookieuser',
maxposts='".addslashes($umaxposts)."',daysprune='".addslashes($prunedays)."',
timezoneoffset='".addslashes($timezoneoffset)."',emailnotification='$emailnotification',
startofweek='".addslashes($startofweek)."',options='$options',receivepm='$receivepm',
emailonpm='$emailonpm',pmpopup='$pmpopup',usergroupid='$bbuserinfo[usergroupid]',
nosessionhash='$nosessionhash'
WHERE userid='$bbuserinfo[userid]'");
Replace with:
Code:
$DB_site->query("UPDATE user
SET ".$updatestyles."adminemail='$adminemail',
showemail='$showemail',invisible='$invisible',cookieuser='$cookieuser',
maxposts='".addslashes($umaxposts)."',daysprune='".addslashes($prunedays)."',
timezoneoffset='".addslashes($timezoneoffset)."',emailnotification='$emailnotification',customcursor='$customcursor',
startofweek='".addslashes($startofweek)."',options='$options',receivepm='$receivepm',
emailonpm='$emailonpm',pmpopup='$pmpopup',usergroupid='$bbuserinfo[usergroupid]',
nosessionhash='$nosessionhash'
WHERE userid='$bbuserinfo[userid]'");
Edit the "modifyoptions" template
Find:
Code:
<tr>
<td bgcolor="{secondaltcolor}"><normalfont><b>Use 'Email Notification' by default?</b></normalfont><br>
<smallfont>Using this option emails you whenever someone replies to a thread that you have participated in.</smallfont></td>
<td bgcolor="{secondaltcolor}"><normalfont>
<input type="radio" name="emailnotification" value="yes" $emailnotificationchecked> yes
<input type="radio" name="emailnotification" value="no" $emailnotificationnotchecked> no
</normalfont></td>
</tr>
add below:
Code:
<tr>
<td bgcolor="{secondaltcolor}"><normalfont><b>Use Custom Cursor?</b></normalfont><br>
<smallfont>Using this option sets your Cursor to the Custom Cursor set by the Administrator.</smallfont></td>
<td bgcolor="{secondaltcolor}"><normalfont>
<input type="radio" name="customcursor" value="yes" $customcursorchecked> yes
<input type="radio" name="customcursor" value="no" $customcursornotchecked> no
</normalfont></td>
</tr>
Open forum/global.php
Find:
Code:
// ###################### Referrer Stuff #########################
// Referer stuff
if ($bbuserinfo['userid']==0 and $usereferrer and !$bbreferrerid and $referrerid) {
if ($r_id = $DB_site->query_first("SELECT userid FROM user WHERE userid = '".addslashes($referrerid)."'")) {
vbsetcookie("bbreferrerid",$r_id[userid]);
}
}
add below:
Code:
if ($bbuserinfo[customcursor]==1) {
$cursorcode = "the cursor code";
}else{
$cursorcode = "";
}
Now open the headinclude template and add
$cursorcode where you want...
Satan