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)
-   -   [AddOn] Useful Additions For Quickreply (and normal reply page) (https://vborg.vbsupport.ru/showthread.php?t=47918)

Hwulex 01-24-2003 10:17 PM

Installed and working perfectly first time (with 2.2.6). Thankyou, great hack :)

<EdiT>
I've changed the template around a bit. Take a look at the template for changes.
I've also added a "New Posts" option to the Return To: select box. A lot of my members view posts from the new posts page, so found this most useful.

Tomorrow, I'm probably going to use the hack so that it works with editing posts as well.
If I get the time, or can be bothered, I might run up a quick instructions.txt for the changes I've made :)

Hwulex 01-25-2003 11:14 AM

I received an email requesting the code that I altered to enable "Return To New Posts' option, so here it is (attached).

I may also do the editpost option later on.

over 01-25-2003 03:15 PM

will use parts of this hack :)

close / make sticky dead useful :D
cheers.

eva2000 01-25-2003 07:53 PM

okay i have a problem

my usergroups are

admin = 6
super mod = 5
mod = 30

now the problem is even after i change the occurences of usergroup == 7 to ==30

my super mods can't close or stick threads using quick reply box but my mods and admin can

some of my super mods are also assigned to mod specific forums too

KuraFire 01-26-2003 11:35 PM

I'll look into it tomorrow at work, should be fixable, no? :)

Don't really know what could be the problem here, though.. I probably have to
'extrapolate' the hack code and see the dependancies of the entire codeblock, those might be relevant for the problem...

but since it's 2:30 am and I have to work tomorrow, I'm gonna sleep now... :)

(posted now mostly to get a new notifier if anyone posts after this, or if you (Eva) post a "already fixed it, nm!" or so ^_^)

Tony DiMera 01-27-2003 03:40 PM

Sweet thanks a lot.

KuraFire 02-03-2003 08:34 AM

Eva, have you edited this line:

PHP Code:

          $modbit = ($bbuserinfo['usergroupid']==|| $bbuserinfo['usergroupid']==7) ? ",sticky='$stickybit',open='$openbit'" ""

as well? (ie. did you add " || $bbuserinfo['usergroupid']==30" ?)

L-Mane 03-02-2003 07:31 PM

I get this error when I use this

Database error in vBulletin 2.3.0:

Invalid SQL: UPDATE forum SET replycount=replycount+1,lastpost='1046640222',last poster='Leyonssio',sticky='0',open='1' WHERE forumid IN (18,4,-1)
mysql error: Unknown column 'sticky' in 'field list'

mysql error number: 1054

Date: Sunday 02nd of March 2003 04:23:42 PM
Script: http://www.allhiphop.com/community/c...y/newreply.php
Referer: http://www.allhiphop.com/community/s...threadid=16485

king sting 03-09-2003 05:41 PM

uhmm.. I installed it and it looks great.. but now anyone (even if their not a mod or admin) can stcky and close threads.. any ideas on what I did wrong? how can i make it so only mods and admins can sticky and close threads?

ImportPassion 03-21-2003 02:02 PM

can this be added to newthread.php?

Skyrender 03-22-2003 01:18 AM

When ever anybody tries to post with the quick reply hack on my board it says: Invalid thread please contact webmaster.

Then I tried installing it again and I got the same thing.

Yuber 03-24-2003 08:08 PM

Quote:

03-02-03 at 04:31 PM L-Mane said this in Post #48
I get this error when I use this

Database error in vBulletin 2.3.0:

Invalid SQL: UPDATE forum SET replycount=replycount+1,lastpost='1046640222',last poster='Leyonssio',sticky='0',open='1' WHERE forumid IN (18,4,-1)
mysql error: Unknown column 'sticky' in 'field list'

mysql error number: 1054

Date: Sunday 02nd of March 2003 04:23:42 PM
Script: http://www.allhiphop.com/community/c...y/newreply.php
Referer: http://www.allhiphop.com/community/s...threadid=16485

I am getting the same problem :

PHP Code:

Invalid SQLUPDATE forum SET replycount=replycount+1,lastpost='1048543014',lastposter='Yuber',sticky='0',open='0' WHERE forumid IN (5,3,-1)
mysql errorUnknown column 'sticky' in 'field list'

mysql error number1054 


Also the optinos for This Thread, This Forum, and Homepage do not work, Ialways am returned to the thread.

Boofo 03-24-2003 08:18 PM

Quote:

03-21-03 at 09:18 PM Skyrender said this in Post #51
When ever anybody tries to post with the quick reply hack on my board it says: Invalid thread please contact webmaster.

Then I tried installing it again and I got the same thing.

Did you get that before installing this hack? Because there is a fix in the Quick Reply Box thread that addresses that very issue. ;)

Yuber 03-26-2003 10:17 PM

Quote:

03-02-03 at 04:31 PM L-Mane said this in Post #48
I get this error when I use this

Database error in vBulletin 2.3.0:

Invalid SQL: UPDATE forum SET replycount=replycount+1,lastpost='1046640222',last poster='Leyonssio',sticky='0',open='1' WHERE forumid IN (18,4,-1)
mysql error: Unknown column 'sticky' in 'field list'

mysql error number: 1054

Date: Sunday 02nd of March 2003 04:23:42 PM
Script: http://www.allhiphop.com/community/c...y/newreply.php
Referer: http://www.allhiphop.com/community/s...threadid=16485

I am getting the same problem :

PHP Code:

Invalid SQLUPDATE forum SET replycount=replycount+1,lastpost='1048543014',lastposter='Yuber',sticky='0',open='0' WHERE forumid IN (5,3,-1)
mysql errorUnknown column 'sticky' in 'field list'

mysql error number1054 


Also the optinos for This Thread, This Forum, and Homepage do not work, Ialways am returned to the thread.

CodeDawg 03-27-2003 01:11 AM

Great hack, works great out of the box!!!!

Yuber 03-29-2003 07:13 PM

*bump*

Sanjiyan 04-18-2003 02:05 AM

How do I get the Signature tickbox to stay ticked for those that use signatures? because at the moment its not being ticked by default.

If users use the normal reply buttons, it puts thier sigs in, but if they use the quick reply box, without ticking anything, its not putting their sigs in, but if they tick the Sig box, it does.

I've looked at the code, and it says this: (which I thought was the default tick, but its not)
PHP Code:

<p><smallfont><input type="checkbox" name="signature" value="yes" $signaturechecked> <b>Signature</b><br />
<
input type="checkbox" name="email" value="yes" $emailchecked> <b>E-mail notification</b

As you can see the 'yes' is there for both the sig and email values, now on the showreply...quick reply box, email is ticked which is brill, but signature isnt...

Is there a way to fix this?

KuraFire 04-18-2003 01:08 PM

The var "$signaturechecked" doesn't get made in showthread.php. To do so, look in newthread.php or newreply.php, search the file for $signaturechecked, then copy the bit of code that creates the var and put it in showthread.php just before the piece where the quickreply box stuff is made.

Sanjiyan 04-18-2003 03:28 PM

Quote:

Today at 02:08 PM KuraFire said this in Post #58
The var "$signaturechecked" doesn't get made in showthread.php. To do so, look in newthread.php or newreply.php, search the file for $signaturechecked, then copy the bit of code that creates the var and put it in showthread.php just before the piece where the quickreply box stuff is made.
I've edited the showthread.php

urm, I copied:

PHP Code:

$signaturechecked=iif($signature,"checked",""); 

and put it below:

PHP Code:

$emailchecked = ($bbuserinfo['emailnotification']==1) ? "checked" ""

So now it looks like

PHP Code:

    $emailchecked = ($bbuserinfo['emailnotification']==1) ? "checked" "";
        
$signaturechecked=iif($signature,"checked","");
    
$textareacols gettextareawidth();
    eval(
"\$replybox = \"".gettemplate('showthread_replybox')."\";"); 

But it still does not tick the Signature box nor add the signature.

Did I do it right? If not, where did I go wrong.

Thanks

Sanjiyan 04-21-2003 04:59 AM

bump

Sanjiyan 04-25-2003 07:47 AM

Bump for post:
https://vborg.vbsupport.ru/showthrea...776#post383776

tmapm 07-22-2003 04:21 PM

The only thing that works for me is the sticky. Everything else refuses to update.. I've redid the hack, but still nothing. I figured out it was a conflict with Doublepost Guard -- http://www.vbulletin.org/hacks/index...threadid=40145 . I'll post up a fix as soon as I find it or if someone can enlighten me with the answer, that would be appreciated.

I know it has been 2 months, Sanjiyan and I bet you probably already dropped this hack or if you didn't get it working and your still trying... Try

Code:

    $emailchecked = ($bbuserinfo['emailnotification']==1) ? "checked" : "";

    if ($bbuserinfo[signature]!="") {
      $signaturechecked="CHECKED";
    }

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


jdmuniverse 08-06-2003 08:06 PM

Would be a great hack but, I too am getting db errors with 2.2.9

I tried installing twice.... same dealio

Database error in vBulletin 2.2.9:

Invalid SQL: UPDATE thread SET lastpost='1060203767',replycount=replycount+1,last poster='SIINSI',sticky='0',open='1' WHEREthreadid='12417'
mysql error: You have an error in your SQL syntax near 'WHEREthreadid='12417'' at line 1

mysql error number: 1064

Date: Wednesday 06th of August 2003 03:02:47 PM
Script: http://www.jdmuniverse.com/forums/forums/newreply.php
Referer: http://www.jdmuniverse.com/forums/sh...threadid=12417

KuraFire 08-10-2003 07:58 PM

Quote:

04-18-03 at 06:28 PM Sanjiyan said this in Post #59
I've edited the showthread.php

urm, I copied:

PHP Code:

$signaturechecked=iif($signature,"checked",""); 

and put it below:

PHP Code:

$emailchecked = ($bbuserinfo['emailnotification']==1) ? "checked" ""

So now it looks like

PHP Code:

    $emailchecked = ($bbuserinfo['emailnotification']==1) ? "checked" "";
        
$signaturechecked=iif($signature,"checked","");
    
$textareacols gettextareawidth();
    eval(
"\$replybox = \"".gettemplate('showthread_replybox')."\";"); 

But it still does not tick the Signature box nor add the signature.

Did I do it right? If not, where did I go wrong.

Thanks





Did you put $signaturechecked in the template? It has to be there in the right place, of course :)


jdmuniverse: you removed the space between WHERE and threadid in the query. Put the space back. :)

Preech 10-02-2003 05:03 AM

um yea im gettin the same problem with the unknown column sticky thing that a lot of other people are getting...whats the deal do we have a solution for that yet????

alkatraz 10-30-2003 03:03 AM

awesome! =)

KuraFire 10-30-2003 07:51 AM

I think an upgrade of vB at some point deleted the sticky column...

But I've dropped support for vB2 hacks because I'm focusing on vB3-only hacks now (and have been for a while already). Sorry! :/


All times are GMT. The time now is 04:51 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.01414 seconds
  • Memory Usage 1,841KB
  • 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
  • (1)bbcode_code_printable
  • (10)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (27)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