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)

Adrian Schneider 10-22-2006 10:00 PM

Support Forums
 
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

JohnBee 10-23-2006 02:12 AM

Installed and LOVING IT! - Thanks for a great hack!

ChurchMedia 10-23-2006 02:13 AM

Cool! Thanks!

LittleAndroidMa 10-23-2006 02:16 AM

Nice one.

snowlion 10-23-2006 04:04 AM

thank
great mod

Takkero 10-23-2006 09:11 AM

great hack! installed! :D

harmor19 10-23-2006 09:13 AM

I'm about to add "Open/Close" buttons on the post bit, I'll send you the edits needed if you don't beat me to it.

Thanks for the hack.

Snake 10-23-2006 12:14 PM

Thanks!

ubuntu-geek 10-23-2006 01:26 PM

this is pretty cool.. what would be even more cool is if like [resolved] could be put in the subject line or in a column in the showthread display.

ShadowOne 10-23-2006 01:31 PM

Will This Work On 3.5.4? If Not, Is There One I Can Use, Or One You Can Edit For Me? It Would Be Greatly Appreciated...

harmor19 10-23-2006 01:46 PM

Quote:

Originally Posted by Snake
Thanks!

Do you go in every modification thread and say "Thanks"? I think it's getting old.

ShadowOne 10-23-2006 01:59 PM

Quote:

Originally Posted by harmor19
Do you go in every modification thread and say "Thanks"? I think it's getting old.


LOL..Hes Downloaded 3000 hacks... Look At His Posts... Search Results For The Word: Thanks!

2987 Posts By: Snake .... LOL :)

Adrian Schneider 10-23-2006 04:12 PM

Quote:

Originally Posted by ShadowOne
Will This Work On 3.5.4? If Not, Is There One I Can Use, Or One You Can Edit For Me? It Would Be Greatly Appreciated...

Remove the 'executionorder="x"' stuff from the XML and it should be OK.

Barteken 10-23-2006 06:43 PM

I saw once a hack like this but there you didn't had to give members the permission the open/close threads.
When someone replied to a problem the thread starter could select the person who solved the problem (this list was made based on who replied on the thread)
is there a way to modify it like this?
Grtz

Adrian Schneider 10-23-2006 06:45 PM

No I want to keep it simple...

cygy2k 10-23-2006 10:12 PM

One quick question, is there a way to have everybody see the listing of open and closed threads without them having permission to actually see the contents of one that isn't their own?

Adrian Schneider 10-23-2006 10:49 PM

Kind of unrelated code, but OK....

I don't have time to look at the specific permissions in the code, so I'll just use usergroups 5/6/7 (default staff groups).

UNTESTED...
In the 'Support Forum - Notices' plugin I supplied, add this to the bottom:
PHP Code:

if (
    !
is_member_of($vbulletin->userinfo567) and
    
in_array($thread['forumid'], $checkForums and
    
$vbulletin->userinfo['userid'] != $thread['postuserid']
)
{
    
print_no_permission();



Hornstar 10-24-2006 04:34 AM

Okay This is really good. this will be great for 2 of my forums as is.

So am I correct that you can set which forums or subforums you can apply this too?

also im wondering how I would modify this or if you could modify it so I can change a few things around for certain forums. eg. make it say 'open threads' and 'closed threads' As some forums I would like the open threads to always be at the top and I think you have done a great job at doing this.

thanks and hopefully I'll be able to change that name per forum.

Adrian Schneider 10-24-2006 04:52 AM

Go into your options and look for the new setting group... you can enable subforum checking as well as which forums to check.

That phrase is hardcoded into one of the plugins, it should stand out pretty easily because there isn't much code there...

Hornstar 10-24-2006 04:57 AM

cool however that would change the lot, what im after is both, so in a few forums I would have it say it like how you got it but in a few other forums I would change it to how I am wanting, I have a feeling that will change it overall.

also is this just a phrase I would edit to make it

Other Users - "This issue has been resolved! If you have a similar issue, please search the forums before creating a new thread." (link)

Adrian Schneider 10-24-2006 04:59 AM

So which phrases do you want on a per-forum basis? The 'Open Issues' and 'Closed Issues' one, or the 3 phrases in the SHOWTHREAD template?

Hornstar 10-24-2006 05:40 AM

Quote:

Originally Posted by SirAdrian
So which phrases do you want on a per-forum basis? The 'Open Issues' and 'Closed Issues' one, or the 3 phrases in the SHOWTHREAD template?

The open issues and closed issues for now as on some forums I want to change that to something else.

Thanks :)

Adrian Schneider 10-24-2006 05:54 AM

Replace the 'Support Forum - Seperate Open from Closed' plugin with this:
PHP Code:

global $vbulletin$threadCounter$openThreads$closedThreads;
$show['thread_seperator'] = false;

if (!
$thread['sticky'] and $vbulletin->options['openAtTop'])
{
    if (
$vbulletin->options['openAtTop'])
    {
        
$threadHeadings = array(
            
'issues' => array(
                
'Open Issues',
                
'Closed Issues'
            
),
            
'threads' => array(
                
'Open Threads',
                
'Closed Threads'
            
),
            
'customers' => array(
                
'Angry Customers',
                
'Happy Customers'
            
)
        );

        switch (
$thread['forumid'])
        {
            case 
1:
            case 
2:
                
$headings =& $threadHeadings['issues'];
                break;

            case 
3:
            case 
4:
                
$headings =& $threadHeadings['customers'];
                break;

            default:
                
$headings =& $threadHeadings['threads'];
        }

        if (!
$openThreads and $thread['open'])
        {
            
$show['thread_seperator'] = true;
            
$thread['heading'] = $headings[0];
        }
        if (!
$closedThreads and !$thread['open'])
        {
            
$show['thread_seperator'] = true;
            
$thread['heading'] = $headings[1];
        }
        
$lastOpenStatus $thread['open'];
    }

    if (
$thread['open']) $openThreads++;
    if (!
$thread['open']) $closedThreads++;


Basically it has 3 different sets of phrases, and then a switch to figure out which set to use. Customize the values inside the switch to change which forums use what heading, and then default will handle the rest. I'll end up phrasing it next week when I get some time, but this isn't a bad solution.

Hornstar 10-24-2006 09:05 AM

Quote:

Originally Posted by SirAdrian
Replace the 'Support Forum - Seperate Open from Closed' plugin with this:
PHP Code:

global $vbulletin$threadCounter$openThreads$closedThreads;
$show['thread_seperator'] = false;

if (!
$thread['sticky'] and $vbulletin->options['openAtTop'])
{
    if (
$vbulletin->options['openAtTop'])
    {
        
$threadHeadings = array(
            
'issues' => array(
                
'Open Issues',
                
'Closed Issues'
            
),
            
'threads' => array(
                
'Open Threads',
                
'Closed Threads'
            
),
            
'customers' => array(
                
'Angry Customers',
                
'Happy Customers'
            
)
        );

        switch (
$thread['forumid'])
        {
            case 
1:
            case 
2:
                
$headings =& $threadHeadings['issues'];
                break;

            case 
3:
            case 
4:
                
$headings =& $threadHeadings['customers'];
                break;

            default:
                
$headings =& $threadHeadings['threads'];
        }

        if (!
$openThreads and $thread['open'])
        {
            
$show['thread_seperator'] = true;
            
$thread['heading'] = $headings[0];
        }
        if (!
$closedThreads and !$thread['open'])
        {
            
$show['thread_seperator'] = true;
            
$thread['heading'] = $headings[1];
        }
        
$lastOpenStatus $thread['open'];
    }

    if (
$thread['open']) $openThreads++;
    if (!
$thread['open']) $closedThreads++;


Basically it has 3 different sets of phrases, and then a switch to figure out which set to use. Customize the values inside the switch to change which forums use what heading, and then default will handle the rest. I'll end up phrasing it next week when I get some time, but this isn't a bad solution.

Thanks for your fast response, hopefully I'll get time to implement this asap as it will be a good feature for my forums.

Thanks :)

Nathan2006 10-25-2006 07:23 AM

Thank you SirAdrian

Love this :)

Install

I'm having one small problem with the dividers and don't know how to remove this one I have marked off in red (Screenshot added)

Thank you for any help :)

Adrian Schneider 10-25-2006 07:59 AM

Since the prefix hack adds a column, you'll have to adjust the addition to the threadbit template. Instead of
Code:

<if ... >7<else />6</if>
use
Code:

<if ... >8<else />7</if>

Nathan2006 10-25-2006 08:16 AM

Quote:

Originally Posted by SirAdrian
Since the prefix hack adds a column, you'll have to adjust the addition to the threadbit template. Instead of
Code:

<if ... >7<else />6</if>
use
Code:

<if ... >8<else />7</if>

Hi,

Thanks for your quick reply :)

I have tried changing these numbers on this code:

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>

But no change :(

I must be going wrong somewhere lol

Here is a copy of my threadbit:

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>
<tr>
 <td class="alt1" id="td_threadstatusicon_$thread[realthreadid]">
  $thread[openclose_editable]
  <img src="$stylevar[imgdir_statusicon]/thread$thread[statusicon].gif" id="thread_statusicon_$thread[realthreadid]" alt="<if condition="$show['threadcount']"><phrase 1="$thread[dot_count]" 2="$thread[dot_lastpost]">$vbphrase[have_x_posts_in_thread_last_y]</phrase></if>" border="" />
 </td>
 <if condition="$show['threadicons']">
  <td class="alt2"><if condition="$show['threadicon']"><img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /><else />&nbsp;</if></td>
 </if>
 <if condition="$show['threadprefix'] == 2">
  <td class="alt1" align="$prefixalign" nowrap="nowrap"><if condition="$thread['threadprefix']">$prefixmarkup[0]$thread[threadprefix]$prefixmarkup[1]</if></td>
 </if>
 <td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
  <!-- vbPlaza start -->
  $thread[title_editable]
  <div <if condition="$thread['titlestyle']">style="$thread[titlestyle]"</if>>
<!-- vbPlaza end -->
  <if condition="$show['moderated'] OR $show['deletedthread'] OR $show['paperclip'] OR $show['subscribed'] OR $show['sticky'] OR $show['rexpires']">
    <span style="float:$stylevar[right]">
    <if condition="$show['rexpires']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/expires.gif" alt="<phrase 1="$thread[expiredate]" 2="$thread[expiretime]">$vbphrase[expires_on_x_y]</phrase>" /> </if>
    <if condition="$show['moderated']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/moderated_small.gif" alt="<phrase 1="$thread[hiddencount]">$vbphrase[x_moderated_posts]</phrase>" /> </if>
    <if condition="$show['deletedthread']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/trashcan_small.gif" alt="<phrase 1="$thread[deletedcount]">$vbphrase[x_deleted_posts]</phrase>" /> </if>
    <if condition="$show['paperclip']"> <a href="#" onclick="attachments($thread[threadid]); return false"> <img class="inlineimg" src="$stylevar[imgdir_misc]/paperclip.gif" border="0" alt="<phrase 1="$thread[attach]">$vbphrase[x_attachments]</phrase>" /></a> </if>
    <if condition="$show['subscribed']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/subscribed.gif" alt="$vbphrase[you_are_subscribed_to_this_thread]" /> </if>
    <if condition="$show['sticky']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/sticky.gif" alt="$vbphrase[sticky_thread]" /> </if>
    </span>
  </if>
  <if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$thread[threadid]" id="thread_gotonew_$thread[realthreadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if>
  $thread[movedprefix]
  $thread[typeprefix]
  <if condition="$show['threadprefix'] == 1">
    <if condition="$thread['threadprefix']">$prefixmarkup[0]$thread[threadprefix]$prefixmarkup[1]</if>
  </if>
  $thread[moderatedprefix]
  <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$thread['titlestyle']">style="$thread[titlestyle]"</if>>$thread[threadtitle]</a>
  <if condition="$thread['pagenav']">$stylevar[dirmark]<span class="smallfont" style="white-space:nowrap">(<img class="inlineimg" src="$stylevar[imgdir_misc]/multipage.gif" alt="$vbphrase[multipage_thread]" border="0" /> $thread[pagenav]<if condition="$show[pagenavmore]"> ... <a href="showthread.php?$session[sessionurl]t=$thread[threadid]&amp;page=$thread[totalpages]$thread[highlight]">$vbphrase[last_page]</a></if>)</span></if>
  </div>
 
  <if condition="$show['rmanage']"><div class="smallfont"><span style="float:$stylevar[right]"><a href="postings.php?$session[sessionurl]do=editthread&amp;t=$thread[redirectthreadid]">$vbphrase[manage]</a></span></div></if>
 
  <div class="smallfont">
  <if condition="$show['threadratings'] AND $show['threadrating']"><span style="float:$stylevar[right]"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" border="0" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" /></span></if>
  <if condition="$show['guestuser']">
    $thread[postusername]
  <else />
    <phrase 1="$threadstartedby_date" 2="$threadstartedby_name">$vbphrase[threadstartedby_date_name]</phrase>
  </if>
  </div>
 
  <if condition="$show['unsubscribe']">
  <div class="smallfont">
    <a href="newreply.php?$session[sessionurl]do=newreply&amp;t=$thread[threadid]" rel="nofollow">$vbphrase[reply]</a> |
    <a href="subscription.php?$session[sessionurl]do=removesubscription&amp;return=ucp&amp;t=$thread[threadid]" rel="nofollow">$vbphrase[unsubscribe]</a>
  </div>
  </if>
 
 </td>
 
 <if condition="$show['threadmoved']">
 <td class="alt2" align="center">-</td>
 <else />
 <td class="alt2" title="<phrase 1="$thread[replycount]" 2="$thread[views]">$vbphrase[replies_x_views_y]</phrase>">
  <div class="smallfont" style="text-align:$stylevar[right]; white-space:nowrap">
  $thread[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$thread[lastposttime]</span></if><br />
  <phrase 1="member.php?find=lastposter&amp;t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase>  <a href="showthread.php?$session[sessionurl]p=$thread[lastpostid]$thread[highlight]#post$thread[lastpostid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>
  </div>
 </td>
 </if>
 
 <if condition="$show['notificationtype']">
  <td class="alt1"><div class="smallfont">
  <label for="sub$subscribethread[$threadid]">$thread[notification]</label>
  </div></td>
  <td class="alt2"><input type="checkbox" name="deletebox[$subscribethread[$threadid]]" id="sub$subscribethread[$threadid]" value="yes" /></td>
 <else />
  <td class="alt1" align="center"><if condition="$show['threadmoved']">-<else /><a href="#" onclick="who($thread[threadid]); return false;">$thread[replycount]</a></if></td>
  <td class="alt2" align="center">$thread[views]</td>
 
  <if condition="$show['forumlink']">
  <td class="alt1"><a href="forumdisplay.php?$session[sessionurl]f=$thread[forumid]">$thread[forumtitle]</a></td>
  </if>
 </if>
 
 <if condition="$show['inlinemod']">
  <td class="alt1">
  <input type="checkbox" name="tlist[$thread[realthreadid]]" id="tlist_$thread[realthreadid]" value="$thread[checkbox_value]" <if condition="$show['disabled']">disabled="disabled"</if> />
  </td>
 </if>
</tr>


Adrian Schneider 10-25-2006 08:19 AM

Try this...
Code:

<if condition="$show['thread_seperator']">
<tr>
 <td class="thead" colspan="2">&nbsp;</td>
 <td class="thead" colspan="<if condition="$show['inlinemod']">6<else />5</if>">$thread[heading]</td>
</tr>
</if>
<tr>
 <td class="alt1" id="td_threadstatusicon_$thread[realthreadid]">
  $thread[openclose_editable]
  <img src="$stylevar[imgdir_statusicon]/thread$thread[statusicon].gif" id="thread_statusicon_$thread[realthreadid]" alt="<if condition="$show['threadcount']"><phrase 1="$thread[dot_count]" 2="$thread[dot_lastpost]">$vbphrase[have_x_posts_in_thread_last_y]</phrase></if>" border="" />
 </td>
 <if condition="$show['threadicons']">
  <td class="alt2"><if condition="$show['threadicon']"><img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /><else />&nbsp;</if></td>
 </if>
 <if condition="$show['threadprefix'] == 2">
  <td class="alt1" align="$prefixalign" nowrap="nowrap"><if condition="$thread['threadprefix']">$prefixmarkup[0]$thread[threadprefix]$prefixmarkup[1]</if></td>
 </if>
 <td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
  <!-- vbPlaza start -->
  $thread[title_editable]
  <div <if condition="$thread['titlestyle']">style="$thread[titlestyle]"</if>>
<!-- vbPlaza end -->
  <if condition="$show['moderated'] OR $show['deletedthread'] OR $show['paperclip'] OR $show['subscribed'] OR $show['sticky'] OR $show['rexpires']">
    <span style="float:$stylevar[right]">
    <if condition="$show['rexpires']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/expires.gif" alt="<phrase 1="$thread[expiredate]" 2="$thread[expiretime]">$vbphrase[expires_on_x_y]</phrase>" /> </if>
    <if condition="$show['moderated']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/moderated_small.gif" alt="<phrase 1="$thread[hiddencount]">$vbphrase[x_moderated_posts]</phrase>" /> </if>
    <if condition="$show['deletedthread']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/trashcan_small.gif" alt="<phrase 1="$thread[deletedcount]">$vbphrase[x_deleted_posts]</phrase>" /> </if>
    <if condition="$show['paperclip']"> <a href="#" onclick="attachments($thread[threadid]); return false"> <img class="inlineimg" src="$stylevar[imgdir_misc]/paperclip.gif" border="0" alt="<phrase 1="$thread[attach]">$vbphrase[x_attachments]</phrase>" /></a> </if>
    <if condition="$show['subscribed']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/subscribed.gif" alt="$vbphrase[you_are_subscribed_to_this_thread]" /> </if>
    <if condition="$show['sticky']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/sticky.gif" alt="$vbphrase[sticky_thread]" /> </if>
    </span>
  </if>
  <if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$thread[threadid]" id="thread_gotonew_$thread[realthreadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if>
  $thread[movedprefix]
  $thread[typeprefix]
  <if condition="$show['threadprefix'] == 1">
    <if condition="$thread['threadprefix']">$prefixmarkup[0]$thread[threadprefix]$prefixmarkup[1]</if>
  </if>
  $thread[moderatedprefix]
  <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$thread['titlestyle']">style="$thread[titlestyle]"</if>>$thread[threadtitle]</a>
  <if condition="$thread['pagenav']">$stylevar[dirmark]<span class="smallfont" style="white-space:nowrap">(<img class="inlineimg" src="$stylevar[imgdir_misc]/multipage.gif" alt="$vbphrase[multipage_thread]" border="0" /> $thread[pagenav]<if condition="$show[pagenavmore]"> ... <a href="showthread.php?$session[sessionurl]t=$thread[threadid]&amp;page=$thread[totalpages]$thread[highlight]">$vbphrase[last_page]</a></if>)</span></if>
  </div>
 
  <if condition="$show['rmanage']"><div class="smallfont"><span style="float:$stylevar[right]"><a href="postings.php?$session[sessionurl]do=editthread&amp;t=$thread[redirectthreadid]">$vbphrase[manage]</a></span></div></if>
 
  <div class="smallfont">
  <if condition="$show['threadratings'] AND $show['threadrating']"><span style="float:$stylevar[right]"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" border="0" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" /></span></if>
  <if condition="$show['guestuser']">
    $thread[postusername]
  <else />
    <phrase 1="$threadstartedby_date" 2="$threadstartedby_name">$vbphrase[threadstartedby_date_name]</phrase>
  </if>
  </div>
 
  <if condition="$show['unsubscribe']">
  <div class="smallfont">
    <a href="newreply.php?$session[sessionurl]do=newreply&amp;t=$thread[threadid]" rel="nofollow">$vbphrase[reply]</a> |
    <a href="subscription.php?$session[sessionurl]do=removesubscription&amp;return=ucp&amp;t=$thread[threadid]" rel="nofollow">$vbphrase[unsubscribe]</a>
  </div>
  </if>
 
 </td>
 
 <if condition="$show['threadmoved']">
 <td class="alt2" align="center">-</td>
 <else />
 <td class="alt2" title="<phrase 1="$thread[replycount]" 2="$thread[views]">$vbphrase[replies_x_views_y]</phrase>">
  <div class="smallfont" style="text-align:$stylevar[right]; white-space:nowrap">
  $thread[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$thread[lastposttime]</span></if><br />
  <phrase 1="member.php?find=lastposter&amp;t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase>  <a href="showthread.php?$session[sessionurl]p=$thread[lastpostid]$thread[highlight]#post$thread[lastpostid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>
  </div>
 </td>
 </if>
 
 <if condition="$show['notificationtype']">
  <td class="alt1"><div class="smallfont">
  <label for="sub$subscribethread[$threadid]">$thread[notification]</label>
  </div></td>
  <td class="alt2"><input type="checkbox" name="deletebox[$subscribethread[$threadid]]" id="sub$subscribethread[$threadid]" value="yes" /></td>
 <else />
  <td class="alt1" align="center"><if condition="$show['threadmoved']">-<else /><a href="#" onclick="who($thread[threadid]); return false;">$thread[replycount]</a></if></td>
  <td class="alt2" align="center">$thread[views]</td>
 
  <if condition="$show['forumlink']">
  <td class="alt1"><a href="forumdisplay.php?$session[sessionurl]f=$thread[forumid]">$thread[forumtitle]</a></td>
  </if>
 </if>
 
 <if condition="$show['inlinemod']">
  <td class="alt1">
  <input type="checkbox" name="tlist[$thread[realthreadid]]" id="tlist_$thread[realthreadid]" value="$thread[checkbox_value]" <if condition="$show['disabled']">disabled="disabled"</if> />
  </td>
 </if>
</tr>


Nathan2006 10-25-2006 08:37 AM

Hi,

I just tried it and the seperator is still there :(

EDIT:

I found what the problem was it was Separate Sticky and Normal Threads

Sorted now thanks for your help :)

Adrian Schneider 10-25-2006 05:58 PM

Glad you figured it out.

That's why I hate hacks that add/edit templates at run-time; they are a pain in the ass to debug!

cyberoptik 10-26-2006 01:12 AM

I can't seem to find where to turn this hack on for a specific forum. I've looked under 'edit forum' but the setting is not there. Please help :).

Adrian Schneider 10-26-2006 01:16 AM

It's hidden away in the vB. Options (probably your newest setting group at the bottom).

Slyfox1 10-26-2006 02:27 AM

Nice HACK, but it conflicts with the Seperate Normal/Sticky posts HACK :(

Adrian Schneider 10-26-2006 02:35 AM

It shouldn't really "conflict" but it will give you two bars... Disable the other hack in your support forums.

Slyfox1 10-26-2006 02:42 AM

Quote:

Originally Posted by SirAdrian
It shouldn't really "conflict" but it will give you two bars... Disable the other hack in your support forums.


umm, I cant :)

There's only an one or off option..

Pitty, very usefull...

Adrian Schneider 10-26-2006 02:47 AM

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']) 


Slyfox1 10-26-2006 03:09 AM

Cheers..

Takkero 10-27-2006 02:11 PM

i installed this and i also trying to add the function i explain here:

https://vborg.vbsupport.ru/showthread.php?t=129805

ok.. i want it for guild status... but how about support status?

people when list all support threads can see (using the "colored gif" near thread) is the support solve the problem (green gif) or if not solve it (red gif). The new support threads have the yellow gif that means "we are working on it and will give an answere as soon as possible) :)

evenmonkeys 10-27-2006 11:29 PM

That's a really good idea. I like that. Simple but effective.

Adrian Schneider 10-27-2006 11:39 PM

I'll try to implement the planned updates this weekend, and also fix a bug that nobody has spotted yet. :)


All times are GMT. The time now is 04:11 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.01570 seconds
  • Memory Usage 1,941KB
  • 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
  • (7)bbcode_code_printable
  • (5)bbcode_php_printable
  • (7)bbcode_quote_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
  • (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