vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB Shoutbox 1.0 (https://vborg.vbsupport.ru/showthread.php?t=38698)

MindTrix 12-22-2003 09:47 PM

Advice to stop HTML beeing used in shoutbox, as tested by MaDCaT75 and so far works :)

In the shoutbox.php file find

PHP Code:

[size=2]shout_text '".addslashes($message)."',[/size



and change too

PHP Code:

[size=2]shout_text '".htmlentities(addslashes($message))."'

[/size]

[sidenote] This is my first proper bit of PHP help Horray!![/sidenote]

MaDCaT75 12-23-2003 02:15 AM

what about users who like to make ridiculously long shouts or put 30000000 smilies in there?

unplugged 12-23-2003 09:42 AM

Surly you could pinch the code that stops you putting 30,000 smileys into posts :/

Ethermaster 12-23-2003 06:56 PM

Quote:

Originally Posted by John
And I have fixed it :) - in the template shoutbox_postshout, I changed:

PHP Code:

  <tr id="cat">
    <
td bgcolor="{tableheadbgcolor}" colspan="6"><a href="shoutbox.php?s=$session[sessionhash]title="The Shoutbox"><normalfont color="{tableheadtextcolor}"><b>The Shoutbox Latest Shout</normalfont></b></a></td>
  </
tr

to

PHP Code:

<table cellpadding="5" cellspacing="0" border="0" {tableinnerextrawidth="100%">
  <
form action="$bburl/shoutbox.php" method="post" name="vbform">
  <
input type="hidden" name="type" value="shout"


After inplying your method I am still getting the root DIR for the shout box. any suggestions? Running VB 2.3.3

MaDCaT75 12-23-2003 08:53 PM

Quote:

Originally Posted by unplugged
Surly you could pinch the code that stops you putting 30,000 smileys into posts :/

Yes I am sick of banning people who ignore my warnings about this.

MindTrix 12-24-2003 06:46 PM

MaDCaT75, ask me on MSN later and i will help you out. Consider it an early xmas present :)

MaDCaT75 12-24-2003 07:39 PM

Thanks :D

gmarik 12-25-2003 06:02 AM

vb3?

MaDCaT75 12-25-2003 06:18 AM

Quote:

Originally Posted by gmarik
vb3?

Not until RC1 I would imagine

DuffMan 12-25-2003 12:10 PM

I installed the hack but whenever I try to post a shout it takes me to shoutbox.php in the directory below the one the file's actually in.


All times are GMT. The time now is 06:44 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.01808 seconds
  • Memory Usage 1,747KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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