Advertisement:

Author Topic: Global Topics  (Read 52497 times)

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,759
  • Gender: Male
Global Topics
« on: March 27, 2009, 10:15:33 AM »
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
Code: [Select]
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.

« Last Edit: May 16, 2014, 08:55:54 PM by margarett »
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

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

Offline franklinrony

  • SMF Hero
  • ******
  • Posts: 1,958
  • Gender: Male
  • Sharedownload SEO
    • franklinrony on Facebook
    • @franklinrony on Twitter
    • share download
Re: Global Topics
« Reply #1 on: March 27, 2009, 01:42:04 PM »
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----

Offline perro88

  • Jr. Member
  • **
  • Posts: 358
    • techcoreforum
Re: Global Topics
« Reply #2 on: March 27, 2009, 02:22:54 PM »
Nice idea for a mod. thanks

Offline gourav

  • Semi-Newbie
  • *
  • Posts: 77
  • Gender: Male
Re: Global Topics
« Reply #3 on: March 31, 2009, 04:55:00 AM »
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 ??

Offline onepiece

  • Full Member
  • ***
  • Posts: 698
  • Gender: Female
Re: Global Topics
« Reply #4 on: March 31, 2009, 06:49:47 AM »
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.

Offline gourav

  • Semi-Newbie
  • *
  • Posts: 77
  • Gender: Male
Re: Global Topics
« Reply #5 on: March 31, 2009, 12:11:02 PM »
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.

Offline onepiece

  • Full Member
  • ***
  • Posts: 698
  • Gender: Female
Re: Global Topics
« Reply #6 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.

Offline gourav

  • Semi-Newbie
  • *
  • Posts: 77
  • Gender: Male
Re: Global Topics
« Reply #7 on: April 02, 2009, 02:38:58 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?

Offline SFF Forum

  • Jr. Member
  • **
  • Posts: 200
Re: Global Topics
« Reply #8 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? :)
I Love Simple Machines Forum .

Offline onepiece

  • Full Member
  • ***
  • Posts: 698
  • Gender: Female
Re: Global Topics
« Reply #9 on: April 03, 2009, 09:42:57 AM »
can you please please post a screen shot that where to makit
enable?

Attached a screen shot.

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.

Offline M-DVD

  • SMF Hero
  • ******
  • Posts: 1,650
  • Gender: Male
  • Step by step will update the mods to SMF 2RC2
Re: Global Topics
« Reply #10 on: April 03, 2009, 11:25:30 PM »
Good, this MOD is very usefull  :D

Offline gourav

  • Semi-Newbie
  • *
  • Posts: 77
  • Gender: Male
Re: Global Topics
« Reply #11 on: April 04, 2009, 07:04:41 AM »
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...

Offline - Lawrence -

  • Jr. Member
  • **
  • Posts: 143
  • Gender: Male
    • Didds Forums
Re: Global Topics
« Reply #12 on: April 04, 2009, 07:25:03 AM »
Wow, thanks. I was looking for a mod that did this :D.

Offline Lamarck

  • Jr. Member
  • **
  • Posts: 127
Re: Global Topics
« Reply #13 on: April 14, 2009, 07:40:33 AM »
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?


Offline onepiece

  • Full Member
  • ***
  • Posts: 698
  • Gender: Female
Re: Global Topics
« Reply #14 on: April 14, 2009, 08:19:22 AM »
Try doing a hard refresh on the page. (Ctrl + F5)

Offline Lamarck

  • Jr. Member
  • **
  • Posts: 127
Re: Global Topics
« Reply #15 on: April 14, 2009, 08:51:37 AM »
Nothing,still the same.

Offline onepiece

  • Full Member
  • ***
  • Posts: 698
  • Gender: Female
Re: Global Topics
« Reply #16 on: April 14, 2009, 09:11:21 AM »
Attach your style.css file here.

Offline Lamarck

  • Jr. Member
  • **
  • Posts: 127
Re: Global Topics
« Reply #17 on: April 14, 2009, 09:24:56 AM »
Attached ^^.Thanks.

EDIT: ok,solved.I changed "color_class" to "colour_class" and now works for me.
« Last Edit: April 14, 2009, 06:54:17 PM by Lamarck »

Offline gourav

  • Semi-Newbie
  • *
  • Posts: 77
  • Gender: Male
Re: Global Topics
« Reply #18 on: April 26, 2009, 07:35:56 AM »
@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..

Offline onepiece

  • Full Member
  • ***
  • Posts: 698
  • Gender: Female
Re: Global Topics
« Reply #19 on: April 29, 2009, 04:22:33 AM »
Would you provide me a link to the topic and the board as an example?