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)

KuraFire 01-19-2003 10:00 PM

[AddOn] Useful Additions For Quickreply (and normal reply page)
 
HACK: [AddOn] Useful Additions to QuickReply box & Normal Reply page
BY: KuraFire [www.kurafire.com]
REQUESTED BY: My left brainhalf. *gives credit*
DESCRIPTION: Puts several small additions to the QuickReply box, as well as some to the normal Reply page.
DIFFICULTY: Medium
INSTALL-TIME: 10-15 minutes + time for FireFly/Chen's QuickReply box if you haven't installed that yet
STEPS: 7

!! NOTE: instructions updated on 22:19 CET* - make sure to clear your cache and re-download if you downloaded it already!

(* = see edit of this post timestamp for your own time)

EXTENDED DESCRIPTION:
What this hack do is simple: it adds a Signature checkbox, E-mail notification checkbox, and a Return-to dropdown box to your Quick Reply box (hack by FireFly). For Admins and Mods, it also adds two checkboxes: Close thread, and Stick thread (so that you can stick/unstick & close/open threads when you make a reply).
On the normal Reply page, it adds the same stuff minus Signature and E-mail checkboxes, of course (as they are already there :p).


Files to hack: newreply.php, showthread.php
Templates to mod: showthread_replybox*, newreply, newpost_attachment


Instructions are in the Attachment :)

KuraFire 01-20-2003 01:26 PM

Screenshot:

NOTE: the Close Thread and Stick Thread boxes are only visible to Admins & Mods!!

SemperFidelis 01-20-2003 01:39 PM

Wohooo !
It gets released
Cheers KuraFire
:)

To use your addon, should I just :
1. outright remove Tecks quick reply with close
2. install fireflys quick reply
3. install your add-ons ?

KuraFire 01-20-2003 01:49 PM

Yeah, that'd be best cos I have no idea how Teck did his quickreply hack, so it's probably not compatible with my add-on to FireFly's hack.

In fact, I'm 99% sure that it's incompatible. So Install FireFly's instead ^_^

SemperFidelis 01-20-2003 01:53 PM

Ok
Thanks for the quick answer.
Will do.

One other question, can you possibly incorporate you add-ons to editpost as well ?

KuraFire 01-20-2003 01:57 PM

uhm, good idea :)

I'll update the hack later so that it incorporates that (and I'll update the zipfile in the attachment) :)

thx 4 tip ^_^

X-Fan 01-20-2003 01:57 PM

Kura, I can't extract the files from the RAR archive (and I've got WinRAR). Could you please just post the text files? Thanks! :)

KuraFire 01-20-2003 02:00 PM

Update your WinRAR to the latest version

SemperFidelis 01-20-2003 02:35 PM

Sweet
Ive now un-installed Tecks and installed Firefly's

Quick question though.
Your instructions say :
PHP Code:

FIND:
<
tr bgcolor="{secondaltcolor}">

REPLACE WITH:
<
tr bgcolor="{firstaltcolor}"

But the standard vb 2.2.9 newpost_attachment template contains :
PHP Code:

<tr>
    <
td bgcolor="{secondaltcolor}" valign="top"><normalfont><b>Attach file:</b></normalfont><br>
    <
smallfont>Maximum size$maxattachsize bytes</smallfont></td>
    <
td bgcolor="{secondaltcolor}" valign="top"><smallfont><input type="hidden" name="MAX_FILE_SIZE" value="$maxattachsize_temp">
    <
input type="file" class="bginput" name="attachment"><br>
    
Valid file extensions$attachextensions</smallfont></td>
</
tr


Do you mean replace both instances of : <td bgcolor="{secondaltcolor}" ?

Dean C 01-20-2003 03:42 PM

Nice hack buddy :)

Thanks for releasing

- miSt

LOD-squa 01-20-2003 04:19 PM

can someone post the file has a txt file? :p

Boofo 01-20-2003 06:12 PM

The RAR has text files inside. :)

But here you go, anyway. Also, there are a couple of small fixes in there for the signature checked option and a parse error fix. I had to add some extra code to get the signature box to be checked if you had a signature in your options and not checked if you don't.

Boofo 01-20-2003 06:17 PM

KuraFire, in step 7, you forgot to add a ; at the end of the line. I got a parse error, but all is well now. ;)

Your code:

PHP Code:

$ugid $bbuserinfo['usergroupid'

What it should be:

PHP Code:

$ugid $bbuserinfo['usergroupid']; 


LOD-squa 01-20-2003 07:04 PM

Thanks, Boofo. I shall be installing it soon ^^;

Boofo 01-20-2003 07:05 PM

You're very welcome. Let me know how it goes. ;)

KuraFire 01-20-2003 07:17 PM

Quote:

Originally posted by Boofo
The RAR has text files inside. :)

But here you go, anyway. Also, there are a couple of small fixes in there for the signature checked option and a parse error fix. I had to add some extra code to get the signature box to be checked if you had a signature in your options and not checked if you don't.

Ack, yeah, I forgot to update the parse error code in the zipfile, will do that right away tomorrow!

Boofo: I deliberately made it _not_ to check on whether you had a signature or not, to have it auto-checked or not. I *Hate* signatures for each post, I disabled sigs for 80% on my board (you really simply have to put effort into it if you want your sig to show more than once in a thread) and I would rather see _more_ boards use sigs off by default.

I also hate it that vb.org has sigs on if you use quickreply. It's yucky and hugely annoying (esp. for ppl on slow connections like me)


v-net: ack, yeah, I couldn't remember what the original template was (I overwrite my vB-Default templates instead of add my own for my style) but that's what I had.
Yeah, you have to replace both instances in that case :)

I'll update the hack instructions as well on that, tomorrow :)

KuraFire 01-20-2003 07:27 PM

s/tomorrow/2 minutes ago/

Yes, I updated the install file (attachment in first post)

Make sure to clean your cache before you re-download! :)

Boofo 01-20-2003 07:33 PM

Quote:

Originally posted by KuraFire


Ack, yeah, I forgot to update the parse error code in the zipfile, will do that right away tomorrow!



No biggie. It jumped right out at me, easy to fix. ;)

Quote:

Boofo: I deliberately made it _not_ to check on whether you had a signature or not, to have it auto-checked or not. I *Hate* signatures for each post, I disabled sigs for 80% on my board (you really simply have to put effort into it if you want your sig to show more than once in a thread) and I would rather see _more_ boards use sigs off by default.

I also hate it that vb.org has sigs on if you use quickreply. It's yucky and hugely annoying (esp. for ppl on slow connections like me)
I was trying to follow how it is in the newreply, that's why I did the extra code for the signature. It's easy enough to turn it off in your options, but I kind of like having it follow suit. Just personal preference, I guess. I have a cable connection, so I don't get the slowdown. That probably makes a difference in my desire for this, too. :)

Great hack, though. Nice touch. ;)

LOD-squa 01-20-2003 08:26 PM

On the second step I don't find


Code:

<tr bgcolor="{secondaltcolor}">

KuraFire 01-20-2003 08:26 PM

I should make a hack that gives you the option "only display user's sigs once per threadpage" I think....

cos I wanna see them, but only -ONCE- ffs :)

LOD-squa 01-20-2003 08:39 PM

You could also make this for new threads. Like you can make a thread sticky or close it or even both. Just a suggestion.

PiotrasG 01-20-2003 08:48 PM

great hack nice job one question return to: forum forumhome doesnt want to work any ideas???


Also I get this from database

Database error in vBulletin 2.2.9:

Invalid SQL: UPDATE forum SET replycount=replycount+1,lastpost='1043104125',last poster='admin',sticky='0',open='1' WHERE forumid IN (28,37,-1)
mysql error: Unknown column 'sticky' in 'field list'

mysql error number: 1054

Date: Monday 20th of January 2003 05:08:45 PM
Script: http://www.polskieforum.com/forum/forum/newreply.php
Referer: http://www.polskieforum.com/forum/sh...p?postid=25366


the script its not located where its says to many /forum the strip should be

http://www.polskieforum.com/forum/newreply.php[/url]

any ideas

KuraFire 01-20-2003 10:28 PM

gohanssj2: I can, but I'm not gonna.

PiotrasG: erm, wtf?!?!?!

How the h*** do you not have a sticky column?! o_O

xevious 01-20-2003 10:33 PM

i get the same thing

LOD-squa 01-20-2003 10:38 PM

I installed it and it works fine for me.

xevious 01-20-2003 10:40 PM

i fixed it, it was this step:

Next, a little bit below this, you will find _TWO_ occurences of:
addslashes($postusername)."' WHERE

REPLACE BOTH WITH:
addslashes($postusername)."'$modbit WHERE

I accidently skipped one. Nice hack :)

PiotrasG 01-20-2003 10:51 PM

Quote:

Originally posted by KuraFire
gohanssj2: I can, but I'm not gonna.

PiotrasG: erm, wtf?!?!?!

How the h*** do you not have a sticky column?! o_O

I have the sticky column


also for this step

Next, a little bit below this, you will find _TWO_ occurences of:
addslashes($postusername)."' WHERE

REPLACE BOTH WITH:
addslashes($postusername)."'$modbit WHERE

I did that

djr 01-20-2003 11:05 PM

Quote:

Originally posted by KuraFire
I should make a hack that gives you the option "only display user's sigs once per threadpage" I think....

cos I wanna see them, but only -ONCE- ffs :)
Already done by TWTCommish here: https://vborg.vbsupport.ru/showthrea...threadid=36470

don't know if it works on 2.2.9 though (last post says not, but I didn't check)

- djr

Boofo 01-20-2003 11:13 PM

KuraFire, I think a sticky for a new thread might not be a bad idea, but a close thread option for a new thread is ridiculous. Why would you want to close a thread you are just opening? LOL You have to be really bored to do that one. :)

HiSquad 01-20-2003 11:24 PM

Nice Hack

Thanks

LOD-squa 01-20-2003 11:39 PM

Quote:

Originally posted by Boofo
KuraFire, I think a sticky for a new thread might not be a bad idea, but a close thread option for a new thread is ridiculous. Why would you want to close a thread you are just opening? LOL You have to be really bored to do that one. :)

I do it sometimes, you know sometimes I make rule threads for the forum. And I close them for new replies.

KuraFire 01-21-2003 03:10 PM

Quote:

Originally posted by gohanssj2

I do it sometimes, you know sometimes I make rule threads for the forum. And I close them for new replies.

Use Announcements :):up:

KuraFire 01-21-2003 03:10 PM

Quote:

Originally posted by djr

Already done by TWTCommish here: https://vborg.vbsupport.ru/showthrea...threadid=36470

don't know if it works on 2.2.9 though (last post says not, but I didn't check)

- djr

Thanks! :)

LOD-squa 01-21-2003 05:43 PM

Quote:

Originally posted by KuraFire


Use Announcements :):up:

I know but I usually don't like em :P

eva2000 01-21-2003 07:44 PM

hmm the rar file is corrupt ?

Boofo 01-21-2003 07:46 PM

I downloaded it and it unpacked fine. But I am also using the latest version of WinRAR, so that might make a difference.

eva2000 01-21-2003 07:48 PM

i get
Quote:

[addon]_useful_additions_for_quickreply.rar: Invalid or corrupt authenticity information

Skyrender 01-21-2003 08:02 PM

On the first page some one posted a .zip version of it.

Boofo 01-21-2003 08:10 PM

I posted the zip version here.

https://vborg.vbsupport.ru/showthrea...063#post344063

jjj0923 01-24-2003 07:29 PM

in 2.2.9 there are two occurrances of:

// redirect
if ($visible) {

in newreply.php

which occurrance do I replace?

the first or the second..with your new code???

thanks


All times are GMT. The time now is 04:43 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.01450 seconds
  • Memory Usage 1,828KB
  • 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
  • (4)bbcode_php_printable
  • (10)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
  • (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