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 Reply Box (https://vborg.vbsupport.ru/showthread.php?t=34597)

Admin 05-24-2002 07:05 AM

To subscribe users to the thread if the option is on in their profile.

In showthread.php, replace:
Code:

        eval("\$replybox = \"".gettemplate('showthread_replybox')."\";");
With:
Code:

        if ($bbuserinfo['emailnotification']) {
                $emailbox = 'yes';
        } else {
                $emailbox = '';
        }
        eval("\$replybox = \"".gettemplate('showthread_replybox')."\";");

Now in the showthread_replybox template, replace this:
Code:

<input type="hidden" name="email" value="">
With this:
Code:

<input type="hidden" name="email" value="$emailbox">

CJi 05-24-2002 05:29 PM

FireFly, I could kiss you :) Thanks buddy, just what the doctor ordered!

Chris M 05-24-2002 06:06 PM

@FireFly -

I saw your instructions on how to add the Smilies to the Quick Reply Box - Exactly where do you place "$clickysmilies" in the showthread_quickreply template?

I have tried several positions, and even tried putting table around it, but it just messes up the other tables of the box...

Satan

Allstar DC 05-25-2002 07:56 AM

to add the smilies do the following:


open showthread_quickreply template

find:
PHP Code:

<td bgcolor="{ secondaltcolor }" valign="top" nowrap><normalfont><b>Your Reply:</b></normalfont></td


and replace it with:

PHP Code:

<td bgcolor="{ secondaltcolor }" valign="top" nowrap><normalfont><b>Your Reply:</b><br>$clickysmilies</normalfont></td

That should do the trick


*Remove the spaces after { and before }

Thomas P 05-30-2002 10:48 AM

Gr8 hack m8! :bunny:

Very clean and simple to integrate :)

10x,
-Tom

moosey 05-30-2002 02:25 PM

great hack mate!

seen it on boards and thinks it is dead usefull.. thx

NSeXcellent 06-01-2002 12:53 PM

Quote:

Originally posted by Allstar DC
to add the smilies do the following:


open showthread_quickreply template

find:
PHP Code:

<td bgcolor="{ secondaltcolor }" valign="top" nowrap><normalfont><b>Your Reply:</b></normalfont></td


and replace it with:

PHP Code:

<td bgcolor="{ secondaltcolor }" valign="top" nowrap><normalfont><b>Your Reply:</b><br>$clickysmilies</normalfont></td

That should do the trick


*Remove the spaces after { and before }


This is a very simple replacement, and I attempted it, but nothing shows up. Any clue? Yes I did remove the spaces before and after the brackets....

JZarate 06-01-2002 09:00 PM

Thanks a lot FireFly! This hack worked like a charm in 2.2.5

Slynderdale 06-01-2002 09:26 PM

my quick reply box :)

Allstar DC 06-01-2002 09:32 PM

NSeXcellent: that coding was in answer to hellsatans question about how to add the smiles to the replybox.

thats how i have done it and it does work.

if it isn't working then you must have done something wrong


All times are GMT. The time now is 07:47 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.02141 seconds
  • Memory Usage 1,752KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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