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)

99SIVTEC 08-28-2003 10:06 PM

I finally got this to work with 2.3.2 . The problem is that the instructions for showthread.php are wrong, or at least they were for my site.

PHP Code:


***  FIND  ***

if (!
$getperms['canviewothers'] and ($thread['postuserid']!=$bbuserinfo['userid'] or $bbuserinfo['userid']==0)) {
show_nopermission();
}

***  
REPLACE WITH  ******

if (!
$getperms['canviewothers'] and $thread['postuserid']!=$bbuserinfo['userid']) {
show_nopermission();
}


***  
FIND  ***

if (
$noshutdownfunc) {
$DB_site->query("UPDATE thread SET views=views+1 WHERE threadid='$threadid'");
} else {
$shutdownqueries[]="UPDATE LOW_PRIORITY thread SET views=views+1 WHERE threadid='$threadid'";
}

***  
REPLACE WITH   ***


if ((
$bbuserinfo['userid']!=$thread['postuserid']) and (!$getperms['canviewothers'] or !$getperms['canreplyothers'])) {
$replybox='';
} elseif (!
$getperms['canview'] or (!$getperms['canreplyown'] and $bbuserinfo['userid']==$thread['postuserid'])) {
$replybox='';
} elseif (!
$thread['open'] and !ismoderator($thread['forumid'],'canopenclose')) {
$replybox='';
} else {
$textareacols gettextareawidth();
eval(
"\$replybox = \"".gettemplate('showthread_replybox')."\";");
}

if (
$noshutdownfunc) {
$DB_site->query("UPDATE thread SET views=views+1 WHERE threadid='$threadid'");
} else {
$shutdownqueries[]="UPDATE LOW_PRIORITY thread SET views=views+1 WHERE threadid='$threadid'";



and then it works. In the instructions they have the top two finds as one. Problem is there is a bunch of code between them.

Cal Poly Forum 08-28-2003 10:32 PM

Got it. I'll try it out.

99SIVTEC 08-28-2003 11:10 PM

I used jeffyJoe's version of the hack found on page 74 and just replaced the step 2 file edit of showthread.php with the one I posted above.

Cal Poly Forum 08-28-2003 11:54 PM

The code is not there for newreply.php Step 4.

This is for ver 2.3.2. HOw did you get yours to work?

teamsupra 08-29-2003 09:31 PM

Ive tried JeffyJoe's code and the Quick Reply was there fine, but the CLose Open Button is missing.. Any Ideas?

HaVeNita 08-30-2003 01:42 PM

Version 2.3.2 didn't work!
someone can post a new .txt with the correct Instructions?

|oR|Greg 08-30-2003 10:46 PM

Thanks Jeff...good rehack :) Now I just gotta re-add the smilies somehow.. :P

|oR|Greg 08-30-2003 11:45 PM

Got the smilies in... happy day :)

|oR|Greg 08-30-2003 11:47 PM

Anyone know how to make the smilies box so it uses the same formatting as the actual one in a new reply? I used the same $vbcode_smilies line as the newreply.php, and it displays the box, but without the proper border on the table, odd... ?

www.OrderOfRonin.com

JeffyJoe 08-31-2003 04:19 PM

Quote:

08-29-03 at 12:06 AM 99SIVTEC said this in Post #1121
I finally got this to work with 2.3.2 . The problem is that the instructions for showthread.php are wrong, or at least they were for my site.

PHP Code:


***  FIND  ***

if (!
$getperms['canviewothers'] and ($thread['postuserid']!=$bbuserinfo['userid'] or $bbuserinfo['userid']==0)) {
show_nopermission();
}

***  
REPLACE WITH  ******

if (!
$getperms['canviewothers'] and $thread['postuserid']!=$bbuserinfo['userid']) {
show_nopermission();
}


***  
FIND  ***

if (
$noshutdownfunc) {
$DB_site->query("UPDATE thread SET views=views+1 WHERE threadid='$threadid'");
} else {
$shutdownqueries[]="UPDATE LOW_PRIORITY thread SET views=views+1 WHERE threadid='$threadid'";
}

***  
REPLACE WITH   ***


if ((
$bbuserinfo['userid']!=$thread['postuserid']) and (!$getperms['canviewothers'] or !$getperms['canreplyothers'])) {
$replybox='';
} elseif (!
$getperms['canview'] or (!$getperms['canreplyown'] and $bbuserinfo['userid']==$thread['postuserid'])) {
$replybox='';
} elseif (!
$thread['open'] and !ismoderator($thread['forumid'],'canopenclose')) {
$replybox='';
} else {
$textareacols gettextareawidth();
eval(
"\$replybox = \"".gettemplate('showthread_replybox')."\";");
}

if (
$noshutdownfunc) {
$DB_site->query("UPDATE thread SET views=views+1 WHERE threadid='$threadid'");
} else {
$shutdownqueries[]="UPDATE LOW_PRIORITY thread SET views=views+1 WHERE threadid='$threadid'";



and then it works. In the instructions they have the top two finds as one. Problem is there is a bunch of code between them.


the problem is this line:
PHP Code:

 if (!$getperms['canviewothers'] and ($thread['postuserid']!=$bbuserinfo['userid'] or $bbuserinfo['userid']==0)) {
show_nopermission();


is found twice in showthread.php

the second instance of this line in showthread has this line:

PHP Code:

if (!$getperms['canviewothers'] and ($thread['postuserid']!=$bbuserinfo['userid'] or $bbuserinfo['userid']==0)) {
show_nopermission();
}

if (
$noshutdownfunc) {
$DB_site->query("UPDATE thread SET views=views+1 WHERE threadid='$threadid'");
} else {
$shutdownqueries[]="UPDATE LOW_PRIORITY thread SET views=views+1 WHERE threadid='$threadid'";


so the instruction code is correct... there should be no code between them... and there should be only one instance of this code in showthread.php

MaDCaT75 08-31-2003 05:54 PM

I still dont see the difference between this one and the origional one :ermm:

mfacer 09-01-2003 08:51 PM

i've installed this hack... its great!! all my members love it...

however, I dont know if I've done anything wrong... but it doesnt seem to stop flooding?

I have set the flood time limit to 15 seconds, but people are posting seconds after another post (same user) using the quick reply....

any thoughts?!

thanks v much! :nervous:

MaDCaT75 09-01-2003 10:55 PM

Question: How do I put "e-mail notify" and "thread subscription" check boxes into the quick reply area?

assassingod 09-01-2003 10:56 PM

Quote:

Today at 12:55 AM MaDCaT75 said this in Post #1133
Question: How do I put "e-mail notify" and "thread subscription" check boxes into the quick reply area?
I believe it's been released as a hack

MaDCaT75 09-02-2003 02:26 AM

I dont have firefly's version I have the mist hackless version and no matter what I do I cant get the smilie box to show!

psoexplorer 09-04-2003 04:37 AM

Hello. I installed this hack (jeffrey's remix) (which is VERYYYY NICE! (i hit the install button :)) Anyways, it all went smoothly, but i do not have an open close button. How do i fix that?

MaDCaT75 09-07-2003 05:34 AM

hey can someone tell me how to add the [img], [b], [i], and those buttons to the side of my quick reply?

http://www.sims2forums.com/quickreply.jpg

Gary King 09-07-2003 01:20 PM

Quote:

Today at 02:34 AM MaDCaT75 said this in Post #1137
[B]hey can someone tell me how to add the [img], , [i], and those buttons to the side of my quick reply?

http://www.sims2forums.com/quickreply.jpg

What's the attached image for?

MaDCaT75 09-07-2003 05:46 PM

I dont understand your question. :confused:

Gary King 09-07-2003 06:09 PM

Oh nevermind, I thought the link you posted was a link to someone else's quick reply with the [b], [i], etc. buttons you wanted and thought you made a mistake.

MaDCaT75 09-07-2003 06:18 PM

No I posted a screenshot of what my quick reply looks like and I jus wanted the [b], [i], [u], [img] tag stuff on the right side.... and I cant figure out how to put it all in there :confused:

Gary King 09-07-2003 06:21 PM

I know, I understand now.

blakkboy 09-07-2003 09:01 PM

im getting this error after trying to view a thread

Parse error: parse error in /home/blakkboy/public_html/forum/showthread.php on line 94

MaDCaT75 09-07-2003 09:14 PM

I'd go back and check over the code and make sure you did it right.

blakkboy 09-07-2003 09:33 PM

ill do that...... i need a good editor though, wordpad doesnt do the job

Gary King 09-07-2003 10:04 PM

Download a trial version of a better text editor that has line numbering :)

MaDCaT75 09-07-2003 10:20 PM

Quote:

Today at 12:04 AM Gary W said this in Post #1146
Download a trial version of a better text editor that has line numbering :)

yup yup :p

blakkboy 09-07-2003 10:23 PM

ok now i got the problem where its not showing at all...??

MaDCaT75 09-07-2003 11:56 PM

Do like I did..... install the mist hackless quick reply in template modification section on this forum

https://vborg.vbsupport.ru/showthrea...threadid=56834

blakkboy 09-08-2003 12:57 AM

thanx

but now its at the top.......???

Blindchild02 09-08-2003 01:09 AM

just change where the $replybox is... you dont have to follow the template directions exactly, you're allowed to edit stuff :p

MaDCaT75 09-08-2003 02:02 AM

Quote:

Today at 02:57 AM blakkboy said this in Post #1150
thanx

but now its at the top.......???


you add it after the 4th uhm..... whatever it says :tired:

blakkboy 09-08-2003 02:06 AM

cool

MaDCaT75 09-08-2003 02:09 AM

Good boy :p

If you wanna know how to add the smilie box... PM me

Hogwarts 09-09-2003 12:22 AM

Hello, I insatlled the Store back before I started to work on this, and I can't find what it asks to find in showthread. if I was to post my showthread.php could someone edit it, and reupload it, to help me out? or post instructions to how to do it? thanks.

- Hogwarts

blakkboy 09-09-2003 03:32 AM

now i cant get it to show im runing 2.3.2 and ive read of all the instructions carefully and it wont show

MaDCaT75 09-09-2003 05:34 AM

crap...... i moved my vb code button part above the smilie box now half the buttons dont work lol :cry:

Gary King 09-09-2003 11:03 AM

Quote:

Today at 12:32 AM blakkboy said this in Post #1156
now i cant get it to show im runing 2.3.0 and ive read of all the instructions carefully and it wont show
??

blakkboy 09-09-2003 01:39 PM

i wish someone could help me with this hack

calorie 09-09-2003 02:28 PM

The vB 2.3.2 quickreplybox_v11.txt download from post #1099 produces a slight
JavaScript error. The attached has a fix.

Also, if you want to get this:

[check message length] [ ] Subscribe to Thread? [ ] Use Signature? Go

to appear below the vB 2.3.2 Quick Reply box, it is also included in the attached.


All times are GMT. The time now is 10:30 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.02580 seconds
  • Memory Usage 1,849KB
  • 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_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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