vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   [AJAX] vBShout v2.0 (https://vborg.vbsupport.ru/showthread.php?t=93097)

Mikecp421 04-21-2006 01:00 PM

Quote:

Originally Posted by Mikecp421
get this when i try to uninstall

Database error in vBulletin 3.5.3:

Invalid SQL:
drop table `shout`;

MySQL Error : Unknown table 'shout'
Error Number : 1051
Date : Thursday, April 20th 2006 @ 06:32:25 PM
Script : http://www.meogee.com/admincp/plugin.php
Referrer : http://www.meogee.com/admincp/plugin...id=_vbshout&s=
IP Address :
Username : Mikecp421
Classname : vb_database


tried to overwrite the shout by installing this one over it and now I get an error in the forum


anybody??

Mikecp421 04-21-2006 01:16 PM

also get this in the shoutbox itself

Database error in vBulletin 3.5.3:

Invalid SQL:

select s.*, u.username, u.usergroupid from shout s
left join user u on (u.userid = s.s_by)
order by s.sid desc limit 20;

MySQL Error : Table 'meogeec_forumnew.shout' doesn't exist
Error Number : 1146
Date : Friday, April 21st 2006 @ 09:16:09 AM
Script : http://www.meogee.com/vbshout.php
Referrer :
IP Address :
Username : Mikecp421
Classname : vb_database

Zachery 04-21-2006 01:18 PM

Quote:

Originally Posted by thisgeek
Why are you using htmlspecialchars() as the 'fix' function? That only causes special chars to get converted... why not use strip_tags() ?

I've replaced the two calls to htmlspecialchars with strip_tags and everything is working as it is supposed to. - html code is stripped out, while leaving special chars alone.

Anyway, thanks for doing it in the first place! :D

Thats what happens in a normal post :p

Mike, you just uploaded the new file and it is causing the problem?

Mikecp421 04-21-2006 02:11 PM

actually the first error message is the error I got when I tried to uninstall via the Product manager in the ACP the second (which shows in the shoutbox itself) is what I got when I manually replaced both files. I uploaded the xml and then imported it via the product manager allowing an overwrite and I replaced the php file int he ftp.

Zachery 04-21-2006 02:47 PM

All you needed was to upload the new file, nothing else.

The error was from after you uninstalled the hack.

blacklancer 04-21-2006 03:14 PM

just installed the new file....is there a way to allow certain characters???

i tried to type 3" k&n filter and it came out 3" k&n filter.....

DJ XtAzY 04-21-2006 03:16 PM

Quote:

Originally Posted by hassi
If you want to have a timestamp in the shoutbox which is different to the rest of the forum i.e. just the time and not the date then open your vbshout.php and delete the following:


Code:

        $Time  = vbdate($vbulletin->options['dateformat'], $time, $vbulletin->options['yestoday']);
    $Time .= ' ';

Hope someone might find it useful. You'll find an example how it looks after modification in the attachement. It also works in vbadvanced if you have it installed in there.

Hassi

does anyone know how to remove the brackets when it shows the time. I want to remove the time and the bracket from the shoutbox

Mikecp421 04-21-2006 03:40 PM

Quote:

Originally Posted by Zachery
All you needed was to upload the new file, nothing else.

The error was from after you uninstalled the hack.

The original error was from trying to uninstall the hack as the upgrade instructions instructed me to do. So what do I do now?

Mikecp421 04-21-2006 04:06 PM

this is the upgrade instructions;

Quote:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
Step 1:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
Upload 'vbshout.php' to your 'FORUMS ROOT DIRECTORY' (ie: forums/ or forum/)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
Step 2:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
Go to your ACP, then:
Plugin System -> Manage Products -> vBShout -> Uninstall
Plugin System -> Manage Products -> [Add/Import Product]
Make sure "Allow Overwrite" is set to 'Yes'!
Select 'vbshout.xml' from your computer and then press 'Import'

Upgrade is now complete, enjoy.
note the bolded field, thats where it all went wrong

Gizmo5h1t3 04-21-2006 04:15 PM

this still isnt working...followed the instructions to the letter, and im getting this :

Quote:

[1 Minute Ago 18:13] Gizmo: testing quote marks "bollox"

dethfire 04-21-2006 04:16 PM

not sure if this is known but typing a double quote results in "

Gizmo5h1t3 04-21-2006 04:19 PM

so its DEFFO not fixed yet then....??

ijob 04-21-2006 05:04 PM

Can u limit a user to a certain amount of posts? For example, user can post upto 20 messages?

dirtycrow 04-21-2006 05:42 PM

will an update fix the " "" issue? when you use qoutes it gives you " ""

Ohiosweetheart 04-21-2006 05:46 PM

No Giz it's not fixed... can't use quotations marks or arrows without getting the weird stuff.

C_P 04-21-2006 06:08 PM

How do you clear all shouts or a specific number of shouts? Say the last 5 or six? I see this command:
Quote:

/pruneshout [shout] - Deletes a single shout
but not sure what to enter to get this command to work in shout box
Never mind... I found the answers in the first 21 pages of this.
Here are the commands:

To Delete a single shout:
/pruneshout and the text of shout

Example:
[1 Minute Ago 12:39 PM] CP: Test

to delete this in shoutbox type:
/pruneshout Test



To Delete all Shouts:
/prune


To note you saying or doing something
[high]
Code:

* C_P and action
[/high]

Example:
[high]
Code:

* C_P This shout box Rocks
[/high]
displays this:

[1 Minute Ago 12:41 PM] *CP This shout box Rocks*

Zachery 04-21-2006 06:26 PM

I've made the staff aware that the fix causes a problem,. they are looking into it.

C_P 04-21-2006 06:53 PM

I updated my post above to help new users. I do have a question. How do I access the stats for the shout box? As shown in the stats image in the top post.

Turbosport 04-21-2006 09:08 PM

A little issue with the update, if you put a number in the show smilies setting that is greater than the number of smilies you have it doubles them up, simple fix by adding a count to the returned sql queery and and a if > comparison.

o0Hubba0o 04-21-2006 10:32 PM

Quote:

Originally Posted by C_P
I updated my post above to help new users. I do have a question. How do I access the stats for the shout box? As shown in the stats image in the top post.

Click the title of the shoutbox, that will bring you to that page.

I have a question on the prune command, does that just clear the shouts, or will it reset the shout counts too? I don't want people to lose their shout count.


P.S.: Glad I didn't update right away when it came out, I don't have that char problem.

Za4a Tuner 04-21-2006 11:01 PM

Quote:

Originally Posted by o0Hubba0o
I have a question on the prune command, does that just clear the shouts, or will it reset the shout counts too? I don't want people to lose their shout count...

even the shouts AND the counters will be set to zero ;)

o0Hubba0o 04-21-2006 11:06 PM

Quote:

Originally Posted by Za4a Tuner
even the shouts AND the counters will be set to zero ;)

Ok, thanks alot. Guess I won't be pruning anytime soon.

C_P 04-21-2006 11:54 PM

Quote:

Originally Posted by o0Hubba0o
Click the title of the shoutbox, that will bring you to that page.

THANKS! It is the obvious we overlook!

DementedMindz 04-22-2006 01:19 AM

ok i see brad posted a fix but wasnt this a exploit too in it 'shout' => TYPE_STR, as per this post https://vborg.vbsupport.ru/showpost....postcount=1192 or does brads update fix this?

Ohiosweetheart 04-22-2006 03:44 AM

Quote:

Originally Posted by Zachery
I've made the staff aware that the fix causes a problem,. they are looking into it.

thank you Zachery... it's really causing a stir on my site, lol

Ohiosweetheart 04-22-2006 03:47 AM

Quote:

Originally Posted by DementedMindz
ok i see brad posted a fix but wasnt this a exploit too in it 'shout' => TYPE_STR, as per this post https://vborg.vbsupport.ru/showpost....postcount=1192 or does brads update fix this?

Brad's update didn't fix the current problems

Baudman 04-22-2006 05:44 AM

can someone please tell me how to purge the shout box of the shouts that have been made in the past?

Thanks. Baudman

Aclikyano 04-22-2006 05:59 AM

THIS VB SHOUT.... causes my HOST Memory To skyrocket!.

:smh:..... gotta patch that somehow guy.

Ragnarok 04-22-2006 09:32 AM

Quote:

Originally Posted by Baudman
can someone please tell me how to purge the shout box of the shouts that have been made in the past?

Thanks. Baudman

As stated here, /prune

elite1 04-22-2006 11:14 AM

Hi Guys

I would like to know how to set different user groups for the shoutbox. I know one site where the guy has added a /mod command. When using this command only people with moderator status and up can view what theyre saying. I would like to know how to do this, so if anyone has any ideas please let me know as it would be much appreicated.

Many Thanks

Ben
undergroundportal.co.uk

Jon_Simmonds 04-22-2006 08:54 PM

Does the edit function work after the update? if so i must be pure stupid as i cant figure out how to edit a shout by one of my users - edit found it :D

H@K@N 04-22-2006 09:39 PM

Hi @ll,

have executed the Security fixed, don't know if its linked to my Issue :

A User is using bbcode in the Shout like

[img ] link to an image with a .htaccess protected folder [/IMG ]

So then all Users getting to Popup to Enter Username and Password. This could be also a security Risk .....

How i can handle this, should i disallow bbcode in the Shoutbox ?

th@nks

Zachery 04-22-2006 09:52 PM

Thats not a direct security risk anyone can control, anyone could post a picture to an image thats behind htaccess on anywhere you allow the image bbcode.

H@K@N 04-22-2006 09:56 PM

So then the Smiley Function is not working anymore, because you have to deactivate the vBCode/Smilies Function.

Any possiblity to disallow the external linking in the Shoutbox ?

DementedMindz 04-22-2006 10:49 PM

Quote:

Originally Posted by Zachery
Thats not a direct security risk anyone can control, anyone could post a picture to an image thats behind htaccess on anywhere you allow the image bbcode.

ok maybe they will answer this time...

ok i see brad posted a fix but wasnt this a exploit too in it 'shout' => TYPE_STR, as per this post https://vborg.vbsupport.ru/showp...postcount=1192 or does brads update fix this?

thelittleguy 04-22-2006 11:37 PM

i have it loaded on my site all it says is Loading and never does whats the deal?

RFViet 04-23-2006 01:39 AM

I got probem after updating the vbshout_fix . I can not type " ... " anymore . The quotation mark doesn't work , please check it out !!!

o0Hubba0o 04-23-2006 02:18 AM

Quote:

Originally Posted by RFViet
I got probem after updating the vbshout_fix . I can not type " ... " anymore . The quotation mark doesn't work , please check it out !!!

Lol you can always tell the people that don't read before they post. They're looking into it, it has to do html not being allowed. Just scan some previous posts, it's all there.

RFViet 04-23-2006 11:37 AM

Quote:

Originally Posted by o0Hubba0o
Lol you can always tell the people that don't read before they post. They're looking into it, it has to do html not being allowed. Just scan some previous posts, it's all there.

It didn't happen with orginal vbshout 2 on my board !!

Brad 04-23-2006 01:01 PM

Yes my update fixes that issue, although it does not restrict input to NOHTML, it simply cleans it when it's called from the database.

Quote:

Brad's update didn't fix the current problems
My update fixed only one problem and that was allowing users to inject html. :)

Quote:

Why are you using htmlspecialchars() as the 'fix' function? That only causes special chars to get converted... why not use strip_tags() ?
Strip_tags will give you results that are just as bad. For example try posting this in the shoutbox "& <-- no &amp;" this will display "&" because everything after < is stripped.

Update

I've uploaded a new version of this hack, dubbed '2.0.2'. This one should fix the issues without breaking special characters. To upgrade, download the new zip file and upload the new vbshout.php file.

Please note that this only fixes the html injection issues. I do not use this hack on my own forum (although I've tested this on a client's board) so I will not be fixing the server load issues. I suggest you do not install this hack if you can't deal with the extra server load, as it's rather intensive.


All times are GMT. The time now is 11:01 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.04228 seconds
  • Memory Usage 1,835KB
  • 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_code_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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