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)
-   -   On.gif = Link to latest threads in forum (https://vborg.vbsupport.ru/showthread.php?t=42416)

Austin Dea 08-16-2002 10:00 PM

On.gif = Link to latest threads in forum
 
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.

Tim Wheatley 08-17-2002 06:57 PM

Can't you just do this in the template? I have had the buttons linking to 'make new post', but surely if you link it to: http://yourforum/showthread.php?s=&g...ost&forumid=xx

Just replacing the forum id with the forum id call $.

I'm also not sure why you need this when there's a link next to the name in the 'last post' column which does the same thing? Bit confused. :)

Austin Dea 08-17-2002 06:59 PM

That's not what this does ;). It's a link to search.php to show the latest threads post in that forum. Like the "Get New Posts" link, but specific to the forum you click. You could make it just a template edit, but that would make both on.gif AND off.gif a link and the off.gif would come up with a "No matches - try some other terms" error message.

If you wanna see, click the on.gif link here at vb.org on the forumhome.

Velocd 08-17-2002 07:08 PM

Good idea ;)
*clicks install*

Austin Dea 08-17-2002 07:19 PM

Whoops, forgot to add the code to forumdisplay.php. Just do the same edit as you did for index.php ;).

Quote:

Originally posted by Velocd
Good idea ;)
*clicks install*

It was Boofo's idea ;).

Link14716 08-17-2002 08:04 PM

Nice, will install later :)

joeboo 08-17-2002 11:04 PM

Pretty cool idea, i might just install this

Boofo 08-17-2002 11:26 PM

Austin Dea, there are 2 instances of the code to replace in "forumhome_forumbit_level1_post". Both should be replaced, right? And, aslo, I added the "forumhome_onlink" template the the templateused section of both the index.php and the fourmdisplay.php to cut the 2 queries for it. :)

BTW: Thank you very much for taking the time to do this. It is greatly appreciated. :)

Austin Dea 08-18-2002 02:05 AM

Ok, thanks a bunch. My second hack >_<. Instrucs are updated.

Boofo 08-18-2002 02:31 AM

No problem. You did all the hard work. :)

Quote:

Originally posted by Austin Dea
Ok, thanks a bunch. My second hack >_<. Insturctions are updated in the first post.


All times are GMT. The time now is 07:13 AM.

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.01325 seconds
  • Memory Usage 1,729KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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