vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Display Enhancements - Global Threads for VB4 (https://vborg.vbsupport.ru/showthread.php?t=258084)

BadgerDog 02-02-2011 12:15 PM

1 Attachment(s)
Seems to be working nicely ... :)

There is another incompability for those here who may be using Dartho Lightweight Style for mobile devices, which we do. By the way, it's excellent for cell phones, iPhones/iPads and slow dial up user connections.

Anyway, for whatever reason, the Global Threads mod shows the entire thread in the forumdisplay on that style, instead of just the title. (see pic)

There is a workaround to by-pass Global Threads that we've used in other cases.

In the Global Phrases plug-in titled Merge Global Threadbits with Threadbits bracket it with the following:

Quote:

Code:

if (STYLEID!=15){

Merge Global Threadbits with Threadbits code goes in here

}

Note: 15 is style number for my site's Dartho Lightweight Style, so yours may be different. Whatever it is, plus your style number in-place of my number 15 for your own site.
Now the Global Phrases mod won't display and mess up Dartho's Lightweight Style.

Global Phrases works very well with ALL our other styles, so I'm not sure why there's an issue with the Ligtweight Style only.

Hope this helps someone else in this thread. :)

Thanks to BirdOPrey5 for helping us fix the other conflict he mentioned above. :up:

Regards,
Doug

BirdOPrey5 02-02-2011 12:18 PM

The issue is because the template being used in the lightweight style is mine and had not been edited down the the lightweight style's template.

I'll find the style and make and edit the template and post it here.

BadgerDog 02-02-2011 12:22 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2157762)
The issue is because the template being used in the lightweight style is mine and had not been edited down the the lightweight style's template.

I'll find the style and make and edit the template and post it here.

Ahhh ... now I understand ... :up:

Thanks ... :)

Regards,
Doug

BirdOPrey5 02-02-2011 12:36 PM

OK, in the LightWeight Style edit the threadbit_global template...

Erase it all and replace with:
Code:

<vb:if condition="$show['sticky']">
<div class="sticky_{vb:raw globalthread.statusstring}">

<vb:else />

<div class="thread_{vb:raw globalthread.statusstring}">

</vb:if>
            {vb:raw globalthread.movedprefix}
            {vb:raw globalthread.typeprefix}
            {vb:raw globalthread.moderatedprefix}
            {vb:raw globalthread.prefix_rich}

<a href="{vb:link thread, {vb:raw globalthread}, {vb:raw pageinfo_newpost}, 'threadid', 'threadtitle'}" id="thread_gotonew_{vb:raw globalthread.realthreadid}">{vb:raw globalthread.threadtitle}</a> ({vb:raw globalthread.replycount})
<vb:if condition="$thread['pagenav']">{vb:raw stylevar.dirmark}<span class="smallfont" style="white-space:nowrap">({vb:raw globalthread.pagenav}<vb:if condition="$show[pagenavmore]"> ... <a href="showglobalthread.php?{vb:raw session.sessionurl}t={vb:raw globalthread.threadid}&amp;page={vb:raw globalthread.totalpages}{vb:raw globalthread.highlight}">{vb:rawphrase last_page}</a></vb:if>)</span></vb:if>
<vb:if condition="$show['managethread']"></vb:if>
<vb:if condition="$show['deletethread']">
<span><a id="btn" href="postings.php?{vb:raw session.sessionurl}do=editthread&amp;t={vb:raw globalthread.threadid}">{vb:rawphrase edit}</a>&nbsp;<a id="btn" href="postings.php?{vb:raw session.sessionurl}do=deletethread&t={vb:raw globalthread.threadid}">{vb:rawphrase delete}</a></span>
</vb:if>
</div>
<div class="windowbg">
{vb:rawphrase last} {vb:rawphrase post}: {vb:raw globalthread.lastposter}, {vb:raw globalthread.lastpostdate}
<vb:if condition="!$show['detailedtime']">{vb:raw globalthread.lastposttime}</vb:if>
</div>

That will make Global Threads look like regular threads. If you want Global Threads to look like Sticky threads then change the very first line to:
Code:

<vb:if condition="1">

BadgerDog 02-02-2011 01:15 PM

1 Attachment(s)
Quote:

Originally Posted by BirdOPrey5 (Post 2157766)
OK, in the LightWeight Style edit the threadbit_global template...

Done ... looks good (see pic) ... :up:

Global Thread was set as a sticky using your suggestion:

Change the very first line to <vb:if condition="1">

It's the thread under the ones marked "sticky", but not actually marked as a sticky and located above the normal threads.

Thanks .. :)

Regards,
Doug

BadgerDog 02-02-2011 01:34 PM

Anyone know how to prevent threads that are generated in the hidden "Global Messages" forum we use, from appearing in the "New Threads" search when people click on that?

I notice that when it executes that function, it says:

Quote:

* Home * Search * New Posts

Search:
Type: Posts; Excluded Forums: Knowledge Library Comments; New Posts
I assume that somewhere our forum "Knowledge Library Comments" has been excluded from the search, but I can't find where so I can add our hidden "Global Messages Forum" ...

Thanks for any guidance ... :)

Regards,
Doug

BirdOPrey5 02-02-2011 02:11 PM

I've seen some mods to do this but this is how I do it:
http://www.vbulletin.com/forum/showt...orums%20search

Taurus1 02-02-2011 02:24 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2157734)
OK, simple fix... edit the threadbit_global template and change the code I quoted above to:

Code:

<a style="color:green;" class="title<vb:if condition="$show['gotonewpost']"> threadtitle_unread</vb:if>" href="{vb:link thread, {vb:raw globalthread}, {vb:raw pageinfo}, 'threadid', 'threadtitle'}" id="thread_title_{vb:raw globalthread.realthreadid}">{vb:raw globalthread.threadtitle}</a>
I set it to "green" you can use any color you want or hex color code.

Thanks! That did it! :up:

BadgerDog 02-02-2011 04:02 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2157792)
I've seen some mods to do this but this is how I do it:
http://www.vbulletin.com/forum/showt...orums%20search

Thanks .. I found that a little over my skill level ... :D

I did find this, which I thought might be easier, but I don't understand emough about variables to know how to implement it. :D

Quote:

Originally Posted by xug (Post 2056859)
This can be do so much easier ;)

Enter a new replacement variable in your Styles and Template menu :)

Search for Text: do=getnew&

Replace with: do=getnew&exclude=xx,xx,xx

Where xx is the forum you want to exclude :)

I think this capability begs for a nice clean simple (importable) mod to be written by someone ... ;)

Regards,
Doug

Edit: figured it out ... wasn't actually that difficult ... pretty soon I'll be a programmer ..:eek: :D ..

It says now:

Type: Posts; Excluded Forums: Knowledge Library Comments, Global Messages Forum; New Posts

OldSchoolDSL 02-05-2011 04:43 AM

Installed & Working

4.1.1

It would be nice if this had the option for its own divider. ;)

gsmph 02-12-2011 03:41 AM

1 Attachment(s)
first of all this really a nice hack and i already implemented it as soon as i see it..

but problem pops up after installing the hack please see my screenshot all the cirlced spacing was suddenly appear but the other global threads below its all ok except the first on above..
please see my attachment

vb4.0.0 pl1

sorry for my bad english

br
gsmph

BirdOPrey5 02-12-2011 04:02 PM

That looks like a bug being you are running version 4.0.0 of vBulletin, I really can't imagine anyone can run that version on a live site.

It looks like it's because the thread contains the attachment icon it inherits a margin (margin: 20px 30px;) from .attachments {} in the CSS.

I don't know how you would fix it, removing the margin will likely mess something else up.

That's my best guess, if you can't upgrade past 4.0.0 I would suggest not using my (or any) mods.

BlueCheri 02-13-2011 07:48 AM

Very nice and useful mod.

Thanx

shuangddr 02-13-2011 09:05 AM

Good mod

tekmiester 02-15-2011 11:57 PM

This is quite nice

shri 04-12-2011 07:14 AM

Installed, but cannot get the "Go to first new post" icon link to work; it just displays the thread and goes to post #1.

PHP Code:

<a href="{vb:link thread, {vb:raw globalthread}, {vb:raw pageinfo_newpost}, 'threadid', 'threadtitle'}" 
id="thread_gotonew_{vb:raw globalthread.realthreadid}">
<
img class="gotonewpost" 
src="{vb:stylevar imgdir_button}/firstnew.png" 
alt="{vb:rawphrase go_to_first_new_post}" />
</
a

Does anybody have this working?

BirdOPrey5 04-12-2011 05:26 PM

Sorry shri, looks like I left out "&amp;goto=newpost" in the URL code.

For anyone having this issue replace your entire threabit_global template with the following updated code:

Code:

<li class="threadbit {vb:raw globalthread.statusstring}<vb:if condition="$show['paperclip']"> attachments</vb:if><vb:if condition="!$globalthread['postuserid'] AND !$globalthread['del_userid']"> guest</vb:if><vb:if condition="$globalthread['moderatedprefix']"> unapproved</vb:if>" id="thread_{vb:raw globalthread.realthreadid}">
        <div class="rating{vb:raw globalthread.rating}<vb:if condition="$globalthread['sticky']"> sticky<vb:else /> nonsticky</vb:if>">
                <div class="threadinfo" title="{vb:raw globalthread.preview}">
                        <!--  status icon block -->
                        <a class="threadstatus" rel="vB::AJAX" <vb:if condition="$show['threadcount']">title="{vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw thread.dot_count}, {vb:raw thread.dot_lastpost}}"</vb:if>></a>
               
                        <!-- title / author block -->
                        <div class="inner">
                                <h3 class="threadtitle">
                                      <vb:if condition="$show['gotonewpost']"><a href="{vb:link thread, {vb:raw globalthread}, {vb:raw pageinfo_newpost}, 'threadid', 'threadtitle'}&amp;goto=newpost" id="thread_gotonew_{vb:raw globalthread.realthreadid}"><img class="gotonewpost" src="{vb:stylevar imgdir_button}/firstnew.png" alt="{vb:rawphrase go_to_first_new_post}" /></a>
                                        </vb:if>                       
                                        <vb:if condition="$show['threadicon']">
                                                <img src="{vb:raw globalthread.threadiconpath}" alt="{vb:raw globalthread.threadicontitle}" border="0" />
                                        </vb:if>
<vb:if condition="$gtuseicon">
<img src="{vb:stylevar imgdir_misc}/global.png" alt="{vb:rawphrase global_thread}" />
</vb:if>                                       
                                        {vb:rawphrase gt_global}                                       
                                       
                                        <vb:if condition="$globalthread['movedprefix'] OR $globalthread['typeprefix'] OR $globalthread['moderatedprefix'] OR $globalthread['prefix_rich']">
                                                <span class="prefix understate">
                                                        {vb:raw globalthread.movedprefix}
                                                        {vb:raw globalthread.typeprefix}
                                                        {vb:raw globalthread.moderatedprefix}
                                                        {vb:raw globalthread.prefix_rich}
                                                </span>
                                        </vb:if>
                                        <a class="title<vb:if condition="$show['gotonewpost']"> threadtitle_unread</vb:if>" href="{vb:link thread, {vb:raw globalthread}, {vb:raw pageinfo}, 'threadid', 'threadtitle'}" id="thread_title_{vb:raw globalthread.realthreadid}">{vb:raw globalthread.threadtitle}</a>
                                </h3>
                                               

                                <div class="threadmeta">                               
                                        <p class="threaddesc">{vb:raw globalthread.preview}</p>
                                        <div class="author">
                                                <vb:if condition="$show['rmanage']">
                                                        <span class="rmanage"><a href="postings.php?{vb:raw session.sessionurl}do=editthread&amp;t={vb:raw globalthread.redirectthreadid}">{vb:rawphrase manage}</a></span>
                                                </vb:if>                                               
                                                {vb:rawphrase started_by_x_y_z_a, {vb:link member, {vb:raw globalthread}, null, 'postuserid', 'postusername'}, {vb:raw globalthread.postusername}, {vb:raw globalthread.startdate}, {vb:raw globalthread.starttime}, {vb:stylevar dirmark}}
                                                <vb:if condition="$show['unsubscribe']">
                                                        &nbsp; <a href="newreply.php?{vb:raw session.sessionurl}do=newreply&amp;t={vb:raw globalthread.threadid}" rel="nofollow">{vb:rawphrase reply}</a>
                                                        | <a href="subscription.php?{vb:raw session.sessionurl}do=removesubscription&amp;return=ucp&amp;t={vb:raw globalthread.threadid}" rel="nofollow">{vb:rawphrase unsubscribe}</a>
                                                </vb:if>
                                                <vb:if condition="$globalthread['pagenav']">
                                                        <dl class="pagination" id="pagination_threadbit_{vb:raw globalthread.realthreadid}">
                                                                <dt class="label">{vb:raw globalthread.totalpages} {vb:rawphrase pages} <span class="separator">&bull;</span></dt>
                                                                <dd>
                                                                        {vb:raw globalthread.pagenav}
                                                                        <vb:if condition="$show['pagenavmore']"> <span class="separator">...</span> <span><a href="{vb:raw globalthread.lastpagelink}">{vb:raw globalthread.totalpages}</a></span></vb:if>
                                                                </dd>
                                                        </dl>
                                                </vb:if>
                                        </div>
                                       
                                </div>

                        </div>                               
                        <!-- iconinfo -->
                        <div class="threaddetails td">
                                <div class="threaddetailicons">
                                        <vb:if condition="$show['taglist']">
                                                <img src="{vb:stylevar imgdir_misc}/tag.png" alt="{vb:raw globalthread.taglist}" />
                                        </vb:if>
                                        <vb:if condition="$show['rexpires']">
                                                <img src="{vb:stylevar imgdir_misc}/expires.gif" alt="{vb:rawphrase expires_on_x_y, {vb:raw globalthread.expiredate}, {vb:raw globalthread.expiretime}}" />
                                        </vb:if>
                                        <vb:if condition="$show['moderated']">
                                                <img src="{vb:stylevar imgdir_misc}/moderated_small.gif" alt="{vb:rawphrase x_moderated_posts, {vb:raw globalthread.hiddencount}}" />
                                        </vb:if>
                                        <vb:if condition="$show['deletedthread']">
                                                <img src="{vb:stylevar imgdir_misc}/trashcan_small.gif" alt="{vb:rawphrase x_deleted_posts, {vb:raw globalthread.deletedcount}}" />
                                        </vb:if>
                                        <vb:if condition="$show['paperclip']">
                                                <a href="javascript://" onclick="attachments({vb:raw globalthread.threadid}); return false"> <img src="{vb:stylevar imgdir_misc}/paperclip.png" border="0" alt="{vb:rawphrase x_attachments, {vb:raw globalthread.attach}}" /></a>
                                        </vb:if>
                                        <vb:if condition="$show['subscribed']">
                                                <img src="{vb:stylevar imgdir_misc}/subscribed.png" alt="{vb:rawphrase you_are_subscribed_to_this_thread}" />
                                        </vb:if>
                                </div>
                        </div>
                </div>
               
                <!-- threadstats -->
                <vb:if condition="!$show['notificationtype']">
                <ul class="threadstats td alt" title="<vb:if condition="$globalthread['dot_count'] > 0">{vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw globalthread.dot_count}, {vb:raw globalthread.dot_lastpost}}</vb:if>">
                        <li>{vb:rawphrase replies}: <a href="misc.php?do=whoposted&amp;t={vb:raw globalthread.threadid}" onclick="who({vb:raw globalthread.threadid}); return false;" class="understate">{vb:raw globalthread.replycount}</a></li>
                        <li>{vb:rawphrase views}: {vb:raw globalthread.views}</li>
                        <li class="hidden">{vb:rawphrase rating}{vb:raw globalthread.rating} / 5</li>
                </ul>
                </vb:if>                                       
                <!-- lastpost -->
                <dl class="threadlastpost td<vb:if condition="$show['notificationtype']"> alt</vb:if>">
                        <dt class="lastpostby hidden">{vb:rawphrase last_post_by}</dt>
                        <dd>{vb:raw memberaction_dropdown}</dd>
                        <dd>{vb:raw globalthread.lastpostdate} <em class="time">{vb:raw globalthread.lastposttime}</em>
                        <a href="{vb:link thread, {vb:raw globalthread}, {vb:raw pageinfo_lastpost}, 'threadid', 'threadtitle'}#post{vb:raw pageinfo_lastpost.p}" class="lastpostdate understate" title="{vb:rawphrase go_to_last_post}"><img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" /></a>
                        </dd>
                </dl>

                <vb:if condition="$show['notificationtype']">
                <!--  notification -->
                <div class="threadnotification td" >
                        <label for="thread_imod_checkbox_{vb:raw globalthread.realthreadid}">{vb:raw globalthread.notification}</label>
                </div>
                <label class="threadimod td">
                        <input type="checkbox" name="deletebox[{vb:raw subscribethread.$globalthreadid}]" id="thread_imod_checkbox_{vb:raw globalthread.realthreadid}" value="yes" tabindex="1" />
                </label>
                </vb:if>
               
                <vb:if condition="$show['inlinemod']">
                <!-- fourth block -->
                <label class="threadimod td alt">
                        <input type="checkbox" id="thread_imod_checkbox_{vb:raw globalthread.realthreadid}" name="imodcheck[{vb:raw globalthread.realthreadid}]" tabindex="1" />
                </label>
                </vb:if>
               
        </div>
</li>

All I did was replace:
Code:

<a href="{vb:link thread, {vb:raw globalthread}, {vb:raw pageinfo_newpost}, 'threadid', 'threadtitle'}"
id="thread_gotonew_{vb:raw globalthread.realthreadid}">

with this:
Code:

<a href="{vb:link thread, {vb:raw globalthread}, {vb:raw pageinfo_newpost}, 'threadid', 'threadtitle'}"
id="thread_gotonew_{vb:raw globalthread.realthreadid}&amp;goto=newpost">



-- edited per boofo's suggestion --

Boofo 04-12-2011 05:33 PM

&goto=newpost should be &amp;goto=newpost

BirdOPrey5 04-12-2011 05:41 PM

Quote:

Originally Posted by Boofo (Post 2183912)
&goto=newpost should be &amp;goto=newpost

Is there a reason? It works fine for me with just &... ?

edited my instructions anyway... just curious as to the why.

Thanks.

Boofo 04-12-2011 05:52 PM

Because the proper W3C validation is with the &amp;. ;)

BirdOPrey5 04-12-2011 05:58 PM

ahh... thanks.

Boofo 04-12-2011 06:03 PM

If you look through some of the vb code you will see they also use that in a lot of places. There are a few they missed, but it is more of a standard now with links.

Rizzler 06-08-2011 02:54 PM

I have a little problem with your addon

I installed it on vBulletin 4.1.3 Patch Level 1 and i have enabled it, i created a forum called "Global" and set the "Forum Source" to that forum. I made a post in the "Global" forum but nothing shows up in all the other forums, do you know why ? :/

BirdOPrey5 06-08-2011 03:00 PM

Would you be able to give me a screenshot of settings page for this mod from your admin cp?

Also what permissions did you set for your global forum? Can you confirm you can browse to that forum (the threads aren't hidden)?

Rizzler 06-08-2011 03:20 PM

Here is an image of the panel: http://img830.imageshack.us/img830/9277/expbl.jpg

and yes i set the permissions to what the screenshot showed, i can browse it and se all threads but the forum wont show up as it is set to "no" on if it is active or not.

BirdOPrey5 06-08-2011 03:37 PM

Could you try changing the last option, "where to place global threads" to see if using a different setting will work at all?

Rizzler 06-08-2011 03:46 PM

ah thanks a lot :) the other 2 options are working fine, "Below Stickies -below Sticky Divide" however will not work.

BirdOPrey5 06-08-2011 03:52 PM

It looks like you need at least 1 regular post in the forum for Below Stickies -below Sticky Divide to work... Did you have any posts in the forum already?

Rizzler 06-13-2011 09:24 PM

Ye i had around 5 posts at the time.

im have another problem now with the new release of 4.1.4, here is a screenshot. http://img580.imageshack.us/img580/2412/expi.jpg

BirdOPrey5 06-13-2011 10:33 PM

Unfortunately that screenshot was resized pretty small, I can't see it well- but it looks like the gloabl threads have lost their formatting.

Must be a css change or something with VB 4.1.4... More unfortunate is my license doesn't let me download 4,1.4 so I can't fix this issue either.

If you can paste a copy of your threadbit template into a code box here I can see if there are updates I need to make to get this working on 4.1.4.

Rizzler 06-14-2011 04:26 AM

where and in what file is the " threadbit template" code your looking for ?

BirdOPrey5 06-14-2011 10:31 AM

Quote:

Originally Posted by Rizzler (Post 2207439)
where and in what file is the " threadbit template" code your looking for ?

If you go to your Admin CP -> Style Manager, choose your style and go to "Edit Templates."

You'll get a list of templates, double-click on the group Threadbit Templates

It will expand, then double click on the template threadbit.

It will open, copy and paste the code here. Put it inside [code] and [/code] tags here, you can make them by pressing the # button on the editor when making a new post.

mitch84 06-14-2011 01:28 PM

Hi Joe, tagged for a future install.
I can add that in a widget?
thx

BirdOPrey5 06-14-2011 02:34 PM

I'm not familiar with widgets, I don't have the VB4 suite, just the forums-only and it doesn't have widgets.

Rizzler 06-14-2011 07:59 PM

Hey again, here is the threadbit code

Code:


<tr class="vbs_forumrow threadbit {vb:raw thread.statusstring}<vb:if condition="$show['paperclip']"> attachments</vb:if><vb:if condition="!$thread['postuserid'] AND !$thread['del_userid']"> guest</vb:if><vb:if condition="$thread['moderatedprefix']"> unapproved</vb:if>" id="thread_{vb:raw thread.realthreadid}">
        <td class="big_icons <vb:if condition="$thread['sticky']"> sticky<vb:else /> nonsticky</vb:if>">
            <!--  status icon block -->
            <a class="threadstatus" rel="vB::AJAX" <vb:if condition="$show['threadcount']">title="{vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw thread.dot_count}, {vb:raw thread.dot_lastpost}}"</vb:if>></a>
    </td>
        <td class="small_icons 1 <vb:if condition="$thread['sticky']"> sticky<vb:else /> nonsticky</vb:if>">
              <vb:if condition="$show['threadicon']">
            <img src="{vb:raw thread.threadiconpath}" alt="{vb:raw thread.threadicontitle}" border="0" />
        <vb:else />
                        <img src="{vb:stylevar imgdir_icons}/icon1.png" alt="{vb:raw thread.threadicontitle}" border="0" />
        </vb:if>
    </td>
    <td class="vbs_forumdata <vb:if condition="$thread['sticky']"> sticky<vb:else /> nonsticky</vb:if>">
    <div class="rating{vb:raw thread.rating}<vb:if condition="$thread['sticky']"> sticky<vb:else /> nonsticky</vb:if>">
                <div class="threadinfo" title="{vb:raw thread.preview}">
                       
                        <!-- title / author block -->
                        <div class="inner">
                                <h3 class="threadtitle">
                    <vb:if condition="$show['gotonewpost']"><a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_newpost}, 'threadid', 'threadtitle'}" id="thread_gotonew_{vb:raw thread.realthreadid}"><img class="gotonewpost" src="{vb:stylevar imgdir_button}/firstnew.png" alt="{vb:rawphrase go_to_first_new_post}" /></a>
                                        </vb:if>

                                        <vb:if condition="$thread['sticky']">
                                                <img src="{vb:stylevar imgdir_misc}/sticky.gif" alt="{vb:rawphrase sticky_thread}" />
                                        </vb:if>
                                       
                                        <vb:if condition="$thread['movedprefix'] OR $thread['typeprefix'] OR $thread['moderatedprefix'] OR $thread['prefix_rich']">
                                                <span class="prefix understate">
                                                        {vb:raw thread.movedprefix}
                                                        {vb:raw thread.typeprefix}
                                                        {vb:raw thread.moderatedprefix}
                                                        {vb:raw thread.prefix_rich}
                                                </span>
                                        </vb:if>
                                        <a class="title<vb:if condition="$show['gotonewpost']"> threadtitle_unread</vb:if>" href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo}, 'threadid', 'threadtitle'}" id="thread_title_{vb:raw thread.realthreadid}">{vb:raw thread.threadtitle}</a>
                                </h3>
                                               

                                <div class="threadmeta">                               
                                        <p class="threaddesc">{vb:raw thread.preview}</p>
                                        <div class="author">
                                                <vb:if condition="$show['rmanage']">
                                                        <span class="rmanage"><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}postings.php?{vb:raw session.sessionurl}do=editthread&amp;t={vb:raw thread.redirectthreadid}">{vb:rawphrase manage}</a></span>
                                                </vb:if>                                               
                                                <vb:if condition="!$show['detailedtime']">
                                                        {vb:rawphrase started_by_x_y_z_a, {vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:raw thread.starttime}, {vb:stylevar dirmark}}
                                                <vb:else />
                                                        {vb:rawphrase started_by_x_y_z, {vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:stylevar dirmark}}
                                                </vb:if>
                                                <vb:if condition="$show['unsubscribe']">
                                                        &nbsp; <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newreply.php?{vb:raw session.sessionurl}do=newreply&amp;t={vb:raw thread.threadid}" rel="nofollow">{vb:rawphrase reply}</a>
                                                        | <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}subscription.php?{vb:raw session.sessionurl}do=removesubscription&amp;return=ucp&amp;t={vb:raw thread.threadid}" rel="nofollow">{vb:rawphrase unsubscribe}</a>
                                                </vb:if>
                                                <vb:if condition="$thread['pagenav']">
                                                        <dl class="pagination" id="pagination_threadbit_{vb:raw thread.realthreadid}">
                                                                <dt class="label">{vb:raw thread.totalpages} {vb:rawphrase pages} <span class="separator">&bull;</span></dt>
                                                                <dd>
                                                                        {vb:raw thread.pagenav}
                                                                        <vb:if condition="$show['pagenavmore']"> <span class="separator">...</span> <span><a href="{vb:raw thread.lastpagelink}">{vb:raw thread.totalpages}</a></span></vb:if>
                                                                </dd>
                                                        </dl>
                                                </vb:if>
                                        </div>
                                       
                                </div>

                        </div>                               
                        <!-- iconinfo -->
                        <div class="threaddetails td">
                                <div class="threaddetailicons">
                                        <vb:if condition="$show['taglist']">
                                                <img src="{vb:stylevar imgdir_misc}/tag.png" alt="{vb:raw thread.taglist}" />
                                        </vb:if>
                                        <vb:if condition="$show['rexpires']">
                                                <img src="{vb:stylevar imgdir_misc}/expires.gif" alt="{vb:rawphrase expires_on_x_y, {vb:raw thread.expiredate}, {vb:raw thread.expiretime}}" />
                                        </vb:if>
                                        <vb:if condition="$show['moderated']">
                                                <img src="{vb:stylevar imgdir_misc}/moderated_small.gif" alt="{vb:rawphrase x_moderated_posts, {vb:raw thread.hiddencount}}" />
                                        </vb:if>
                                        <vb:if condition="$show['deletedthread']">
                                                <img src="{vb:stylevar imgdir_misc}/trashcan_small.gif" alt="{vb:rawphrase x_deleted_posts, {vb:raw thread.deletedcount}}" />
                                        </vb:if>
                                        <vb:if condition="$show['paperclip']">
                                                <a href="javascript://" onclick="attachments({vb:raw thread.threadid}); return false"> <img src="{vb:stylevar imgdir_misc}/paperclip.png" border="0" alt="{vb:rawphrase x_attachments, {vb:raw thread.attach}}" /></a>
                                        </vb:if>
                                        <vb:if condition="$show['subscribed']">
                                                <img src="{vb:stylevar imgdir_misc}/subscribed.png" alt="{vb:rawphrase you_are_subscribed_to_this_thread}" />
                                        </vb:if>
                                </div>
                        </div>
                </div>
        </div>
    </td>
    <vb:if condition="!$show['notificationtype']">
        <!-- threadstats -->
    <td class="stats <vb:if condition="$thread['sticky']"> sticky<vb:else /> nonsticky</vb:if>">
        {vb:rawphrase replies}: <a href="misc.php?do=whoposted&amp;t={vb:raw thread.threadid}" onclick="who({vb:raw thread.threadid}); return false;" class="understate">{vb:raw thread.replycount}</a> <br />
        {vb:rawphrase views}: {vb:raw thread.views}
    </td>
    </vb:if>
    <td class="vbs_threadlastpost <vb:if condition="$thread['sticky']"> sticky<vb:else /> nonsticky</vb:if>">
            <!-- lastpost -->
                <dl class="threadlastpost td<vb:if condition="$show['notificationtype']"> alt</vb:if>">
                        <dt class="lastpostby hidden">{vb:rawphrase last_post_by}</dt>
                        <dd>{vb:raw memberaction_dropdown}</dd>
                        <dd>{vb:raw thread.lastpostdate}<vb:if condition="!$show['detailedtime']">, <em class="time">{vb:raw thread.lastposttime}</em></vb:if>
                        <a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_lastpost}, 'threadid', 'threadtitle'}#post{vb:raw pageinfo_lastpost.p}" class="lastpostdate understate" title="{vb:rawphrase go_to_last_post}"><img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" /></a>
                        </dd>
                </dl>
    </td>
        <vb:if condition="$show['inlinemod']">
        <td class="small_icons <vb:if condition="$thread['sticky']"> sticky<vb:else /> nonsticky</vb:if>">
            <!-- fourth block -->
        <ul><li class="threadbit">
          <div>
            <label class="threadimod alt">
                <input type="checkbox" id="thread_imod_checkbox_{vb:raw thread.realthreadid}" name="imodcheck[{vb:raw thread.realthreadid}]" tabindex="1" />
            </label>
          </div></li></ul>
        </td>
        </vb:if>

    <vb:if condition="$show['notificationtype']">
        <!--  notification -->
        <td class="stats <vb:if condition="$thread['sticky']"> sticky<vb:else /> nonsticky</vb:if>">
                <label for="thread_imod_checkbox_{vb:raw thread.realthreadid}">{vb:raw thread.notification}</label>
        </td>
        <td class="small_icons <vb:if condition="$thread['sticky']"> sticky<vb:else /> nonsticky</vb:if>">
            <label class="threadimod">
                <input type="checkbox" name="deletebox[{vb:raw subscribethread.$threadid}]" id="thread_imod_checkbox_{vb:raw thread.realthreadid}" value="yes" tabindex="1" />
            </label>               
        </td>
    </vb:if>
               
</tr>


BirdOPrey5 06-14-2011 08:32 PM

Wow... OK That's a very different template... I see they went back to using tables! I'll work on converting this tonight and post a new threadbit_global template tonight.

BirdOPrey5 06-14-2011 10:24 PM

OK... first understand that there is probably close to zero chance this will work perfectly... and honestly I'm only 50/50 on if this might work at all since I didn't have a 4.1.4 version to test it on.

But you can go to your Admin CP -> Style Manager -> Choose your style -> Edit Templates.

Open the template threadbit_global.

Delete everything inside it and replace it all with this:

Code:

<tr class="vbs_forumrow threadbit {vb:raw thread.statusstring}<vb:if condition="$show['paperclip']"> attachments</vb:if><vb:if condition="!$globalthread['postuserid'] AND !$globalthread['del_userid']"> guest</vb:if><vb:if condition="$gloablthread['moderatedprefix']"> unapproved</vb:if>" id="thread_{vb:raw thread.realthreadid}">
        <td class="big_icons <vb:if condition="$globalthread['sticky']"> sticky<vb:else /> nonsticky</vb:if>">
            <!--  status icon block -->
   
            <a class="threadstatus" rel="vB::AJAX" <vb:if condition="$show['threadcount']">title="{vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw globalthread.dot_count}, {vb:raw globalthread.dot_lastpost}}"</vb:if>></a>
    </td>
        <td class="small_icons 1 <vb:if condition="$globalthread['sticky']"> sticky<vb:else /> nonsticky</vb:if>">
              <vb:if condition="$show['threadicon']">
            <img src="{vb:raw globalthread.threadiconpath}" alt="{vb:raw gloablthread.threadicontitle}" border="0" />
        <vb:else />
                        <img src="{vb:stylevar imgdir_icons}/icon1.png" alt="{vb:raw globalthread.threadicontitle}" border="0" />
        </vb:if>
    </td>
    <td class="vbs_forumdata <vb:if condition="$globalthread['sticky']"> sticky<vb:else /> nonsticky</vb:if>">
    <div class="rating{vb:raw globalthread.rating}<vb:if condition="$globalthread['sticky']"> sticky<vb:else /> nonsticky</vb:if>">
                <div class="threadinfo" title="{vb:raw globalthread.preview}">
                       
                        <!-- title / author block -->
                        <div class="inner">
                                <h3 class="threadtitle">
                    <vb:if condition="$show['gotonewpost']"><a href="{vb:link thread, {vb:raw globalthread}, {vb:raw pageinfo_newpost}, 'threadid', 'threadtitle'}" id="thread_gotonew_{vb:raw globalthread.realthreadid}"><img class="gotonewpost" src="{vb:stylevar imgdir_button}/firstnew.png" alt="{vb:rawphrase go_to_first_new_post}" /></a>
                                        </vb:if>

                                        <vb:if condition="$globalthread['sticky']">
                                                <img src="{vb:stylevar imgdir_misc}/sticky.gif" alt="{vb:rawphrase sticky_thread}" />
                                        </vb:if>
                                       
                                        <vb:if condition="$globalthread['movedprefix'] OR $globalthread['typeprefix'] OR $globalthread['moderatedprefix'] OR $globalthread['prefix_rich']">
                                                <span class="prefix understate">
                                                        {vb:raw globalthread.movedprefix}
                                                        {vb:raw globalthread.typeprefix}
                                                        {vb:raw globalthread.moderatedprefix}
                                                        {vb:raw globalthread.prefix_rich}
                                                </span>
                                        </vb:if>
                                        <a class="title<vb:if condition="$show['gotonewpost']"> threadtitle_unread</vb:if>" href="{vb:link thread, {vb:raw globalthread}, {vb:raw pageinfo}, 'threadid', 'threadtitle'}" id="thread_title_{vb:raw globalthread.realthreadid}">{vb:raw globalthread.threadtitle}</a>
                                </h3>
                                               

                                <div class="threadmeta">                               
                                        <p class="threaddesc">{vb:raw globalthread.preview}</p>
                                        <div class="author">
                                                <vb:if condition="$show['rmanage']">
                                                        <span class="rmanage"><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}postings.php?{vb:raw session.sessionurl}do=editthread&amp;t={vb:raw globalthread.redirectthreadid}">{vb:rawphrase manage}</a></span>
                                                </vb:if>                                               
                                                <vb:if condition="!$show['detailedtime']">
                                                        {vb:rawphrase started_by_x_y_z_a, {vb:link member, {vb:raw globalthread}, null, 'postuserid', 'postusername'}, {vb:raw globalthread.postusername}, {vb:raw globalthread.startdate}, {vb:raw globalthread.starttime}, {vb:stylevar dirmark}}
                                                <vb:else />
                                                        {vb:rawphrase started_by_x_y_z, {vb:link member, {vb:raw globalthread}, null, 'postuserid', 'postusername'}, {vb:raw globalthread.postusername}, {vb:raw globalthread.startdate}, {vb:stylevar dirmark}}
                                                </vb:if>
                                                <vb:if condition="$show['unsubscribe']">
                                                        &nbsp; <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newreply.php?{vb:raw session.sessionurl}do=newreply&amp;t={vb:raw globalthread.threadid}" rel="nofollow">{vb:rawphrase reply}</a>
                                                        | <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}subscription.php?{vb:raw session.sessionurl}do=removesubscription&amp;return=ucp&amp;t={vb:raw globalthread.threadid}" rel="nofollow">{vb:rawphrase unsubscribe}</a>
                                                </vb:if>
                                                <vb:if condition="$thread['pagenav']">
                                                        <dl class="pagination" id="pagination_threadbit_{vb:raw globalthread.realthreadid}">
                                                                <dt class="label">{vb:raw globalthread.totalpages} {vb:rawphrase pages} <span class="separator">&bull;</span></dt>
                                                                <dd>
                                                                        {vb:raw globalthread.pagenav}
                                                                        <vb:if condition="$show['pagenavmore']"> <span class="separator">...</span> <span><a href="{vb:raw globalthread.lastpagelink}">{vb:raw globalthread.totalpages}</a></span></vb:if>
                                                                </dd>
                                                        </dl>
                                                </vb:if>
                                        </div>
                                       
                                </div>

                        </div>                               
                        <!-- iconinfo -->
                        <div class="threaddetails td">
                                <div class="threaddetailicons">
                                        <vb:if condition="$show['taglist']">
                                                <img src="{vb:stylevar imgdir_misc}/tag.png" alt="{vb:raw globalthread.taglist}" />
                                        </vb:if>
                                        <vb:if condition="$show['rexpires']">
                                                <img src="{vb:stylevar imgdir_misc}/expires.gif" alt="{vb:rawphrase expires_on_x_y, {vb:raw globalthread.expiredate}, {vb:raw globalthread.expiretime}}" />
                                        </vb:if>
                                        <vb:if condition="$show['moderated']">
                                                <img src="{vb:stylevar imgdir_misc}/moderated_small.gif" alt="{vb:rawphrase x_moderated_posts, {vb:raw globalthread.hiddencount}}" />
                                        </vb:if>
                                        <vb:if condition="$show['deletedthread']">
                                                <img src="{vb:stylevar imgdir_misc}/trashcan_small.gif" alt="{vb:rawphrase x_deleted_posts, {vb:raw globalthread.deletedcount}}" />
                                        </vb:if>
                                        <vb:if condition="$show['paperclip']">
                                                <a href="javascript://" onclick="attachments({vb:raw globalthread.threadid}); return false"> <img src="{vb:stylevar imgdir_misc}/paperclip.png" border="0" alt="{vb:rawphrase x_attachments, {vb:raw globalthread.attach}}" /></a>
                                        </vb:if>
                                        <vb:if condition="$show['subscribed']">
                                                <img src="{vb:stylevar imgdir_misc}/subscribed.png" alt="{vb:rawphrase you_are_subscribed_to_this_thread}" />
                                        </vb:if>
                                </div>
                        </div>
                </div>
        </div>
    </td>
    <vb:if condition="!$show['notificationtype']">
        <!-- threadstats -->
    <td class="stats <vb:if condition="$globalthread['sticky']"> sticky<vb:else /> nonsticky</vb:if>">
        {vb:rawphrase replies}: <a href="misc.php?do=whoposted&amp;t={vb:raw globalthread.threadid}" onclick="who({vb:raw globalthread.threadid}); return false;" class="understate">{vb:raw globalthread.replycount}</a> <br />
        {vb:rawphrase views}: {vb:raw globalthread.views}
    </td>
    </vb:if>
    <td class="vbs_threadlastpost <vb:if condition="$globalthread['sticky']"> sticky<vb:else /> nonsticky</vb:if>">
            <!-- lastpost -->
                <dl class="threadlastpost td<vb:if condition="$show['notificationtype']"> alt</vb:if>">
                        <dt class="lastpostby hidden">{vb:rawphrase last_post_by}</dt>
                        <dd>{vb:raw memberaction_dropdown}</dd>
                        <dd>{vb:raw globalthread.lastpostdate}<vb:if condition="!$show['detailedtime']">, <em class="time">{vb:raw globalthread.lastposttime}</em></vb:if>
                        <a href="{vb:link thread, {vb:raw globalthread}, {vb:raw pageinfo_lastpost}, 'threadid', 'threadtitle'}#post{vb:raw pageinfo_lastpost.p}" class="lastpostdate understate" title="{vb:rawphrase go_to_last_post}"><img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" /></a>
                        </dd>
                </dl>
    </td>
        <vb:if condition="$show['inlinemod']">
        <td class="small_icons <vb:if condition="$globalthread['sticky']"> sticky<vb:else /> nonsticky</vb:if>">
            <!-- fourth block -->
        <ul><li class="threadbit">
          <div>
            <label class="threadimod alt">
                <input type="checkbox" id="thread_imod_checkbox_{vb:raw globalthread.realthreadid}" name="imodcheck[{vb:raw globalthread.realthreadid}]" tabindex="1" />
            </label>
          </div></li></ul>
        </td>
        </vb:if>

    <vb:if condition="$show['notificationtype']">
        <!--  notification -->
        <td class="stats <vb:if condition="$globalthread['sticky']"> sticky<vb:else /> nonsticky</vb:if>">
                <label for="thread_imod_checkbox_{vb:raw globalthread.realthreadid}">{vb:raw globalthread.notification}</label>
        </td>
        <td class="small_icons <vb:if condition="$globalthread['sticky']"> sticky<vb:else /> nonsticky</vb:if>">
            <label class="threadimod">
                <input type="checkbox" name="deletebox[{vb:raw subscribethread.$globalthreadid}]" id="thread_imod_checkbox_{vb:raw globalthread.realthreadid}" value="yes" tabindex="1" />
            </label>               
        </td>
    </vb:if>
               
</tr>

And let me know how it works... keep your fingers crossed. :p

Conehead555 07-18-2011 09:36 PM

^^That really screws it up.

Great idea, can't use it without the go to last post working.

BirdOPrey5 07-18-2011 09:40 PM

I have a 4.1.4 now to test it on, let me see what I can figure out.

Successfulsteps 07-19-2011 12:31 AM

Tagged for install later on, looks awesome!

Any known issues in 4.1.4?


All times are GMT. The time now is 01:02 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.01718 seconds
  • Memory Usage 2,054KB
  • 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
  • (9)bbcode_code_printable
  • (1)bbcode_php_printable
  • (9)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