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)

Harley77 04-10-2007 05:06 PM

Quote:

Originally Posted by harmor19 (Post 1224287)
This was a quick upgrade to allow a global message. In the future I'd like to implement inheritance. This means that you can have each forum have their own message and have the threads in the respective forum share the same message.

Changed Files
-- product-ah_ajaxnews.xml

Changed Templates
-- navbar



Awesome. Works perfectly.

Sofia 04-10-2007 05:08 PM

Thanks a lot, harmor ! I love your hacks.

It's very clean and i like it :)

Sofia 04-10-2007 05:27 PM

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 :)

Sinistra 04-10-2007 07:05 PM

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

Sofia 04-10-2007 08:19 PM

Hi harmor, i have translate your hack into french. I put it here, if you want to add in your thread :)

Excellent hack ;)

Veer 04-10-2007 09:29 PM

Very Nice hack.

Thanks.

bitdefuser 04-10-2007 10:28 PM

Quote:

Originally Posted by harmor19 (Post 1224287)
This was a quick upgrade to allow a global message. In the future I'd like to implement inheritance. This means that you can have each forum have their own message and have the threads in the respective forum share the same message.

Changed Files
-- product-ah_ajaxnews.xml

Changed Templates
-- navbar

Yes! :) Thanks for adding my suggestion but, the global function does not work.

harmor19 04-11-2007 12:00 AM

Quote:

Originally Posted by bitdefuser (Post 1224509)
Yes! :) Thanks for adding my suggestion but, the global function does not work.

Did you enable it in vBulletin Options -- > Ajax News Settings?

v2neo 04-11-2007 12:02 AM

does this work wiht 3.6.5?

thanx

harmor19 04-11-2007 12:04 AM

Quote:

Originally Posted by v2neo (Post 1224567)
does this work wiht 3.6.5?

thanx

It should work.


All times are GMT. The time now is 01:16 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.01471 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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