![]() |
Quick Thread hack (like quick reply, on forumdisplay!)
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
Additions
OPEN forumdisplay.php AND FIND PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
WITH THE FOLLOWING CONTENT HTML Code:
<form action="newthread.php" method="post" name="vbform"> HTML Code:
<!-- / controls below thread list --> HTML Code:
<br />$quickthread (They're in the form of 'phrase_name' / 'phrase_content') (ALL IN 'Forum Display' CATEGORY!): Code:
quick_new_thread / Quick New Thread |
awesome. good lookin out.
|
Nice!
|
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.
|
Groovy. :)
|
ooooh interesting.... dunno if i,ll install tho im just a bit unsure about even more quickness lol
|
this is not working for me. I have rechecked it over and over. Is it working for anyone?
|
Quote:
|
How much queris does this adds>?
|
Quote:
|
Quote:
$quickthread somewhere in the FORUMDISPLAY templates? |
Quote:
|
Quote:
|
Quote:
When you click to post the new tread it throws a javascript error: Line: 2857 Error: Object Expected |
Quote:
|
What would be good is if you can incorporate the WYSIWYG interface... but I like it like this since it loads quickly. :)
|
this is a neat hack however how would we restrict this for certain groups only like admins and mods or vice versa
|
Quote:
PHP Code:
Add the following for more usergroups :) PHP Code:
|
sweet im gonna install this as soon as i finish with the bugs in vbadvanced thanx
|
You mite wanna add
PHP Code:
Or when it calls for the template it will create a query.. |
how can i add smilies to this?
|
Gary, when I add
PHP Code:
|
Quote:
|
I did. :p But still got that error.
|
You didn't even tell us what error you get ;)
|
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.
|
Quote:
|
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. |
Quote:
Try this and I'm sure it will help ;) (replace your old line) PHP Code:
|
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 |
Add this before </form>:
HTML Code:
<input type="hidden" name="emailupdate" value="9999" /> |
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? |
Quote:
HTML Code:
<input type="hidden" name="signature" value="1" /> |
Quote:
|
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! :)
|
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.. |
Quote:
PHP Code:
|
heh.. i swear i added it... oh well :P works now :P ta
|
Cool .. installed .. :)
|
All times are GMT. The time now is 04:49 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|