Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Latest Threads on Your Desktop Details »»
Latest Threads on Your Desktop
Version: 1.00, by N!ck N!ck is offline
Developer Last Online: Oct 2008 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-10-2002 Last Update: Never Installs: 32
 
No support by the author.

This hack will show the 30 latest threads on your desktop, ordered descending by the latest post. Somebody please post a screenshot; my screenshot program can't get my desktop.

There is no file editing and no template editing. It's very easy to install, even for a novice.

Click here for a screenshot!

Current Version: 3.0 (update recommended if you have 1.0)
Version 3.0 is not what I would call a "fix", but it adds an option to prevent threads in private forums from being viewed unless the viewer is allowed to access private forums (guests ARE allowed by default). It also allows you to change the number of latest threads to be viewed.

Have fun, and post your comments if you use this, please!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 03-12-2002, 05:38 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nick, try something like that to. let me know if it worked.
PHP Code:
<?php
error_reporting
(7);

$templatesused "home_newthreads,home_latestthreads";
require(
"./global.php");

$maxthreads=30;

$doforumperms=$DB_site->query("SELECT forumid FROM forum");
$forumslist="";
while (
$forumperms=$DB_site->fetch_array($doforumperms)) {
  
$forumid=$forumperms[forumid];
  
$getperms=getpermissions($forumid);
  if (
$getperms[canview]) {
    
$forumslist.=",$forumid";
  }
}

$newsql=$DB_site->query("SELECT * FROM thread WHERE forumid IN (0$forumslist) AND visible=1 ORDER BY lastpost ASC LIMIT 0,$maxthreads");
while (
$new=$DB_site->fetch_array($newsql)) {
  
$getforumid=$new[forumid];
  
$getnewsql=$DB_site->query_first("SELECT * FROM post WHERE forumid=$getforumid");
  
$forumname=$DB_site->fetch_array($getnewsql);
  
$geticonid=$new[iconid];

  if (
$new[iconid]==0) {
    
$newicon="<img src=\"{imagesfolder}/icons/icon1.gif\" border=\"0\">";
  } else {
    
$newicon="<img src=\"{imagesfolder}/icons/icon$newconid.gif\" border=\"0\">";
  }

  
$getthreadid=$new[threadid];
  
$gettitle=$new[title];
  
$getforumname=$forumname[title];
  
$getreplycount=$new[replycount];
  
$getusername=$new[postusername];
  
$getuserid=$new[postuserid];
  
$gettime=vbdate($timeformat,$new[dateline]);
  
$getdate=vbdate($dateformat,$new[dateline]);

  eval(
"\$newthreads .= \"".gettemplate('home_newthreads')."\";");
}

eval(
"dooutput(\"".gettemplate('home_latestthreads')."\");");
?>
Reply With Quote
  #23  
Old 03-12-2002, 09:21 PM
mondaynightmike's Avatar
mondaynightmike mondaynightmike is offline
 
Join Date: Jan 2002
Location: Northamptonshire
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow this is a good idea.
Reply With Quote
  #24  
Old 03-12-2002, 09:25 PM
N!ck N!ck is offline
 
Join Date: Mar 2002
Location: Lake Havasu City, AZ
Posts: 886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nakkid,
i think i might have a solution looking at your code. i didn't even THINK about using the getpermissions() function!

MrLister,
the "special edition" is going to have a bunch of features that some might consider "bloatware" - so that's why it's not going to be an "ordinary" release.
expect it sometime this weekend, i'd say. it will include almost all the features of the Forum Display page, will show announcements, and will have some other options that i don't even know of yet!!!

so yeah, this weekend...thanks for the suggestion nakkid...
Reply With Quote
  #25  
Old 03-12-2002, 09:43 PM
cditty's Avatar
cditty cditty is offline
 
Join Date: Oct 2001
Location: Memphis TN
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How would I go about adding a refresh button to force a refresh within the same window? I added a simple refresh and it opens a full sized window.

Also, how would I go about adding the current users on the very bottom? I looked at a few existing templates but couldn't figure it out.

Chris
Reply With Quote
  #26  
Old 03-12-2002, 10:16 PM
N!ck N!ck is offline
 
Join Date: Mar 2002
Location: Lake Havasu City, AZ
Posts: 886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

add target="_self" to the <a> tag.
Reply With Quote
  #27  
Old 03-12-2002, 10:19 PM
cditty's Avatar
cditty cditty is offline
 
Join Date: Oct 2001
Location: Memphis TN
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh gesh.....I can't believe it was that. I'm gonna go crawl under my rock. Call me when the new version is ready.

Chris
Reply With Quote
  #28  
Old 03-13-2002, 02:42 AM
lordofgun lordofgun is offline
 
Join Date: Jan 2002
Posts: 285
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AWESOME JOB!

Quick question: This might sound stupid, but is there any way to get this to auto-refresh every few minutes or so?
Reply With Quote
  #29  
Old 03-13-2002, 03:34 AM
lordofgun lordofgun is offline
 
Join Date: Jan 2002
Posts: 285
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

NEVER MIND! I am a retard...found it in the "latest" template.
Reply With Quote
  #30  
Old 03-13-2002, 03:59 AM
MrLister's Avatar
MrLister MrLister is offline
 
Join Date: Oct 2001
Posts: 434
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol is it just me or is everybody pposting multiple threads in a row. first sayan guy, then another one, then in this topic two more people
Reply With Quote
  #31  
Old 03-13-2002, 04:01 AM
MrLister's Avatar
MrLister MrLister is offline
 
Join Date: Oct 2001
Posts: 434
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just like this
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:45 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05134 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete