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)

Ghard296 03-11-2002 01:26 AM

Nice. :)

Admin 03-11-2002 11:24 AM

eva -- instead of this in showthread.php:
Code:

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')."\";");
}

use:
Code:

if (!in_array($bbuserinfo['usergroupid'], array(5,6,7))) {
        $replybox='';
} else {
        $textareacols = gettextareawidth();
        eval("\$replybox = \"".gettemplate('showthread_replybox')."\";");
}


HTP 03-11-2002 10:39 PM

This isn't working with my fresh install of 2.2.4

Neo 03-12-2002 02:33 PM

Yup, does nto work with 2.2.4

Admin 03-12-2002 02:37 PM

Updated to work with 2.2.4.

Neo 03-12-2002 03:11 PM

Many thanks. It works perfectly now :D

Radon3k 03-12-2002 05:30 PM

Really? It worked fine with my install of 2.2.4 before Chen updated it (at least I think it was before he updated it...)

eva2000 03-12-2002 10:34 PM

Quote:

Originally posted by FireFly
eva -- instead of this in showthread.php:
Code:

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')."\";");
}

use:
Code:

if (!in_array($bbuserinfo['usergroupid'], array(5,6,7))) {
        $replybox='';
} else {
        $textareacols = gettextareawidth();
        eval("\$replybox = \"".gettemplate('showthread_replybox')."\";");
}


thanks.. just had to change the usergroup for mods since onmy forum mod usergroup id isn't 7

Freddie Bingham 03-12-2002 11:01 PM

Remember that while this looks cool
PHP Code:

if (!in_array($bbuserinfo['usergroupid'], array(5,6,7))) { 

it isn't nearly as efficient as
PHP Code:

if ($bbuserinfo['usergroupid'] != AND $bbuserinfo['usergroupid'] != AND $bbuserinfo['usergroupid'] != 7) { 


Freddie Bingham 03-12-2002 11:11 PM

Also why don't you just use:
PHP Code:

if (!ismoderator($foruminfo['forumid'])) { 

Permissions are cached so it won't add any new queries to the code.

eva2000 03-12-2002 11:30 PM

so the same can be said for close thread on reply hack https://vborg.vbsupport.ru/showthrea...threadid=33718 ?

josh929 03-13-2002 02:30 AM

ok i'm lost what does that install/uninstall button at the top of the thread do?

cditty 03-13-2002 02:37 AM

All that does is add this hack to your "Installed Hacks" section on your control panel. You still have to install the hack on your server.

Chris

Smoothie 03-13-2002 06:29 AM

I'd like to be able to add the attach file to the QRB. Is there an easy way to do this?

Admin 03-13-2002 11:57 AM

Quote:

Originally posted by freddie
Remember that while this looks cool
PHP Code:

if (!in_array($bbuserinfo['usergroupid'], array(5,6,7))) { 

it isn't nearly as efficient as
PHP Code:

if ($bbuserinfo['usergroupid'] != AND $bbuserinfo['usergroupid'] != AND $bbuserinfo['usergroupid'] != 7) { 


Why?
Not trying to be 'cool', just shortening my code.

SHalliday 03-16-2002 02:32 AM

bvnbnbbnm

beemer 03-18-2002 06:47 PM

Ok, I have it working for me (Administrator) but everyone else says they don't see it? I tried the fix that was posted back around page 3 and it didn't help. I seem to be the only one that can see the quick reply box? Any suggestions? I double checked the showthread file and my changes are in there and the part of the code where it checks for ismoderator, is commented out.

!!freebsddude 03-21-2002 08:11 AM

I am so grateful/thankful for this hack, Chen. I just wish all of your instructions, including adding smiles would be in one file, to make it easier for everyone to not have to look around all over the thread to get instructions. Good work! Thanks again.
I like when little things do big things.

Quote:

Originally posted by FireFly
JTMON - Add this line:
Code:

        $clickysmilies = getclickysmilies();
to showthread.php right after this:
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:
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. :)

Wow this is even handier than I thought... :D


Admin 03-21-2002 08:21 AM

Quote:

Originally posted by !!freebsddude
I am so grateful/thankful for this hack, Chen. I just wish all of your instructions, including adding smiles would be in one file, to make it easier for everyone to not have to look around all over the thread to get instructions. Good work! Thanks again.
I like when little things do big things.

The reason it's not in the installation file is that it's an extension to the hack a user requested, and not part of the hack. :)
And thank you for the kudos. :D

!!freebsddude 03-21-2002 08:41 AM

Quote:

Originally posted by FireFly
JTMON - Add this line:
Code:

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

        $textareacols = gettextareawidth();
then use $clickysmilies in the showthread_quickreply template to add the box with the smilies in it

Sorry, for the benefit of dumb folks like us, could you tell us precisely where to put $clickysmilies in the showthread_quickreply template please. Unfortunately, I can't find any of your replies that talk about this.

Thanks in advance!

Vivi Ornitier 03-21-2002 08:54 PM

Ok... I added the bit that made closed forums closed even with the quick reply... I got a parse error... I could not find the code that was posted in the reply... so i found one that was very similar (I couldn't see a diff) that code was

Code:

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')."\";");
}
{

I edited that with the code I was asked to edit... Could someone please help me?

The Keeper 03-23-2002 02:12 AM

is this hack compatible with 2.2.4?

E 03-23-2002 03:27 AM

^^yes very much so

c-pr0mpt 03-23-2002 08:56 AM

Quote:

Originally posted by nakkid in regards to smaaash.com forums
who designed your layout? is nice.. ;)
I did. :)


Also, for this hack how would I add a rating option? Thanks for any help.

c-pr0mpt 03-23-2002 09:14 AM

err, ignore that. I got it.

DeeperImage 03-23-2002 11:52 AM

Oh man this is schweeet.. Worked like a dream.. thanks.

Dalius 03-23-2002 06:20 PM

Quote:

Originally posted by FireFly
JTMON - Add this line:
Code:

        $clickysmilies = getclickysmilies();
to showthread.php right after this:
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:
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. :)

Wow this is even handier than I thought... :D

Can I get a SS of what this would look like, anyone who has it?

PeterNRG 03-23-2002 09:42 PM

It would be very cool to implement the RATING dropdownbox in this hack (next to the submit reply button), cause people will more easely & QUICKly rate a thread while they are replying. It also eliminates a page to be refreshed when you rate & quick reply at the same time.

I know the RATE THIS THREAD has been implemented on the normal POST REPLY page for the same reason, but people won't rate anymore if they use the quick reply box.

Of course the 'normal' rate dropdownbox + go button would have to disappear on pages with a quick reply field.

What do you think?

Jawelin 03-26-2002 02:24 PM

Quote:

Originally posted by Craig Antill
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...?

Where such a setting could be retrieved in showthread ?
I'm very interested in this feature... me too: automatically subscribe without checkbox if the userCP says so...
:D

DFX 03-27-2002 06:11 AM

Hey Firefly, I installed this hack awhile ago and then all of a sudden it stops working for alot of my members and even myself. It still works, only on certain threads and only for certain users, it's all messed up. This is the email I recieved right before it went "wacky"

Database error in vBulletin 2.2.2:

Invalid SQL:
SELECT
post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,icon.title as icontitle,icon.iconpath,
attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter
,avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline
FROM post
LEFT JOIN icon ON icon.iconid=post.iconid
LEFT JOIN user ON user.userid=post.userid
LEFT JOIN userfield ON userfield.userid=user.userid
LEFT JOIN avatar ON avatar.avatarid=user.avatarid
LEFT JOIN customavatar ON customavatar.userid=user.userid
LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid
WHERE post.postid IN (0,45327,45328)
ORDER BY dateline

mysql error: Got error 28 from table handler

mysql error number: 1030

Any help in fixing this would be great because my members and myself love this hack.

I've already tried running the repair script from my admin directory with the default 2 options it gives you on the repair.php page also to no avail.

Admin 03-27-2002 06:21 AM

Error 28 means "no space left on device". Nothing to do with this hack. :)

PeterNRG 03-27-2002 04:05 PM

I guess my RATING "dropdownbox" suggestion (see earlier post) isn't that interesting? :cross-eyed:

E 03-30-2002 12:23 AM

Hi,
Just like quick reply I take no credit for this. I just modifyied the files from this one orignally by NEO the php., templates, etc. I was asked to make this so people could put pics in the quick thread.
Thanks
Emmett Dove

E 03-30-2002 01:14 AM

if you have this hack installed, you might want to copy and paste, cause there are a few modifications, it might be hard to do if your new at this..I dont know, just trying to help

TECK 03-30-2002 01:23 AM

just curious... isnt easier to post in the original thread your hack mod? in this way everyone see where it comes from? if it's just a mod you made from the original hack, i think the right place should be in that thread.
i dont see the point of posting a mod, unless you want to raise the number of your hacks...???? ;)
personally, if i see someone makes a mod to one of my hacks and start a new thread about it, i'll get upset. look at firefly and his vbHacker. several people made mods to it. he delete them all. this is normal. mods belong with their original thread.

i made few mods to hacks, but i never started a new thred, just to get attention on it.. trust me, people see that you know your way with php.. just by helping them...

regards,
nakkid.

E 03-30-2002 01:24 AM

sorry, i didnt know.. Im not a hacker type person, i just had a few friends ask me for this, so I made it and posted it here

TECK 03-30-2002 01:25 AM

theres no prob.. :)
it's nothing wrong what you did... i simply wanted to give you my oppinion.. i might be wrong also.. cheers. ;)

E 03-30-2002 01:30 AM

Hi.
I made this so people can add attachments on Firefly's quick reply box. I do not take credit for the quick reply box. I have taken the quick reply box txt. file and modifiyed it. It works perfect. I have fixed the templates and php files, so there is no need to worry. I have it here so you can use it. I figured it would help alot of people. Also im releasing it for Neo's new thread box if anyone would like it.
Have fun
Emmett Dove

E 03-30-2002 07:19 AM

uppin, peeps asked me where it went

Genesis 03-30-2002 03:44 PM

Hello.

I do not know if this has been asked allready but here goes :

I have a board where unregistered users are allowed to post. I also use the quickreply box and every post someone does using it shows up (duh) as Unregistered.

Would it be possible if a user is NOT logged in but is allowed to post that a Username/passwd box could be added ?
I know some of you would consider this a simple hack however my knowledge of php/java/whatever you use in vbulletin is limited. I'd rather not mess with it myself.

Thanks.


All times are GMT. The time now is 10:28 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.02325 seconds
  • Memory Usage 1,843KB
  • 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
  • (13)bbcode_code_printable
  • (5)bbcode_php_printable
  • (8)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