Also, instead of only Index (because I deleted portal.php) can we use the bars globally?
And also, an option to to display the bars depending in groups could be cool
- 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: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.
Do you mean that if we use the value "Games" when editing our thread, the bar will be show in pages like this:
|
But not in:
|
The rest worked very good, excellent plugin and really helpful really
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.
So "Games" will not work in:
http://mybbhacks.zingaburga.com/misc.php?page=games
Right? I will test it more today, thanks
Hopefully it supports a query URL in a very simple way.
For example:
This value in our value list:
|
Thread assigned to that value will be displayed (hopefully) in member.php?action=profile
|
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
Thanks RateU very helpful
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.