View Full Version : Quick Thread hack (like quick reply, on forumdisplay!)
Gary King
13 Feb 2004, 02:44
This hack is like the quick reply hack but on forumdisplay, so when viewing a forum, if the user has proper permissions to make a new thread then this quick thread box will show up for them.
Also view the screenshot to see how it looks :)
Features
Shows the user's signature if they have one!
subscribes to the thread according to what the user specified in their user options!
Additions
make it look better (http://www.vbulletin.org/forum/showpost.php?p=523382&postcount=61)
able to collapse the table (http://www.vbulletin.org/forum/showpost.php?p=523492&postcount=63)
better looking table (if the mod above does not work) (http://www.vbulletin.org/forum/showpost.php?p=523594&postcount=64)
Instructions
OPEN forumdisplay.php AND FIND
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
REPLACE WITH
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Find
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Add below
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
FIND
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
ABOVE, ADD
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
CREATE A NEW TEMPLATE CALLED forumdisplay_quickthread
WITH THE FOLLOWING CONTENT
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
OPEN forumdisplay TEMPLATE AND FIND
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
BELOW ADD
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
CREATE THE FOLLOWING PHRASES
(They're in the form of 'phrase_name' / 'phrase_content')
(ALL IN 'Forum Display' CATEGORY!):
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
THE HACK IS NOW INSTALLED, ENJOY!
awesome. good lookin out.
Logikos
13 Feb 2004, 03:18
Nice!
FleaBag
13 Feb 2004, 05:42
This will probably come in handy for a lot of users - surprised nobody thought of it before!
There was a vB2 hack of the same thing. I think nakkid did it.
colicab-d
13 Feb 2004, 07:46
ooooh interesting.... dunno if i,ll install tho im just a bit unsure about even more quickness lol
freakyshiat
13 Feb 2004, 15:35
this is not working for me. I have rechecked it over and over. Is it working for anyone?
Gary King
13 Feb 2004, 15:40
this is not working for me. I have rechecked it over and over. Is it working for anyone?
What doesn't work?
How much queris does this adds>?
version2
13 Feb 2004, 17:34
What doesn't work?
Hmm. The box isnt showing up. Added all the code and templates. *scratches head*
version2
13 Feb 2004, 17:37
Hmm. The box isnt showing up. Added all the code and templates. *scratches head*
Wait a sec. I am looking at the instructions and everything. Wouldnt we need to place:
$quickthread
somewhere in the FORUMDISPLAY templates?
Gary King
13 Feb 2004, 17:40
Wait a sec. I am looking at the instructions and everything. Wouldnt we need to place:
$quickthread
somewhere in the FORUMDISPLAY templates?
Thanks, I missed adding that step. Fixed now, just find the part in the instructions where you have to modify the forumdisplay template :)
Gary King
13 Feb 2004, 17:41
How much queris does this adds>?
Add 0 extra queries ;)
version2
13 Feb 2004, 17:44
Add 0 extra queries ;)
New little error:
When you click to post the new tread it throws a javascript error:
Line: 2857
Error: Object Expected
Gary King
15 Feb 2004, 15:40
New little error:
When you click to post the new tread it throws a javascript error:
Line: 2857
Error: Object Expected
Fixed in the new attachment now :)
What would be good is if you can incorporate the WYSIWYG interface... but I like it like this since it loads quickly. :)
NexVision
29 Feb 2004, 06:53
this is a neat hack however how would we restrict this for certain groups only like admins and mods or vice versa
Gary King
29 Feb 2004, 14:33
this is a neat hack however how would we restrict this for certain groups only like admins and mods or vice versa
Replace the else in the new code with
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Don't forget to replace X with the usergroupids!
Add the following for more usergroups :)
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
NexVision
29 Feb 2004, 22:20
sweet im gonna install this as soon as i finish with the bugs in vbadvanced thanx
Steve123
14 Mar 2004, 03:00
You mite wanna add
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
to the $actiontemplates array at the start of the forumdisplay.php..
Or when it calls for the template it will create a query..
maverick1236
25 Mar 2004, 13:23
how can i add smilies to this?
Red Blaze
26 Mar 2004, 16:54
Gary, when I add
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I get an parse error. I want to add only the staff to see the quick post. Right now, I only have admins viewing it.
Gary King
26 Mar 2004, 20:31
Gary, when I add
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I get an parse error. I want to add only the staff to see the quick post. Right now, I only have admins viewing it.
You have to change X to the usergroupid.
Red Blaze
26 Mar 2004, 22:28
I did. :p But still got that error.
Gary King
26 Mar 2004, 23:42
You didn't even tell us what error you get ;)
Red Blaze
27 Mar 2004, 03:13
It's a parse error. Doesn't tell me anything else but that there's wrong coding on that line. Sheesh, nevermind, I'll just use it for admin use.
Gary King
27 Mar 2004, 04:08
It's a parse error. Doesn't tell me anything else but that there's wrong coding on that line. Sheesh, nevermind, I'll just use it for admin use.
Even posting the parse error will help; if you don't want to post it, we can't help you. If we can't help you because you don't want to post the parse error, there isn't any reason to get angry at us :)
Red Blaze
27 Mar 2004, 19:04
Here
Parse error: parse error in /home/thesonic/public_html/home/forum/forumdisplay.php on line 205
Is that really that much help? It only tells you what line it is and it's
elseif ($bbuserinfo[usergroupid] == 6)or $bbuserinfo[usergroupid] == 5
I also tried:
elseif ($bbuserinfo[usergroupid] == 6) or $bbuserinfo[usergroupid] == 5
and
elseif ($bbuserinfo[usergroupid] == 6)
or $bbuserinfo[usergroupid] == 5
Still got that same error.
The elseif code works, it's the "or" that doesn't.
Gary King
27 Mar 2004, 20:45
Here
Parse error: parse error in /home/thesonic/public_html/home/forum/forumdisplay.php on line 205
Is that really that much help? It only tells you what line it is and it's
elseif ($bbuserinfo[usergroupid] == 6)or $bbuserinfo[usergroupid] == 5
I also tried:
elseif ($bbuserinfo[usergroupid] == 6) or $bbuserinfo[usergroupid] == 5
and
elseif ($bbuserinfo[usergroupid] == 6)
or $bbuserinfo[usergroupid] == 5
Still got that same error.
The elseif code works, it's the "or" that doesn't.
Glad you posted that, next time please remember to post the line and error instead of just saying 'no it won't help' :)
Try this and I'm sure it will help ;) (replace your old line)
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
hey Gary, there's a small problem... whenever we use the Quick Thread, it automatically adds that thread to the subscribed threads list for the user who created it..... any way to stop this?
MGM out
Gary King
28 Mar 2004, 21:52
Add this before </form>:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Chris Blount
29 Mar 2004, 05:48
Very nice Hack Gary! Installed with no problems. Thanks!
One question. Is there a way to get the signature to work when posting with the quick thread box?
Gary King
29 Mar 2004, 20:03
Very nice Hack Gary! Installed with no problems. Thanks!
One question. Is there a way to get the signature to work when posting with the quick thread box?
Add this before </form>:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Chris Blount
29 Mar 2004, 21:27
Add this before </form>:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
That did the trick! Thanks again!
Gary King
02 Apr 2004, 00:30
I have updated this hack! HUGE changes made, including visual enhancements (text changes, made things look better) and also I added support for signatures and email updates / notifications, depending on what the user's options are in his user cp! :)
Steve123
02 Apr 2004, 01:28
There is no update instuctions?
I tried to update and now im getting no output and this in error logs..
[Fri Apr 2 12:21:32 2004] [error] PHP Parse error: parse error in /path/to/forum/forumdisplay.php on line 203
[Fri Apr 2 12:22:59 2004] [error] PHP Fatal error: Call to undefined function: fetch_emailchecked() in /path/to/forum/forumdisplay.php on line 210
Which is
$emailchecked = fetch_emailchecked($threadinfo, $bbuserinfo, $newpost);
Im using vb3..
Gary King
02 Apr 2004, 02:07
There is no update instuctions?
I tried to update and now im getting no output and this in error logs..
[Fri Apr 2 12:21:32 2004] [error] PHP Parse error: parse error in /path/to/forum/forumdisplay.php on line 203
[Fri Apr 2 12:22:59 2004] [error] PHP Fatal error: Call to undefined function: fetch_emailchecked() in /path/to/forum/forumdisplay.php on line 210
Which is
$emailchecked = fetch_emailchecked($threadinfo, $bbuserinfo, $newpost);
Im using vb3..
Add this code in forumdisplay.php:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Steve123
02 Apr 2004, 02:12
heh.. i swear i added it... oh well :P works now :P ta
Thanks for the update. :)
enginethatcan't
13 Apr 2004, 01:33
nothing is showing up but I did everystep, is this a template or file problem?
Gary King
13 Apr 2004, 02:17
nothing is showing up but I did everystep, is this a template or file problem?
Template most likly.
Gary .. any chance you could add collapsibility to it?
Chris Blount
19 Apr 2004, 04:55
I noticed that this hack doesn't automatically parse links in text. Is there a way to fix this?
Thanks!
Gary King
19 Apr 2004, 12:20
I noticed that this hack doesn't automatically parse links in text. Is there a way to fix this?
Thanks!
Add this under all the other hidden elements:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Chris Blount
19 Apr 2004, 19:29
Add this under all the other hidden elements:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Works great! Thanks so much for your help and support.
RichieBoy67
21 Apr 2004, 19:32
Newbie Question....I was doing fine until the add phrase thing....How do I add that? I know about the Phrase manager but please explain further..
Thanks,
Rich
Gary King
21 Apr 2004, 19:44
In the phrase manager, click on 'Add New Phrase' at the bottom.
RichieBoy67
21 Apr 2004, 19:46
Thanks Gary..I know about that but I'm not sure what to do once I get in the manager..I'm not sure exactly what to add for varname and text.... Or do I just place it in all in the bottom translation box...
Thanks again,
Rich
Gary King
21 Apr 2004, 20:01
varname: quick_new_thread
text: Quick New Thread
RichieBoy67
21 Apr 2004, 20:23
Thanks Gary
Eternal2u
25 Apr 2004, 08:17
This mod ++++ing rules..
Just so you know tho the following is not needed and does nothing but tell me no forum thread specified..
quick_new_thread / Quick New Thread
more_options_newthread / <a href="newthread.php?{1}do=newthread&f={2}">Click here</a> for more posting options.
so i removed the sob
Gary King
25 Apr 2004, 14:40
This mod ++++ing rules..
Just so you know tho the following is not needed and does nothing but tell me no forum thread specified..
so i removed the sob
Please copy and paste the URL that it leads to in the output.
Host Directory
27 Apr 2004, 20:54
Please copy and paste the URL that it leads to in the output.
I am really confused about the phrases...
Am i supposed to add a new phrase like this?
Phrase type = Forum Display
Varname = quick_new_thread
Text = Quick New Thread
But then what am i supposed to be with quick_new_thread / Quick New Thread
more_options_newthread / <a href="newthread.php?{1}do=newthread&f={2}">Click here</a> for more posting options. ?
Do i put that in the translation box?
Gary King
27 Apr 2004, 22:55
varname: more_options_newthread
Text: <a href="newthread.php?{1}do=newthread&f={2}">Click here</a> for more posting options.
Host Directory
28 Apr 2004, 03:07
varname: more_options_newthread
Text: <a href="newthread.php?{1}do=newthread&f={2}">Click here</a> for more posting options.
Got it... thanks Gary. Great hack!
I click install
CREATE THE FOLLOWING PHRASES
(They're in the form of 'phrase_name' / 'phrase_content')
(ALL IN 'Forum Display' CATEGORY!):
i dont see that.... i did everythin else... where would that actually be?
nevermind i found that.. there isnt a button where u can press it and it drops down? instead of just sittin there like that
Gary King
02 May 2004, 17:06
What do you mean?
Karthick
16 Jun 2004, 12:13
I made a few cosmetic changes to my forumdisplay_quickthread template, here it is:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
- button class for buttons.
- tcat instead of thead for table header
- 6 padding instead of 4
This makes it look a little more like the quick reply box.
Heres a screenie:
http://chesschat.org/quickthread.gif
Karthick
16 Jun 2004, 13:45
Can someone help here:
What I want is the 'Click here for more posting options.' to act as 'Preview Post' if there is any text in the message box.
So basically if you have typed anything, it will preview the post instead of losing anything you have typed.
For some reason, vbform will not submit through javascript. Always getting errors. I do this on a normal HTML page, and it works... ?!
Yapluka
16 Jun 2004, 20:57
Gary .. any chance you could add collapsibility to it?
I did it with Karthick's template (thanks !) :
Find :
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Replace with :
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Thanks for this very useful hack : 56k users love it !
Karthick
17 Jun 2004, 06:52
Your instruction didn't work, so I just snip bits of codes and made it work: (entire template)
This one is better looking one with collapse aswell.
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Yapluka
17 Jun 2004, 08:18
I don't know what didn't work, but my template is just the same as yours :squareeyed:
Karthick
17 Jun 2004, 08:21
I don't know what didn't work, but my template is just the same as yours :squareeyed:
I just followed your instruction with find and replace and it didn't work.
Add 0 extra queries ;)
What about the one for the new uncached template?
the wiz
28 Sep 2004, 13:46
Nice nice. Installed.
the wiz
28 Sep 2004, 13:59
Oh, I have a question. How can I add the smilies in quick reply to this?
Chris Blount
02 Oct 2004, 03:44
I may have found a bug. When you are logged out and try to log back in under "forumdisplay.php" containing the quick thread box, after you type your username at the top and press tab, it skips down to the quick thread box rather than the password field.
Any ideas?
installed on 3.0.3
works fine
hmm,
I followed all the instructions, modified the forumdisplay, added the new template and phrases. But when I view the forum, I don't see anything different?
What could I have missed?
Thanks
Chris.
Is there anything I need to turn on, to make it work?
I went through it twice, and I'm pretty sure I did everything right.
AHH!! help me im getting a paqrse error!!
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
AND THERES ON '$' IN LINE 863 (LAST LINE IN THE FILE)
Lord Brar
19 Dec 2004, 12:01
This is an absolutely wonderful hack! Thanks :)
/me clicks install!
paulmjno
19 Dec 2004, 19:03
Ha! That rocks. :D Will install later.
AHH!! help me im getting a paqrse error!!
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
AND THERES ON '$' IN LINE 863 (LAST LINE IN THE FILE)
I had the same problem. To fix this, on the last edit for the forumdisplay.php, make sure you get the very last } ... it's easy to miss it. :o
1nf3rn0
04 May 2005, 23:48
Are there any hacks for this pertaining to adding attachments?...if so could you point the way or display the code for me..this is a great hack but would be nice to be able to add attachments to it...thank you in advanced!
Although I do not understand why the template is so much different than quick reply. Oh well, easy fix. Thanks, nice idea.
vBulletin® v3.6.12, Copyright ©2000-2013, Jelsoft Enterprises Ltd.