View Full Version : Show Thread Enhancements - Post New Thread Button
princeedward
02-22-2010, 10:00 PM
Post New Thread Button To Showthread
Above, Below / Closed, Open Thread
(Tested To Default vB Skin Style And FF/IE Browser Only!)
Again...What Is This?
This is a simple and more better way to add the same Post New Thread Button to showthread page...to a closed and open thread...above and below with you to decide the space and adjust...
PROCEDURES/INSTALLATION:
[Pls. Read Clearly Or If You Need Reading Glass (Wear It First) And Follow The Steps Below
NOW GO:
ACP > Styles & Templates > Search in Templates > Search in Style:Click Dropdown Arrow (Choose Actual Style)> Search for Text: SHOWTHREAD > Search Titles Only: YES > Click Find
NOW SELECT SHOWTHREAD TO OPEN!
======================================
1: ADDING POST NEW THREAD BUTTON ABOVE!
======================================
FIND THIS CODE:
<div id="above_postlist" class="above_postlist">
<vb:if condition="$show['largereplybutton']">
<a href="newreply.php?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}&noquote=1"
class="newcontent_textcontrol" id="newreplylink_top"><vb:if condition="$show['closethread']"><span>+</span> {vb:rawphrase reply_to_thread}<vb:else />{vb:rawphrase closed_thread}</vb:if></a>
ADD BELOW:
<!--- POST NEW THREAD BUTTON ABOVE START --->
<a href="newthread.php?{vb:raw session.sessionurl}do=newthread&f={vb:raw thread.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top" style="margin-left:10px;"><span>+</span> {vb:rawphrase post_new_thread}</a>
<!--- POST NEW THREAD BUTTON ABOVE END --->
==================================
NOTE: ADJUST THE RED ONE IF NEEDED!
==================================
======================================
2: ADDING POST NEW THREAD BUTTON BELOW!
======================================
NOW GO DOWN BELOW AND SEARCH/FIND THIS CODE:
<div id="below_postlist" class="below_postlist">
<vb:if condition="$show['largereplybutton']">
<a href="newreply.php?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}&noquote=1"
class="newcontent_textcontrol" id="newreplylink_bottom">
<vb:if condition="$show['closethread']"><span>+</span> {vb:rawphrase reply_to_thread}<vb:else />{vb:rawphrase closed_thread}</vb:if></a>
ADD BELOW:
<!--- POST NEW THREAD BUTTON BELOW START --->
<a href="newthread.php?{vb:raw session.sessionurl}do=newthread&f={vb:raw thread.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top" style="margin-left:160px;"><span>+</span> {vb:rawphrase post_new_thread}</a>
<!--- POST NEW THREAD BUTTON BELOW END --->
==================================
NOTE: ADJUST THE RED ONE IF NEEDED!
==================================
SPECIAL NOTE:
Now you will notice that something is not right... the Post New Thread or Reply To Thread Button is quite larger or bigger than the others (Because Of The Font Size!)
Now you want to have it all the same size...which is more better to see...right?
NOW GO TO EDIT THAT BUTTON:
ACP > Styles & Templates > Search in Templates > Search in Style:Click Dropdown Arrow (Choose Actual Style)> Search for Text: vbulletin-chrome.css > Search Titles Only: YES > Click Find
NOW GO SELECT vbulletin-chrome.css TO OPEN
Search in Template: .newcontent_textcontrol span { Click Find:
OR LOOK/FIND THIS CODE:
}
.newcontent_textcontrol span {
font-size:15px;
font-weight:bold;
display:inline;
}
CHANGE/ADJUST THE RED INTO: 10-12px
SAVE AND RELOAD FOR A TEST IF NOT OKAY ADJUST MORE:
UNTIL OKAY....SAVE AND ENJOY!
================================================== ======
NOTE: IF YOU INSTALLED THE MOD BELOW DONT SET THE BUTTON SETTINGS TO BE INVISIBLE (OTHERWISE YOU WILL NOT SEE THIS)!
ADVANCE REPLY FOR QUICK REPLY (https://vborg.vbsupport.ru/showthread.php?t=235671)
================================================== ======
NOTE:
If Anyone Can Make It More Better In Any Way (Xml Product) On This..Feel Free To Submit Your Modification Here....
Hope You Like It And Find This Useful To Your Website!
If You Use This Mod; Please Don't Forget To:
Click "Mark as Installed"
Leave Any Comment By Saying Thanks! or Anything! (Not Just Read, Use And Go)
Rate
Nominate
"Hey Smart, If You Think You Can Make Better, Just Create One, Release And Share It To All For Free...
If It's Useless, Bad Idea For You...Don't Like It...Don't Bother To Leave Any Comment Below"...
Just Hit The Road Jack!
SPECIAL THANKS AND CREDIT FOR THE GOOD IDEA AND HELP, ALSO GOES TO:
shadowgfx (For His Original But Incomplete Mod HERE (https://vborg.vbsupport.ru/showthread.php?t=230951))
s810car (For Good Suggestion HERE (https://vborg.vbsupport.ru/showpost.php?p=1972824&postcount=12))
Lynne (For Never Ending Assistance Who Always There Behind Us And Without Waiting For Anything From Us...)
Good Day...Thanks And Best Regards To All
https://vborg.vbsupport.ru/
Nice of you to share, but what is the point of a newthread button in showthread?
Threads go in forums. That's why there's a newthread button there.
Why not put one in usercp.php and payments.php? Can we maybe get one in the archive? What about CMS and blogs?
Eq4bits
02-23-2010, 05:41 PM
That's a bit rude Kall.
I find a 'new thread' button on showthread very handy as do my members; besides being convenient it has also cut down on thread hijacking/going off topic if that button is *right there* to click for the member to start a new thread because what they were reading inspires them/makes them think of something similar.
I don't use a LOT of the mods because their use doesn't pertain to the use of MY forum, but I don't post snide comments in the mod threads.
steve1966
02-23-2010, 06:09 PM
Nice of you to share, but what is the point of a newthread button in showthread?
Threads go in forums. That's why there's a newthread button there.
Why not put one in usercp.php and payments.php? Can we maybe get one in the archive? What about CMS and blogs?
Totaly disagree with you this is a useful modification and i would like to thank princeedward for releasing it :)
supportMM
02-23-2010, 06:45 PM
AWESOME.......first thanks for making one of these mods work, and thanks for the PM letting me know you made it.
I have had members begging for this.
Its nice to give them something that works LOL
Cableguy69
02-23-2010, 08:08 PM
Yep my members make several posts at a time in certain forums so having the New thread button saves on a click for each new thread made.
Great little mod rated 5 and installed.
GeorgeB85
02-24-2010, 01:57 AM
I installed this following the directions, but for some reason the button and reply button are now only showing to unregistered members. Any idea how to make it to show to registered members?
Dr.osamA
02-24-2010, 03:35 AM
installed
thanxxx
hwo i can make it viseble only for mods ?
princeedward
02-24-2010, 06:20 AM
I installed this following the directions, but for some reason the button and reply button are now only showing to unregistered members. Any idea how to make it to show to registered members?hi there....this is impossible...we together of my members are using this without problem...this is something to do with adding maybe a conditional...maybe try to add this...
Show only members:
<vb:if condition="$show['member']">CODE HERE!</vb:if>
installed
thanxxx
hwo i can make it viseble only for mods ?hi...this is possible maybe by adding conditional too...not tested but you can try to add this code...
Show specific user groups :
<vb:if condition="is_member_of($bbuserinfo, 1,2,3)">CODE HERE!</vb:if>
================================
Show only moderators of any forum:
<vb:if condition="can_moderate()">CODE HERE!</vb:if>
best regards and hope that helped you guys...
PLS. MARKED INSTALLED-NOMINATE-RATE!
:p:up:
OturanBoğa
02-24-2010, 07:33 AM
Thanks.
GeorgeB85
02-24-2010, 12:38 PM
hi there....this is impossible...we together of my members are using this without problem...this is something to do with adding maybe a conditional...maybe try to add this...
Show only members:
<vb:if condition="$show['member']">CODE HERE!</vb:if>
I used only this code
<!--- POST NEW THREAD BUTTON ABOVE START --->
<a href="newthread.php?{vb:raw session.sessionurl}do=newthread&f={vb:raw thread.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top" style="margin-left:10px;"><span>+</span> {vb:rawphrase post_new_thread}</a>
<!--- POST NEW THREAD BUTTON ABOVE END --->
I even tried doing it with out the <!--- POST NEW THREAD BUTTON ABOVE START ---> parts but no luck.
PS. I tried the code you suggested just now too, and still no luck.
COL NIL SATIS
02-24-2010, 02:52 PM
This looks great..will vote and install tonight..thanks for sharing this Edward
princeedward
02-24-2010, 04:07 PM
I used only this code
I even tried doing it with out the <!--- POST NEW THREAD BUTTON ABOVE START ---> parts but no luck.
PS. I tried the code you suggested just now too, and still no luck.what vb version do you have...and if you want me to take a look and do it for you myself i am willing to help you out...just give me access via pm...well its for you to decidde if you will trust me...other than that i have no idea why is it not workin to your side only...sorry about that...
:o
princeedward
02-24-2010, 08:04 PM
thanxx man
sorry i forgat install
now it is oknothing to say sorry man...glad it works now...thanks also for the marked installed...nominate and rate....
;):up:
princeedward
02-25-2010, 06:46 AM
I installed this following the directions, but for some reason the button and reply button are now only showing to unregistered members. Any idea how to make it to show to registered members?problem solved now...view my post to your site...and thanks for the trust you gave me to your admincp access...
well found out that...one mod has a conflict with all of your buttons...
best regards and goodluck to your site...pls. click installed-nominate and rate...
:p:up:
princeedward
02-25-2010, 06:46 AM
UPDATE:
================================================== ======
NOTE: IF YOU INSTALLED THE MOD BELOW DONT SET THE BUTTON SETTINGS TO HIDE THEM (OTHERWISE YOU WILL NOT SEE THIS)!
ADVANCE REPLY FOR QUICK REPLY (https://vborg.vbsupport.ru/showthread.php?t=235671)
================================================== ======
GeorgeB85
02-25-2010, 12:13 PM
problem solved now...view my post to your site...and thanks for the trust you gave me to your admincp access...
well found out that...one mod has a conflict with all of your buttons...
best regards and goodluck to your site...pls. click installed-nominate and rate...
:p:up:
Just wanted to say thanks. I posted to the thread for the mod that is giving the conflict to see if that coder can fix his mod so none of the other buttons get effected.
Thanks for your help.
PS. Thanks to PrinceEdwards help, both mods are now working just fine. In the mod that was causing the conflict, it was a simple fix. I did not realize that the advance reply mod I use, has an option to hide the reply button. I set this to no, and now things work just fine.
princeedward
02-26-2010, 10:44 AM
Just wanted to say thanks. I posted to the thread for the mod that is giving the conflict to see if that coder can fix his mod so none of the other buttons get effected.
Thanks for your help.
PS. Thanks to PrinceEdwards help, both mods are now working just fine. In the mod that was causing the conflict, it was a simple fix. I did not realize that the advance reply mod I use, has an option to hide the reply button. I set this to no, and now things work just fine.glad too George that we solved the problem...thanks also for
Marked Installed-Nominate-Rate
:p:up:
Huy Ho?ng
02-28-2010, 01:28 PM
Error :(
https://vborg.vbsupport.ru/attachment.php?attachmentid=113284&stc=1&d=1267370885
princeedward
02-28-2010, 05:18 PM
hi...pls read once again the instruction carefully and it will work perfect...
as i said...
==================================
NOTE: ADJUST THE RED ONE IF NEEDED!
==================================
<!--- POST NEW THREAD BUTTON BELOW START --->
<a href="newthread.php?{vb:raw session.sessionurl}do=newthread&f={vb:raw thread.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top" style="margin-left:160px;"><span>+</span> {vb:rawphrase post_new_thread}</a>
<!--- POST NEW THREAD BUTTON BELOW END --->
best regards and pls. marked installed
:p
Huy Ho?ng
03-01-2010, 02:28 AM
hi...pls read once again the instruction carefully and it will work perfect...
as i said...
==================================
NOTE: ADJUST THE RED ONE IF NEEDED!
==================================
<!--- POST NEW THREAD BUTTON BELOW START --->
<a href="newthread.php?{vb:raw session.sessionurl}do=newthread&f={vb:raw thread.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top" style="margin-left:160px;"><span>+</span> {vb:rawphrase post_new_thread}</a>
<!--- POST NEW THREAD BUTTON BELOW END --->
best regards and pls. marked installed
:p
Oh... thank you :)
very nice
literatestylish
03-02-2010, 03:31 AM
Great mod!
Thanks!
princeedward
03-03-2010, 04:31 PM
Oh... thank you :)
very nicenot a single problem...glad it work now...
Great mod!
Thanks!wonderful and thanks to both of you for interest...install...nominate...and rate...
best regards...
:p
vicelover
03-19-2010, 09:17 AM
Hi, princeedward .
It's a great mod. I test in 2 browser, firefox and opera.
But seems the "style="margin-left:160px"; 160px is excess, I change to 155px, and works fine in Opera Brower, but does not align in FireFox.
Another question, the Above Button and Below Button looks the same, why theirs margin-left is different?
---------------160px abnormal in Opera-------------
114367
---------------155px normal in Opera----------------
114368
---------------155pxabnormal in FireFox----------------
114369
princeedward
03-19-2010, 10:31 AM
Hi, princeedward .
It's a great mod. I test in 2 browser, firefox and opera.
But seems the "style="margin-left:160px"; 160px is excess, I change to 155px, and works fine in Opera Brower, but does not align in FireFox.
Another question, the Above Button and Below Button looks the same, why theirs margin-left is different?
sorry about that mate...that's the problem or issue that i was thinkin also for quite long time now...to be honest...really can't find a way to solve it...also haven't test it via opera...
anyway maybe you got luck or anyone to solve this issue...
great and thanks for intalling this...
best regards
:p
vicelover
03-19-2010, 01:18 PM
sorry about that mate...that's the problem or issue that i was thinkin also for quite long time now...to be honest...really can't find a way to solve it...also haven't test it via opera...
anyway maybe you got luck or anyone to solve this issue...
great and thanks for intalling this...
best regards
:p
:)
This issue is too strange, I'm not good at programming.
Have you tried to explored it with other coders or designer? I'll try to ask someone.
Hope it will be solved early. :)
objective
03-25-2010, 12:10 PM
Thanks for this mod.
Note that it works with the Article Forums v4.x Mod
Article Forum (https://vborg.vbsupport.ru/showthread.php?t=237116&highlight=posts+articles)
Pic below
princeedward
03-26-2010, 06:14 PM
Thanks for this mod.
Note that it works with the Article Forums v4.x Mod
Article Forum (https://vborg.vbsupport.ru/showthread.php?t=237116&highlight=posts+articles)
Pic belowgreat and thanks for the install and info...goodluck to your site mate....
best regards as well...
:p
COL NIL SATIS
04-01-2010, 01:49 PM
Spot on Eddie...works well !!!! installed :)
testbot
04-07-2010, 02:51 PM
nice job.
now we just need this packaged in an xml so when vb makes upgrades we don't lose our template changes like in 4.0.1 to 4.0.3.
thanks again for this.
dr.tawy
05-12-2010, 12:18 PM
brilliant
Installed
fxwoody
06-17-2010, 12:18 AM
Tks! Works perfect, just have to find a way to space both buttons now ;)
https://vborg.vbsupport.ru/external/2010/06/25.png
giorgino
07-03-2010, 12:39 PM
Not compatibile with 4.0.4 last template. Please update :)
AliceHoward
08-01-2010, 06:45 AM
Working perfectly in 4.0.5, great little addition, thank you.
giorgino
08-23-2010, 07:38 AM
This conflict with Facebook button... :(
Can you update?
ZeuQma
10-20-2010, 06:07 PM
it's not bad.. good idea..
XiTCLUB
11-06-2010, 04:15 PM
nice work thanks
Fergal C
12-04-2010, 10:14 AM
Thanks, installed, looks great.
beiamerica
12-20-2010, 05:51 PM
Installed, Thanks. I don't know why this isn't included already.
Blackbeard02
12-24-2010, 10:07 AM
Thank you this is very handy
suiyuan
06-06-2011, 03:02 AM
Nice job, thank a lot!
slozz
06-22-2011, 03:16 AM
Awesome Awesome Awesome. Never let no one discret you for this simple mod. I just tried it on 4.1.4 and working awesome and great.
Its a great little hack for people wanting to make multiple posts in the same forum in a row.
THANKS THANKS THANKS !!
gungor
06-25-2011, 07:42 AM
thanks.. +installed
olapeter007
01-14-2012, 03:31 AM
nice
DaNis
01-20-2012, 12:56 PM
As mentioned on screen, in my case is only a button from vb 4.1.10
invitezone
09-11-2012, 03:16 PM
this is superb,
Thank you so much for this.
My members have been asking me for this and without your recommended edits I wouldn't have known how to do it.
Thanks sooo much
FCDobbs
01-01-2013, 08:24 PM
Likewise, members asking for it.
Your explanation/code is perfect...
Thanks
GaRanT
01-29-2013, 08:02 PM
Does it works on vb 4.2.0?
dandanch
02-02-2013, 12:50 AM
Yup.. :)
blackberry
08-28-2013, 08:22 PM
works on 4.2.1
Spangle
08-30-2013, 08:47 AM
As my Dad would often say "This fixes something that isn't broken"
DemOnstar
09-04-2013, 07:30 AM
How do I make the button invisible for unregistered users?
Thanks....
ozzy47
09-04-2013, 04:06 PM
Wrap it in a conditional.
<vb:if condition="$show['member']">
<a href="newthread.php?{vb:raw session.sessionurl}do=newthread&f={vb:raw thread.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top" style="margin-left:160px;"><span>+</span> {vb:rawphrase post_new_thread}</a>
</vb:if>
DemOnstar
09-05-2013, 05:31 AM
Wrap it in a conditional.
<vb:if condition="$show['member']">
<a href="newthread.php?{vb:raw session.sessionurl}do=newthread&f={vb:raw thread.forumid}" rel="nofollow" class="newcontent_textcontrol" id="newthreadlink_top" style="margin-left:160px;"><span>+</span> {vb:rawphrase post_new_thread}</a>
</vb:if>
Sorry old boy but I am not so tech savvy... I am sure it works but where do I add this code?
Do I replace existing code or add it underneath?
Very good job sir....
ozzy47
09-05-2013, 09:24 AM
Same place the OP told you to do it, either way you want, above or below the post. So instead of using the code he gave, use the code I provided. :)
DemOnstar
09-05-2013, 10:39 AM
Shall give it a shot sir....
Marvelous..
DemOnstar
09-05-2013, 12:34 PM
Confusion Mr 47, the mod I am using is this one https://vborg.vbsupport.ru/showthread.php?t=258983&page=4
Not sure now what to do. I guess I will have to experiment..
Thanks..
Any advice?
ozzy47
09-06-2013, 12:21 AM
Confusion Mr 47, the mod I am using is this one https://vborg.vbsupport.ru/showthread.php?t=258983&page=4
Not sure now what to do. I guess I will have to experiment..
Thanks..
Any advice?
I replied in that mod as what to do. :)
ozzy47
09-06-2013, 02:08 AM
Here is my take on this mod, no template edits, https://vborg.vbsupport.ru/showthread.php?t=301929
tanzeelniazi
10-02-2013, 09:42 AM
Working Great in 4.2.0 :)
ozzy47
10-02-2013, 09:49 AM
Yeah it still works. Here is another option though, no manual editing.
Here is my take on this mod, no template edits, https://vborg.vbsupport.ru/showthread.php?t=301929
Ahsan Ali
04-20-2015, 07:45 PM
how to adjust its pixel and button size kindly explain :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.