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)

randominity 10-20-2006 10:00 PM

Global Threads
 
Description
If your forums are split up in such a way where certain groups of users only visit a certain forum, then you know it's difficult to get all your users to read an announcement. This mod displays a certain amount of threads from a specified "source" forum, and places it on the Forum Display page right after the Stickied threads. These threads are labeled with a "Global: " tag.

This mod is in beta, so install at your own risk, but will be supported. Please let me know of any bugs, or suggestions that you may have!

Install / Upgrade
Download the attached XML file, and import it at
Admin Control Panel > Plugins & Products > Manage Products > Add/Import Product

Remember to "Allow Overwrite" if you are upgrading.

Usage
  1. Create a new forum that will be your "source" forum; that is, this forum will contain your global threads. Get the forumid of this forum.
  2. In your AdminCP --> vBulletin Options --> Global Threads make sure you:
    • enable it
    • enter in the forumid of your source forum
    • set the number of threads from the source forum to display
  3. Make a new thread in your "source" forum and it will be displayed globally in other forums.

Mod Info
1 - Query
1 - Phrase
1 - Template
3 - Plugins
0 - Template Edits


v1.0.1
Added the option to exclude certain forums.
v1.0.0b
Initial release.


Please click "Install" if you have installed this mod! Thanks!

Frapegliko 10-21-2006 03:59 PM

thanx

Valter 10-21-2006 04:00 PM

Nice idea ;)

FleaBag 10-21-2006 04:22 PM

Really is a great idea, it means I won't have to sticky an identical thread in every single forum - as afterall, without comments announcements can be useless.

xadoa 10-21-2006 08:04 PM

i have it installed, how do i use it?

randominity 10-21-2006 08:21 PM

1) Create a new forum that will be your "source" forum; that is, this forum will contain your global threads. Get the forumid of this forum.

2) In your AdminCP --> vBulletin Options --> Global Threads make sure you:
-enable it
-enter in the forumid of your source forum
-set the number of threads from the source forum to display

3) Make a new thread in your "source" forum and it will be displayed globally in other forums.

Snake 10-21-2006 09:59 PM

Wow very nice!

EasyTarget 10-21-2006 10:52 PM

cool idea.

how about the ability to exclude certain forums from it or choosing which forums to show which threads in?

randominity 10-22-2006 02:10 PM

Quote:

Originally Posted by EasyTarget
cool idea.

how about the ability to exclude certain forums from it or choosing which forums to show which threads in?

coming in the next version :)

MrNase 10-22-2006 06:05 PM

Wow, that's a very nice idea! I will install the new version. ;)

sportsquick 10-23-2006 12:37 AM

Awesome, whats the "formuid tho?

can someone explain?

adwade 10-23-2006 01:51 AM

Wow, this is a SUPER idea! I'll wait until it's out of Beta, but plan to use it with a FOR SALE forum so the latest threads will be displayed in my other forums as well.

adwade 10-23-2006 01:56 AM

Quote:

Originally Posted by sportsquick
Awesome, whats the "formuid tho?

can someone explain?

Go into your AdminCP and select Forums & Moderators, then choose Forum Manager. Now, click on a forum name and at the top of the next page you'll see the forum ID to the right of the forum name.(i.e. Forum: For Sale! (id: 16))

sportsquick 10-23-2006 10:58 AM

hmm..if the top says f (id: 25

what do I put in?

adwade 10-23-2006 11:52 AM

Quote:

Originally Posted by sportsquick
hmm..if the top says f (id: 25

what do I put in?

Assuming 25 is the ID of your newly created forum, then...

Quote:

Usage
Create a new forum that will be your "source" forum; that is, this forum will contain your global threads. Get the forumid of this forum. (25 in your case)

In your AdminCP --> vBulletin Options --> Global Threads make sure you:
- enable it
- enter in the forumid (i.e. 25) of your source forum
- set the number of threads from the source forum to display
Make a new thread in your "source" forum and it will be displayed globally in other forums.


sportsquick 10-23-2006 04:13 PM

I do that, but it still doesnt work =(

|oR|Greg 10-23-2006 04:31 PM

Great hack, I hacked your hack though... Woot! :D I love it now, thanks Randominity for the inspiration.

randominity 10-23-2006 04:48 PM

Quote:

Originally Posted by sportsquick
I do that, but it still doesnt work =(

PM me a link to your forums and I'll help out.

randominity 10-23-2006 04:49 PM

Quote:

Originally Posted by |oR|Greg
Great hack, I hacked your hack though... Woot! :D I love it now, thanks Randominity for the inspiration.

yeah there are some design options I was thinking about, I just liked mine the best... I guess in the new version I can add more options so the users can customize it a bit more; along with the exclusions.

sportsquick 10-23-2006 06:29 PM

Sent ya the Pm!

|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?

|oR|Greg 10-25-2006 02:14 PM

Well, got the broken piece fixed, but decided against the collapsable portion, not only do I not want users to be able to ignore important stuff, but I would have to make big template/plugin changes.

YLP1 10-25-2006 08:44 PM

Once the global topic is created and for example I have 10 forums, will the global topic be listed 10 times in the Latest Topics list or just once?

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

Just once, it's a thread just like any other, but what makes it Global is the plugin, the plugin queries any/all threads in the forum you specify and then outputs it in every OTHER forum.

YLP1 10-25-2006 09:54 PM

Thank You.......

Slyfox1 10-26-2006 03:11 AM

Love the addition. Only thing is I don't have the category name listed? :(

|oR|Greg 10-26-2006 03:33 AM

Category?

Slyfox1 10-26-2006 03:40 AM

Where you have your universal threads, directly above similar to the Stick and Normal category headings..

Universal Threads

Stick Threads

normal Threads..

Have a look > http://www.theuglybuggers.com/forum/...splay.php?f=29

Slyfox1 10-26-2006 08:35 AM

I know this is a hack of a hack so I understand the support implications...I'm very keen to try and get this working as shown in the PIC is it displays the threads exactly how I want to :)

So, I installed this on a clean board and had the same problem. For some reason the header for the announcements is being displayed..

Any chance you could help?

Cheers

Sly

|oR|Greg 10-26-2006 11:27 AM

If you followed my insturctions it should be working fine, make sure you didn't miss any steps, are you sure you added the template in, and the phrase?

Slyfox1 10-26-2006 09:40 PM

Code added to FORUMDISPLAY, code replaced in the merge_xx_xx plugin, phrase added (although I changed the text) FORUMDISPLAY_Seperate_global template added and code inserted :(

The only thing I wasn't sure of was with the phrase. NAME = delim_global, phrase type = GLOBAL, product = GLOBAL, text = Global Announcements.


All times are GMT. The time now is 06: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.01369 seconds
  • Memory Usage 1,821KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

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

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