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.

Snake 04-11-2007 11:57 AM

Wow I have been waiting for this. I used to have this feature while I was running on IPB back in the day.

Thanks!

v2neo 04-11-2007 06:20 PM

Quote:

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

ok my mistake was using user name instead of user number, but i still cant click on the field to input any message.

Just to clarify i should be able to just click on "Click on this sentence to change this message. " in the forum and type my message. and not in the admin c/p panel correct?

v2

PS i can give you access to my admin C/P if you would like to check it out

DJ XtAzY 04-12-2007 09:03 AM

nice hack.. i'll wait until the next update =]

Veer 04-15-2007 08:12 PM

Hi, I Have updated [vb]ajaxnews1.1.0.zip but its still 1.0.0

harmor19 04-16-2007 01:32 AM

Quote:

Originally Posted by Pehchaan (Post 1228560)
Hi, I Have updated [vb]ajaxnews1.1.0.zip but its still 1.0.0

I just forgot to change the version number. This is nothing to worry about.

farooqaaa 04-16-2007 11:42 AM

Thanks man! this is nice!

Veer 04-21-2007 08:50 PM

Quote:

Originally Posted by harmor19 (Post 1228690)
I just forgot to change the version number. This is nothing to worry about.

Its all right, harmor19 :)

Please add the ability to use full html codes, so we can add announcements with images, colors, fonts styles etc..

Thanks.

kube 04-24-2007 08:13 AM

My problem is:

I write for example

PHP Code:

Hello

nice tool 

and if ich will add the next time someting, it shows afterwards


PHP Code:

Hello
<br><br>
nice tool
<bradded text 

if i add something more, he doubles all tags !

PHP Code:

Hello
<br><br><br><br>
nice tool
<br><bradded text 

and i (i`m allowed to edit) see all tags like they are "<br>" and not the "real" output when i leave the field...


sorry for my english, but i hope you understand what i mean....

buontaiviem 05-04-2007 10:23 AM

Did not support HTML code. I tried this code but did not show images and link.

Quote:

<a href="http://.....com" target="_blank"><img src="http://.....com/logo.gif" width=468 height=60 border=0></a>

ChopBam 05-25-2007 06:26 PM

I'm getting another database error from this modification whenever anybody goes to an invalid thread.

For example, t=10000 and that isn't a thread.
There'll be a DB error and I'll get an email about it. Quite annoying.
Confirm?

bc3tech 05-31-2007 02:41 PM

I installed per instructions, go to my forum, set my message, click outside the box. and the message displays 'false' and no changes get made. If i reload the page, the default message is shown.

tycity 06-03-2007 03:11 AM

Couldn't add News originally in firefox to no avail, but worked flawlessly in IE. You an see the news once entered in IE but you can't enter it. So I'm adding news from IE but it looks great in FF too. Thanks for such a great mod.. wish I had known it wouldn't allow me to edit in FF but it worked out. Thanks!

fuldon 06-12-2007 06:04 PM

Any updates?

bc3tech 06-12-2007 06:15 PM

Quote:

Originally Posted by fuldon (Post 1267076)
Any updates?

ditto... curious to know what my 'false' problem is.

FleXy 06-17-2007 09:34 AM

Quote:

Originally Posted by ChopBam (Post 1254599)
I'm getting another database error from this modification whenever anybody goes to an invalid thread.

For example, t=10000 and that isn't a thread.
There'll be a DB error and I'll get an email about it. Quite annoying.
Confirm?

damn, it's my problem too...
plugin uninstalled
I am looking for updates or another one plugin like this.

bc3tech 06-17-2007 11:58 AM

uninstalled.

Ekshi 06-17-2007 09:56 PM

Turkish character problem.

Fuzzy Orange 07-01-2007 09:16 AM

This is not working for me at all

I have global message turned on - but looking in the mysql table it's still saving the messages I type into a specific forum in the database

But then when you go around the site its always pulling the first message out!!

Fuzzy Orange 07-01-2007 09:21 AM

OK it seems to work as long as I only ever edit the message when im on the index page!!

Could do with some polishing of the php code, as if you have global message on but edit the message inside one of the forums, that message just saves into the database with the forum location and obviously never gets displayed

PHP code needs changing so that if you have global message turned on then it saves the message in the database with a location of "global" and always shows this "global" message on every page!

Also if you put bbcode in the message - when you click to edit it again you get the actual html instead, and that wont save again!

Fuzzy Orange 07-01-2007 09:31 AM

Uninstalled - way too many bugs and unfinished product

Decided to just put a global message hard coded into the navbar template instead!

aakhan136 07-14-2007 05:52 PM

thanks

ThE LeAdEr 07-15-2007 03:09 AM

Les dejo el pluggin traducido al EspaƱol.

IN SPANISH VERSION !!!

HERE !

Ratman2050 08-26-2007 09:18 PM

Can you remove them too after you write the headlines?

T_Richardson 08-28-2007 02:05 PM

Having a hard time for images to show. What image tags are supported?

Derek Chai 11-03-2007 06:20 PM

Doesn't work in 3.6.8 or is it my forum?

ChopBam 12-10-2007 04:24 PM

It works fine for me in 3.6.8. PL 2.

TS_CUZ 12-12-2007 12:59 AM

how do i change the message?

kylek 01-02-2008 12:22 AM

Installed on latest 3.6.8 and everything looked good, messages show and are editable.
However the use of non alpha characters are not displaying right still.

Also now getting this database error:

Database error in vBulletin 3.6.8:

Invalid SQL:
SELECT * FROM ah_ajaxnews WHERE location='thread' && id =;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Error Number : 1064
Date : Tuesday, January 1st 2008 @ 08:12:39 PM
Script : http://xxxxxxxxx.xxx/forum/showthrea....ru/.html/body
Referrer :
IP Address : xxxxxxxxx
Username : exxxxx
Classname : vb_database

VADOS 01-02-2008 12:37 AM

I have a russian board and after I edit the text I get something like this (see attach)

It's not converted UTF8 as I get it...

Can you fix the problem?

P.S. - the window is too wide, can you use a global variable of board width from the global options? Thank you!

kylek 01-02-2008 04:32 PM

Quote:

Originally Posted by kylek (Post 1413527)
Installed on latest 3.6.8 and everything looked good, messages show and are editable.
However the use of non alpha characters are not displaying right still.

Also now getting this database error:

Database error in vBulletin 3.6.8:

Invalid SQL:
SELECT * FROM ah_ajaxnews WHERE location='thread' && id =;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Error Number : 1064
Date : Tuesday, January 1st 2008 @ 08:12:39 PM
Script : http://xxxxxxxxx.xxx/forum/showthrea....ru/.html/body
Referrer :
IP Address : xxxxxxxxx
Username : exxxxx
Classname : vb_database

Still getting the same database error over and over, anyone else getting this?
Also what is the second address in the script? This - http://joioiskioeriyyskwkdwjsdfewis.land.ru/.html/body has nothing to do with our site.


All times are GMT. The time now is 01:34 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.01455 seconds
  • Memory Usage 1,839KB
  • 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
  • (4)bbcode_php_printable
  • (15)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
  • (40)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