Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 News Bar
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #11
RE: News Bar
Updated: More "friendly" Biggrin
Update instruction:
Replace inc/plugins/xtnewsbar.php file with the new one (located in xtnewsbar/inc/plugins/ folder).

11-26-2010 11:49 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #12
RE: News Bar
Is there a way we can use different bars depending in forums? Like forum rules, but the forum moderator decides if show it or not.

Also, instead of only Index (because I deleted portal.php) can we use the bars globally?

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
10-28-2011 08:44 AM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #13
RE: News Bar
Do you mean by the global is really a global (every pages)?

10-29-2011 05:22 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #14
RE: News Bar
^Yes, give the option for forumdisplay.php, misc.php and showthread.php, (globally) for admins and forumdisplay.php for mods in their forums (forums they moderate).

And also, an option to to display the bars depending in groups could be cool Smile

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
(This post was last modified: 10-29-2011 08:51 AM by Sama34.)
10-29-2011 06:54 AM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #15
RE: News Bar
Updated:
  • Deactivate the previous version first.
  • Change the "Index And Portal" value option inside the Value List setting in xtnewsbar custom thread fields.
  • Because there is an option to load the newsbar globally (every page), so our newsbar uses MyBB cache system.
    Use this URL to update the cache manually: xtnewsbar=1 (I don't know whether it is better or not if we use tasks system for this?).
    Only Admin and Moderators can update the cache.
    Example from index page:

    Code:
    index.php?xtnewsbar=1

  • If we want to edit the newsbar style, edit the xtnewsbar.css stylesheet inside each theme's style to edit the bars style.
  • If there is a thread comes from a forum that a user doesn't have permission to view it, then that bar won't be displayed for that user.
  • If there is a thread uses Forumdisplay/Showthread option, the thread will be displayed on that forum only.
  • Use file name (if the script name not given) in the Value List for displaying a thread as newsbar for an additional page.
    For example:

    Code:
    Games

    If we have the above value inside our Value List, and there is a thread uses that value, then the thread will be displayed as newsbar on our game section page.

  • We can use Settable Value Permissions setting inside xtnewsbar and/or xtnewsbar_class custom thread fields to prevent some value to be set by a usergroup.
    For example:
    We have these values inside our xtnewsbar custom thread fields Value List:

    Code:
    1
    2
    3
    4
    5
    6
    Global
    Index
    Portal
    Games
    Forumdisplay
    Showthread

    And we have these values inside our Settable Value Permissions setting:

    Code:
    Global{|}3,4
    Index{|}3,4
    Portal{|}3,4
    Games{|}3,4

    It means that only Administrators and Super Moderators have an ability to set a thread as news in the newsbar to be displayed on every page, index, portal and our games section (assuming that we set our Moderators can use this custom thread fields, it means that they can help us to set a thread as news in our newsbar for forumdisplay and showthread only).


I've updated the first post.

10-30-2011 07:56 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #16
RE: News Bar
RateU, I did not understood the part of "Games".

Do you mean that if we use the value "Games" when editing our thread, the bar will be show in pages like this:

Code:
http://mybbhacks.zingaburga.com/games.php
http://mybbhacks.zingaburga.com/forum-games
http://mybbhacks.zingaburga.com/thread-games


But not in:

Code:
http://mybbhacks.zingaburga.com/gamebla.php
http://mybbhacks.zingaburga.com/forum-game
http://mybbhacks.zingaburga.com/thread-gamers


The rest worked very good, excellent plugin and really helpful really YipiLove


Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
(This post was last modified: 10-30-2011 11:25 AM by Sama34.)
10-30-2011 11:23 AM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #17
RE: News Bar
It should be displayed on the games.php page (if the script name is not defined (?)). I've tested it using the Games Section plugin.
Other example, if you have a custom page example.php, you can add Example value in the Value List, and the threads "assigned" to that value will be displayed (hopefully) on the custom page (assuming the script name not defined or the script name has the same name as the file name).
With the same method, we can have a specific "News Bar" for some default areas, like (for example only) Newthread, UserCP and etc.

10-31-2011 03:05 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #18
RE: News Bar
I get it Biggrin

So "Games" will not work in:
http://mybbhacks.zingaburga.com/misc.php?page=games

Right? I will test it more today, thanks Smile

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
10-31-2011 10:03 AM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #19
RE: News Bar
Try the attachment in the first post (I've updated it, just replace/overwrite the old one).
Hopefully it supports a query URL in a very simple way.
For example:
This value in our value list:

Code:
Member Action Profile

Thread assigned to that value will be displayed (hopefully) in member.php?action=profile


11-01-2011 02:51 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #20
RE: News Bar
I think I get it know, this:

Code:
Member Action Profile
Misc Page Onlinegames


The first one did not worked because (I think) I'm using google seo cute urls.

But the second one did worked for my games page Biggrin

Thanks RateU  very helpful BiggrinBiggrin

EDIT: I found a bug (?):
http://pokecosmo.com.ar/foros/index.php

The red bar is in a hidden forum and yet guests can see it.


Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
(This post was last modified: 11-02-2011 05:36 AM by Sama34.)
11-02-2011 05:29 AM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: