vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - [AJAX] News/Announcements (https://vborg.vbsupport.ru/showthread.php?t=144414)

harmor19 04-08-2007 10:00 PM

[AJAX] News/Announcements
 
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

harmor19 04-09-2007 05:19 PM

I hope you like this hack.

needtheend 04-09-2007 05:19 PM

Thanx

HDT 04-09-2007 05:42 PM

This should work on 3.6.0 with totally customize template?

harmor19 04-09-2007 05:44 PM

Quote:

Originally Posted by HDT (Post 1223458)
This should work on 3.6.0 with totally customize template?

I can't promise if it will work.

harmor19 04-09-2007 08:04 PM

Before anyone asks I like to explain some things.

If you want the moderator's to be able to edit the news/announcement of the forums they moderate you don't have to enter their User ID in the text box.

If you want line breaks in the news/announcements you'll need to use the break tag ( <br /> ).

apfparadise 04-09-2007 10:20 PM

installed, but nothing is happening as far as AJAX. I have AJAX on, other things work, but this one, I click and click and it stays a line of text. It's on, and I have ability to moderate it. Nothing.

ChopBam 04-09-2007 11:18 PM

When I click to Mark all Forums as read, I get a database error.
Everything else seems to run pretty smoothly.

I would prefer though if when you click to edit it that the codes stay in BB format, because HTML doesn't show up.

bitdefuser 04-09-2007 11:32 PM

Suggestions:
Make it global for all the boxes. (I don't want to manually edit every single forum's box and put the message I want.)

harmor19 04-10-2007 12:06 AM

Quote:

Originally Posted by ChopBam (Post 1223674)
When I click to Mark all Forums as read, I get a database error.
Everything else seems to run pretty smoothly.

I would prefer though if when you click to edit it that the codes stay in BB format, because HTML doesn't show up.

I'll look into the database error.
When you edit the message doesn't show the way I want it to but when you refresh the page it should show fine.


Quote:

Originally Posted by bitdefuser (Post 1223679)
Suggestions:
Make it global for all the boxes. (I don't want to manually edit every single forum's box and put the message I want.)

I'll try to do this in the next release.


All times are GMT. The time now is 01:23 AM.

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.02886 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete