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


All times are GMT. The time now is 08:57 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01319 seconds
  • Memory Usage 1,756KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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