vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Quick Thread Box (https://vborg.vbsupport.ru/showthread.php?t=36248)

inphinity 05-14-2002 10:14 AM

v. nice hack neo :)

Quote:

Originally posted by hellsatan
So what do you think of the add-on?

I was wondering...

Every time you post a New Thread using this, it doesnt add your Signature...

How could you make it enable Signatures?

Satan

signatures, parsing urls, similies are handled by form values passed to newthread.php

the defaults on my forum are for signatures and to automatically parse urls.

to pass these silently as defaults use input type hidden

Code:

<input type="hidden" name="parseurl" value="yes" checked>
<input type="hidden" name="signature" value="yes" checked>

and include them somewhere on your submit form (probably just below check message length)

or you can give them an option or two (see attached pic):

find:
Code:

                        <smallfont><a href="javascript:checklength(document.vbform);">[check message length]</a></smallfont></td>
                </tr>
                </table>
        </td>
</tr>

and below put:

Code:

<tr>       
        <td bgcolor="{ firstaltcolor}" valign="top"><normalfont><b>Options:</b></normalfont></td>
        <td bgcolor="{ firstaltcolor}" valign="top"><smallfont>
        <input type="checkbox" name="parseurl" value="yes" checked> <b>Automatically parse URLs:</b> automatically adds [ url] and [ /url] around internet addresses.
        <br><input type="checkbox" name="signature" value="yes" checked> <b>Show Signature:</b> include your profile signature.  Only registered users may have signatures.
        </smallfont></td>
</tr>

remember to remove the spaces after { and [

if you want to give them more options copy and paste the inputs out of the newthread template and hide the ones you dont want shown (you may need to hardcode some variables like $signaturechecked (either CHECKED or UNCHECKED)

Chris M 05-14-2002 05:17 PM

Cool thnx...

Shall do...

Satan

chipheodeptrai 05-19-2002 04:32 PM

Hi

How do i add on smilies to quick thread box ? please help

thanks

Chris M 05-19-2002 06:10 PM

I believe there is an answer in the Quick Reply Box hack by FireFly...

I shall try and find it for you...

Satan

Chris M 05-19-2002 06:23 PM

Add this line:

Code:

        $clickysmilies = getclickysmilies();
to showthread.php right after this:

Code:


        $textareacols = gettextareawidth();

then use $clickysmilies in the "newthreadbox" template to add the box with the smilies in it, but you will also need to add these two lines:

Code:

<script language="Javascript" src="vbcode.js"></script>
<script language="Javascript" src="vbcode_language.js"></script>

to the template either before or after :

Code:

<tr>
        <td bgcolor="{firstaltcolor}" valign="top" nowrap><normalfont><b>Message:</b></normalfont>
                <p><smallfont>
                See Forum Rules (below) for<br>
                more information about what<br>
                codes you are allowed to use<br>
                in your posts.
        </smallfont></p></td>
        <td bgcolor="{firstaltcolor}">
                <table cellpadding="0" cellspacing="0" border="0">
                <tr valign="top">
                        <td><textarea name="message" rows="7" cols="$textareacols" wrap="virtual" tabindex="2">$message</textarea><br>
                        <smallfont><a href="javascript:checklength(document.vbform);">[check message length]</a></smallfont></td>
                </tr>
                </table>
        </td>
</tr>

Hope that helps...

Satan

chipheodeptrai 05-20-2002 12:58 AM

Dear hellsatan

I see, but i must add $clickysmilies = getclickysmilies(); to fuctions.php .....lol
Now all done...thanks for your help
:)

globalwin 06-16-2002 01:07 AM

Quote:

Originally posted by chipheodeptrai
Dear hellsatan

I see, but i must add $clickysmilies = getclickysmilies(); to fuctions.php .....lol
Now all done...thanks for your help
:)

where abouts? :bored:

Link14716 06-22-2002 03:45 PM

nvm, it has been fixed.

Units 06-22-2002 08:23 PM

Cool hack! :)

Bro_Joey_Gowdy 06-27-2002 07:49 AM

Nice hack - just one question -

how do i remove to second 'post thread' above the quick thread box ?


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
  • Page Generation 0.01276 seconds
  • Memory Usage 1,743KB
  • 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
  • (7)bbcode_code_printable
  • (2)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