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)
-   -   New Posting Features - Global Threads: The Next Generation for VB4 by BOP5 (https://vborg.vbsupport.ru/showthread.php?t=279156)

BirdOPrey5 02-24-2012 11:00 PM

Global Threads: The Next Generation for VB4 by BOP5
 
1 Attachment(s)
Brought to you by BirdOPrey5
www.Qapla.com

Version 1.0 - Initial Release
Version: 1.01 - Permissions for Administrators and Super-Mods now work with primary or secondary usergroups.
Version: 1.02 - Added logging actions to moderator logs.
Version: 1.03 - Documentation update only, to be consistent with Gold version.
Version 1.1 - Bug-fix for mod log. Added new option to disable checkbox on new posts.

This mod was inspired by an earlier Global Thread mod I received permission from randominity to update. It is free and is still available here.

That mod however was a port from a VB 3.6 version and was not optimized for VB 4.x. It included a somewhat complicated system of having to make a separate hidden forum for holding the global threads.

My solution was to create a new Global Threads mod, coded from scratch, designed especially for vBulletin 4.x. Therefore I have named this mod, Global Threads: The Next Generation.

This mod is NOT an upgrade from the old mod. You should uninstall the old mod if you will be using this one.

The purpose of this mod is to let an Admin or Super-Mod designate a thread to be a "Global Thread." Global Threads become listed in every forum. A sticky global thread will be sticky in all forums. Non-sticky global threads behave like any other thread, simply visible in every forum.

Clicking on a global thread will open the thread in the forum it is "native" to. An optional message will be displayed in the thread to alert users they are in a global thread.

There is an optional "globe" icon and thread prefix ( Global: ) that can be turned on and off as well as further ways to distinguish global threads from normal threads.

See a Live Demo:

Here is a Global Thread at Qapla.com
You will see it listed in the Demo forum.
But it's also visible in the News & Announcements forum
And in the Talk forum.

In fact it is in a number of Qapla.com forums if you care to look.

This is the free version. The Gold version is available at Qapla.com.

The GOLD version has all the features of the FREE version but 2 additional options:
1) You may choose specific users (by userid) to give Make Global Thread permissions.
2) You may select or restrict Global Threads to specific forums.


This mod is fully phrased for easy translation.

This mod was designed to run on VB 4.1.10 and above. Older versions may require some manual template edits (instructions included.) I have not tested this mod on any version below 4.0.8.

Instructions:

If you want to convert an existing thread to a "Global Thread" open the thread in your browser.

Go to the "Administrative" drop down menu at the top of the thresd.

Click on the option to "Make Thread Global" and click on "Proceed.:"

The thread will be made global and you will be returned to the thread.

To undo a global thread go to the same menu and choose the option "Undo Global Thread."


If you are creating a new thread or replying to an existing thread (using Advanced Reply) then you can make the thread global in one step.

Before submitting your message scroll down to "After you submit your message..." and the top option should be "Make Thread Global"

Check this box before submitting the message to make the thread a Global Thread.

If it's already a Global Thread then simply uncheck the box "Keep Threas Global" to undo the global status after submitting the message.

Note: This option is available only to Admins and Super-mods. Normal users never see the "Moderation Options" menu.

Please Mark as Installed if you use this. :)
Donations Always Appreciated. :up:

BirdOPrey5 02-25-2012 03:38 PM

Reserved.

BlueCheri 02-25-2012 03:39 PM

One of my favorite modification, I am going to try this.

There are really interesting new features, really useful.

And in case of difficulty Joe certainly going to help us.

Many thanx Joe for coming with new version.

G!

RobbieZ 02-26-2012 02:49 AM

Nice. One thread to rule them all!

ScarlosSantana 02-26-2012 03:23 AM

Installed.

Works.

Thanks

BlueCheri 02-26-2012 04:24 AM

Joe working smooth as silk.

Many thnax for your help and support.

G!

Dwarden 02-26-2012 09:36 AM

installed and nothing happens, the Admin CP option is there, tried enable/disable

but nothing appears in the menus or in the new thread bottom options

there is also no entry per usergroup (allow global threads or what it should be)

tried install/uninstall/reinstall to no change

BirdOPrey5 02-26-2012 09:54 AM

This doesn't make any change to the usergroup manager.

In the mod settings there are two options, enable for admins and/or enable for super-mods. Those are the only choices in this version.

If you are using a vbulletin versions of 4.1.7 or older there is at least one manual template edit you must make (as explained in the instructions.)

Assuming the mod is enabled for your group (Admins or super-mods) then you can use the "Administrative" drop down menu at the top of any thread to "Mark Thread Global"

EDIT - I see in your profile you say you are using VB 4.1.10 - if that is true make sure your templates are up to date (There is no warning about needing to revert templates in the Admin CP).

Dwarden 02-26-2012 10:05 AM

well i tried the point 2. template edit

i can see the "Make Global" option only when creating thread

there are no options in Administrative menu

BirdOPrey5 02-26-2012 10:44 AM

Search your templates for:
Code:

{vb:raw template_hook.showthread_adminoptions}
That's the hook that needs to be in your SHOWTHREAD template for the "Administrative" menu option to work.

It was added in VB 4.1.8 but if you have a custom style it's possible the style author did not include it if they were basing off an old version.

If the search does not find that code in SHOWTHREAD template then follow the instructions for edit #3.

mfnforex 02-26-2012 03:57 PM

I will try it
thank you

Alex@bulletin 02-26-2012 04:54 PM

Hi, nice idea your mod. But there's an issue:
I do use an account "Alex", its main user group is "Site Owner". Additional the account is secondary in the "Administrators" group.

If i try to create a new thread as "Alex" i got the option to make it global on "Newthread.php"
but it doesn't work finally.

And the options in the Administration navigation to mark global and undo global are not visible.
They are ONLY visible to Users that are Administrators as Main Group. And making a new thread global (newthread.php) even works only using an Administrator (Main Group) Account.

Hope you can fix that ;)

SY

Alex

BirdOPrey5 02-26-2012 05:53 PM

Thanks for the bug report Alex. I wasn't aware people use "Administrator" as a secondary group.

I will look though the mod to see if changing it will cause any security concerns, if not I will fix this in the next update.

Hornstar 02-27-2012 05:45 AM

Very nice. This will be useful :)

Dwarden 02-27-2012 07:36 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2303520)
Search your templates for:
Code:

{vb:raw template_hook.showthread_adminoptions}
That's the hook that needs to be in your SHOWTHREAD template for the "Administrative" menu option to work.

It was added in VB 4.1.8 but if you have a custom style it's possible the style author did not include it if they were basing off an old version.

If the search does not find that code in SHOWTHREAD template then follow the instructions for edit #3.

hi,

well our first version of 4 was 4.1.10 so anything archic not affect us
while we made our new styles - all our styles contain this hook

could be possible some other modification which adds menu options to the administrative is in collision (de-bump one or ban from thread) ?

also i fully agree with Alex on the secondary etc. groups ...

would be way better if we can define groups by groupID (e.g. : 5,6,7 etc.)

BirdOPrey5 02-27-2012 09:20 AM

It's possibly another mod was poorly programmed to "hijack" the hook and not allow additional changes.

To test this theory temp disable your other mods and see if it comes back.

OR go to the Admin CP -> Plugin Manager -> find the plugin titled: Global Thread Thread Notice [OK]

Edit it and change the execution order from "5" to "9" and save and try again. If that doesn't work change it to "1" and try again, again.

Dwarden 02-27-2012 11:13 AM

well i tried disable all possible plugin and i got something shown what shows (not tested what)

...

seems like trying set different execution order for anything / everything result into no diference on the problem

BirdOPrey5 02-27-2012 12:08 PM

Quote:

Originally Posted by Dwarden (Post 2303845)
well i tried disable all possible plugin and i got something shown what shows (not tested what)

I don't understand what you're trying to say. :confused:

But if you want me to take a look PM me a login for an Administrator and I'll see what I can do.

Dwarden 02-28-2012 02:54 PM

sry there were shown just three ... as menu option but it wasn't triggering any action when used ...

i assume it was your modification (nothing else is active for administrative at that moment)

out of ideas why it's not working in administrative menu, at least it works for new threads

BirdOPrey5 02-28-2012 03:00 PM

Out of ideas as well. If you want to PM me an admin login I will take a look at your settings and such.

Alan_SP 02-29-2012 05:20 PM

This looks excellent. It's way better than your old mod. :up:

Does this mod produces additional queries? What's impact on server load?

BirdOPrey5 02-29-2012 05:34 PM

No additional queries when viewing threads.

1 additional query when making a new thread or post but only for people with permission to make a thread global.

Should be no/negligible effect on performance.

BirdOPrey5 03-01-2012 10:32 PM

Update to version 1.01. You can now use primary or secondary usergroups for Admin and Super-mod permissions.

Alex@bulletin 03-01-2012 10:38 PM

Hello there, thank you very much for this quick update ;)

Alex@bulletin 03-01-2012 10:46 PM

1 Attachment(s)
Hello there, using secondary groups works great :up:
But now there's one funny bug:
As starting a New Thread the "Make TheadGlobal" option is duplicated ;)

I show you the issue:


https://vborg.vbsupport.ru/attachmen...1&d=1330645491

I don't know why :confused:
Please check up, whether you can reproduce that ;)

SY

Alex

BirdOPrey5 03-02-2012 01:33 AM

Hi,

No I can't reproduce the bug. I tried on 4.1.10 and 4.1.11.

Can you paste the contents of your newpost_threadmanage template here? (It's not very big.)

Put it inside [CODE] bbcode please.

Alex@bulletin 03-02-2012 11:13 AM

Hello there, as you requested, I give my Code:

PHP Code:

<fieldset class="blockrow" id="aftersubmit">
    <
legend>{vb:rawphrase after_you_submit_your_message}</legend>
    <
label>{vb:rawphrase moderation_tools}:</label>
    <
ul class="group checkradio rightcol">
<
vb:if condition="$vboptions['bop5gt_en']">
<
li><label for="cb_makeglobal"><input type="checkbox" name="bop_global" id="cb_makeglobal" value="1" {vb:raw checked.bop_globaltabindex="1" /> <vb:if condition="$show['bop_global']">{vb:rawphrase bop5_gt_keep_thread_global}<vb:else />{vb:rawphrase bop5_gt_make_thread_global}</vb:if></label></li>
</
vb:if>
            <
vb:if condition="$show['openclose']">    
        <
li><label for="cb_openclose"><input type="checkbox" name="openclose" id="cb_openclose" value="1" {vb:raw checked.openclosetabindex="1" /> <vb:if condition="$show['closethread']">{vb:rawphrase close_this_thread}<vb:else />{vb:rawphrase reopen_this_thread}</vb:if></label></li>
        </
vb:if>
        <
vb:if condition="$show['stickunstick']">        
        <
li><label for="cb_stickunstick"><input type="checkbox" name="stickunstick" id="cb_stickunstick" value="1" {vb:raw checked.stickunsticktabindex="1" /> <vb:if condition="$show['unstickthread']">{vb:rawphrase unstick_this_thread}<vb:else />{vb:rawphrase stick_this_thread}</vb:if></label></li>
        </
vb:if>
    </
ul>
    <
class="description">{vb:rawphrase use_controls_perform_action_on_thread}</p>
</
fieldset

thanks.

SY

Alex

BirdOPrey5 03-02-2012 11:17 AM

Alex,

I see you made the manual template edit but the mod is doing it's automatic template edit as well.

I suggest you "revert" the template back to the original and it should work fine without the manual edit now.

BlueCheri 03-02-2012 11:20 AM

I will go for it Joe, big fan of your mods :)

My technician is working on DB error, once done. It will be uploaded.

Thanx for update.

G!

Alex@bulletin 03-02-2012 01:18 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2305308)
Alex,

I see you made the manual template edit but the mod is doing it's automatic template edit as well.

I suggest you "revert" the template back to the original and it should work fine without the manual edit now.

whoops, yes. i did it 'cause it didn't work on release with the secondary groups, so I did the manual edit trying to fix that ;)

I will revert. thanks :)

Dwarden 03-03-2012 12:20 PM

with this version our problem with the administrative menu action not appearing is gone
and it's now correctly visible ;)

BirdOPrey5 03-03-2012 04:23 PM

Quote:

Originally Posted by Dwarden (Post 2305675)
with this version our problem with the administrative menu action not appearing is gone
and it's now correctly visible ;)

Thanks for the update. Please "Mark as Installed" if you are using it. The link is in the top post on the right side.

Dwarden 03-03-2012 10:37 PM

sry marked, must unchecked after old troubles ;) now hapilly active and using

sapgaurav 03-08-2012 12:01 PM

i am tring to import but all tiome say

Fatal error: Maximum execution time of 45 seconds exceeded in includes\class_core.php on line 417

BirdOPrey5 03-08-2012 02:42 PM

Can you try importing some other product and see if that works?

How many threads on your forum?

cellarius 03-09-2012 09:14 AM

BoP, so sorry to derail into OT, but just cannot resist ;): Reading the title I just asked myself whether the vB5-version will be called "Global Threads: Deep Space Nine" (not to speak of "Global Threads: Voyager")...

BirdOPrey5 03-09-2012 10:25 AM

Quote:

Originally Posted by cellarius (Post 2307799)
BoP, so sorry to derail into OT, but just cannot resist ;): Reading the title I just asked myself whether the vB5-version will be called "Global Threads: Deep Space Nine" (not to speak of "Global Threads: Voyager")...

:D:D:D:D

That is the likely progression... Then several years later I will surprise everyone with a VB 1.x version and call it Global Threads: Enterprise (Edition), but it will have a short run.

vetty 03-09-2012 06:47 PM

Perfect on vb 4.1.11
Thank you !

BrightStar 03-14-2012 11:05 AM

Just installed this mod and it works perfectly. Very happy with this mod and have uninstalled the older version which required threads to be posted in a hidden forum.

Well done and thanks a lot for your efforts and hard work.

My only request is to make background colour change or make thread bold somehow. Or if possible show the threads under the announcements rather than combining then with sticky threads.

cheers

BirdOPrey5 03-15-2012 08:49 PM

A background color change was an option I was working on but cut it out because things were getting a little too complex- but it is something I will revisit.


All times are GMT. The time now is 10:17 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.01426 seconds
  • Memory Usage 1,861KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (5)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