Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Support Forums Details »»
Support Forums
Version: 1.00, by Adrian Schneider Adrian Schneider is offline
Developer Last Online: Nov 2022 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.2 Rating:
Released: 10-22-2006 Last Update: Never Installs: 274
Uses Plugins Template Edits
 
No support by the author.

Description
This little number will take any specified forums (subforums optional) and modify them to seperate "open issues" from "closed issues". It's great for tracking which support issues are actually resolved.

The key here is letting users close their own threads. Under forum permissions, make sure you let users do this or it loses most of its usefulness.

I suggest having a sticky thread letting users know they CAN close their own threads. However, this is mostly covered by a SHOWTHREAD edit which will tell one of three messages to the viewer:

Staff - "This issue has been resolved! The thread starter may re-open it if he wishes."

Thread Starter - "This issue has been resolved! You may re-open it if you are still having problems."

Other Users - "This issue has been resolved! If you have a similar issue, please create a new thread." (link)


Screenshot
-http://www.vblogetin.com/images/scre...ed_threads.jpg

Planned Updates
-Button to open/close thread
-$colspan option for modified threadbits
-Phrased
-Forum Chooser instead of using ForumIDs

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
shadowfax3

Comments
  #62  
Old 11-21-2006, 02:06 AM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try re-applying the template edit.
Reply With Quote
  #63  
Old 11-21-2006, 09:46 AM
mauro1947 mauro1947 is offline
 
Join Date: Nov 2006
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi!
Thanks for your answer.
How can i do that? (that you can see i'm totally newbie)
Thanks for your help!!!
Thanks!
Bye!
Reply With Quote
  #64  
Old 11-21-2006, 10:28 PM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the instructions it outlines a template edit you need to make. Just do it again for any styles that aren't working.
Reply With Quote
  #65  
Old 11-21-2006, 10:33 PM
mauro1947 mauro1947 is offline
 
Join Date: Nov 2006
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi!
Thanks!!
When i can probe, i will tell you the results.
Thanks!!!
Bye!
Reply With Quote
  #66  
Old 11-21-2006, 11:12 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack, and I'll probably install it at visionscripts, but I am concerned with the fact that some of the plugin code is referring to vBulletin options that do not exist. Also, variables are not properly initialized which causes notice errors at error_reporting(E_ALL) level...
Reply With Quote
  #67  
Old 11-22-2006, 12:00 AM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I usually make a strong mental note to init variables, but in this case it doesn't really matter as vBulletin generates around 20 notices per page, and unlike other scenarios - this wouldn't affect functionality. If you want to "fix" it, just edit the "Support Forum - Sort By Open" plugin: find
PHP Code:
if (in_array($foruminfo['forumid'], $checkForums) and strpos($sqlsortfield'lastpost') !== false)
{
    
$sqlsortfield "thread.open desc, $sqlsortfield";
    
$hook_query_where .= ' and thread.open <> 10';
    
$vbulletin->options['openAtTop'] = true;

, below it add
PHP Code:
else
{
    
$vbulletin->options['openAtTop'] = false;
}

$openThread 0;
$closedThreads 0;
$lastOpenStatus 'zz'
Reply With Quote
  #68  
Old 11-22-2006, 02:15 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok. Also, perhaps you should replace the vBulletin options with a list of IDs with a per-forum bitfield setting...

and where did $vbulletin->options['supportforum_subforums'] come from? It is not in vBulletin options..

also, what is the reason you check for:
strpos($sqlsortfield, 'lastpost') !== false

and for:
!$thread['sticky']

?

Also, perhaps the thread conditional logic is a bit wrong. Maybe it should be this:

Code:
			<if condition="can_moderate($foruminfo['forumid'], 'canopenclose')">
				<if condition="$thread['postuserid'] == $vbulletin->userinfo['userid']">
					<strong>Notice:</strong>:
					This issue has been resolved!  You may re-open it if you are still having problems.
				<else />
					<strong>Notice</strong>:
					This issue has been resolved!  The thread starter may re-open it if he wishes.
				</if>
			<else />
				<strong>Notice</strong>:
				This issue has been resolved!  If you have a similar issue, please create a <a href="newthread.php?$session[sessionurl]f=$foruminfo[forumid]">new thread</a>.
			</if>
Reply With Quote
  #69  
Old 11-22-2006, 05:34 PM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wanted to start off simple, as I'm busy with 100 other things.

You're the lucky one to notice the option is missing, Ive been meaning to issue an update but nobody noticed yet lol.

I use strpos because between 3.5 and 3.6 (or something along those lines) they changed that value which broke it on some boards.

I use !$thread['sticky'] because the separator is dependent on the transitions between the different thread types. It should ignore sticky threads or else you'll get a "Closed Issues" header at the very top of your stickies.

My condition is correct. I tested yours and it doesn't work properly.
Reply With Quote
  #70  
Old 11-22-2006, 06:04 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
I use strpos because between 3.5 and 3.6 (or something along those lines) they changed that value which broke it on some boards.
Why check for the value? I removed the check and it seems to work correctly. Why does it matter what the sort is?

Quote:
I use !$thread['sticky'] because the separator is dependent on the transitions between the different thread types. It should ignore sticky threads or else you'll get a "Closed Issues" header at the very top of your stickies.
That's right, didn't think about it.

Quote:
My condition is correct. I tested yours and it doesn't work properly.
Yep, it doesn't. But I changed it to the following, and that's what I am using (and it does work properly):

Code:
<if condition="$show['supportforum_message']">
<center>
	<span class="smallfont">
		<strong>
		<if condition="$thread['postuserid'] == $vbulletin->userinfo['userid']">
			Notice: This issue has been resolved! If you are still experiencing problems, you may reopen the thread.
		<else />
			<if condition="can_moderate($foruminfo['forumid'], 'canopenclose')">
				Notice: This issue has been resolved! The thread may be reopened by the thread starter if he or she is continuing to experience problems.
			<else />
				Notice: This issue has been resolved! If you are experiencing a similar issue, please create another thread.
			</if>
		</if>
		</strong>
	</span>	
</center>
<br />
</if>
It is better because if you do not need to call a can_moderate function (and thus avoid an overhead), then why do?
Reply With Quote
  #71  
Old 11-22-2006, 06:08 PM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It changes the sort order so that it sorts by sticky, then closed/open, then last post time IF you have it set to last post time (default). They changed it to or from (trying to remember exact values) lastposttime to thread.lastposttime. So it's not required, but I don't want it affecting other sort orders.

That final template looks better.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:42 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04717 seconds
  • Memory Usage 2,324KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete