vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Latest Topics on Your Desktop [SE] (https://vborg.vbsupport.ru/showthread.php?t=36189)

N!ck 03-14-2002 10:00 PM

Latest Topics on Your Desktop [SE]
 
Latest Threads on Your Desktop SE

This shows the latest threads on your desktop, plus it has a couple other options:
  • Latest Announcements (optional)
  • Currently Active Users (optional)

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!!! :)

N!ck 03-15-2002 09:14 PM

bump (this should come before the older version)

MrLister 03-15-2002 09:22 PM

I thought you reserved a spot on the previous one. Also what are the changes between this and the last one since i have the other one installed. plus there's one more coming out?

floleb7 03-15-2002 09:28 PM

5 templates for an external hack ?!? :surprised:

N!ck 03-15-2002 09:48 PM

MrLister...that was only to put a link here ;) the features that this one has (and of course, it's only a start of the SE "series") that the other didn't are announcement viewing and currently active users.

floleb...if you can't tolerate that, don't install it. you just don't consider the features...five templates aren't that many. after all, you DO want to be able to customize the look, don't you?

floleb7 03-15-2002 11:14 PM

how can you customize the look really ?
people have different desktops so customize would be hard for everybody.
If you install this just for you i think it's too big to have this.

N!ck 03-15-2002 11:19 PM

*rolls eyes*

"people have different desktops so customize would be hard for everybody"? wtf? you don't make sense.

"just for you"? of course not

Psychdrone 03-15-2002 11:50 PM

comon now demo!:)

N!ck 03-15-2002 11:53 PM

here's a screenshot

floleb7 03-16-2002 12:51 AM

if people have green or red desktop i don't think they want to add a pink stuff to (it's an example)

MrLister 03-16-2002 01:14 AM

Couldn't you do a "update" rather then making one simple hack into 3 different individual hacks?

N!ck 03-16-2002 01:35 AM

floleb > the number of templates doesn't affect colors.

mrlister > this really ISN'T three different hacks

MrLister 03-16-2002 04:07 AM

nicksaunders: I know but clicking on "new hack" button more then once means two new hacks.

N!ck 03-16-2002 06:48 PM

yes that's true, but i plan to update the other one separately, as some prefer "lightweight"

TheComputerGuy 03-18-2002 09:32 PM

This is one interesting hack, I will look at installing it some time in the near future.

bandersen 04-13-2002 01:44 PM

Hi - thank you for this hack! I am giving it a try.
Everything installed like a charm. When I click on one of the announcement threads on my desktop it takes me to our page, but showing the message "invalid forum specified".
(The topics works fine though. I am using 2.2.5)

Please help anyone... I am not a pro!

Oh.. yes, I did check that the announcement is showing in all forums..

N!ck 04-13-2002 02:06 PM

would you please post the URL so i can look for myself?

thanks

bandersen 04-13-2002 03:45 PM

Thanks :)

[URL=http://www.athlonarena.com/forums/upload/latest.php]

I am still putting this site together....

N!ck 04-13-2002 05:46 PM

i'm not getting that error

thehobbyforum 04-18-2002 01:23 AM

Great Hack works perfectly and I love it - if you really want the colors changed it takes all of 2 seconds to do - one thing if you want to change the number of "latest topics" it shows where do you do that??

thehobbyforum 04-18-2002 01:24 AM

Forgot one last thing - the number of active users is always coming out less than actual!

thehobbyforum 04-18-2002 01:34 AM

I'm an idiot just saw where to change the number!

scsa20 04-18-2002 01:44 AM

great hack, works great ;)

N!ck 04-18-2002 02:10 AM

thanks

Colon33 06-05-2002 08:52 AM

Is there anything like this hack that allows the post on the main page of someones website? Curious.

Schorsch 07-24-2002 02:59 AM

thanks!! installed and works great :)

Riddel 07-25-2002 05:50 AM

Is there a way to alter this hack so it only lists the recent posts in a specific forum?

JackG 07-30-2002 07:45 PM

This is GREAT!

BUT Is their anyway to make an INSTALLER file for
the users vs having them do all the steps?

That would really polish this thig up.

Sadie Frost 08-14-2002 02:05 AM

This is great :) Will make it much easier for me when I'm keeping an eye on things while doing something else :)

Two things:

I get more currently active users than there are (my board is not yet open so it's showing more users than I have ;)) thehobbyforum, did you find a fix for that?

Also, does this hide thread titles in private forums from those who don't have access to them? :)

DudeSicko 08-14-2002 10:27 AM

PHP Fatal error: Unable to open C:\Inetpub\webhotel\mus-das.uk\forum\latest.php in Unknown on line 0

Getting that error ?

I have followed the instruction, and i use v2.2.6

SVTOA 10-26-2002 06:10 AM

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!!!

SmartGnome 03-20-2003 10:53 AM

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 :D

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>

Safe template and you will have an autorefresh of 30 secs.

For test reason there is a time display on the browser statusline. If you don't want that, remove it from the script :D

Have fun !

Greetzz

dbode 03-26-2003 02:49 PM

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

N!ck 03-26-2003 10:59 PM

I haven't been able to solve that problem.

Shepski 03-27-2003 01:40 PM

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;

and replace it with:
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;

works for me now fine and dandy :)

dbode 03-30-2003 05:50 PM

Ok, I did something else - i added in latest.php

Code:

if(!isset($time))
{
  $time = 5;
}

and I changed in the template latest :
Code:

var timer="5:00"
to
Code:

var timer="$time:00"
Now, if you call the latest.php, it will set the timer to 5 minutes and reload then. If you call latest.php?time=2, it will reload every two minutes and so on...

msimplay 03-30-2003 07:34 PM

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

sabret00the 04-01-2003 03:21 PM

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

gmarik 05-24-2003 11:31 AM

Will it work on XP and on vB 2.3?

N!ck 05-24-2003 02:36 PM

yes.


All times are GMT. The time now is 10:29 PM.

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.01272 seconds
  • Memory Usage 1,818KB
  • 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
  • (6)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete