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)

Jared Press 07-04-2002 01:51 PM

I am confused about the instructions. I have it isntalled and it works fine. except:

I get a runtime error "object expected"

I cant figure out how to add the smilie check box. I have read some refrences to to a quick reply template but I didn't make one I just made the changes to the showthread template as it says in my original doc.

Jared Press 07-04-2002 01:52 PM

I cant find this code int he showtread template?

$textareacols = gettextareawidth();

Smoothie 07-04-2002 03:03 PM

Quote:

Originally posted by Jared Press
I cant find this code int he showtread template?

$textareacols = gettextareawidth();

showthread.php

Smoothie 07-04-2002 03:05 PM

Quote:

Originally posted by Jared Press


I cant figure out how to add the smilie check box. I have read some refrences to to a quick reply template but I didn't make one I just made the changes to the showthread template as it says in my original doc.

you should have a showthread_replybox template.

lifesourcerec 07-05-2002 12:03 PM

How do you reduce the colspan? The quick reply box is longer than the message tables (got table width set at 95%)

trilOByte 07-06-2002 12:30 AM

.... for this hack,

would be a check box or radio button that could be incorporated into the postbit. When checked, the content of that post would be auto-inserted inside [quote] tags, when the QuickReply user hit the post reply button.

Basically an auto-quote funtion, tagged by a radio button or check box in the postbit.

Conscience 07-06-2002 09:35 AM

firefly, i'm getting a small issue I think is related to the variable change in php...

No thread specified. If you followed a valid link, please notify the webmaster

any quick fixes there?

Admin 07-06-2002 12:20 PM

Do you get it every time?

Conscience 07-06-2002 02:00 PM

yup :(

Highlander 07-07-2002 08:06 PM

yes i get also an runtime error...but i noticed that ecerybody get it who installs MS office xp ..relly it sounds unbeliveable..but i aksed about 50 members and testes it..instllling ms office...deinstalled it and it works without runtime !..

Boofo 07-07-2002 08:10 PM

There must be something else wrong then. I have MS Office XP installed and have never had a problem with this hack. It runs great here. There is no way that MS Office XP can be messing with it. :)

Quote:

Originally posted by Highlander
yes i get also an runtime error...but i noticed that ecerybody get it who installs MS office xp ..relly it sounds unbeliveable..but i aksed about 50 members and testes it..instllling ms office...deinstalled it and it works without runtime !..

Cygnus 07-08-2002 09:35 PM

Sweet Hack! Installed beautifully the first try!

Cygnus

Heineken77 07-14-2002 07:01 PM

Thank you Firefly! Works like a charm :)

I?E 07-15-2002 06:20 PM

Where abouts is this line "$textareacols = gettextareawidth();"

Towards the Top, Middle, bottm... ect.

This is the only thing holding me back from finishing the install.. finding the darn code! :surprised:

PeterNRG 07-15-2002 07:02 PM

About 266 post ago I asked what people should think about having the RATING function tied into the QuickReply box.

It surprized me actually that nobody replied to this, cause I think it's an indispensable thing to have if you want to be sure of people using the rate feature.

I mean, just have a look yourself at most boards who have the QuickReply installed: they all have empty Rating table cells.

I know people are lazy when it comes to rating posts, that's why we have to make this feature as easy accesible as possible, by implementing it next to the QuickReply SUBMIT button :)

Did I make any sense? :cool:

Logician 07-15-2002 08:59 PM

This is really a very long thread and I dont know either if someone else posted this modification before or if anybody can find it in hundreds of other posts, but I'll post it anyway:

This modification will configure notification mail settings of the quick box according to the default settings of the poster. That is, if the poster has enabled email notification in his user cp settings, his quick reply will be configured accordingly too. On the other hand, if his default setting of the poster is to get no notification, he will not be subscribed to the thread when he used the quick reply box..

This thread is very active so I dont have subscription here, therefore if you are replying this message, I will not be able to read.. :knockedout:

Martin CX 07-15-2002 09:02 PM

Thanks, Logician. I'll use your modification in the morning.

Boofo 07-16-2002 12:03 AM

Would this also work?

PHP Code:

if ($bbuserinfo['emailnotification']) {
        
$emailbox 'yes';
    } else {
        
$emailbox '';
    } 

And

PHP Code:

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

Quote:

Originally posted by Logician
This modification will configure notification mail settings of the quick box according to the default settings of the poster. That is, if the poster has enabled email notification in his user cp settings, his quick reply will be configured accordingly too. On the other hand, if his default setting of the poster is to get no notification, he will not be subscribed to the thread when he used the quick reply box..



GamerNext 07-16-2002 11:05 PM

My quick reply box seems to be appearing at the top of the thread rather than the bottom...

GamerNext 07-16-2002 11:12 PM

Nevermind, I just switched where it goes.

ja5es 07-17-2002 02:47 PM

I can't seem to get this to work with vB 2.2.6... I can't find the code to replace. Can anyone help me out?

GamerNext 07-17-2002 10:45 PM

It's there, trust me. I am running it.

ja5es 07-18-2002 01:02 AM

Well I modified what I think is the correct code, made the new templates, etc. and it still doesn't work... at all.

marc49 07-18-2002 10:24 PM

my quick reply box shows up at the top and not the bottom like on here, how do I fix that? how did you fix that GamerNext??

Boofo 07-18-2002 10:26 PM

There are 2 parts in the code the same. Put it after the second part.

Quote:

Originally posted by marc49
my quick reply box shows up at the top and not the bottom like on here, how do I fix that?

marc49 07-18-2002 10:41 PM

Quote:

Originally posted by Boofo
There are 2 parts in the code the same. Put it after the second part.


ok, I am a beginner at this stuff, so please tolerate my ignorance.
but what has the two parts? is it the showthread.php?? because I went from the bottom up and then inserted it in the right area. or is it in the admin panel that I did something wrong?

Boofo 07-18-2002 10:50 PM

You need to follow the directions and insert exactly where it tells you to in the showthread template. There are 2 instances of the code there. Put $replybox after the 2nd one.

marc49 07-18-2002 11:03 PM

Thank you very, very much. I appreciate it a lot. I love this site!!! it's full of awesome hacks

Boofo 07-18-2002 11:06 PM

I know what it was like when I first started here. There are a lot of great people here and most of them will be more than willing to lend a hand. Enjoy! :)

2600 07-19-2002 10:10 AM

My box is not obaying the page borders, its larger than the thread area. Anyone help me with a fix for this?

2600

2600 07-19-2002 01:32 PM

Never mind all sorted now and ive marked as installed! Great hack thanks!

2600

Darth Cow 07-22-2002 07:06 PM

I've got a modification that I wrote for my forums that allows users to turn the quick reply box on/off in their profile. If anyone's interesting, let me know, because otherwise I won't bother :).

James Cridland 07-22-2002 07:21 PM

I'm very interesting, and also very interested in this hack.

(Actually, I'm quite boring.)

Boofo 07-22-2002 08:54 PM

I want to be mature about this so...gimme, gimme, gimme, pweez! :)

Quote:

Originally posted by Darth Cow
I've got a modification that I wrote for my forums that allows users to turn the quick reply box on/off in their profile. If anyone's interesting, let me know, because otherwise I won't bother :).

Darth Cow 07-22-2002 10:22 PM

Since I already have two requests...

First, run this database query:

Code:

ALTER TABLE user ADD showquickreply tinyint(1) DEFAULT '1' not null AFTER nosessionhash
EDIT: Corrected it to "AFTER nosessionhash" (I forgot I was basing the location after another hack I installed :p)

That will set the default to show the quick reply - changing "DEFAULT '1'" to "DEFAULT '0'" should set the default to no display.

Make a new template "modifyoptions_showquickreply" with the following contents:

Code:

<tr>
        <td bgcolor="#13486D"><normalfont><b>Show Quick Reply Box?</b></normalfont><br>
        <smallfont>Disabling this option will hide the quick reply boxes at the end of
each thread. You can still reply by clicking on "Post Reply".</smallfont></td>
        <td bgcolor="#13486D"><normalfont>
                <input type="radio" name="showquickreply" value="yes" $showquickreplychecked> yes
                <input type="radio" name="showquickreply" value="no" $showquickreplynotchecked> no
        </normalfont></td>
</tr>

Now, in member.php, after:

PHP Code:

  if ($bbuserinfo[nosessionhash]) {
    
$nosessionhashchecked="checked";
    
$nosessionhashnotchecked="";
  } else {
    
$nosessionhashchecked="";
    
$nosessionhashnotchecked="checked";
  } 

Add:

PHP Code:

// Show Quick Reply Option
  
if ($bbuserinfo[showquickreply]) {
    
$showquickreplychecked="checked";
    
$showquickreplynotchecked="";
  } else {
    
$showquickreplychecked="";
    
$showquickreplynotchecked="checked";
  }
// Show Quick Reply Option 

Still in member.php, before:

PHP Code:

  eval("dooutput(\"".gettemplate("modifyoptions")."\");");
}

// ############################### start update options ############################### 

Add:

PHP Code:

// Show Quick Reply Option
  
eval("\$showquickreplyoption = \"".gettemplate("modifyoptions_showquickreply")."\";");
// Show Quick Reply Option 

EDIT: Forgot this step at first, but here it is :). In member.php after:

In member.php, after:

PHP Code:

  $cookieuser=iif($cookieuser=="yes",1,0);
  
$nosessionhash=iif($nosessionhash=="yes",1,0); 

Add:

PHP Code:

// Show Quick Reply Option
  
$showquickreply=iif($showquickreply=="yes",1,0);
// Show Quick Reply Option 

Still in member.php, find:

PHP Code:

  $DB_site->query("UPDATE user
                   SET "
.$updatestyles."adminemail='$adminemail',
                      showemail='
$showemail',invisible='$invisible',cookieuser='$cookieuser',
                      maxposts='"
.addslashes($umaxposts)."',daysprune='".addslashes($prunedays)."',
                      timezoneoffset='"
.addslashes($timezoneoffset)."',emailnotification='$emailnotification',
                      startofweek='"
.addslashes($startofweek)."',options='$options',receivepm='$receivepm',
                      emailonpm='
$emailonpm',pmpopup='$pmpopup',usergroupid='$bbuserinfo[usergroupid]',
                      nosessionhash='
$nosessionhash

Add (continuing previous line):
Code:

,showquickreply='$showquickreply'
Finally, in showthread.php, after:

PHP Code:

} elseif (!$thread['open'] and !ismoderator($thread['forumid'],'canopenclose')) {
    
$replybox=''

(Note: you'll have to install the regular quick reply hack first to find this)

Add:
PHP Code:

} elseif ($bbuserinfo['showquickreply']==0) {
    
$replybox=''

EDIT: One final step I forgot:

Edit the modifyoptions template. After the following code:

Code:

<!-- *** -->
<tr>
        <td bgcolor="#1D6AA0" colspan="2"><normalfont color="#EEEEFF"><b>Thread View Options</b></normalfont></td>
</tr>
<!-- *** -->

Add:

Code:

$showquickreplyoption
There, that should do the trick :). If you have any trouble or can't get it to work, let me know.

Sweet Evil 07-23-2002 08:38 AM

vB 2.2.6
Been trying to add the smilies to this with no luck...
I tried $vbcode_smilies as in the new reply,etc.. but it is not working. Anyone know the code?

Thanks,

Boofo 07-23-2002 11:00 PM

To add smilies to the quick reply box:

Add this line:

PHP Code:

$clickysmilies getclickysmilies(); 

to showthread.php right after this:

PHP Code:

$textareacols gettextareawidth(); 

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

PHP Code:

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

to the template right after the <form> tag. That should work.

Kiraly 07-26-2002 05:35 PM

Parse error: parse error, unexpected '}' in c:\programmi\easyphp\www\upload\showthread.php on line 94

:(

Boofo 07-26-2002 08:03 PM

Post the lines 89 to 99 here and let us look at it.

Quote:

Originally posted by Kiraly
Parse error: parse error, unexpected '}' in c:\programmi\easyphp\www\upload\showthread.php on line 94

:(


Kiraly 07-26-2002 08:55 PM

Quote:

Originally posted by Boofo
Post the lines 89 to 99 here and let us look at it.


line? how can i see this line? in the notepad?


All times are GMT. The time now is 01:50 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.02405 seconds
  • Memory Usage 1,865KB
  • 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
  • (5)bbcode_code_printable
  • (14)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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