vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Quick Reply Thread Management (https://vborg.vbsupport.ru/showthread.php?t=100492)

-=Sniper=- 11-08-2005 10:00 PM

Quick Reply Thread Management
 

############################################
##############--Bought to you by--###############

Talk Coding - Programming Forums

##########--Free / Premium vBulletin Solutions--#########
############################################


Big thanks to Dark Visor for creating a product :) also Nomb...for letting us port 3.0.8 version here

what it does

Two new checkboxes will be available in the quick reply box for those that have permission. One checkbox to Open / Close the thread, and one checkbox to Stick / Unstick the thread. You simply check off what you?d like to do and submit a post at the same time. Very convenient if you need to close threads quickly, but also want to leave a reason why.

In SHOWTHREAD template find

HTML Code:

                                                <div>
                                                        <if condition="$bbuserinfo['signature']">
                                                                <div style="float:$stylevar[right]"><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="5" checked="checked" />$vbphrase[show_your_signature]</label></div>
                                                        </if>
                                                        <label for="qr_quickreply"><input type="checkbox" name="quickreply" value="1" id="qr_quickreply" accesskey="w" tabindex="4" />$vbphrase[quote_message_in_reply]</label>
                                                </div>


ADD UNDERNEATH:
HTML Code:

$threadmanagement
all done.

Keyser S?ze 11-09-2005 10:17 PM

great! installing now

not showing up, and where do u put the phrases, global, show thread, or what

akanevsky 11-09-2005 10:33 PM

Screenshot please?

Also:
1. You should not use iif(). It's deprecated. ;) Use (COND ? DO_ON_TRUE : DO_ON_FALSE) clause instead.
2. Why make new phrases? The phrases are already in the database. Take the ones that you see in advanced reply form ;)
3. $bbuserinfo['userid']??? That's not a variable in vBulletin 3.5.0 (unless it's in a template).
4. The only thing you need to have in your conditional is "can_moderate($threadinfo['forumid'], 'canopenclose')". Everything is not required.
5. You can do your decisions in template, no need for extra variables.

-=Sniper=- 11-09-2005 10:36 PM

is it showing up on quick reply? I update it for the new thread/reply page now.

-=Sniper=- 11-09-2005 10:57 PM

thanks dude, I'm pretty new to this, so feel free to post the suggested code and I will post credit to you.

I know parts of it can be done in templates, (the part that shows the tick box/s only to mods/admins, I assume?)

akanevsky 11-09-2005 11:11 PM

Here you go buddy :)

As for the template edits:
There is a correction (see below), plus the newreply edit is not needed.
Valid edit would be:

In SHOWTHREAD, find

Code:

                                                <div>
                                                        <if condition="$bbuserinfo['signature']">
                                                                <div style="float:$stylevar[right]"><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="5" checked="checked" />$vbphrase[show_your_signature]</label></div>
                                                        </if>
                                                        <label for="qr_quickreply"><input type="checkbox" name="quickreply" value="1" id="qr_quickreply" accesskey="w" tabindex="4" />$vbphrase[quote_message_in_reply]</label>
                                                </div>

ADD UNDERNEATH:

Code:

                                                $threadmanagement
I changed the template and the code itself a bit, look at it :)
Also, I added a plugin that caches your template, cause it was uncached ;)

-=Sniper=- 11-09-2005 11:21 PM

thanks man, I have updated the first post :)

akanevsky 11-09-2005 11:24 PM

No problem, but you should also remove the newreply edit. It doesn't do anything.

WNxWakko 11-10-2005 02:18 AM

:) Thank you. Installed

Boofo 11-10-2005 02:24 AM

How about some sort of explanation in the first post as to what this does? ;)


All times are GMT. The time now is 11:38 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.01080 seconds
  • Memory Usage 1,748KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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