The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I would like this hack that is on the home page. Can it be posted?
![]() Thanks in advance. |
|
#2
|
||||
|
||||
|
In index.php, find this:
Code:
// do light bulb
if ($bbuserinfo['lastvisitdate']=='Never') {
$forum['onoff']='on';
} else {
if (isset($bbforumview[$forum['forumid']]) and $bbforumview[$forum['forumid']]>$bbuserinfo['lastvisit']) {
$userlastvisit=$bbforumview[$forum['forumid']];
} else {
$userlastvisit=$bbuserinfo['lastvisit'];
}
if ($userlastvisit<$forum['lastpost']) {
$forum['onoff']='on';
} else {
$forum['onoff']='off';
}
}
Code:
// do light bulb
if ($bbuserinfo['lastvisitdate']=='Never') {
$forum['onoff']='on';
$forum['getnews']="<a href=\"search.php?s=$session[sessionhash]&action=getnew&forumid=$forum[forumid]\">";
$forum['getnewe']='</a>';
} else {
if (isset($bbforumview[$forum['forumid']]) and $bbforumview[$forum['forumid']]>$bbuserinfo['lastvisit']) {
$userlastvisit=$bbforumview[$forum['forumid']];
} else {
$userlastvisit=$bbuserinfo['lastvisit'];
}
if ($userlastvisit<$forum['lastpost']) {
$forum['onoff']='on';
$forum['getnews']="<a href=\"search.php?s=$session[sessionhash]&action=getnew&forumid=$forum[forumid]\">";
$forum['getnewe']='</a>';
} else {
$forum['onoff']='off';
$forum['getnews']='';
$forum['getnewe']='';
}
}
Code:
<img src="{imagesfolder}/$forum[onoff].gif" border="0" alt="">
Code:
$forum['getnews']<img src="{imagesfolder}/$forum[onoff].gif" border="0" alt="">$forum['getnewe']
|
|
#3
|
|||
|
|||
|
Can you double check the code?
This is mine: <img src="{imagesfolder}/$forum[onoff].gif" border="0" alt=""> not this: <img src="images/$forum[onoff].gif" border="0" alt=""> Even so, I made the changes with adding the {imagesfolder} to your replacement code and I get errors. |
|
#4
|
|||
|
|||
|
SirSteve, remove ' in second code.
PHP Code:
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|