Version: 1.1.0, by harmor19
Developer Last Online: May 2023
Category: Miscellaneous Hacks -
Version: 3.6.4
Rating:
Released: 04-08-2007
Last Update: 04-10-2007
Installs: 79
DB Changes Uses Plugins Template Edits
Additional Files
No support by the author.
With this add-on you can quickly add new or announcements on your forum's index, forum display, or thread display. Each forum and thread can have their own unique message.
In the vBulletin options you can choose which user's can edit the text by entering their user ID into the box.
You can choose whether or not moderators can edit the message in the forums they moderate.
You can choose if you want the news/announcements to display on forum home, forum display, or thread display.
You can use bbcode and HTML but only if HTML tags have bbocde to convert to.
For example if you type <b></b> it'll convert to [b][/b].
I indicate my ID in the options, i activate your hack, but when i try to change the news, it indicate me "Direct Access is Prohibited". Why there is this message ?
I read the php file :
PHP Code:
if($can_edit == 0 OR !$_SERVER['HTTP_REFERER'])
{
die('Direct Access is Prohibited');
}
$can_edit == 0 -> i can edit
!$_SERVER['HTTP_REFERER'] -> ???
So when i delete !$_SERVER['HTTP_REFERER'], it's good, but why ?
Thanks
I added $_SERVER['HTTP_REFERER'] so people couldn't go directly to the file and add the values through the URL. It really isn't needed as the only people who are permitted to change the message are the only ones that can pass values through the URL.
Thank you for the French translation. I see that you wrote a better installation document.
I never tested this hack on IE7 so I didn't realize there would be an error. I'll look into it now and get back to you.
Edit: I cannot reproduce that error o my installation of IE7. I don't know what would be causing the problem.
im really new to vbulletin. Did i possible do somethign wrong in my installation? Am i correct in assuming that the way to modify the news is directly from the forum site and not from admin c/p?
Also when i enable moderators to be able to modify the news i can see the field to click on, however if i disable that and input user names than i can not see the news field
im really new to vbulletin. Did i possible do somethign wrong in my installation? Am i correct in assuming that the way to modify the news is directly from the forum site and not from admin c/p?
Also when i enable moderators to be able to modify the news i can see the field to click on, however if i disable that and input user names than i can not see the news field
thanx
v2
How "Enter comma-seperated User ID's that can add/edit news" works is you put the ID of the user into the box that you want to have permission to edit the news/announcement on every page.
So on your site you're user ID should be "1" and let's say you have another admin and their user ID is "5" and you want both you and the other admin to edit the announcements. In the text box you would type 1,5.
How "Moderators can add/edit news in the forum(s) they moderate." works is that you're moderators can edit the news ONLY in the forums they moderate.
If you have enabled "Global Message" it will over-ride the moderators' permission to edit the announcement.
When "Global Messages" are enabled the only people who can change the announement are the user's of the user IDs that you typed in the text box.
I will try to improve upon this hack and add more features so it isn't as limited.
When posting news with any (") or (') I get a database error Also when adding vBcode int converts the coed th HTML this also needs to be fixed and you will have a great hack
I forgot to escape the quotes. I'll upload a fix soon.
this code not support tag [img]?
this code not support unicode?
when i type some kind of different language like Spanish it's don't show the right words but come out like s?a
this code not support tag [img]?
this code not support unicode?
when i type some kind of different language like Spanish it's don't show the right words but come out like s?a
I'll create options to
*Allow users' of the User IDs you typed in the text box to use HTML.
*Allow moderators to use HTML
*Allow users' of the User IDs you typed in the text box to use image bbcode
*Allow moderators to use image bbcode.
I'm sorry about the Spanish word not being displayed correctly. I don't know what would be causing that.
this code not support tag [img]?
this code not support unicode?
when i type some kind of different language like Spanish it's don't show the right words but come out like s?a
Same issue here, i think Unicode's are not supported..
I'm trying to write "Urdu" Unicode words but not being displayed correctly.