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)

Chris M 10-29-2002 09:49 PM

Well? Anyone?

Satan

PiotrasG 10-30-2002 05:01 AM

sup all

for some reason i get a white page for my shoutbox any idea why??? plz help

http://polskieforum.com/forum/shoutbox.php

Kars10 11-01-2002 08:07 PM

How can i reduce the maximum Characters of a Shout?
Any Ideas? :confused:

NTLDR 11-01-2002 08:23 PM

Find:

PHP Code:

if ($type == 'shout' && $comment_submit && trim($message) != '' && $bbuserinfo[userid] > 0) { 

Add after:

PHP Code:

$message substr($message,0,CHARS); 

Change CHARS to the maximum number of characters they can use, any extra are just removed. Not the best way IMO, but the quickest and easiest

Alternativly you could do something similar to just reduce the text shown on forumhome.

Kars10 11-02-2002 06:01 AM

Cool Thanks NTLDR!! ;)

Hoffi 11-03-2002 09:16 AM

Hi,

i just want to modify this Script for my Site. So I want to change the filename. But after that I saw a white Screen when i load the Page. Why?

FWC 11-03-2002 03:29 PM

Quote:

Originally posted by Hoffi
Hi,

i just want to modify this Script for my Site. So I want to change the filename. But after that I saw a white Screen when i load the Page. Why?

If you change the name of the file you will have to change any references to the file name in the templates, also.

Hoffi 11-03-2002 04:46 PM

Sure. I changed the MetaRefresh in the File itself, and the Form in the postshout template.
But at first, this has no effect, and it is for the first call of the site unneccesary.

LanciaStratos 11-05-2002 03:14 AM

This is an outstanding hack (the best since FireFly's "Quick Reply Box")! Thank you VERY much, TWTCommish, your work is greatly appreciated! :)

LanciaStratos 11-05-2002 07:13 PM

Here's an idea - wouldn't it be great if the actual shouts (in the left column), were loaded into an <iframe>, where they could then be refreshed at a frequent interval? This would allow you to see new shouts without loosing a message you might be typing...

edwardandtubbs1 11-08-2002 06:55 PM

I kepted getting an error. but I read the thread and sorted by my self.

great hack.

a43079 11-09-2002 10:26 PM

sorry i loaded the hack and this is the error i am getting

Warning: unexpected error in date() in C:\Program Files\Apache Group\Apache2\htdocs\forums\admin\functions.php on line 1599

Please Help

Tony DiMera 11-17-2002 10:07 PM

This is really cool.

Mathiau 11-20-2002 04:30 PM

Hey all

I am not using vb portal or anything, but i was curious how exactly i can put the shoutbox down the right or left side of my forum as i have my forums Main Table Width @ 50% so i have room to do that..

all help is appreciated.

X-Fan 11-25-2002 12:11 AM

Just a quick question - is it possible to limit the number of characters per shout?

Some of my users have been posting shouts that are more like mini-novels, and its throwing my entire front page out of whack!

Overgrow 11-26-2002 04:58 PM

A quick improvement to the shoutbox_postshout template:

This allows you to limit the characters posted by checking the form onsubmit. Javascript taken from here because I'm lazy. Replace the shotubox_postshout template with:

Code:

<script Language="JavaScript">
<!--
function Length_TextField_Validator()
{
if ((vbform.message.value.length < 3) || (vbform.message.value.length > 500))
{
mesg = "You have entered " + vbform.message.value.length + " character"
if (vbform.message.value.length != 1) {
mesg = mesg + "s"
}
mesg = mesg + ".\nValid entries are between 3 and 500 characters.\n"
alert(mesg);
vbform.message.focus();
return (false);
}
return (true);
}
-->
</script>

<table cellpadding="5" cellspacing="0" border="0"  width="100%">
  <form action="/edge/shoutbox.php" method="post" name="vbform" onsubmit="return Length_TextField_Validator()">
  <input type="hidden" name="type" value="shout">
 
  <tr>
    <td bgcolor="#006633" width="100%"><normalfont color="#FFCC00"><b>Send A Message</b></normalfont></td>
  </tr>
</table>

<table cellpadding="8" cellspacing="0" border="0"  width="100%">
  <tr bgcolor="#DFDFDF">
    <td width="100%"><normalfont><b>Message:</b></normalfont> &nbsp; <smallfont><b>[
<a href="$bburl/misc.php?s=$session[sessionhash]&action=showsmilies" class="small" target="_blank">Smilies</a> -
<a href="$bburl/misc.php?s=$session[sessionhash]&action=bbcode" class="small" target="_blank">vB Code</a> ]</b></smallfont>
    <br/><textarea name="message" rows="10" cols="60" class="bginput" wrap></textarea>
    <br/>$smiliebits</td>
  </tr>

  <tr bgcolor="#DFDFDF">
    <td width="100%"><input type="submit" name="comment_submit" value="Shout Now!" class="bginput" accesskey="s"></td>
  </tr>
 
  </form>
</table>

Thanks to TWT for a great piece of work!

X-Fan 11-26-2002 10:32 PM

Thanks OG!

stangpower 11-27-2002 03:31 AM

This is working great on my site, but I was wondering if it would be possible to add a "Who is chatting" I want to use this as a chat for my site.

Thanks!

Ian

Sweet Cheeks 11-30-2002 02:13 PM

Hey this is an awesome hack :smoke: Thanks for your hard work on this one my members love it.

I have one ???, is there a way that I can make the shoutbox invisible or disable it for a specified user group? Our 'trolls' like to use it to post garbage.

thanks for your help :)

Sweet Cheeks 11-30-2002 07:05 PM

OOps :paranoid: Guess I should have read a little further, I found it :cool:

The General 12-09-2002 10:09 PM

Works like a charm on 2.2.9!

Thanks very much! =D

Xer 12-10-2002 11:32 AM

thx.. it is working on my 2.2.9 bb :bunny:

The General 12-10-2002 11:54 AM

Will it be hard to include a ´Who´s chatting´ function?

My users would love to have one...they love the shoutbox...

KeneticKangaroo 12-18-2002 10:38 PM

Works fine on 2.2.9
Removed the / and its fine

Trabia 12-21-2002 05:51 PM

Quote:

Originally posted by PiotrasG
sup all

for some reason i get a white page for my shoutbox any idea why??? plz help

http://polskieforum.com/forum/shoutbox.php

I have this exact same problem. I have checked all of the templates and copied all of the code again.

I have followed everything in the install.txt but still no joy.

Any kind soul out there have an idea of what to try?

94supratt 12-23-2002 06:32 AM

Quote:

Originally posted by pjgoncalves
working now.. :)

i changed form action="/shoutbox.php" to form action="$bbtile/shoutbox.php"

tks for the Shoutbox :D

Thats what worked for me :D

94supratt 12-23-2002 07:21 AM

Everything works for my shoutbox but it shows OLDEST shout and not newest?! Anyone know why?

Mr H 12-26-2002 03:33 AM

Is there any way to give my moderators the ability to delete "shouts"?

Alchemyst 12-26-2002 07:41 PM

Is there a way to allow mods to do the "Mass Prune" option from the Moderator's Control Panel?

Aaron1 12-29-2002 09:43 AM

Here's what i made from it:

http://www.housequake.com/

I am very happy with it, but the only problem i have is how to break up long links, because it will mess up my forumhome page. Any thoughts on that problem?

PS: the option (Number of characters before wrapping) in the Control Panel doesn't work with links...

a43079 01-01-2003 04:34 PM

Quote:

Originally posted by a43079
sorry i loaded the hack and this is the error i am getting

Warning: unexpected error in date() in C:\Program Files\Apache Group\Apache2\htdocs\forums\admin\functions.php on line 1599

Please Help

if anyone can provide assistance with this please

Phat Papa Pete 01-01-2003 08:11 PM

Is there any way to disable the [IMG] code? Members are abusing the Shoutbox by shouting extremely large pictures. Very annoying.

mistyl 01-02-2003 07:14 PM

Wonderful hack!! Works in 2.2.9 with no problems at all!!

Brahm 01-05-2003 06:33 PM

Another Great Hack TWTCommish! I am still trying to figure out how to put a preview box on my home page, but I am sure I will get it eventually.

I am using the myvbindex.php home page provided here at VB.org.

ashkins.net

mitchell 01-05-2003 10:06 PM

I want to be able to display more than one shout on my main page. Any ideas?

Elly 01-05-2003 10:37 PM

Quote:

Originally posted by Mathiau
Hey all

I am not using vb portal or anything, but i was curious how exactly i can put the shoutbox down the right or left side of my forum as i have my forums Main Table Width @ 50% so i have room to do that..

all help is appreciated.


I am also looking for this I do use vbindex and it is on there but I cant figure out how to get the same concept to work on my forum page -.-

mitchell 01-06-2003 02:06 AM

The bottom of my index.php file looks like this. I am trying to get multiple shouts to appear, no luck. Someone help me out here.

PHP Code:

$shoutz $DB_site->query('SELECT u.username, s.userid, s.shout_text, s.timestamp FROM user u, shoutbox s WHERE u.userid = s.userid ORDER BY s.timestamp DESC LIMIT 10');
while (
$shout10top mysql_fetch_array($shoutz)):
    ++
$shout10topnbsp;
    
$shout[timestamp]  = vbdate('n-j-y, g:i:s a'$shout10top[timestamp]);
    
$shout[shout_text] = bbcodeparse($shout10top[shout_text]);
    
$shouts .= "<smallfont><b>Posted by <a href=\"member.php?s=$sesion[sessionhash]&action=getinfo&userid=$shout10top[userid]\" class=\"small\">$shout10top[username]</a><br> Posted @ $shout[timestamp]</b></smallfont><br/><smallfont>$shout[shout_text]</smallfont><br><br>";
endwhile;

eval(
"\$the_shoutbox .= \"".gettemplate("forumhome_shoutbox")."\";");
eval(
"dooutput(\"".gettemplate('forumhome')."\");"); 


Brahm 01-08-2003 05:17 AM

Quote:

The bottom of my index.php file looks like this. I am trying to get multiple shouts to appear, no luck. Someone help me out here

Replace the contents of the "forumhome_shoutbox" with:

PHP Code:

<tr id="cat">
    <
td bgcolor="#1D6AA0" colspan="6"><a href="$bburl/shoutbox.php?s=$session[sessionhash]title="The Shoutbox"><normalfont color="#EEEEFF"><b>The Shoutbox Latest Shout</normalfont></b></a></td>
  </
tr>
  
  <
tr>
    <
td bgcolor="#13486D" colspan="6">$shouts</td>
  </
tr

As in Bald Bouncer's original post?

derb 01-08-2003 07:04 PM

hi,

i just dl the hack and saw in the instructions that i need to run a query...

could someone please explain me how to run a query ?

sorry for lame question, but i wanna have this on our forum :-)

thanx for your time !

Brahm 01-08-2003 07:41 PM

I use phpmyadmin for all of my database queries and such.
http://phpmyadmin.net/


All times are GMT. The time now is 08:58 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.01702 seconds
  • Memory Usage 1,837KB
  • 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_code_printable
  • (4)bbcode_php_printable
  • (6)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
  • (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