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 01-30-2011 10:00 PM

Global Threads for VB4
 
1 Attachment(s)
This mod is based off a VB 3.6 mod by randominity here:
https://vborg.vbsupport.ru/showthread.php?t=129626
He gave me permission to further develop this mod.

This mod allows you to display "global threads" in your forums. Global Threads are threads that show up in every forum (or forums you specify) as opposed to just a single forum.

This is perfect for important site news, forum wide polls, and anything worthwhile to be displayed forum wide.

New Version: 2.02 - Fixed a conflict with the "Thread Links" mod.
New Version: 2.01 - 1 Bug Fix, +1 Extra Option (Choose to display above or below sticky divider if you have one.)

I know you could make an announcement but people ignore announcements, and you can't reply to them like threads. These are real threads and if you don't take away permission people can reply to it like any other thread. Replies in any forum show up in all forums.

Same thread in multiple forums: (VB3 Version)
http://www.juot.net/forums/forumdisplay.php?f=48
http://www.juot.net/forums/forumdisplay.php?f=43
http://www.juot.net/forums/forumdisplay.php?f=20
(It's under the sticky threads.)

This mod requires a little work on your side- you must first create a "global forum." I suggest calling it "Global Forum" and in the forum manager when creating it, choose to "Set Active" set to "No" so it won't show up in your forum lists but will be accessible directly by you to post new threads in.

I have greatly increased the number of options over the original mod and believe I have implemented all the good suggestions ever made for the original mod.

This version won't work on any vBulletin version less than 4.0.0.

I have marked this as BETA as there is 1 unresolved minor bug- it has been a bug since this mod came out but no one seems to have noticed or cared. When showing global threads the small arrow indicating if you had posts in the global thread won't snow.

See screenshots for a Global Thread example. The Global Thread globe icon is optional.

Full instructions in zip file.

Please Mark as Installed if you use this. :)

Note: See post #95 for info on how to fix this mod for VB 4.1.7.

See post #126 for an updated threadbit_global template for VB Versions 4.1.10 and above.

Note- I have released a new and better global thread mod and will no longer be supporting this version.

New Mod Link: https://vborg.vbsupport.ru/showthread.php?t=279156

BirdOPrey5 01-31-2011 03:08 AM

Reserved

sticky 01-31-2011 04:47 AM

This has the potential to be epic...

nacaruncr 01-31-2011 06:25 AM

edit....

XD excuse me XD jajajajajaja I see now ...

thanks... I'm going to install it in my web XD

dacho 01-31-2011 07:47 AM

My friend
What happens to SEO, with all the double content?

Taurus1 01-31-2011 08:11 AM

Quote:

Originally Posted by dacho (Post 2156822)
My friend
What happens to SEO, with all the double content?

Very good question. I would also like to know.

Looks like a great mod though!! :up:

BirdOPrey5 01-31-2011 01:05 PM

Quote:

Originally Posted by dacho (Post 2156822)
My friend
What happens to SEO, with all the double content?

The URL to each specific global thread is the same no matter what forum you view it from so search engines shouldn't see it as duplicate content, only multiple links to the same content, which is normal for forums anyway. (For example any link in your header, navbar, or footer is the same on every page already.)

UncoderMom 01-31-2011 05:41 PM

Quote:

Originally Posted by dacho (Post 2156822)
My friend
What happens to SEO, with all the double content?

Make your global thread forum private like I do!

This mod is epic. LOL I've been using it for years and seriously felt choked after updating and not having it. eew.

THANK YOU SO MUCH!!!

INSTALLED AND NOMINATED!!

BirdOPrey5 01-31-2011 05:43 PM

Thanks. :)

COL NIL SATIS 01-31-2011 06:09 PM

Awesome.....gonna add this now ,thanks man

UncoderMom 01-31-2011 06:37 PM

Installed, tested and working beautifully! :) 4.1.1

Boofo 01-31-2011 06:40 PM

Quote:

Originally Posted by UncoderMom (Post 2156991)
Make your global thread forum private like I do!

I'm curious here... how does making the forum private make global threads necessary?

UncoderMom 01-31-2011 06:49 PM

Because, its only private for guest view. My users still see it and it lets me communicate with all of my boards at once. On my site, users stick to a certain board, likely through bookmarks and very rarely visit other parts. LOL

This keeps me in very close contact with them all. I even use for site contests! When the global thread is in every forum, they learn to "know" other posters, making it less painful for some to post outside of their normal boards. :)

Boofo 01-31-2011 06:55 PM

Quote:

Originally Posted by UncoderMom (Post 2157033)
Because, its only private for guest view. My users still see it and it lets me communicate with all of my boards at once. On my site, users stick to a certain board, likely through bookmarks and very rarely visit other parts. LOL

This keeps me in very close contact with them all. I even use for site contests! When the global thread is in every forum, they learn to "know" other posters, making it less painful for some to post outside of their normal boards. :)

Ah, ok, that makes a little more sense. I thought it was private for the regular members, too. I'm still not sure how to use the global threads properly, but it seems like a nice idea if implemented right. I guess we never get too old to still learn something from a Mom, huh? ;)

daveaite 01-31-2011 06:57 PM

nice

UncoderMom 01-31-2011 07:01 PM

Quote:

Originally Posted by Boofo (Post 2157036)
Ah, ok, that makes a little more sense. I thought it was private for the regular members, too. I'm still not sure how to use the global threads properly, but it seems like a nice idea if implemented right. I guess we never get too old to still learn something from a Mom, huh? ;)


Ever change a diaper? I could teach you that... LOL

:p

Boofo 01-31-2011 07:05 PM

Quote:

Originally Posted by UncoderMom (Post 2157042)
Ever change a diaper? I could teach you that... LOL

:p

I STILL have nightmares about that. I had twins. ;)

Sayid 01-31-2011 09:41 PM

I really liked it, can't imagine vb.org without BOP5 efforts :up:

BirdOPrey5 01-31-2011 11:01 PM

Quote:

Originally Posted by Sayid (Post 2157122)
I really liked it, can't imagine vb.org without BOP5 efforts :up:

:o Thanks...

I added some demo pages to the top thread, but they are the vBulletin 3.8 Version of this mod... But you get an idea how it works- My "Rules" thread is in every forum.

Boofo 02-01-2011 01:29 AM

The rules thread sounds like a good idea as global. Mine are on their own page, though.

Taurus1 02-01-2011 09:41 AM

I am getting the following database error with this enabled:

Database error in vBulletin 4.1.1:

Invalid SQL:

SELECT
IF(votenum >= 1, votenum, 0) AS votenum,
IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
post.pagetext AS preview,post.thankscache,
thread.threadid, thread.title AS threadtitle, thread.forumid, pollid, open, postusername, postuserid, thread.iconid AS threadiconid,
thread.dateline, notes, thread.visible, sticky, votetotal, thread.attach, thread.lastpost, thread.lastposter, thread.lastposterid, thread.lastpostid, thread.replycount, IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views,
thread.prefixid, thread.taglist, hiddencount, deletedcount,
user.usergroupid, user.homepage, user.options AS useroptions, IF(userlist.friend = 'yes', 1, 0) AS isfriend
, NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed
, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason
, threadread.readtime AS threadread
, threadredirect.expires
, firstpostid,modification.mod_installcount,usermod. mod_tagged,usermod.mod_installed,usermod.mod_downl oaded,modification.last_update
FROM vbthread AS thread
LEFT JOIN vbuser AS user ON (user.userid = thread.lastposterid)
LEFT JOIN vbuserlist AS userlist ON (userlist.relationid = user.userid AND userlist.type = 'buddy' AND userlist.userid = 3)
LEFT JOIN vbdeletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND deletionlog.type = 'thread')
LEFT JOIN vbsubscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 3 AND canview = 1)
LEFT JOIN vbthreadread AS threadread ON (threadread.threadid = thread.threadid AND threadread.userid = 3)
LEFT JOIN vbpost AS post ON(post.postid = thread.firstpostid)

LEFT JOIN vbthreadredirect AS threadredirect ON(thread.open = 10 AND thread.threadid = threadredirect.threadid)
WHERE thread.forumid = 223
ORDER BY lastpost DESC
LIMIT 5;

MySQL Error : Unknown column 'modification.mod_installcount' in 'field list'
Error Number : 1054
Request Date : Tuesday, February 1st 2011 @ 05:38:58 AM
Error Date : Tuesday, February 1st 2011 @ 05:38:58 AM
Script : http://creativx.net/forums/forumdisplay.php?f=25
Referrer : http://creativx.net/forums/
IP Address :
Username :
Classname : vB_Database
MySQL Version : 5.1.54

Please help.

BadgerDog 02-01-2011 10:55 AM

1 Attachment(s)
Installed on 4.04pl1 for testing with thanks ... :up:

Regards,
Doug

Edit: Set-up as per instructions (see attached pic), added "Global Messages Forum" and ENABLED mod.

Created a post in the new "Global Messages Forum" and hit submit ....

Nothing appears in any of the forums specified, however post appears in "Global Messages Forum". :confused:

BirdOPrey5 02-01-2011 02:32 PM

1 Attachment(s)
Quote:

Originally Posted by Taurus1 (Post 2157284)
I am getting the following database error with this enabled:

Database error in vBulletin 4.1.1:

Invalid SQL:

SELECT
...

MySQL Error : Unknown column 'modification.mod_installcount' in 'field list'
Error Number : 1054
Request Date : Tuesday, February 1st 2011 @ 05:38:58 AM
Error Date : Tuesday, February 1st 2011 @ 05:38:58 AM
Script : http://creativx.net/forums/forumdisplay.php?f=25
Referrer : http://creativx.net/forums/
IP Address :
Username :
Classname : vB_Database
MySQL Version : 5.1.54

Please help.

Hi, I see the problem... I forgot to remove 1 hook from the code and another modification you have is interfering with the query.

I will release an update to fix this bug shortly. In the mean time if you want to fix it you can go to Plugin Manager -> Edit the plugin titled: Query Global Threads
Find this line:
Code:

$hook_query_fields
And simply erase it, hit save, and it should work.

Or wait for my next update later today.

Quote:

Originally Posted by BadgerDog (Post 2157296)
Installed on 4.04pl1 for testing with thanks ... :up:

Regards,
Doug

Edit: Set-up as per instructions (see attached pic), added "Global Messages Forum" and ENABLED mod.

Created a post in the new "Global Messages Forum" and hit submit ....

Nothing appears in any of the forums specified, however post appears in "Global Messages Forum". :confused:

Is the mod still enabled? If so please give me the forumid of your global forum. I will take a look.

My guess off hand is you have the permissions set wrong- users need to be able to view the forum and threads... here is a screenshot of proper forum permissions:

Taurus1 02-01-2011 03:21 PM

Thank you very very much!! Works perfectly now!!! You ROCK big time mate!!

BadgerDog 02-01-2011 03:48 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2157346)

Is the mod still enabled? If so please give me the forumid of your global forum. I will take a look.

My guess off hand is you have the permissions set wrong- users need to be able to view the forum and threads... here is a screenshot of proper forum permissions:

Thanks for the quick response ... :up:

Yes, enabled and I checked forum permissions and they are fine...

In fact, I'm an Admin who created the seed post and all permissions for the forum are on, yet I can't see any of the posts. :confused:

Can I send you AdminCP access privately to have a look?

Regards,
Doug

BirdOPrey5 02-01-2011 04:13 PM

You can PM me access info but please first try this new version, 2.01 I just released just in case your problem is related to the bug fix. :up:

The new version also ads an option where you can display global threads above or below a sticky divider if you have one.

BadgerDog 02-01-2011 05:27 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2157389)
You can PM me access info but please first try this new version, 2.01 I just released just in case your problem is related to the bug fix. :up:

The new version also ads an option where you can display global threads above or below a sticky divider if you have one.

Downloaded and installed v2.01 on our v4.04pl1. :)

Re-checked all settings ....

Deleted old test post from "Global Messages Forum" and created a new one... submitted it ...

It doesn't show up in any of the forums listed in the "included" listing.

Should there be spaces in list? ie: 1, 2, 3 versus 1,2,3 the way I have it?

I'll get you the login information. Sure like to get this working as it could add a lot of value to the nature of how we operate our forums.

Thanks for your help ... :up:

Regards,
Doug

BirdOPrey5 02-01-2011 05:36 PM

1,2,3 or 1, 2, 3 both work, I tested it both ways... will take a look when you PM me info.

BadgerDog 02-01-2011 06:01 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2157423)
1,2,3 or 1, 2, 3 both work, I tested it both ways... will take a look when you PM me info.

Thanks ... :)

Sent you a PM ....

Also, sent you a PayPal donation for this, as well as other mods and work you've done that we've started using. Been meaning to do that for a while now ... :D

Regards,
Doug

TheLastSuperman 02-01-2011 06:59 PM

Awesome Joe, I like how you updated this quite handy imo!

BirdOPrey5 02-01-2011 07:33 PM

Quote:

Originally Posted by BadgerDog (Post 2157443)
Thanks ... :)

Sent you a PM ....

Also, sent you a PayPal donation for this, as well as other mods and work you've done that we've started using. Been meaning to do that for a while now ... :D

Regards,
Doug

Thanks. :D :up:

Apparently the "Thread Links" mod is interfering with this mod. I'm going to work on getting them to work together now.

Will update soon.

Quote:

Originally Posted by TheLastSuperman (Post 2157463)
Awesome Joe, I like how you updated this quite handy imo!


Thanks. :)

BirdOPrey5 02-01-2011 09:30 PM

2.02 released- fixes conflict with the "Thread Links" mod.

Edited to fix execution order.

Aaron873 02-02-2011 01:51 AM

I love this modification, I've edited a couple of things to my likings.
I'm glad you got it working for VB4~

Taurus1 02-02-2011 02:19 AM

Is there a way I can change the global threads text color please? I changed my sticky's color to red, but I am not sure how to do it for this.

Thanks.

BirdOPrey5 02-02-2011 03:06 AM

I'm not really sure what you have to do, probably something with CSS but what you need is in your threadbit_global template...


find the code:
Code:

<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>
That is the code for the link... So you have a link to the Sticky code to change colors? Maybe I can translate it for Global thread use.

Taurus1 02-02-2011 03:16 AM

This is what I added in the additional.css template for the sticky color:

Code:

.sticky a.title {color: red;}

BirdOPrey5 02-02-2011 11:24 AM

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.

BadgerDog 02-02-2011 11:26 AM

Quote:

Originally Posted by Taurus1 (Post 2157662)
This is what I added in the additional.css template for the sticky color:

Code:

.sticky a.title {color: red;}

That's interesting ... :)

Do I just tack this on the very end of the additional.css template that exists for each of my styles, so the Global Threads ONLY appear with this background color?

Thanks ...

Regards,
Doug

BirdOPrey5 02-02-2011 11:31 AM

That doesn't do the background color, just the link color... and that code is for stickies... for global threads you must edit the template I explained above.

BadgerDog 02-02-2011 11:38 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2157739)
That doesn't do the background color, just the link color... and that code is for stickies... for global threads you must edit the template I explained above.

Roger that ... :up:

Regards,
Doug


All times are GMT. The time now is 06:30 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.01681 seconds
  • Memory Usage 1,850KB
  • 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
  • (17)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