vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - Global Threads (https://vborg.vbsupport.ru/showthread.php?t=129626)

|oR|Greg 10-23-2006 06:55 PM

Actually I got it working exactly how I wanted it, check the attachment...

It was very simple as long as you're using the Separate Sticky/Normal threads hack. Just had to re-code your merge plugin and the Forum Display template.

If you want have the other hack installed and you want to make yours look like mine do the following:

Open ForumDisplay template
Find:
Code:

$threadbits_sticky
Replace with:
Code:

        $stickyglobalthreadbits
        $threadbits_sticky
        <else />
        $nostickyglobalthreadbits

In the Plugin (Merge Global Threadbits with Threadbits)
Replace the entire plugin with:
Code:

if ($vbulletin->options['gton'])
{
eval('$bolx3 = "' . fetch_template('FORUMDISPLAY_Separate_global') . '";');

eval('$bolx4 = "' . fetch_template('FORUMDISPLAY_Separate') . '";');

$nostickyglobalthreadbits = "$bolx3".$globalthreadbits."$bolx4";

$stickyglobalthreadbits = "$bolx3".$globalthreadbits;
}

Add a phrase called: delim_global
With the following:
Code:

Universal Threads
Lastly, add a template called FORUMDISPLAY_Separate_global
With the following:
Code:

<tr><td class="thead" colspan="<if condition="$show['threadicons']">7<else />6</if>"><strong>$vbphrase[delim_global]</strong></td></tr>
This doesn't add the little globe image I have, if you want that, PM me.

Stop 10-23-2006 08:03 PM

Wonderful work both of you randominity and |oR|Greg. It's like you've read my mind. I was about to start a thread to request such hack but here you did it. And when I went through the thread, I had this idea about editing the hack, just like what |oR|Greg did. Thanks for both of you.

randominity, can you please include those editings in the hack ?

|oR|Greg 10-23-2006 08:16 PM

Well the only problem with including my steps would be I think that "$threadbits_sticky" won't exist in the ForumDisplay template because the Separate Stickies/Normal threads hack isn't installed. That of course would also alter the IF statement in the ForumDisplay template. If anything he can include it stating: IF you're using the separation hack, then you can use my piece, otherwise it might get too confusing for some.

Shanj 10-23-2006 09:41 PM

Would be interested in the new version to select some forums and exclude others.

Thing is I'm not sure I understand how the thread is displayed and how it functions.

DISPLAY - "places it on the Forum Display page" - does that mean it puts a new thread in multiple forums?

SOURCE - does that mean the threads act independently once they appear in the multiple forums? or are they clones of the source?

For example If I make a source thread, and a user answers it in forum A, does the reply appear in forum B forum C etc?
Or does each thread in each forum it appears in operate independently once the thread is created?

I WOULD LIKE to have my moderators able to post multiple threads to their own set of forums. They would need some kind of CP but only to the forums they have access to, so they don't get confused by a long list of forums!

Shanj 10-23-2006 09:48 PM

new version to select which forums?
sounds good!

Are the threads clones or duplicates? That is if a user replies to one does the reply appear in all the forums selected? (clone)
Or does a thread operate independently once it gets started by the plugin so a user in one forum can reply w/o the reply cloning in other forums? (duplication)

I really want a plugin where my moderators can post a thread ONLY in their own list of selected forums. So each moderator has a list of forums to operate for duplicate threads and has no access to other forums not on their list.

randominity 10-23-2006 10:44 PM

well how it works is this.. .the source forum is where the ONE and ONLY thread resides... what the display does... it just grabs the threads from the source forum, and basically links it to your other forums...

you can see how it works at my forum: www.l2blah.com - the announcements forum is my "source" forum, check out the other forums and you can see the global threads.

When users reply to the global thread, they are replying to ONE thread, that's actually located in the "source" forum; but the thread just gets displayed in all the other forums as well.

Things I will include in the next version:
1) Forum Exclusion
2) Display Properties
2a) more locations of where you can place the Global threads
2b) changing the text of "Global Threads: " to something else
2c) setting the sorting of global threads (right now I have them set to the time of creation instead of lastpost)

|oR|Greg 10-23-2006 11:27 PM

Why not have it based on usergroup permission instead of forumid, and have it be a un/checkable box just like Un/Stick Thread. That way you're not limited to 1 forum as your source, and you're not limited to X number of Global Threads?

randominity 10-24-2006 03:43 AM

Quote:

Originally Posted by |oR|Greg
Why not have it based on usergroup permission instead of forumid, and have it be a un/checkable box just like Un/Stick Thread. That way you're not limited to 1 forum as your source, and you're not limited to X number of Global Threads?

because that would require a database edit I believe

|oR|Greg 10-24-2006 03:54 AM

Yeah? Oh well...

|oR|Greg 10-25-2006 01:55 PM

Damn, I hate being thurough... I just noticed in the actual Global Threads forum my hack causes a small issue with displaying a black section called Universal Threads above the Normal Threads section. Gotta work on that. Although it gave me an idea, to make the section collapsable as well as the Sticky threads, and the Normal Threads. Why not right?


All times are GMT. The time now is 03:48 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.01096 seconds
  • Memory Usage 1,746KB
  • 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
  • (5)bbcode_code_printable
  • (1)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