vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   "New Thread" on forums descriptions hack (https://vborg.vbsupport.ru/showthread.php?t=33925)

Moonwolf 01-08-2002 10:00 PM

This one's in response to a request on http://www.vbulletin.com/forum/showt...threadid=35579

This hack should put a "New Thread" (or whatever text you want) in the forum description for any forum the user can access normally.

Demo site: www.underlight.com

Installer in Post #8 below.

Kathi

bokhalifa 01-09-2002 06:41 AM

thanks my friend,

great hack :) ;)

Lesane 01-09-2002 09:06 AM

Nice hack, thanks

bokhalifa 01-09-2002 09:18 AM

i had 1 change some codes

Add in template

Add in forumhome_postthread:

Code:

&nbsp;&nbsp;.....&nbsp;&nbsp;[<a href="newthread.php?s=$session[sessionhash]&action=newthread&forumid=$forum[forumid]">New Thread</a>]&nbsp;.....&nbsp;[<a
href="member2.php?s=$session[sessionhash]&amp;action=addsubscription&amp;forumid=$forumid">Subscribe to this Forum</a><a href="newthread.php?s=$session[sessionhash]&action=newthread&forumid=$forum[forumid]"></a>]&nbsp;



Subscribe to this Forum :)

Bald Bouncer 01-09-2002 01:28 PM

I got a problem, this places the link on my Catagorys too :(

Moonwolf 01-09-2002 01:43 PM

Quote:

Originally posted by Bald Bouncer
I got a problem, this places the link on my Catagorys too :(
Odd, the syntax checks for whether the user can post, and only if they can will it show the link. Only way I can think of that you'd be getting that is if the category isn't set as one in the CP (Act as Forum == No)

Kathi

Bald Bouncer 01-09-2002 03:38 PM

LOL someone had my categorys open for new posts, wasnt me :D

Nice Hack!

Moonwolf 01-10-2002 05:40 PM

The final version of this puts the "New Thread": link in the right hand corner, on the same line as the forum description. Installer below. Should be final. Now if only I could figure out how to move it to the full release section :P

Kathi

Jawelin 01-19-2002 07:21 PM

Nice hack, but I can't understand why an installer with DB modification is needed when, as bokhalifa said, it should be necessary a light template mod
???

Thanks a lot.

Moonwolf 01-19-2002 07:52 PM

Because if you just hard code it into the template, it'll show up for every forum, not only the ones that the visitor has access to post in. Easier and more versatile to have it as it's own little template, called from within index.php and showthread.php, and it makes it easier for language conversion too, for those who don't want to hack the php code itself.

Kathi

Quote:

Originally posted by Jawelin
Nice hack, but I can't understand why an installer with DB modification is needed when, as bokhalifa said, it should be necessary a light template mod
???

Thanks a lot.



All times are GMT. The time now is 09:04 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.00984 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_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
  • (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