vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - Support Forums (https://vborg.vbsupport.ru/showthread.php?t=129737)

thenetbox 10-30-2006 03:03 PM

Hi, for some reason it doesn't work for me. When I click on close it does show:

Quote:

Notice: This issue has been resolved! The thread starter may re-open it if he wishes.
But in the support forum I don't see Open Issues/ Close Issues bars.

I have imported it and made the template changes. Do I need to change my threadbit template edit?

thanks

Edit: Ignore me.. I was editting the wrong template.

lanc3lot 10-31-2006 10:03 AM

First of all, ty for this little hack, as its a good work overall. I have a feature to propose, that it may help the mods / admins, manage the open / close issues better.

When a thread is answered by users but the mod / admin doesnt know if the prob is actually fixed for the user, to be able to press a button in the Thread Tools, and send automatically a private message to the thread starter with a predefined text.

The text could be like this:

"Dear $username

There have been x days since your thread started and x replies. If u feel that your problem is fixed, please close the thread. If not, post your new results, so users / mods / admins, can reply again for your issues. If you dont do any action in the next 7 days, the thread will be auto closed. Ty for your understanding"

And so, after x days, the thread could be auto closed.

What do u think?

I believe will solve many probs, hope it can be implemented

Adrian Schneider 11-01-2006 05:33 AM

Possibly... I'll add it to my 2nd revision which will be sometime after the first!

lanc3lot 11-01-2006 12:41 PM

Ty mate, waiting for it then :)

FleaBag 11-04-2006 01:21 PM

Thanks Adrian, I have installed. :)

krazycivik 11-07-2006 07:25 AM

ok ive added this hack but how does it work? im pretty new at this but in options i see all it askes for is forum id. i add it but cant seem to get anything anyway u can help me figure this out thanx.

Slyfox1 11-10-2006 03:02 AM

Quote:

Originally Posted by SirAdrian
Alter the 'Separate Sticky and Normal Threads' plugin (forumdisplay_complete), change the initial if block from this:
PHP Code:

if ($vbulletin->options['gosterx1'

to
PHP Code:

if ($vbulletin->options['gosterx1'] and !$vbulletin->options['openAtTop']) 


I've only just got around to trying the suggestion above, and unfortunatley it doesn't work.

The "Normal and "Sticky" seperators are gone, but the "Open and Closed" ones don't appear. When I close a thread it dissappears..

Sly

Capt PPRuNe 11-11-2006 06:47 PM

I tried installing it and appeared to be working OK except that when a thread was closed it disappeared except for admins. Also, even as an admin I couldn't see the status message for the thread.

Could be a conflict with another plug-in but I don't have time to try and find out which one.

Adrian Schneider 11-16-2006 01:41 AM

Slyfox1, if you are still having troubles PM me ACP login info and I will help you get it working.

Capt PPRuNe, are you still having troubles?

Cocko 11-16-2006 04:38 PM

nice hack.
could this be written in TMS ? ;)

Adrian Schneider 11-16-2006 04:42 PM

What is TMS?

Cocko 11-16-2006 07:24 PM

Template Modification System where template modifications are part of
product .xml and after import stored in database.

I think its more public at vbhacks-germany.org .

adwade 11-18-2006 03:25 AM

Quote:

Originally Posted by SirAdrian (Post 1104475)
It's hidden away in the vB. Options (probably your newest setting group at the bottom).

Suggestion: Add this information to your Install.txt file.

As a newbie, I spent a fair amount of time re-checking my Template Edits thinking there was an error perhaps. When in fact, I just hadn't gotten around to declaring which Forum ID was to be my Support Forum.

Thanxx! Nice MOD and easy system to allow my users to bring up any issues found on the forums.

Adrian Schneider 11-18-2006 03:27 AM

sorry. will do

adwade 11-18-2006 03:50 AM

One other question, not being a coder I rely heavily on exact instructions. Where you say:

Quote:

Add the following to the beginning of the "threadbit" template:
Code:

<if condition="$show['thread_seperator']">
<tr>
        <td class="thead" colspan="2">&nbsp;</td>
        <td class="thead" colspan="<if condition="$show['inlinemod']">5<else />4</if>">$thread[heading]</td>
</tr>
</if>



Do you put that at the absolute beginning of the file? Meaning even before the first <tr> is encountered, or just after that very first <tr> ?

Referring to this first one already existing in the template...
Code:

<tr>
        <td class="alt1" id="td_threadstatusicon_$thread[realthreadid]">
                $thread[openclose_editable]


Adrian Schneider 11-18-2006 04:08 AM

Absolute beginning, yes. It will add another row before that one.

adwade 11-18-2006 04:24 AM

Thanxx!!

Coconut 11-18-2006 04:31 AM

When a ticket shows as being resolved, how do I go to re-open it? When I click on 'closed', it only says 'Sorry! This thread is closed!'.

Adrian Schneider 11-18-2006 05:24 AM

You need to set the forum permission which lets users open/close their own threads.

mauro1947 11-20-2006 12:54 PM

Hi!
I can't use this mod in my vB 3.6.3.
When i installed the first time, works, but, one day, works no more.
I uninstalled and reinstalled, but i can do that this mods works.
Can you help me?
I use BlueSaint style from vbstyles.com (is not the default style)
There is any problem???
Help me, please!
And excuse my english
Bye!

Adrian Schneider 11-21-2006 02:06 AM

Try re-applying the template edit.

mauro1947 11-21-2006 09:46 AM

Hi!
Thanks for your answer.
How can i do that? (that you can see i'm totally newbie)
Thanks for your help!!!
Thanks!
Bye!

Adrian Schneider 11-21-2006 10:28 PM

In the instructions it outlines a template edit you need to make. Just do it again for any styles that aren't working.

mauro1947 11-21-2006 10:33 PM

Hi!
Thanks!!
When i can probe, i will tell you the results.
Thanks!!!
Bye!

akanevsky 11-21-2006 11:12 PM

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...

Adrian Schneider 11-22-2006 12:00 AM

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'


akanevsky 11-22-2006 02:15 PM

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>


Adrian Schneider 11-22-2006 05:34 PM

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.

akanevsky 11-22-2006 06:04 PM

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?

Adrian Schneider 11-22-2006 06:08 PM

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.

akanevsky 11-22-2006 06:14 PM

Well, I removed the strpos bit on my installation because I want it to sort by open/closed first regardless of secondary sort order. :)

If you can make it work with subforums automatically, it would be nice. But to make it flexible (e.g. enable subforum inheritance in some forums but not others) you'll need to make a bitfield-based forum setting... :)

Been Told 11-25-2006 01:56 PM

Very, very usefull mod. Just installed it and works like a charm!

krazycivik 12-07-2006 12:31 AM

ok i have a question i have installed this hack but i dont see how it works i might be blind but if you can tell me how would be great ive installed it etc i ahve a forum for support ok now what? im at a losss

im runing vb 3.6.2

sinisterpain 12-19-2006 11:25 PM

Made template edits as instructed but do not get the open /Closed in the forum I created for suport. Am I missing something in the options as I only have a field for entering the forum ID which I did. And I edited the correct template for the style I am using. Running 3.6.4

Adrian Schneider 12-28-2006 09:07 PM

Sorry about the delayed update... been super busy.

krazycivik / sinisterpain, are you still having troubles?

sinisterpain 12-28-2006 09:21 PM

No, I am fine thanks

aquariumpros 12-31-2006 01:19 AM

Any news on the possibility of the "-Button to open/close thread" addition that was mentioned in the initial post?

Thanks again for an awesome hack!!

Adrian Schneider 12-31-2006 04:56 AM

It should be released within a day or so. :)

aquariumpros 12-31-2006 12:46 PM

Quote:

Originally Posted by SirAdrian (Post 1147897)
It should be released within a day or so. :)

Sounds great to me!!

Thanks again!

(lol - I'm AJ - you can't be AJ)... :)

Adrian Schneider 01-02-2007 12:32 AM

I'll upload it in a few hours...

I won't update the original post with it though, because the changes haven't been thoroughly tested. I'll be out of town for a few days afterwards, so after a good trial run and some possible fixes I will release it officially.


All times are GMT. The time now is 01:38 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.01383 seconds
  • Memory Usage 1,839KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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