vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Quick Thread hack (like quick reply, on forumdisplay!) (https://vborg.vbsupport.ru/showthread.php?t=61502)

Karthick 06-16-2004 11:13 AM

I made a few cosmetic changes to my forumdisplay_quickthread template, here it is:

PHP 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="6" cellspacing="1" border="0"  width="100%">
<
tr>
    <
td class="tcat" 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="$subjectsize="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="$textareacolstabindex="2">$message</textarea><br /><br /><input type="submit" class="button" name="submit" value="$vbphrase[submit_new_thread]accesskey="s" tabindex="3" />
    <
input type="submit" class="button" name="preview" value="$vbphrase[preview_post]accesskey="p" tabindex="4" /></td>
        </
tr>
        </
table>
    </
td>
</
tr>
</
table>
</
td></tr></table>

<
br />

<
input type="hidden" name="signature" value="1" />
<
input type="hidden" name="emailupdate" value="$emailupdate/>
</
form

- 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 06-16-2004 12:45 PM

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 06-16-2004 07:57 PM

Quote:

Originally Posted by Slave
Gary .. any chance you could add collapsibility to it?

I did it with Karthick's template (thanks !) :

Find :

Code:

<tr>
    <td class="tcat" 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>
    <input type="submit" class="button" name="preview" value="$vbphrase[preview_post]" accesskey="p" tabindex="4" /></td>
        </tr>
        </table>
    </td>
</tr>
</table>
</td></tr></table>

Replace with :

Code:

<tbody>
<tr>
    <td class="tcat" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('quickthread')"><img id="collapseimg_quickthread" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_quickthread].gif" alt="" border="0" /></a>$vbphrase[quick_new_thread]

</td>
</tr>
</tbody>
<tbody id="collapseobj_quickthread" style="$vbcollapse[collapseobj_quickthread]">
<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>
    <input type="submit" class="button" name="preview" value="$vbphrase[preview_post]" accesskey="p" tabindex="4" /></td>
        </tr>
        </table>
    </td>
</tr>
</table>
</td></tr></tbody></table>

Thanks for this very useful hack : 56k users love it !

Karthick 06-17-2004 05:52 AM

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.

PHP 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="6" cellspacing="1" border="0"  width="100%">
<
tbody>
<
tr
    <
td class="tcat" colspan="2">
<
a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('quickthread')"><img id="collapseimg_quickthread" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_quickthread].gif" alt="" border="0" /></a>$vbphrase[quick_new_thread]

</
td
</
tr
</
tbody>
<
tbody id="collapseobj_quickthread" style="$vbcollapse[collapseobj_quickthread]">
<
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="$subjectsize="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="$textareacolstabindex="2">$message</textarea><br /><br /><input type="submit" class="button" name="submit" value="$vbphrase[submit_new_thread]accesskey="s" tabindex="3" />
    <
input type="submit" class="button" name="preview" value="$vbphrase[preview_post]accesskey="p" tabindex="4" /></td>
        </
tr>
        </
table>
    </
td>
</
tr>
</
table>
</
td></tr></tbody></table>

<
br />

<
input type="hidden" name="signature" value="1" />
<
input type="hidden" name="emailupdate" value="$emailupdate/>
</
form


Yapluka 06-17-2004 07:18 AM

I don't know what didn't work, but my template is just the same as yours :squareeyed:

Karthick 06-17-2004 07:21 AM

Quote:

Originally Posted by Yapluka
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.

kall 08-02-2004 09:07 PM

Quote:

Originally Posted by Gary W
Add 0 extra queries ;)

What about the one for the new uncached template?

the wiz 09-28-2004 12:46 PM

Nice nice. Installed.

the wiz 09-28-2004 12:59 PM

Oh, I have a question. How can I add the smilies in quick reply to this?

Chris Blount 10-02-2004 02:44 AM

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?


All times are GMT. The time now is 09:03 AM.

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.01266 seconds
  • Memory Usage 1,816KB
  • 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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