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
  #12  
Old 08-18-2002, 04:43 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 found something that would look better on a mouseover.

Replace this:

Code:
Get New Posts in this Forum
with this:

Code:
There are NO new posts in this forum
in both the root/index.php and /root/forumdisplay.php.
Reply With Quote
  #13  
Old 08-18-2002, 03:40 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

o_O...you mean for the off.gif? "Get new posts in this forum" is for the on.gif...

Edit: Oh, I see. It's because I copied the other and forgot to change >_<.
Reply With Quote
  #14  
Old 08-18-2002, 04:33 PM
Unknown553's Avatar
Unknown553 Unknown553 is offline
 
Join Date: Oct 2001
Location: Las Vegas, NV, USA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bug found with the locked forum icons.
Reply With Quote
  #15  
Old 08-18-2002, 04:58 PM
Unknown553's Avatar
Unknown553 Unknown553 is offline
 
Join Date: Oct 2001
Location: Las Vegas, NV, USA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, that worked
Reply With Quote
  #16  
Old 08-18-2002, 04:59 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, deleted the post above his thanks >_<)


Oh thanks. In both forumdisplay.php and root/index.php

Replace:
PHP Code:
        if ((!$forumperms['canpostnew'] and $showlocks) or $forum['allowposting']==0) {
          
$forum['onoff'].='lock';
        } 
With:
PHP Code:
        if ((!$forumperms['canpostnew'] and $showlocks) or $forum['allowposting']==0) {
          
$forum['onoff']='<img src="{ imagesfolder}/lock.gif" border="0" alt="This forum is locked">';
        } 
And remember to take out the space in { imagesfolder} .



UPDATED INSTRUCTIONS IN FIRST POST
Reply With Quote
  #17  
Old 08-19-2002, 04:17 AM
kenny@ecn kenny@ecn is offline
 
Join Date: Apr 2002
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you point out the differences in the updates? I think i have you're first version installed- and its a b*tch to go through everything...
Reply With Quote
  #18  
Old 08-19-2002, 04:19 AM
kenny@ecn kenny@ecn is offline
 
Join Date: Apr 2002
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please point out the differences in the update as opposed to the previous version.
Reply With Quote
  #19  
Old 08-19-2002, 04:28 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

Well, I fixed the errors mentioned above...
Reply With Quote
  #20  
Old 08-19-2002, 04:29 AM
kenny@ecn kenny@ecn is offline
 
Join Date: Apr 2002
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a version that you can make of the installer to update the previously installed version instead of going through the whole entire process again?>
Reply With Quote
  #21  
Old 08-19-2002, 04: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

Updates:
[8/16] - Added the code to forumdisplay.php
[8/16] - Added 2 template for subforums in forumdisplay.php
[8/17] - Fixed lock.gif issue


And no...

From the first version, do these steps.

PHP Code:
-------------------------------------------
In root/index.php find:
-------------------------------------------

forumhome_forumbit_level2_post,forumhome,

-------------------------------------------
Replace it with:
-------------------------------------------

forumhome_forumbit_level2_post,forumhome,forumhome_onlink,

-------------------------------------------
Still in root/index.php find:
-------------------------------------------
        if ((!
$forumperms['canpostnew'] and $showlocks) or $forum['allowposting']==0) {
          
$forum['onoff'].='lock';
        }

-------------------------------------------
Replace it with:
-------------------------------------------

        if ((!
$forumperms['canpostnew'] and $showlocks) or $forum['allowposting']==0) {
          
$forum['onoff']='<img src="{ imagesfolder}/lock.gif" border="0" alt="This forum is locked">';
        }

+====================================+
|
NOTE:Remove space in imagesfolder}|
+====================================+
-------------------------------------------
In root/forumdisplay.php find:
-------------------------------------------

forumdisplay_forumbit_level1_nopost,forumdisplay_forumbit_level2_post,

-------------------------------------------
Replace it with:
-------------------------------------------

forumdisplay_forumbit_level1_nopost,forumdisplay_forumbit_level2_post,forumhome_onlink,

-------------------------------------------
*******************************************
Step 4
*******************************************
-------------------------------------------
Still in root/forumdisplay.php find:
-------------------------------------------

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

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

-------------------------------------------
Replace it with:
-------------------------------------------

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

+====================================+
|
NOTE:Remove space in imagesfolder}|
+====================================+
-------------------------------------------
In template "forumdisplay_forumbit_level1_post" find:
-------------------------------------------

<
img src="{ imagesfolder}/$forum[onoff].gif" border="0" alt="">

+===============================================+
|
NOTE:Remove space in imagesfolder}, then find|
+===============================================+
-------------------------------------------
Replace it with
-------------------------------------------

$forum[onoff]

-------------------------------------------
-------------------------------------------
In template "forumdisplay_forumbit_level2_post" find:
-------------------------------------------

<
img src="{ imagesfolder}/$forum[onoff].gif" border="0" alt="">

+===============================================+
|
NOTE:Remove space in imagesfolder}, then find|
+===============================================+
-------------------------------------------
Replace it with
-------------------------------------------

$forum[onoff]

------------------------------------------- 
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:30 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.05502 seconds
  • Memory Usage 2,347KB
  • 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
  • (3)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
  • (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