Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
[AJAX] News/Announcements Details »»
[AJAX] News/Announcements
Version: 1.1.0, by harmor19 harmor19 is offline
Developer Last Online: May 2023 Show Printable Version Email this Page

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].

Here are some screensohts
http://xenweb.net/images/ajaxnews/ajaxnews_1.png
http://xenweb.net/images/ajaxnews/ajaxnews_2.png

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 04-11-2007, 12:10 AM
v2neo v2neo is offline
 
Join Date: Apr 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by harmor19 View Post
It should work.
im getting some java error on page.

and when i click on the sentence to modify my message nothing happens (cant click)


attached is the error picture
Reply With Quote
  #43  
Old 04-11-2007, 12:11 AM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sofia View Post
harmor, i've a little problem.

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 == 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.
Reply With Quote
  #44  
Old 04-11-2007, 12:14 AM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by v2neo View Post
im getting some java error on page.

and when i click on the sentence to modify my message nothing happens (cant click)

attached is the error picture
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.
Reply With Quote
  #45  
Old 04-11-2007, 12:22 AM
v2neo v2neo is offline
 
Join Date: Apr 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by harmor19 View Post
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

thanx

v2
Reply With Quote
  #46  
Old 04-11-2007, 12:38 AM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by v2neo View Post
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.
Reply With Quote
  #47  
Old 04-11-2007, 12:44 AM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lord Katsuhito View Post
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.
Reply With Quote
  #48  
Old 04-11-2007, 12:45 AM
mrpaint's Avatar
mrpaint mrpaint is offline
 
Join Date: Sep 2004
Location: Hanoi Capital
Posts: 630
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #49  
Old 04-11-2007, 12:58 AM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mrpaint View Post
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.
Reply With Quote
  #50  
Old 04-11-2007, 01:53 AM
mrpaint's Avatar
mrpaint mrpaint is offline
 
Join Date: Sep 2004
Location: Hanoi Capital
Posts: 630
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After

Before
Reply With Quote
  #51  
Old 04-11-2007, 02:56 AM
Veer Veer is offline
 
Join Date: Feb 2006
Posts: 733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mrpaint View Post
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.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:46 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06803 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete