Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
On.gif = Link to latest threads in forum Details »»
On.gif = Link to latest threads in forum
Version: 1.00, by Austin Dea Austin Dea is offline
Developer Last Online: Oct 2005 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-16-2002 Last Update: Never Installs: 17
 
No support by the author.

Requested by Boofo in this thread =P.


This will make the on.gif a link to get the latest threads in that forum. It will not affect the off.gif. It's just like the "Get New Posts" link, only forum specific .
  • File edits: 6 (2 in root/index.php, 2 in root/forumdisplay.php, 2 in root/usercp.php)
  • Template edits: 5 (forumhome_forumbit_level1_post, forumhome_forumbit_level2_post,forumdisplay_forumb it_level1_post, forumdisplay_forumbit_level2_post, usercp_forumbit)
  • New templates: 1 (forumhome_onlink)
  • Install time: 5 minutes


ADDED: On.gif = link to latest threads for subscribed forums in user cp. (Thanks Boofo) It's steps 10, 11, and 12 from version 1.3.

Show Your Support

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

Comments
  #22  
Old 08-21-2002, 11:52 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Austin Dea, I have an update for you to add to this hack. If you want the images linked in the usercp for the Subscribed Forums, do the following:

In usercp.php, replace

PHP Code:
 if ($userlastvisit<$forum['lastpost']) {
            
$forum['onoff']='on';
          } else {
            
$forum['onoff']='off';
          }
        }

        if ((!
$forumperms['canpostnew'] and $showlocks) or $forum['allowposting']==0) {
          
$forum['onoff'].='lock';
        } 
with:

PHP Code:
// on/off link hack
        
if ($userlastvisit<$forum['lastpost']) {
        eval(
"\$forum['onoff'] = \"".gettemplate('forumhome_onlink')."\";");
          } else {
            
$forum['onoff']='<img src="{ imagesfolder}/off.gif" border="0" alt="There are no new posts in this forum">';
          }
        }

        if ((!
$forumperms['canpostnew'] and $showlocks) or $forum['allowposting']==0) {
          
$forum['onoff']='<img src="{ imagesfolder}/lock.gif" border="0" alt="This forum is locked!">';
        }
// end on/off link hack 
and in the "usercp_forumbit" template, change this:

PHP Code:
<img src="{ imagesfolder}/$forum[onoff].gif" border="0" alt=""
to this:

PHP Code:
$forum[onoff
and don't forget to add forumhome_onlink to the templatesused line if the usercp.php file.

NOTE: Don't forget to take the spaces out between the { and imagesfolder.

That's all!
Reply With Quote
  #23  
Old 08-22-2002, 02:55 AM
Austin Dea's Avatar
Austin Dea Austin Dea is offline
 
Join Date: Dec 2001
Location: Denver, CO, USA
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I never use the Subscribed forums personally, but great idea .
Reply With Quote
  #24  
Old 08-22-2002, 03:15 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I usually don't use them either but sooner or later, someone would catch it. So, better to take care of it now, huh?

Quote:
Originally posted by Austin Dea
I never use the Subscribed forums personally, but great idea .
Reply With Quote
  #25  
Old 08-22-2002, 02:38 PM
Austin Dea's Avatar
Austin Dea Austin Dea is offline
 
Join Date: Dec 2001
Location: Denver, CO, USA
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, I'll add to the instructions .
Reply With Quote
  #26  
Old 09-10-2002, 07:20 PM
leon2u leon2u is offline
 
Join Date: Mar 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Look at my snapshot plz...

I have installed a hack which shows the latest threads on my homepage. What I want is that in each posted thread titel is a ligtbulb on which I can click and go to the last post in that Thread!

This is one step further then what you have, with your hack you go to the last post in the whole forum...i need to go to the last post of every thread...

So on the left of the snapshot under Laatste Topics there are the 5 latest threads on the forum. In each of them I will have later on a picture on which I can click and go directly to the latest post in that thread.

Could you gimme the code for that???

Thanx
Reply With Quote
  #27  
Old 09-11-2002, 12:35 AM
Austin Dea's Avatar
Austin Dea Austin Dea is offline
 
Join Date: Dec 2001
Location: Denver, CO, USA
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just make that image link to this in whatever template shows that.
Code:
"showthread.php?s=$session[sessionhash]&goto=lastpost&threadid=$thread[threadid]"
Reply With Quote
  #28  
Old 09-11-2002, 05:44 AM
leon2u leon2u is offline
 
Join Date: Mar 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanx for your reply but I managed to fix that on my own
I used this for the 'replier' part in the snapshot (on your left)
showthread.php?s=&goto=lastpost&threadid=$thread[threadid]"

You posted this
Quote:
Originally posted by Austin Dea
Code:
$session[sessionhash]
Q 1: What does the $session mean and the [sessionhash]? Does it has a function in this one??? It seems to be here...

Q2: Besides that how do I get the the lightbulb picture for if there is a new post in that particular thread, what code do I need for that?

Q3: Then I want to have another function for when my mouse is over the Thread link in the menu...when my mouse rests on the link then I would love to have a popup information screen in which forum it has been posted...could you get me this code...I think it has to with a mouse over event but then I still need the code to fill out for the forum it has been post in....

Thanx for your effort...
Reply With Quote
  #29  
Old 09-12-2002, 01:12 AM
Austin Dea's Avatar
Austin Dea Austin Dea is offline
 
Join Date: Dec 2001
Location: Denver, CO, USA
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think you should ask for this in the Request forum, since it is a totally different hack.
Reply With Quote
  #30  
Old 04-10-2003, 04:59 PM
Alien's Avatar
Alien Alien is offline
 
Join Date: Oct 2001
Posts: 827
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone have a copy of the exact file listed in post #1 here? The link is completely dead now.

-Jason
Reply With Quote
  #31  
Old 04-11-2003, 04:04 PM
Austin Dea's Avatar
Austin Dea Austin Dea is offline
 
Join Date: Dec 2001
Location: Denver, CO, USA
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry ^_^;. Check the first post.
Reply With Quote
Reply


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 03:33 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.05045 seconds
  • Memory Usage 2,324KB
  • 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
  • (2)bbcode_code
  • (4)bbcode_php
  • (2)bbcode_quote
  • (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
  • (3)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