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)

BirdOPrey5 02-19-2012 07:26 PM

Edit your threadbit_global template.

Erase everything in it and replace it with this:

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 globalthread.dot_count}, {vb:raw globalthread.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 thread}, {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="$show['threadicon']">
                            <img src="{vb:raw globalthread.threadiconpath}" alt="{vb:raw globalthread.threadicontitle}" border="0" />
                    </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 id="thread_prefix_{vb:raw globalthread.realthreadid}" 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 thread}, {vb:raw pageinfo}, 'threadid', 'threadtitle'}" id="thread_title_{vb:raw globalthread.realthreadid}">{vb:raw globalthread.threadtitle}</a>
                                </h3>

                                <div class="threadmeta">                               
                                        <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 thread}, 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 thread}, 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="$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>
                                                <!-- 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>

                        </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>">
                        <vb:if condition="$show['threadmoved']">
                                <li>&nbsp;</li>
                                <li>&nbsp;</li>
                        <vb:else />
                                <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>
                        </vb:if>
                        <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>">
                <vb:if condition="$show['threadmoved']">
                        <dt class="lastpostby hidden">&nbsp;</dt>
                <vb:else />
                        <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']">, <span class="time">{vb:raw globalthread.lastposttime}</span></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>
                </vb:if>
                </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 subscribeglobalthread.$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>

Should fix it... I will have to update the template on the next update.

BrightStar 02-19-2012 07:57 PM

Thanks for the mod. Is it possible just make some threads as global and not create separate forum for them?

Thanks

BirdOPrey5 02-19-2012 08:18 PM

You're welcome, but not possible with this mod. I imagine it might be possible though- I would have to think about it... Maybe a good idea for a new version of this one day.

steeler7 02-20-2012 05:46 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2301312)
Edit your threadbit_global template.

Erase everything in it and replace it with this:

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 globalthread.dot_count}, {vb:raw globalthread.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 thread}, {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="$show['threadicon']">
                            <img src="{vb:raw globalthread.threadiconpath}" alt="{vb:raw globalthread.threadicontitle}" border="0" />
                    </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 id="thread_prefix_{vb:raw globalthread.realthreadid}" 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 thread}, {vb:raw pageinfo}, 'threadid', 'threadtitle'}" id="thread_title_{vb:raw globalthread.realthreadid}">{vb:raw globalthread.threadtitle}</a>
                                </h3>

                                <div class="threadmeta">                               
                                        <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 thread}, 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 thread}, 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="$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>
                                                <!-- 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>

                        </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>">
                        <vb:if condition="$show['threadmoved']">
                                <li>&nbsp;</li>
                                <li>&nbsp;</li>
                        <vb:else />
                                <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>
                        </vb:if>
                        <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>">
                <vb:if condition="$show['threadmoved']">
                        <dt class="lastpostby hidden">&nbsp;</dt>
                <vb:else />
                        <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']">, <span class="time">{vb:raw globalthread.lastposttime}</span></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>
                </vb:if>
                </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 subscribeglobalthread.$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>

Should fix it... I will have to update the template on the next update.

This fixed the issue with the gap but I lost the little globe icon and "Global: prefix

BirdOPrey5 02-20-2012 06:17 PM

Whoops... forgot about them. Try this one:

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 globalthread.dot_count}, {vb:raw globalthread.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 thread}, {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="$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['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 id="thread_prefix_{vb:raw globalthread.realthreadid}" 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 thread}, {vb:raw pageinfo}, 'threadid', 'threadtitle'}" id="thread_title_{vb:raw globalthread.realthreadid}">{vb:raw globalthread.threadtitle}</a>
                                </h3>

                                <div class="threadmeta">                               
                                        <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 thread}, 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 thread}, 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="$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>
                                                <!-- 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>

                        </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>">
                        <vb:if condition="$show['threadmoved']">
                                <li>&nbsp;</li>
                                <li>&nbsp;</li>
                        <vb:else />
                                <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>
                        </vb:if>
                        <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>">
                <vb:if condition="$show['threadmoved']">
                        <dt class="lastpostby hidden">&nbsp;</dt>
                <vb:else />
                        <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']">, <span class="time">{vb:raw globalthread.lastposttime}</span></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>
                </vb:if>
                </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 subscribeglobalthread.$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>


Masked Crusader 02-23-2012 03:43 AM

How do you remove the description (the first sentence or two of the thread) from the forum display? In all honesty, there really should be an option for that in the AdminCP for this mod!

Also, how do I get the Username HTML Markup to work? My name should be in teal (Masked Crusader), but it just shows up with no markup.

My site: http://www.twinkinfo.com/tavern/

Thanks!

BirdOPrey5 02-23-2012 08:40 AM

I would suggest trying the updated template in post #115 if you have a recent VB version installed.

If you are running an older version like 4.1.7 the fix is in post #95 - https://vborg.vbsupport.ru/showpost....4&postcount=95

As for the username html markup I'm not sure but I have already begun working on a new version of this mod coded from scratch that doesn't require its own template so other mods should work with it. I hope to release it sooner than later and will post here of course when I do.

steeler7 02-23-2012 08:44 PM

Excellent! This worked out perfect.

Thanks!

Quote:

Originally Posted by BirdOPrey5 (Post 2301641)
Whoops... forgot about them. Try this one:

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 globalthread.dot_count}, {vb:raw globalthread.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 thread}, {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="$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['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 id="thread_prefix_{vb:raw globalthread.realthreadid}" 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 thread}, {vb:raw pageinfo}, 'threadid', 'threadtitle'}" id="thread_title_{vb:raw globalthread.realthreadid}">{vb:raw globalthread.threadtitle}</a>
                                </h3>

                                <div class="threadmeta">                               
                                        <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 thread}, 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 thread}, 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="$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>
                                                <!-- 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>

                        </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>">
                        <vb:if condition="$show['threadmoved']">
                                <li>&nbsp;</li>
                                <li>&nbsp;</li>
                        <vb:else />
                                <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>
                        </vb:if>
                        <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>">
                <vb:if condition="$show['threadmoved']">
                        <dt class="lastpostby hidden">&nbsp;</dt>
                <vb:else />
                        <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']">, <span class="time">{vb:raw globalthread.lastposttime}</span></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>
                </vb:if>
                </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 subscribeglobalthread.$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>



Masked Crusader 02-23-2012 11:31 PM

Quote:

Originally Posted by Masked Crusader (Post 2302532)
How do you remove the description (the first sentence or two of the thread) from the forum display? In all honesty, there really should be an option for that in the AdminCP for this mod!

Figured it out.

In the threadbit_global template, search for:

<div class="threadmeta">

Below that, remove:

<p class="threaddesc">{vb:raw globalthread.preview}</p>

That gets rid of the hideously aligned preview text.

Hope that helps someone else!

BirdOPrey5 02-24-2012 12:56 AM

:up: (exactly like it says to do in post #95 ;) )


All times are GMT. The time now is 08:07 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.02982 seconds
  • Memory Usage 2,047KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete