vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - Edit New Thread Button (https://vborg.vbsupport.ru/showthread.php?t=102923)

Abe1 12-13-2005 10:00 PM

Edit New Thread Button
 
1 Attachment(s)
Edit New Thread Button 1.1


About this hack:
This hack allows you to change where the "New Thread" button directs your users for each forum. This hack gets customized from the forum options and different for each forum.

This is an ideal hack if you want your users to make a new thread using a form or something else besides the regular vb new thread page.

This hack has been created do to requests by users of my hack call Forms Hack.

Installation information on hack:
  • Files edited: 0
  • Templates edited: 1
  • Files to upload: 0
  • Time to install: 1 minute
Updates:

Version 1.0 (12/13/05):
  • Initial Release of this hack
Version 1.1 (12/17/05):
  • Added one more template edit thanks to WNxWakko
Please post your comments or suggestions for this hack. I read ALL posts.

MAKE SURE YOU CLICK INSTALL!
You will get an email when a new version is released.

nexialys 12-14-2005 02:05 AM

this is a good idea, but actually going nowhere... maybe make a note to non-coders that this hack is actually not doing anything if you don't know what you're doing with it...

Abe1 12-14-2005 02:08 AM

Quote:

Originally Posted by nexialys
this is a good idea, but actually going nowhere... maybe make a note to non-coders that this hack is actually not doing anything if you don't know what you're doing with it...

Why would non-coders not know what to do?????

Floris 12-14-2005 02:54 AM

Quote:

Originally Posted by nexialys
this is a good idea, but actually going nowhere... maybe make a note to non-coders that this hack is actually not doing anything if you don't know what you're doing with it...

I am sorry, but that is a useless comment.

He DID explain in his post why it is handy by pointing out an example:
Quote:

This hack has been created do to requests by users of my hack call Forms Hack.

Ramsesx 12-14-2005 03:19 AM

I am a non coder and know for what it is ;)
Thanks for it Abe, I'll install it later.
One question only, for every forum I can point it to a different form?

WNxWakko 12-14-2005 03:26 AM

This hack is a great addition. Anyone who uses his Form hack will definitly apprieciate this.

utw-Mephisto 12-14-2005 09:50 AM

I'd love to use that one since I am using the form hack for submitting maps, mods etc. for games.

HOWEVER, I would like to use it for the first initial post only and when people replying it uses the regular reply button - is that in any way possible

Bad Bunny 12-14-2005 11:42 AM

Quote:

Originally Posted by utw-Mephisto
I'd love to use that one since I am using the form hack for submitting maps, mods etc. for games.

HOWEVER, I would like to use it for the first initial post only and when people replying it uses the regular reply button - is that in any way possible

Well, if you use this mod to make the "New Thread" button go to the form, your reply buttons will still work as planned. And since by default vB no longer has "New Thread" button within a thread, there is little chance of someone being confused. So it sounds like this will do exactly what you want.


These two mods are great, Abe1!

utw-Mephisto 12-14-2005 11:51 AM

Stupid me .. of course, makes sense :) Thanks ...

Abe1 12-14-2005 12:17 PM

Quote:

Originally Posted by Ramsesx
I am a non coder and know for what it is ;)
Thanks for it Abe, I'll install it later.
One question only, for every forum I can point it to a different form?

Yes. The option is in the forum setting. Each forum gets it's own option.

Abe1 12-14-2005 12:21 PM

I just updated the zip file. I have forgotten to say to do the template edit 2 times for both places.

jugo 12-14-2005 01:09 PM

w00 hooo!!

This is awesome abe....thanks.

Hey Nexyalis....I'm gonna release the "Remove Foot From Mouth" hack in a couple of days...i'll let you have a first crack at it.

sorry mods...

Abe1 12-14-2005 02:52 PM

Quote:

Originally Posted by jugo
Hey Nexyalis....I'm gonna release the "Remove Foot From Mouth" hack in a couple of days...i'll let you have a first crack at it.

ROFL

RMS-Chef 12-15-2005 03:34 AM

Fantastic compliment to the forms hack Abe.
Will install this soon and I can take out my huge nested conditionals I use currently.

Thanks again.

Snake 12-15-2005 05:17 PM

Thanks.

pipin 12-16-2005 04:33 AM

Nice one. :up:

Abe, could you make a "A Reply Button" of this one too?

Would be nice for Threads where you want a Feedback from users only with a form.

Abe1 12-16-2005 11:53 AM

Quote:

Originally Posted by pipin
Nice one. :up:

Abe, could you make a "A Reply Button" of this one too?

Would be nice for Threads where you want a Feedback from users only with a form.

Would be much harder. Threads dont have setting of thier own.

WNxWakko 12-17-2005 07:45 PM

You missed one part in this. On every forum there is a link tool called "forum tools" In that dropdown there is a post new thread text button.

in FORUMDISPLAY:

FIND:

Code:

<if condition="$show['newthreadlink']"><tr><td class="vbmenu_option"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]" rel="nofollow">$vbphrase[post_a_new_thread]</a></td></tr></if>
REPLACE WITH:

Code:

<if condition="$show['newthreadlink']"><tr><td class="vbmenu_option"><if condition="$foruminfo['edit_new_thread_button']"><a href="$foruminfo[edit_new_thread_button]" rel="nofollow">$vbphrase[post_a_new_thread]</a><else /><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]" rel="nofollow">$vbphrase[post_a_new_thread]</a></if></td></tr></if>

Abe1 12-17-2005 09:16 PM

Version 1.1 (12/17/05):
  • Added one more template edit thanks to WNxWakko

rip9001 01-02-2006 07:21 PM

Good Stuff!

naqalone 02-06-2006 01:16 AM

Many thanks.

Installed !!!

Dennis B 02-16-2006 11:25 PM

This is great, but there's one little piece of information missing.
Since this is now redirecting someone already inside a forum to the newreply.php?do=form, what's the correct setting for $formforumid in the main hack plugin...?
It doesn't make sense to be an idividual forumid since this add-on is meant to be used for several forums...

Thanks

Abe1 02-17-2006 12:41 AM

Quote:

Originally Posted by Dennis B
This is great, but there's one little piece of information missing.
Since this is now redirecting someone already inside a forum to the newreply.php?do=form, what's the correct setting for $formforumid in the main hack plugin...?
It doesn't make sense to be an idividual forumid since this add-on is meant to be used for several forums...

Thanks

You can use this hack for several forums if they both use the save form or if they use differany forms. Read around the form hack to see how to be able to have like newreply.php?do=form&f=10 so the form goes to forumid 10.

MythoLogy 03-01-2006 10:54 PM

*clicks install

Definitely this and the forms hack will help for guilds finding an alternate to what guildportal provides. Thanks for these 2 great mods.

almukmin 04-30-2006 02:44 AM

I think I got it, sorry.

Boofo 04-30-2006 02:50 AM

Finally! The Ultimate April Fool's Hack! ;)

dutchbb 04-30-2006 02:04 PM

Nice, but it would be even better if one could change the image file i.e: change it to a "New Review" button or so.

Otherwise I still have to change it in the templates after every big update.

Necser 06-21-2006 04:15 PM

Quote:

Originally Posted by Triple_T
Nice, but it would be even better if one could change the image file i.e: change it to a "New Review" button or so.

Otherwise I still have to change it in the templates after every big update.

Abe1, Can this be done?

Abe1 06-21-2006 05:57 PM

Quote:

Originally Posted by Necser
Abe1, Can this be done?

This would be harder to do. I can't do this for you.

Spinball 08-15-2006 08:39 AM

Surprised nobody has asked this already.
Does this hack work with 3.6?

RMS-Chef 08-15-2006 08:53 PM

Quote:

Originally Posted by Spinball
Surprised nobody has asked this already.
Does this hack work with 3.6?

God I hope so. :)
I would hate to have to figure out the massive conditional I originally wrote to do this but removed since Abe relseased this mod.

leroub 08-16-2006 12:37 AM

hummm..... i have a blank page with the VBSilver (SubSilver clone) skin.... when i click on newthread button...

But i dont have any prob with the other skin....

Abe1 08-16-2006 03:49 AM

Yes, this does work for vb3.6

RMS-Chef 08-23-2006 03:21 PM

Quote:

Originally Posted by Abe1
Yes, this does work for vb3.6

Like a charm. :)

RMS-Chef 10-11-2006 03:35 AM

Found a new use for this in combination with CMPS. I suppose the same could be done with the custom_ template prefix as well.

I have a couple of forums where people should "only create a new thread if...". I created a small separate page that the new thread button links to with a disclaimer stating clearly the requirements for posting a new thread in that forum and then just manually added the HTML for the new thread button and link. This has stopped mis-posts almost completely.

I do the same thing with my support forums as I was getting a lot of support threads asking about crap not related to my site. So they hit the new thread button and are directed to a disclaimer about what we support before being able to submit the new thread.

RedGTiVR6 02-20-2007 12:06 PM

This might be a stupid question, but I really don't want to implement this and find out otherwise.

I can set which forum I want this hack to be used in, right? In otherwords, it will not necessarially replace every 'New Thread' button with a link to the form will it?

Charles_1 02-20-2007 12:21 PM

Quote:

Originally Posted by RedGTiVR6 (Post 1186666)
This might be a stupid question, but I really don't want to implement this and find out otherwise.

I can set which forum I want this hack to be used in, right? In otherwords, it will not necessarially replace every 'New Thread' button with a link to the form will it?

Yes, you are right. In admincp you will be able to specify new thread button link for each forum independently. I am using this in connection with Abe's Form Hack and it is simply great :-).

RedGTiVR6 02-20-2007 12:37 PM

After pecking around the general vBulletin settings, I realized it wouldn't be in there, it would be under the Forum Management area for the specific forum.

I'm using it with the Form mod as well. Great mods!

Only one thing would have made me rate this as an excelent mod, the ability to change the 'New Thread' button to read something different in the forums where this is used. I understand that would be a good deal of coding though. I wonder if there's another mod out there that does this?

Marked as Installed!

Abe1 02-20-2007 01:08 PM

Quote:

Originally Posted by RedGTiVR6 (Post 1186679)
After pecking around the general vBulletin settings, I realized it wouldn't be in there, it would be under the Forum Management area for the specific forum.

I'm using it with the Form mod as well. Great mods!

Only one thing would have made me rate this as an excelent mod, the ability to change the 'New Thread' button to read something different in the forums where this is used. I understand that would be a good deal of coding though. I wonder if there's another mod out there that does this?

Marked as Installed!

Maybe a way to change the image. I'll try to work on it.

RedGTiVR6 08-02-2007 03:47 PM

EDIT: never mind...for some reason, when I did the template reversions, these slipped through. it's fixed now!


All times are GMT. The time now is 07:14 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.02445 seconds
  • Memory Usage 1,828KB
  • 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_code_printable
  • (14)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
  • (40)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