The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Quick Thread hack (like quick reply, on forumdisplay!) Details »» | |||||||||||||||||||||||||||
Quick Thread hack (like quick reply, on forumdisplay!)
Developer Last Online: Jun 2020
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"> <input type="hidden" name="s" value="$session[sessionurl]" /> <input type="hidden" name="forumid" value="$forumid" /> <input type="hidden" name="do" value="postthread" /> <input type="hidden" name="parseurl" value="1" /> <table cellpadding="0" cellspacing="0" border="0" class="tborder" width="100%" align="center"><tr><td> <table cellpadding="4" cellspacing="1" border="0" width="100%"> <tr> <td class="thead" colspan="2">$vbphrase[quick_new_thread]</td> </tr> <tr> <td class="alt1" colspan="2"><span class="smallfont"><phrase 1="$session[sessionurl]" 2="$foruminfo[forumid]">$vbphrase[more_options_newthread]</phrase></span></td> </tr> <tr class="alt2"> <td class="alt2"><b>$vbphrase[subject]:</b></td> <td class="alt2"><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1" /></td> </tr> <tr> <td class="alt1" valign="top" nowrap="nowrap"><b>$vbphrase[message]:</b></td> <td class="alt1"> <table cellpadding="0" cellspacing="0" border="0"> <tr valign="top"> <td><textarea name="message" rows="7" cols="$textareacols" tabindex="2">$message</textarea></td> </tr> </table> </td> </tr> </table> </td></tr></table> <br /> <table cellpadding="2" cellspacing="0" border="0" width="95%" align="center"> <tr> <td align="center"> <input type="submit" class="bginput" name="submit" value="$vbphrase[submit_new_thread]" accesskey="s" tabindex="3" /> <input type="submit" class="bginput" name="preview" value="$vbphrase[preview_post]" accesskey="p" tabindex="4" /> </td> </tr> </table> <input type="hidden" name="signature" value="1" /> <input type="hidden" name="emailupdate" value="$emailupdate" /> </form> 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 more_options_newthread / <a href="newthread.php?{1}do=newthread&f={2}">Click here</a> for more posting options. Show Your Support
|
Comments |
#22
|
|||
|
|||
You mite wanna add
PHP Code:
Or when it calls for the template it will create a query.. |
#23
|
|||
|
|||
how can i add smilies to this?
|
#24
|
||||
|
||||
Gary, when I add
PHP Code:
|
#25
|
||||
|
||||
Quote:
|
#26
|
||||
|
||||
I did. But still got that error.
|
#27
|
||||
|
||||
You didn't even tell us what error you get
|
#28
|
||||
|
||||
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.
|
#29
|
||||
|
||||
Quote:
|
#30
|
||||
|
||||
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. |
#31
|
||||
|
||||
Quote:
Try this and I'm sure it will help (replace your old line) PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|