The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Latest Topics on Your Desktop [SE] Details »» | |||||||||||||||||||||||||
Latest Threads on Your Desktop SE
This shows the latest threads on your desktop, plus it has a couple other options:
Click here to view a screenshot. More features will come in the next SE release, but you might as well install this now, as no templates will be changed in the next edition (though a couple may be added). Estimated Install Time: three minutes Note: if you downloaded this file before 7:21 PM PDT on 3/15/02, replace your latestbit_announcement template with the updated one in the ZIP. otherwise, it's already updated Well, download it and comment...PLEASE!!! Show Your Support
|
Comments |
#32
|
|||
|
|||
This takes all of 10 minutes to install. The directions could be better as far as the templates though. Some novice users may not understand the template instructions...
Even though to you me or whomever, it's obvious what to do... This is how I'd write the install instructions: Download the ZIP file for this hack and extract it to a folder of your choosing. 1. Upload "latest.php" to your forums root directory (not the admin directory) 2. Open the TEMPLATES folder that was created in the unzipped dirrectory, where you will find 6 .txt files. Start with "latest.txt". Open this file in notepad or an HTML editor. Select the text of the file and copy it to your clipboard. 3. Open your vB control panel and scroll down to the TEMPLATES menu, then select "ADD". Paste the text you copied into the template content window. 4. Enter the name of the file in the box above the text area, with no file extension. 5. Click "SAVE" 6. Repeat this process for the remaining 5 templates. 7. Call up the URL of your vB with the latest.php extension added to the URL. 8. Make sure everything appears correctly and works properly. 9. Proceed to the intstructions to add to your active desktop. The included install instructions outline how to do this on windows 98/ME. For XP, the procedure is very similar: rigth-click the desktop, select properties/desktop/customizedesktop/web and then continue from step E of the supplied instructions. This is a very nice hack, nice job!!! |
#33
|
||||
|
||||
Hi N!ck great hack !!!!
What I was missing is the auto refresh in the box when you are not integrate it in your desktop Here a small addition. Open template latest Find </HEAD> Add directly under that: Code:
<script> //refresh time is in "minutes:seconds" var timer="0:30" if (document.images){ var TimeParse=timer.split(":") TimeParse=TimeParse[0]*60+TimeParse[1]*1 } function refreshtime(){ if (!document.images) return if (TimeParse==1) window.location.reload() else{ TimeParse-=1 CurMinutes=Math.floor(TimeParse/60) CurSecs=TimeParse%60 if (CurMinutes!=0) currenttime=CurMinutes+" minutes and "+CurSecs+" seconds until page refresh!" else currenttime=CurSecs+" seconds left until page refresh!" window.status=currenttime setTimeout("refreshtime()",1000) } } window.onload=refreshtime </script> For test reason there is a time display on the browser statusline. If you don't want that, remove it from the script Have fun ! Greetzz |
#34
|
|||
|
|||
Hi ho,
I have some problems with the number of Users online at my forum. At latest.php, it always shows around 1/2 of the users that are shown in the forum itself. http://www.forumdeluxx.de/forum/latest.php http://www.forumdeluxx.de/forum |
#35
|
|||
|
|||
I haven't been able to solve that problem.
|
#36
|
|||
|
|||
Right, try again! i took the code form the vb index.php and re-jigged it to fit in with the latest.php so here it is.
Find in latest.php: Code:
$datecut = time()-300; $aguests = $DB_site->num_rows($DB_site->query("SELECT * FROM session WHERE lastactivity > $datecut AND userid = '0'")); $atotal = $DB_site->num_rows($DB_site->query("SELECT * FROM session WHERE lastactivity > $datecut")); $amembers = $atotal - $aguests; Code:
$datecut=time()-$cookietimeout; $loggedins=$DB_site->query_first("SELECT COUNT(*) AS sessions FROM session WHERE userid=0 AND lastactivity>$datecut"); $numberguest=$loggedins['sessions']; $loggedinmembers=$DB_site->query_first("SELECT COUNT(*) AS sessions FROM session WHERE userid>0 AND lastactivity>$datecut"); $onlinemembers=$loggedinmembers['sessions']; $guestnumber = 0; $guestcount = 0; if ($onlinemembers==0) { $guestcount++; $guestnumber++; } while ($guestcount < $numberguest) { $guestcount++; $guestnumber++; $username = "Guest #$guestnumber"; } $numbervisible=0; $numberregistered=0; $loggedins=$DB_site->query("SELECT DISTINCT session.userid,username,invisible,usergroupid FROM session LEFT JOIN user ON (user.userid=session.userid) WHERE session.userid>0 AND session.lastactivity>$datecut ORDER BY invisible ASC, username ASC"); if ($loggedin=$DB_site->fetch_array($loggedins)) { $numberregistered++; if ($loggedin['invisible']==0 or $bbuserinfo['usergroupid']==6) { $numbervisible++; $userid = $loggedin['userid']; if ($loggedin['invisible'] == 1) { // Invisible User but show to Admin $invisibleuser = '*'; } else { $invisibleuser = ''; } } while ($loggedin=$DB_site->fetch_array($loggedins)) { $numberregistered++; $invisibleuser = ''; if ($loggedin['invisible']==1 and $bbuserinfo['usergroupid']!=6) { continue; } $numbervisible++; $userid=$loggedin['userid']; if ($loggedin['invisible'] == 1) { // Invisible User but show to Admin $invisibleuser = '*'; } } } $atotal=$numberregistered+$numberguest; $aguests=$guestcount; $amembers = $atotal - $aguests; $numberinvisible=$numberregistered-$numbervisible; |
#37
|
|||
|
|||
Ok, I did something else - i added in latest.php
Code:
if(!isset($time)) { $time = 5; } Code:
var timer="5:00" Code:
var timer="$time:00" |
#38
|
||||
|
||||
the hack works fine but how do i change the id of the announcments
cuz the default is 1 but the id i have is 4 |
#39
|
||||
|
||||
very awesome hack, i'm just a bit interested by the server load, and how this hack effects it?
i should be installing it if my users are still after it that is, nice one |
#40
|
||||
|
||||
Will it work on XP and on vB 2.3?
|
#41
|
|||
|
|||
yes.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|