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)

v2neo 04-11-2007 12:10 AM

Quote:

Originally Posted by harmor19 (Post 1224568)
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

harmor19 04-11-2007 12:11 AM

Quote:

Originally Posted by Sofia (Post 1224320)
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.

harmor19 04-11-2007 12:14 AM

Quote:

Originally Posted by v2neo (Post 1224571)
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.

v2neo 04-11-2007 12:22 AM

Quote:

Originally Posted by harmor19 (Post 1224577)
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

harmor19 04-11-2007 12:38 AM

Quote:

Originally Posted by v2neo (Post 1224586)
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.

harmor19 04-11-2007 12:44 AM

Quote:

Originally Posted by Lord Katsuhito (Post 1224381)
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.

mrpaint 04-11-2007 12:45 AM

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

harmor19 04-11-2007 12:58 AM

Quote:

Originally Posted by mrpaint (Post 1224602)
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.

mrpaint 04-11-2007 01:53 AM

After
https://vborg.vbsupport.ru/attachmen...1&d=1176259924
Before
https://vborg.vbsupport.ru/attachmen...1&d=1176259924

Veer 04-11-2007 02:56 AM

Quote:

Originally Posted by mrpaint (Post 1224602)
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.


All times are GMT. The time now is 01:13 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.01172 seconds
  • Memory Usage 1,750KB
  • 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
  • (8)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