PDA

View Full Version : "New Thread" on forums descriptions hack


Moonwolf
09 Jan 2002, 01:08
This one's in response to a request on www.vbulletin.com/forum/showthread.php?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 (http://www.vbulletin.org/forum/showthread.php?postid=212310#post212310) below.

Kathi

bokhalifa
09 Jan 2002, 08:41
thanks my friend,

great hack :) ;)

Lesane
09 Jan 2002, 11:06
Nice hack, thanks

bokhalifa
09 Jan 2002, 11:18
i had 1 change some codes

Add in template

Add in forumhome_postthread:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------





Subscribe to this Forum :)

Bald Bouncer
09 Jan 2002, 15:28
I got a problem, this places the link on my Catagorys too :(

Moonwolf
09 Jan 2002, 15:43
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
09 Jan 2002, 17:38
LOL someone had my categorys open for new posts, wasnt me :D

Nice Hack!

Moonwolf
10 Jan 2002, 19:40
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
19 Jan 2002, 21:21
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
19 Jan 2002, 21:52
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

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.

fonzerelli_79
22 Jan 2002, 23:37
Originally posted by Bald Bouncer
I got a problem, this places the link on my Catagorys too :(

ive got the same problem
i cant figure out where to remove it

PhotoGenie
06 Feb 2002, 15:10
Originally posted by fonzerelli_79


ive got the same problem
i cant figure out where to remove it

Sounds like you need to go to the admin control panel and the forums and moderators.. Find the category and click edit.. Then go down to where it says act as a forum and tell it no.. I don't have it installed but from reading the post thats what I gather from it..:)

fonzerelli_79
06 Feb 2002, 15:13
this is where the problem lies though

the new thread link is going on the forums which have been set to 'no' for act as a forum

X-Fan
11 Feb 2002, 06:27
Originally posted by Moonwolf
This hack should put a "New Thread" (or whatever text you want) in the forum description for any forum the user can access normally.

What a great time-saving hack, especially for a content-based site like mine. Works great, thanks!!!

dnd
28 Feb 2002, 16:55
sorry

Tim Wheatley
18 Mar 2002, 13:33
Thanks, I've used it like this in the '_post' templates of the forumdisplay and home. I've added it around the on/off button like this:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Tim Wheatley
18 Mar 2002, 13:35
Has anyone else noticed that whenever you put certain php commands in messages here the board converts them... for example I put { imagesfolder } then and it was changed to {imagesfolder}

Cyricx
24 May 2003, 03:46
Great hack. :)

/me clicks install.

gmarik
05 Jun 2003, 17:37
Can anybody tell me - what does this hack does?
Doen't get the point. Looked at the demo...

Cyricx
05 Jun 2003, 22:56
When viewing your forums page where it lists your forums, it adds a link in the description for posting a new thread in that forum.

Question - Is there a way to set this so it only displays if that person has posting access to the forum?

I have a few forums that members can read and reply in but only moderators can start new threads in.

Unfortunately they see the link and I get a few intellectually challenged ones asking why they have lost their posting access LOL