News:

SMF 2.0.19 has been released! Please update. Read more.

Main Menu

Global Topics

Started by margarett, March 27, 2009, 10:15:33 AM

Previous topic - Next topic

margarett

Link to Mod



Global Topics

This mod allows you to create Global Topics.

Global Topics are shown:
- in all boards where this feature is enabled
- only in the first page of the list of messages (MessageIndex)
- before any other topic, including sticky topics
- in Unread Topics / Unread Replies

Original author: onepiece

The included file global_post.gif is an image from FamFamFam Silk Icons. Silk Icons are licensed under Creative Commons Attribution 2.5 License

Languages:
     - English
     - English UTF8

Changelog

Version 2.2 // 17-05-2014
================================================================================
! Fixed bug: Global Topics were showing in boards not selected to show them
+ You cannot "global" a topic in a board not selected to show Global Topics

Version 2.1 // 07-05-2014
================================================================================
+ Global Topics are also identified in Unread Topics/Replies
! This also fixes an "undefined index" being generated in those actions
! Fixed bug with wrong order after "unglobal" a topic (thanks @onepiece)

Version 2.0 // 29-04-2014
================================================================================
+ Take over by margarett
! Fixed to work with 2.0+

Legend:
--------------------------------------------------------------------------------
! Minor change or bugfix.
+ Feature addition or improvement.
- Feature or option removal.


Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

franklinrony

woo, marvelous good mod :) congrats. i need to my forum
http://twitter.com/franklinrony

Entra y aprende a ser un webmaster
www.sv-blog.com
--Si pides ayuda al menos agradece el soporte recibido----


gourav

Hey really a good mod but there is no tutorial tht how to make it work?
i am not able to find it anywhere in admin menu after installtion in my 2 RC1 ??

onepiece

You just have to make topics global, like you are setting them as sticky. You should be able to see the button in the moderator buttons area when you are viewing a topic.

If you want to hide global topics in some boards, you can disable the feature from Admin > Boards > modify (for the board) and you should see the related setting there.

gourav

Yes i already checked it but How to make a topic Global topic???

When i created a new topic or modified a topic in a board where
global topics is enabled there are only this options ???

Notify me of replies.    Lock this topic.
Return to this topic.    Sticky this topic.
Don't use smileys.    Move this topic.
Announce topic.

onepiece

You should be able to see the button on Message Display screen. If you are not seeing it, you probably are using a custom theme. Using the manual installation instructions on the Mod Site, apply the theme edits to your custom theme files.

gourav

Quote from: Tenma on April 01, 2009, 05:21:03 AM
You should be able to see the button on Message Display screen. If you are not seeing it, you probably are using a custom theme. Using the manual installation instructions on the Mod Site, apply the theme edits to your custom theme files.
No bro i am using default core theme,
I checked in moderator section,
Section of new topic and and all other things
but there is none on GLOBAL TOPIc ??
can you please please post a screen shot that where to makit
enable?

SFF Forum

Quote
Nice idea for a mod. thanks

But it noly for 2.0RC,can you update for SMF1.1.8? :)
I Love Simple Machines Forum .

onepiece

Quote from: gourav on April 02, 2009, 02:38:58 AM
can you please please post a screen shot that where to makit
enable?

Attached a screen shot.

Quote from: bosser on April 02, 2009, 03:24:21 AM
Quote
Nice idea for a mod. thanks

But it noly for 2.0RC,can you update for SMF1.1.8? :)

Sorry, I'm not planning to update it for SMF 1.1 versions. There are couple of similar mods you can use for your version.

M-DVD

Good, this MOD is very usefull  :D

gourav

Thanks Tenma for the screenshot :)
Please add this screen shot in MOd area so that users can know it easily :)

Indeed a great mod that reminds the Announcement topic of PHPBB ,, But as a suggestion try to make a space between Global topic and normal topics...


Lamarck

Very nice mod.I have a problem: I can't change the background color of global topics.I installed it on my custom theme,and changed the background-color for global on style.css.However,nothing happens.

In messageindex.template.php:

Quote// Calculate the colour class of the topic.
         if ($context['can_approve_posts'] && $topic['unapproved_posts'])
            $color_class = $topic['approved'] ? 'approvebg' : 'approvetbg';
elseif ($topic['is_global'])
$color_class = 'global';

         else
            $colour_class = !empty($settings['separate_sticky_lock']) && $topic['is_sticky'] ? 'windowbg6' : 'windowbg';



Is this right? any help,please?


onepiece

Try doing a hard refresh on the page. (Ctrl + F5)

Lamarck

Nothing,still the same.

onepiece

Attach your style.css file here.

Lamarck

#17
Attached ^^.Thanks.

EDIT: ok,solved.I changed "color_class" to "colour_class" and now works for me.

gourav

@Tenma There is a bug in these version?
I am using SMF2 RC1 , and Global topics are visibal
Even on those borads where i unchecked
them through Admin menu??Please fix it..

onepiece

Would you provide me a link to the topic and the board as an example?

Advertisement: