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)

JTMON 02-03-2002 07:25 PM

Working-It helps when you upload the new showthread to the proper directory :stupid:

Danny 02-03-2002 07:27 PM

Line 437 to 441

Code:

if ($thread[open]) {
  $replyclose="{replyimage}";
} else {
  $replyclose="{closedthreadimage}";
}

Replace with ....

Line 437 to 445

Code:

if ($thread[open]) {
  eval("\$replyopenclosed = \"".gettemplate("showthread_replyopen")."\";");
} else {
  if (ismoderator($thread[forumid],'canopenclose')) {
    eval("\$replyopenclosed = \"".gettemplate("showthread_replyclosedmod")."\";");
  } else {
    eval("\$replyopenclosed = \"".gettemplate("showthread_replyclosed")."\";");
  }
}


JTMON 02-03-2002 07:30 PM

Quote:

Originally posted by Danny
Line 437 to 441

Code:

if ($thread[open]) {
  $replyclose="https://vborg.vbsupport.ru/images/reply.gif";
} else {
  $replyclose="https://vborg.vbsupport.ru/images/threadclosed.gif";
}

Replace with ....

Line 437 to 445

Code:

if ($thread[open]) {
  eval("\$replyopenclosed = \"".gettemplate("showthread_replyopen")."\";");
} else {
  if (ismoderator($thread[forumid],'canopenclose')) {
    eval("\$replyopenclosed = \"".gettemplate("showthread_replyclosedmod")."\";");
  } else {
    eval("\$replyopenclosed = \"".gettemplate("showthread_replyclosed")."\";");
  }
}


What's that do? BTW I used firefly's code as yours changed my color due to vb.org parsing the colors and me being too lazy to edit it.:D

Danny 02-03-2002 07:32 PM

that goes in the showthread file m8, just posted it for reference.

Martyjp 02-04-2002 09:21 AM

Having a few problems since I installed it

Bit of a strange one and it hasnt happened to me yet, but some users after making a quick post cant see any replies. It has happened to about 4 or 5 users, I am trying to get more information out of them at the moment, but any ideas what may be causing this?

Help if I included the image


http://f4g.net/images/f4g.jpg

JTMON 02-04-2002 11:34 AM

Haven't seen that one yet, but I have seen where they can't see THEIR post after using the QRB (Quick Reply Box) to reply. It happened to me here about 3-4 times.

Admin 02-04-2002 01:24 PM

JTMON, that's odd. I'm just replying using it and it's fine. I'll look into it.

JTMON 02-04-2002 01:26 PM

From what I can tell it's intermittent at best-I am posting this using the quick reply

Admin 02-04-2002 01:36 PM

It's actually fixed I think, the problem was with an opened <form> tag I accidentally caused somewhere. :)

JTMON 02-04-2002 01:45 PM

Cool! Way to go!

Nupraptor 02-04-2002 01:58 PM

Quote:

How about throwing a switch in the User CP so the user can toggle it on/off?
I'd really like this, if it isn't too much trouble (and if someone didn't already post how to do this - I just skimmed the thread). The quick reply box is very handy (I'm using it now, in fact :p), but it looks a bit cluttersome.

Craig Antill 02-04-2002 03:01 PM

This is really going down well with our users... excellent stuff - thanks again!

They are all asking for one thing though... is this possible ? Sorry to keep on :D

Quote:

Any way that I can allow users to subscribe to the topic with the quick reply ? Ideally by way of a hidden field which simply subscribes the user if they have set their options to subscribe by default...?

SgtSling 02-04-2002 09:34 PM

is there anyway that we can make this work with the "post comprised in time" hack?
That is my only complaint is that it posts times that are screwey.
Thanks

Lucky 02-05-2002 04:04 AM

You the man!

Works perfect on 2.2.2 with vbportal3.0pr7

A switch for users to turn on or off in the user cp would really compliment it though, as maybe some users don't want it.

Amasov 02-05-2002 07:04 AM

I just reviewed this thread and this looks very interesting. Besides, I would like to test it for a time only for Moderators and Admins.

May I change the code like this :

Code:

if (($bbuserinfo['usergroupid']=="5") or ($bbuserinfo['usergroupid']=="6")) {
 
  /*if (!$getperms['canviewothers'] and $thread
  ['postuserid']!=$bbuserinfo['userid']) {
  show_nopermission();
}

  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 ((!isset($pagenumber) or $pagenumber==0) and $pagenumber!="lastpage") {
  $pagenumber=1;
}

And will this work only for mod's and admins ???
(I'm tryin' very hard with php but I'm not so experienced with coding for the vb :( )

Admin 02-05-2002 07:09 AM

Amasov - Yes that's fine, but if I were you I'd add an else part that sets $replybox to an empty string (like the original string). Otherwise your users can do some pretty nasty stuff!

Amasov 02-05-2002 07:15 AM

hmm...ah... you mean like this :

Code:

$textareacols = gettextareawidth();
        eval("\$replybox = \"".gettemplate('showthread_replybox')."\";");

} else {
  $replybox=''
}

right ?

Admin 02-05-2002 07:19 AM

With a ; at the end, but yeah.

Amasov 02-05-2002 07:22 AM

:) :)

Many thanks for your help.

inetd 02-05-2002 05:29 PM

Hi.
In string
<form enctype="multipart/form-data" action="newreply.php" name="vbform" method="post" onSubmit="return validate(this)"> java bug. How about fix this?

Amasov 02-05-2002 09:54 PM

@inetd
I'm sorry, but what kind of scriptlanguage is "Java" ?? ( :cool: )

No, seriously, just a few hours ago a moderator told me that she has the same problem. I'm not very common with Java therefore I'm also looking forward to an answer for your question. :)

@FireFly:
Damned, how did you insert your personal text in "Who's online?" ???????

:D :D

Nam 02-05-2002 10:38 PM

Wonderful hack, I believe this actually save some bandwidth? or not :).

Destee 02-06-2002 04:17 AM

I am loving this one FireFly !!!

Thank You !!!

Admin 02-06-2002 06:37 AM

Nam, maybe but I'm not sure. Probably though, since you don't load newreply.php every time you want to post... :)

Gutspiller 02-06-2002 02:27 PM

FireFly, one of my users has notified me that when she uses the quick reply box to post that in her control panel it doesn't show that thread as one she has replied to. Can this be fixed?

Any help on this would be great.

Thanks. :up:

Amasov 02-06-2002 03:12 PM

@Inetd:

My Java problem is fixed by now. It was a carriage return inside the script between a string and it's quotes (error: missing object) maybe caused during the translation.

@Gutspiller:

Maybe the error is caused by yourself? On mine it works perfectly.

spazeman 02-06-2002 08:02 PM

that hack rules :) well done firefly!

nafae 02-06-2002 11:52 PM

Perhaps I missed something, but
Code:

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

if ((!isset($pagenumber) or $pagenumber==0) and $pagenumber!="lastpage") {
  $pagenumber=1;
}

isn't in 2.2.2, is this hack 2.2.2 ready?

FWC 02-07-2002 12:08 AM

Quote:

Originally posted by nafae
isn't in 2.2.2, is this hack 2.2.2 ready?
It's there. There is an extra
Code:

or $bbuserinfo['userid']==0
in the first line in 2.2.2.

nafae 02-07-2002 01:35 AM

ok, should I replace the or $bbuserinfo also I assume, with the code provided?

-thx btw

KuraFire 02-07-2002 11:37 AM

There is still no news about making this a selectable option in the User CP ?

Admin 02-07-2002 11:45 AM

No KuraFire, sorry I'm just not gonna bother. Sorry to sound harsh. :)
(I'm just SOOOOOOOOOOOOOOOOOOOO goddamn tired of adding options to the user cp... it's like, the worst thing you could do ever! I'm just waiting for v3 so this can be done more easily... :))

KuraFire 02-07-2002 11:59 AM

Okay well no worries, it's only my co-admin that wants it selectable, everyone else is liking it this way (as am I, big time, it saves on bandwith a bit as well! ^_^) but I was just wondering if it was being done nonetheless, cos IF SO I would use it.

No worries, I'm glad even that you're not gonna both with it. Saves *me* the effort of hacking the pages as well! :D

Oh ps. could you please look at the link in my sig? I sent ya a PM but the PM tracking doesn't show it. Weird... :/

fury 02-08-2002 10:23 AM

Excellent hack! For some reason, however, adding the clicky smilies to the template causes showthread.php to take a lot longer to finish loading. What I mean is, the posts load, and then the last post on that page is the last thing you see for about 20 seconds, and then finally the bottom bar with the new thread and post reply buttons, as well as everything below it shows.

I did exactly as you said, put $clickysmilies = getclickysmilies(); after the $textareacols... line and then put $clickysmilies in the template along with those two <script> tags after the <form>. After I did this, it began the symptoms as I described above.

I appreciate any help I can get on this. :)

fury 02-08-2002 05:34 PM

Bumpaw00t.

Admin 02-08-2002 06:03 PM

fury, you can't eat the cake and leave it whole. (or however you say it :))

The page will obviously slow down when you load 20 more images in it...

kill yourself 02-08-2002 08:45 PM

ummmmm........
I did everything as directed.
It's not working for me


ugh...:(

Warlord 02-10-2002 02:41 AM

Installed, and added the code Firefly posted to make it only visible to Admins when a thread is locked, works great! ;)

How would I go about adding the "Lock Topic with reply" feature to that?

Erwin 02-10-2002 02:44 AM

It works in 2.2.2 with no problems. I installed the smilie box for a short time, but it slowed the threads down too much, so I took it out, and left a link to the post reply page.

Admin 02-10-2002 05:16 AM

Warlord, do you have that hack installed?


All times are GMT. The time now is 04:17 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.02233 seconds
  • Memory Usage 1,819KB
  • 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
  • (8)bbcode_code_printable
  • (4)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