View Full Version : vB Shoutbox 1.0
TWTCommish
05-15-2002, 10:00 PM
Well, people wanted it, so here it is: a vB-integrated Shoutbox. It's a little different than the one they used to have on this site, however. The moderation functions are VERY basic...but they'll be improved for 2.0, most likely, if there's any interest.
A short breakdown: It's a chatroom-esque page that everyone can use.
Shouts that day, shouts in last 24 hours, shouts by YOU, and total shouts, are all tracked.
Leaderboard (top shouters) is tracked.
Clickable smilies automatically added below the add shout box.
"delete" link shown on all shouts if you're an admin or a moderator (usergroupids 5, 6, and 7 by default).
bbCode parsing included.Attached is an archive containing all the files you'll need for the basic installation, AND for the optional features. NOTE: the vBHacker (https://vborg.vbsupport.ru/showthread.php?threadid=36378) compatible file included within does NOT constitute a full installation. You'll still need to upload the shoutbox.php file to your main forums directory.
Enjoy. Here's a live demo: http://www.movieforums.net/shoutbox.php
Lesane
05-16-2002, 01:56 PM
I have already a shoutbox running but still great, well done.
TWTCommish
05-16-2002, 02:01 PM
Thanks. I dig the Shoutbox...but I wanted something a little more advanced with a few more features on my site, so I went for it. Thanks for the kind words. :)
FleaBag
05-16-2002, 02:22 PM
I've been testing this on my forums too [www.gamerforums.com/board/shoutbox.php] and it's definitely what I was looking for - I recommend it to everyone! :D
Lesane
05-16-2002, 02:26 PM
Originally posted by TWTCommish
Thanks. I dig the Shoutbox...but I wanted something a little more advanced with a few more features on my site, so I went for it. Thanks for the kind words. :)
Your welcome and yes i see more features then the one i created from the old shoutbox, so i think i will install this one. ;)
ZiRu$
05-16-2002, 02:36 PM
very nice.....Will install later
Bald Bouncer
05-16-2002, 03:22 PM
fantastic mate, I had only one small problem in shoutbox_postshout I had to change <form action="/shoutbox.php" too <form action="shoutbox.php"
also if anyone else wants to have the shoutbox on their forumhome page with more then 1 shout do the below,
$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")."\";");
open forumhome_shoutbox and replace it with,
<tr id="cat">
<td bgcolor="{tableheadbgcolor}" colspan="6"><a href="$bburl/shoutbox.php?s=$session[sessionhash]" title="The Shoutbox"><normalfont color="{tableheadtextcolor}"><b>The Shoutbox - Latest Shout</normalfont></b></a></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}" colspan="6">$shouts</td>
</tr>
thanks for the hack again mate, great work!
Velocd
05-16-2002, 06:06 PM
Interesting..I have a shoutbox I downloaded yet to try but its called Shoutbox V2 and it was made by Mewtwo, Crater Seraph, and TWTCommish. Is this the same one you have just released? If so, you forgot to include 2 others who helped make it ^_^
filburt1
05-16-2002, 06:09 PM
I get a JS error when I try to use the clickable smilies: "'message' is null or not an object'
EXCHANGE
05-16-2002, 06:20 PM
I'll give this a try later, the demo looks really good to me
Good Work!
Dean C
05-16-2002, 06:28 PM
look pretty nice...
:( - doesn't work at all, when I try to post a shout it tries to access webroot\shoutbox.php instead of webroot\forum\shoutbox.php - help?
And I have fixed it :) - in the template shoutbox_postshout, I changed:
<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
<table cellpadding="5" cellspacing="0" border="0" {tableinnerextra} width="100%">
<form action="$bburl/shoutbox.php" method="post" name="vbform">
<input type="hidden" name="type" value="shout">
afterlab
05-16-2002, 07:33 PM
Proud beta-tester for this.. Glad to see it's back in action.
Another small problem - when you click on a smilie, nothing happens - except for an error:
Line: 1
Char: 1
Error: Object Expected
Code: 0
URL: URLetc..\shoutbox.php?
TWTCommish
05-16-2002, 08:58 PM
thanks for the hack again mate, great work!
Thanks for pointing that out. I'll change it tonight. :)
Interesting..I have a shoutbox I downloaded yet to try but its called Shoutbox V2 and it was made by Mewtwo, Crater Seraph, and TWTCommish. Is this the same one you have just released? If so, you forgot to include 2 others who helped make it ^_^
No one helped me make this hack. However, someone who I sent it to for beta testing purposes apparently made some change and is calling it "vB Shout Box 2.0" -- they sent me a copy and I'm basically trying to figure out what's going on. I certainly didn't know anything like this was going on and I'd rather not release a second version until I've added more.
I get a JS error when I try to use the clickable smilies: "'message' is null or not an object'
I'm trying to get to the bottom of this. Hopefully I'll manage to figure things out.
And I have fixed it
Thanks for your patience -- sorry about that! :)
I'll try to work out some of these bugs and re-upload tonight. Sorry for any inconvienence.
Originally posted by TWTCommish
Thanks for your patience -- sorry about that! :)
I'll try to work out some of these bugs and re-upload tonight. Sorry for any inconvienence.
Apart from the smilies not working, everything is great - a fine hack! - No need to say sorry for anything!
Bald Bouncer
05-16-2002, 09:59 PM
smilies seem to work fine for me?
Originally posted by Bald Bouncer
smilies seem to work fine for me?
What version of vB are you running? I'm on 2.2.4, could this be the reason? :confused:
FleaBag
05-16-2002, 10:10 PM
EDIT: I just realised someone had already said this. Oh well LOL.
I was a beta tester for this also, it works perfectly on my forums. I did tell TWT about the form error, rather than hard coding it you could use $bburl/shoutbox.php. But he frgot, though I'm not complaining because he never stops working! :)
TWTCommish
05-16-2002, 10:13 PM
Yeah, that's what baffles me; I guess there's a difference in versions. Perhaps the vbcode.js file has changed recently?
<cries> My members are hurling abuse at me because the smilies don't work!
TWTCommish
05-16-2002, 10:23 PM
What version of vB are you running? Can you send me your vbcode.js file?
Fixed it!
Now, this left me really confused. I had no "vbcode.js" file at all in my root directory, only a "code.js" - but the forum still functioned perfectly! (And I never changed it :confused:)
Put a fresh vbcode.js in the root and it works fine...
lordofgun
05-17-2002, 12:21 AM
AWESOME AWESOME AWESOME!
/me clicks INSTALL!
lordofgun
05-17-2002, 01:37 AM
is ther a way to make the ($the_shoutbox) work on the forumdisplay?
TWTCommish
05-17-2002, 01:42 AM
Sure. In your forumdisplay.php file, replace this:
eval("dooutput(\"".gettemplate('forumdisplay')."\");");
...with this...
$shout = $DB_site->query_first("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 1");
$shout[timestamp] = vbdate('n-j-y, g:i:s a', $shout[timestamp]);
$shout[shout_text] = bbcodeparse($shout[shout_text]);
eval("\$the_shoutbox .= \"".gettemplate("forumhome_shoutbox")."\";");
eval("dooutput(\"".gettemplate('forumdisplay')."\");");
Whatcha got in mind, out of curiousity? I'd be interested to see where you put it. :) You'd probably want to change the HTML in the forumhome_shoutbox template, however...it's designed specifically for the mainpage, what with the colspan and all.
lordofgun
05-17-2002, 02:04 AM
THANKS BRUTHA!
i'd like to put it right above where the threads are listed. i';m not sure what kind of modifications i'll have to do...but i'm gonna play with it.
BEST HACK EVER! :D
lordofgun
05-17-2002, 02:11 AM
BTW, if anyone wants to make something like the ($the_shoutbox) for the forum display, by all means, FEEL FREE! ;)
TWTCommish
05-17-2002, 02:22 AM
Right above the threads? Yeah, I can do that. Hang on, I'll get back to you. Glad you dig the hack, BTW, though personally I think the next one I'll be releasing is even better. :D
lordofgun
05-17-2002, 02:28 AM
sweet! i can't wait!
FYI - This hack worked PERFECTLY the first time i tried to install it! Great directions, couldn't ask for more!
scsa20
05-17-2002, 02:38 AM
wait, are you guys going to make an add on for you to add a little window type thingy to the forumhome for the shoutout?? if so, that'll be cool :D
inphinity
05-17-2002, 10:31 AM
v nice hack ;)
i've found that shift clicking (open in a new window) [Reload this Page] causes IE to endlessly loop (love javascript)
to do roughly the same thing without javascript i did:
edit shoutbox.php and just near the top (11 lines down) addif ($action=="reload") {
header ("Refresh: 0; URL=$PHP_SELF");
exit;
}
then edit the shoutbox template and change the javascript reload link (_javascript_:window.location=window.location) to:
<a href="shoutbox.php?s=$session[sessionhash]&action=reload">[Reload this Page]</a>
Bald Bouncer
05-17-2002, 11:13 AM
Ive added this to my forumhome page ... is there anyway to stop getting redirected to the shoutbox page once they post? :(
TWTCommish
05-17-2002, 12:05 PM
I'm confused, Bald Bouncer: are you saying you want them to be taken back to the forums main page after they've posted a shout?
inphinity: very cool...I'll change that for the next version, for sure. :)
ceo_tfw
05-17-2002, 03:09 PM
nice shout box, I have installed it and great stuff, is there a way to view all shouts in the admin cp under mass delete
Bald Bouncer
05-17-2002, 03:20 PM
Originally posted by TWTCommish
I'm confused, Bald Bouncer: are you saying you want them to be taken back to the forums main page after they've posted a shout?
yeah thats what i was saying ;)
Vivi Ornitier
05-17-2002, 04:20 PM
Originally posted by TWTCommish
No one helped me make this hack. However, someone who I sent it to for beta testing purposes apparently made some change and is calling it "vB Shout Box 2.0" -- they sent me a copy and I'm basically trying to figure out what's going on. I certainly didn't know anything like this was going on and I'd rather not release a second version until I've added more.
the person you sent it to is Crater Seraph, who sent it to me, and i also added an edit button and an install script (pretty useless since it has a vbhacker file).
c-pr0mpt
05-17-2002, 04:45 PM
Works great bro. Now got to find some time to customize the look to match yaxay. Good job! :)
ceo_tfw
05-17-2002, 08:27 PM
I would like to show more that 1 shout on my forum is this what I put and where does it go
$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")."\";");
TWTCommish
05-17-2002, 08:37 PM
In forumhome_shoutbox replace the $shout[shout_text] variable with your $shouts variable. I think that'll do it.
ceo_tfw
05-17-2002, 08:53 PM
not sure where I put this $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")."\";");
TWTCommish
05-17-2002, 09:12 PM
That's the code you put in the index.php file instead of the code listed in the instructions. Stick it in place of that, and in the same spot. That should do it. :)
i installed this with vbhacker and it said everything installed right. but doesnt show on forumhome. and the $the_shoutbox is in forumhome.
TWTCommish
05-18-2002, 01:21 AM
Make sure it edited your index.php file successfully...and then, go shout. It needs at least one shout if it's going to display anything on your main forum page. :)
nevermind i fixed it. vbhacker didnt add the fourmhome_shoutbox
tweak
05-18-2002, 03:09 AM
I put this in INDEX.PHP and my page is now WHite. Pure white, No forum ????
Originally posted by ceo_tfw
not sure where I put this $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")."\";");
TWTCommish
05-18-2002, 03:37 AM
Is that ALL you have in your index.php file? You're not supposed to replace the entire contents of it...
tweak
05-18-2002, 04:52 AM
No no I just replaced this and the page was all white. Any reason why???
eval("dooutput(\"".gettemplate('forumhome')."\");");
Originally posted by TWTCommish
Is that ALL you have in your index.php file? You're not supposed to replace the entire contents of it...
ceo_tfw
05-18-2002, 07:48 AM
Originally posted by tweak
I put this in INDEX.PHP and my page is now WHite. Pure white, No forum ????
I put this in the index.php and I just seen the page die on me so I had to say OH ship, so I am not sure what then to do,,,,,,,
Bald Bouncer
05-18-2002, 10:16 AM
tweak you dont replace that do you?? I think it says add above that!
TWTCommish
05-18-2002, 12:40 PM
He's right: you don't remove that line. It should still be sitting there at the end of the file.
jamesdasher
05-18-2002, 03:35 PM
the line you replaced is the line that outputs the entire forumhome template, or in other words the entire page, if you delete that you won't get a page at all, you have to add it above it.
James
Sezmarone
05-19-2002, 06:21 PM
Has anybody seen an increase of server load with this hack?
Coolj
05-19-2002, 11:41 PM
I love it..
Velocd
05-20-2002, 01:11 AM
Originally posted by Coolj
I love it..
yup, there's nothing like a good increase in server load ;)
j/k
TWTCommish
05-20-2002, 01:16 AM
It uses something like 20 queries per pageload. That ain't much at all, man. :)
Jeremy W.
05-23-2002, 05:59 PM
Yet another awesome hack :D
DarkDraco07
05-23-2002, 07:31 PM
i tried to install this hack acouple times and i keep getting a white page, and its not the same as the earlier problem.
someone please help
TWTCommish
05-23-2002, 07:37 PM
You're not allowed to post any full vB files. Anyway, I don't know what's wrong...you shouldn't be getting a white page if you still have this line as the second-to-last in your /index.php file:
eval("dooutput(\"".gettemplate('forumhome')."\");");
DarkDraco07
05-23-2002, 07:40 PM
sorry, i didnt know :(
TWTCommish
05-23-2002, 07:46 PM
Um, you should probably go back and edit your post so you can remove the attachment, then. :)
Jeremy W.
05-23-2002, 07:50 PM
Chris, I just wanted to say again how truly solid this is :)
I had installed Sinecure's shoutbox and it took me 2 hours to customize it and make it work properly. I dropped yours in and bang it worked. Since users had been using Sinecure's, they were quite shocked when everything switched to the new one.
In 1 hour there have been 200 shouts. The users love it, thank you again so much! :)
TWTCommish
05-23-2002, 07:53 PM
Thanks very much - I'm glad you like it. My users love it, too. :)
Jeremy W.
05-23-2002, 08:07 PM
No worries mate, good work deserves praise :)
Any plans for upgrades? (who's shouting, etc)?
TWTCommish
05-23-2002, 08:28 PM
Yeah, I do plan, I think, to upgrade this script after awhile...assuming it continues to get this positive reaction. :) "Who's Shouting" is a very good idea...I guess it'd work a little bit like "Users Browsing this Forum"? I suppose I never thought of it because my board isn't big enough to warrant such a thing. And I've been busy with two other significant hacks. :D
I had a few other ideas, too: Comprehensive admin script to edit/delete shouts easily (perhaps in bulk for the latter?)
Who's Shouting? (good idea :D)
Shoutbox Search
Shoutbox Smilie Selector (allow admins to easily select which smilies they want below their text box)
Shouts in last 24 hours (as an admin, and user options)
Refresh intervals: allow user to select how often the page should refresh, if at all.That's all for now...a few of those are quite easy of course, but I'd rather do things in bunches. :) If anyyone else has any other suggestions, don't hesitate to speak up.
Jeremy W.
05-23-2002, 08:33 PM
Yeah, it would be just like the "Who's browsing this forum".
A few things I've noticed is that the breadcrumb doesnt' show up properly (http://www.ringquest.com/forums/shoutbox.php), and smilies don't show up in posts at all...
I'd just like to say that I'm addicted to your hacks *L* Of the 20 odd new features this week, I think nearly half were yours :) One day I need to learn PHP *L*
TWTCommish
05-23-2002, 08:49 PM
Open shoutbox.php, and find this:
eval("\$shoutbits .= \"".gettemplate("shoutboxbit",1,0)."\";");
...right before it, add this...
$shout_text = bbcodeparse($shout_text);
Let me know if that helps with the smilies. :) If it doesn't, add this:
$shout_text = bbcodeparse($shout_text, 0, 1);
That should help. I think. I hope. You probably have that line in your file already...but without the ", 0, 1" in the function call.
Jeremy W.
05-23-2002, 10:06 PM
It now reads something like:
$color = ($num++ % 2 == 0) ? '{firstaltcolor}' : '{secondaltcolor}';
$totalshouts = number_format($DB_site->num_rows($shouts));
$time_posted = vbdate('n-j-y, g:i:s a', $timestamp);
$shout_text = bbcodeparse($shout_text);
if ($bbuserinfo[usergroupid] == 6) {
eval("\$adminoptions = \"".gettemplate("shoutbox_adminoptions",1,0)."\";");
}
$shout_text = bbcodeparse($shout_text, 0, 1);
eval("\$shoutbits .= \"".gettemplate("shoutboxbit",1,0)."\";");
}
But still no smilies (from old or new posts) :(
I mean, it's not a big deal but they would add lots of "ambience" ;)
TWTCommish
05-23-2002, 10:07 PM
Try this:
$color = ($num++ % 2 == 0) ? '#F1F1F1' : '#DFDFDF';
$totalshouts = number_format($DB_site->num_rows($shouts));
$time_posted = vbdate('n-j-y, g:i:s a', $timestamp);
$shout_text = bbcodeparse($shout_text, 0, 1);
if ($bbuserinfo[usergroupid] == 6) {
eval("\$adminoptions = \"".gettemplate("shoutbox_adminoptions",1,0)."\";");
}
eval("\$shoutbits .= \"".gettemplate("shoutboxbit",1,0)."\";");
}
Jeremy W.
05-23-2002, 10:11 PM
ergh ergh ergh... :(
What am I doing wrong?
TWTCommish
05-23-2002, 10:18 PM
That didn't work either, I take it?
Jeremy W.
05-23-2002, 11:46 PM
:(
TWTCommish
05-23-2002, 11:50 PM
Ok, replace this...
$shout_text = bbcodeparse($shout_text, 0, 1);
...with this...
$shout_text = bbcodeparse($shout_text, X);
In place of "X" add the forumid number of one of your forums...one that supports bbCode. I think that'll do it. Not positive...but it's worth trying. :)
Jeremy W.
05-24-2002, 02:22 AM
Gorgeous! It worked :D
TWTCommish
05-24-2002, 02:23 AM
Excellent. :) Glad to hear it. Also in line for 2.0, assuming it gets that far: integration with the vBulletin Options page...much better if you can control the shouts per page and number of smilies generated, etc, right from the CP. It won't be too hard...but again...I'd rather bunch things a little. :)
Jeremy W.
05-24-2002, 02:25 AM
Sounds good, I'd already integrated it though :)
PHP may be new, but it's still just scripting ;)
lordofgun
05-25-2002, 05:29 AM
any idea how to get firefly's "/ me" hack to work with this?
lordofgun
05-25-2002, 05:30 AM
BTW, still lovin the shoutbox! becoming more and more popular every day!
TWTCommish
05-25-2002, 01:53 PM
Originally posted by lordofgun
any idea how to get firefly's "/ me" hack to work with this?
Yeah, just change this line (in shoutbox.php)...
$shout_text = bbcodeparse($shout_text, 0, 1);
...to this...
$shout_text = bbcodeparse($shout_text, 0, 1, 1);
lordofgun
05-25-2002, 06:30 PM
hmm...thanks...but...
when i type it on the shoutbox, i get this
* loves hockey
it doesn't show the username.
also, on the index page, it shows "/ me" instead of the username on the "latest hack" table.
any ideas??
BTW, TWT, you got a great site!
WebMasterAJ
05-27-2002, 06:49 PM
Just curious, how do I make the smilies show up on the main page of the boards. http://www.finheaven.com/boardvb2/
Note that the smilies do show up on the shoutbox page, just not the main forum page.
WebMasterAJ
05-27-2002, 07:00 PM
Also, there is an idiot on our board that likes to post LOOOOONG shouts, is there a way to make the forum home only display like the first 20 characters of the shout on the forum home?
Thanks in advance!
How do I do this part???
CREATE TABLE `shoutbox` (
`shoutid` int(11) NOT NULL auto_increment,
`userid` int(11) NOT NULL default '0',
`shout_text` text NOT NULL,
`timestamp` int(11) NOT NULL default '0',
PRIMARY KEY (`shoutid`)
) TYPE=MyISAM;
TWTCommish
05-31-2002, 01:00 AM
Ask your host for command-line MySQL access, or enter it using a MySQL script like phpMyAdmin. If that fails, just ask your host how you can execute a query on your DB.
Zombie
05-31-2002, 02:51 AM
Thanks for the hack TWTCommish
Jeremy W.
06-03-2002, 07:46 PM
Or use FireFly's SQL hack :)
Dean C
06-05-2002, 11:15 AM
This is great... it works fine... but is there any way i could have pop up (like on the random quote hack) where users can submit a shout out from the forumhome???
Thanks In Advance
- Mist
TWTCommish
06-05-2002, 12:44 PM
Yeah, it's perfectly possible...but a little bit of an annoyance. How badly do you want it?
Dean C
06-05-2002, 01:07 PM
its just a thought... i dont need it ya kno... but i'd like it as i feel it would make a good addition to this hack ...
but if ure busy i wont be heartbroken if you dont make it ;) :D
LavaNoX
06-05-2002, 05:05 PM
How do I make it so that my forum takes up 75% of the space, on the left, and the shoutbox takes up the rest of the space, on the right?
...is it possible to add a function to enable uses only to post once every 60 seconds?
Otherwise, this has made a huge impact on my board in a positive way! Thank you!
firewars
06-10-2002, 03:33 PM
Weird.
When shouting it goes to the webservers root and doesn't stay in the forums root :(
Any solutions?
TWTCommish
06-10-2002, 04:13 PM
firewars: in your "shoutbox_postshout" template, replace "shoutbox.php" in the form's action attribute with "$bburl/shoutbox.php" -- I think that ought to do it.
HLodder: use the attached shoutbox.php file to prevent users from shouting more than once every 60 seconds. It's just a primitive little thing I threw together, but it works...I think. :D All it does is ignore their shout if it's been less than 60 seconds. No error or anything...this is quick and dirty at it's best. :D
Chris,
Thanks for this. Very much appricated and now in use!!!
Cheers.
Harvey.
firewars
06-10-2002, 04:53 PM
TWTCommish:
Thanks, but before applying your fix I thought about it and then I was sure it should work as it's in the same directory, but:
There is a slash (/) before it which makes it use the directory above the $bburl-directory and thus using root.
Thanks for telling me where to look, though: it works like a charm.
Impressive hack :)
firewars
06-10-2002, 06:47 PM
Does anyone know how to change the timeformat?
I'm not talking about $time_posted, I was able to change that.
I am talking about $timestamp which is used in the forumhome_shoutbox-template.
Any idea?
TWTCommish
06-10-2002, 06:50 PM
It's simple... find this line in your index.php file:
$shout[timestamp] = vbdate('n-j-y, g:i:s a', $shout[timestamp]);
Modify the first argument passed to the vbdate() function (the text inside the single quotation marks) to a different format using the same characters you'd use for PHP's date() (http://www.php.net/date) function.
Can I ask, are you planning to release a later version of this hack and if so, can you offer any insight on what may be included?
Thanks!!!
TWTCommish
06-10-2002, 07:30 PM
Yeah, I am, but not for awhile yet. I've detailed potential features in earlier posts. I don't feel like diggin' 'em up just now, though. I'll get back to you later. :D (sorry, I'm lazy, I guess)
firewars
06-10-2002, 07:38 PM
One more thing:
How would I "echo" a letter (m) in the same function?
As the function recognizes m as a part of the datefunction and thus returns a value.
Thanks so far :)
TWTCommish
06-10-2002, 07:40 PM
Since it recognizes that letter, you'll just have to add the letter in afterwards, sorry to say. You might need two variables as a result.
firewars
06-10-2002, 07:43 PM
Any idea how to? ;)
Sorry for keeping asking you, I appreciate your help :)
TWTCommish
06-10-2002, 07:46 PM
Nevermind, my mistake: just put a backslash before the "m" and it should be treated literally.
firewars
06-10-2002, 07:47 PM
Thanks, it works like a charm :D
Tech_Koss
06-11-2002, 05:40 AM
sorry .....I realise this hack is a bit old, but I need some help.
Is there any way where I could limit the amount of words/letters and smillies used in a shout-out ???
Unfortunately there are some people that abuse the function, and I hate to remove this wonderful hack because of those very few people.
-thanks in advance!
TWTCommish
06-11-2002, 11:30 AM
Actually, this hack is less than a month old. :)
Yes, you could limit the total number of characters in each shout. How many characters would you like to limit it to?
firewars
06-11-2002, 11:47 AM
Could you just tell me/us the code so we can define the max. chars ourselves?
Thank you :)
TWTCommish
06-11-2002, 11:49 AM
*sigh* You can define it yourselves anyway, but I'd rather have an actual digit to stick there for now, which you can then modify at your leisure.
Whatever...I'll just wing it.
firewars
06-11-2002, 12:23 PM
Something between 500 and 750 maybe?
Tech_Koss
06-11-2002, 03:54 PM
awesome thanks! :)
how bout 2 smilies and 300 characters/letters. Would that be possible?
TWTCommish
06-11-2002, 03:58 PM
The character limit is easy enough, but the smilie thing is not. I just don't know that part of the system well enough.
Tech_Koss
06-11-2002, 04:15 PM
then i guess i should remove the smillies. but thats alright.
would I have to edit the shoutbox.php to do that?
TWTCommish
06-11-2002, 04:22 PM
That depends on what you mean. Do you want to just remove the clickable smilies, or do you want the vB Code parsing turned off?
Tech_Koss
06-11-2002, 04:48 PM
i would like the vB Code parsing turned off. that way if people type : ) (without the space) then the smillie wouldnt appear.
but since the vB Code parsing is turned off, then there is no reason to have the smillies on the page, since they cant be used.
so i guess I would have to remove both of them.
TWTCommish
06-11-2002, 04:51 PM
Well, it'll turn off ALL vB Code parsing, just so you know. Not just smilies.
Anyhoo, open shoutbox.php and REMOVE this:
$shout_text = bbcodeparse($shout_text);
Then, in your shoutbox_postshout template, find, and REMOVE, the following:
<br/>$smiliebits
That should do it.
Tech_Koss
06-11-2002, 05:06 PM
thanks that did it! :)
Hoffi
06-12-2002, 09:24 PM
Hi,
I am just testing out vbportals, and in this case i want to see the last 10 Shouts and maybe a "Quick-Shout-Box" at the End of a Box.
Has someone got this working or any Idea?
Lionel
06-16-2002, 01:34 AM
the best shoutbox out there! I can't believe I missed it!
Lionel
06-16-2002, 07:26 PM
ability to make a shout sticky! For example today is father day, I'd like to wish happy fathers day to all the dads members and keep that up all day long on front page. Once you unstick, then the last one takes over :classic:
TWTCommish
06-16-2002, 07:37 PM
Excellent idea. I'll write that down for the next version. Coolness. :cool:
camoboy
06-17-2002, 12:23 AM
Just like to say this is an excellent add-on for vB, the users love it ;)
but there is a small issue I discovered today; I was reprimanding a few users for spamming on it and my shout took longer than 180 seconds to type...of course the page refreshed and I lost everything I had typed
Easy to fix I know but something you might want to remember for future versions...but as I said, good stuff :D
FleaBag
06-19-2002, 07:05 PM
Upgraded to 2.2.6, all working perfectly, thanks again Chris! :)
Limpkinw
06-21-2002, 04:26 PM
When users submit a shout it is submitting 20+ times please help!!!!
TWTCommish
06-21-2002, 04:43 PM
That sounds like either a problem with your server, or your users are just hitting the button again and again, because no one else has reported such a problem and I don't see how it has any bug that would produce such a result.
Limpkinw
06-21-2002, 04:50 PM
Well I am the only one who shouted so far...would u like to check it out?
www.limpkinw.com
user
lwtester
pass
forumtest
also when submitting a shout the page seems to time out, some type of loop seems to be occuring here....
I was able to fix the multiple posts but adding a new shoutbox.php that limits shouts to 60 seconds but the time out is well...annonying :(
Thank you very much for the help!
TWTCommish
06-21-2002, 04:54 PM
Well, you can take the refresher out altogether.
Anyway, I'm virtually positive that this is a server issue of some sort...I don't see how the script could be at fault, really.
Limpkinw
06-21-2002, 04:58 PM
OK any idea how it woudl be a server issue? and if so how to fix...maybe a reboot would help?
TWTCommish
06-21-2002, 05:07 PM
I really don't know, that's not my forte. I'd recommend asking your host.
Limpkinw
06-21-2002, 05:09 PM
See thats the thing I am the host :( I guess I will keep on pluggin away here. Thanks a lot for helping!
Oldfart
06-22-2002, 03:37 AM
but I can't locate it.
I put the vbhack.php and the shoutbox.hack.php in my /forums/admin directory. Then I put the admin_shoutbox.php in the admin directory also.
I put the shoutbox.php in my /wwwroot /forums directory.
Then I ran the vbkacker.php.
I got warnings that i'm trying to install on an later version then 224 but I went ahead anyway. It looked like everything installed alright. But i had to edit the index.php file manually.
So... now I'm looking for the shoutbox and I can't find it anywhere on my forums.
I went into phpMyAdmin and ran a query and the databases are installed correctly according to the report but I can't see the shoutbox. :)
I must be doing something wrong or forgotten something I think.
If someone could take a look at my test forum and tell me whats wrong i'd appreciate it very much.
http://bobmc.net/forums
TWTCommish
06-22-2002, 12:04 PM
Your Shoutbox is right here. :)
http://www.bobmc.net/forums/shoutbox.php
Oldfart
06-22-2002, 02:20 PM
LMAO!
I thought there was a link to it somewhere on my main forum no wonder I couldn't find it.
Is there a way I can put up a button link and make it showup in the forum jump menu by any chance? I just want to make it easier for my members to get to. :)
I'm very php impaired, but learning...
Thanks, Oh! great hack BTW! ;)
TWTCommish
06-22-2002, 02:24 PM
Well, part of the hack allows you to add the latest shout (with a link to the shoutbox) on your forumhome page...however, I don't think that part is done automatically by the vBHacker file...so you may have to use the plain text instructions for that step.
Oldfart
06-22-2002, 02:32 PM
Hmm, I just tried to use the shoutbox and when I press the shout button I get a "page cannot be found" message.
Any ideas?
TWTCommish
06-22-2002, 02:42 PM
Yes. Open the shoutbox_postshout template and replace this...
action="/shoutbox.php"
...with this...
action="$bburl/shoutbox.php"
Oldfart
06-22-2002, 03:06 PM
Thanks ! that worked great.
One other thing. When I try to get into the admin_shoutbox.php it asks me for my username and password. I put the username and password I use for my forum admin CP in the boxes and click ok when I do I get a message telling me its the wrong password. Is there a way I can change this?
Thanks again!
TWTCommish
06-22-2002, 03:09 PM
Are you sure you're not mistyping the password? If you are, I'd login via your CP FIRST, and then go to the file...and all should work just fine. :)
Oldfart
06-22-2002, 03:22 PM
Ya I was typing the correct password. I was able to get in via the admin CP. So the only admin options right now are "delete post older than" I guess.
I found the jumpforum hack i'll be installing that right quickly.
I noticed when I post a shout it doesn't display the right timestamp. But it displays the correct timestamp right above it on the titlebar. Is there any fix for this maybe :)
TWTCommish
06-22-2002, 03:26 PM
Hmm, perhaps I forgot to use the user's time offset for both...but I don't remember that being the case. And yes, the admin options are very limited right now...it's just for pruning, basically.
Oldfart
06-22-2002, 03:48 PM
So there's no fix for the incorrect timestamp on shout messages?
Oh well its a great hack, thank you very much for putting your time and effort into this I appreciate it. ;)
DOH!!! never mind the timestamp works perfectly. I had my time offset incorrectly set. :)
Thanks again
TWTCommish
06-22-2002, 03:51 PM
Open your shoutbox.php file and replace this...
$time_posted = vbdate('n-j-y, g:i:s a', $timestamp);
...with this...
$time_posted = vbdate('n-j-y, g:i:s a', $timestamp - $timeoffset);
That should do it. I think. I hope. :D
Oldfart
06-22-2002, 03:55 PM
Sorry I edited my last post to let you know I made a mistake.
I didn't have my time offset correctly set in the forum. :)
Sorries ;)
Oldfart
06-22-2002, 03:58 PM
Oh one last thing.
Is it possiable to make a button link for the shoutbox on my forum mainpage like the foum buttons at the top of the forum screen.
If so which template of .php file would I edit
Oldfart
06-22-2002, 04:37 PM
Ok I tried to put the link on the bottom of my forum main page like you have it on your forum. But it doesn't show up at all on my forum.
I also tried to locate the plain text hack for it in the install_shoutbox.txt and all i found was the forumjump hack. Where can I locate the link hack please?
Enjoy Marcus
06-28-2002, 05:01 PM
Originally posted by TWTCommish
Sure. In your forumdisplay.php file, replace this:
eval("dooutput(\"".gettemplate('forumdisplay')."\");");
...with this...
$shout = $DB_site->query_first("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 1");
$shout[timestamp] = vbdate('n-j-y, g:i:s a', $shout[timestamp]);
$shout[shout_text] = bbcodeparse($shout[shout_text]);
eval("\$the_shoutbox .= \"".gettemplate("forumhome_shoutbox")."\";");
eval("dooutput(\"".gettemplate('forumdisplay')."\");");
Whatcha got in mind, out of curiousity? I'd be interested to see where you put it. :) You'd probably want to change the HTML in the forumhome_shoutbox template, however...it's designed specifically for the mainpage, what with the colspan and all.
hi, i have done this but it still doesn't show up on my main forum page...? :(
TWTCommish
06-28-2002, 05:31 PM
Did you add the forumhome_shoutbox template, and the $the_shoutbox variable to the forumhome template?
Enjoy Marcus
06-28-2002, 05:35 PM
ahh that was the problem, i never added the forumhome_shoutbox, thanks alot dude. really nice hack btw
Enjoy Marcus
06-28-2002, 07:22 PM
argghhh, i got the hack working great on my test board, but on my main board the smilies don't wanna work, help! i also tried changing the code like you suggested to Jeremy W
Wildthinks
06-28-2002, 08:38 PM
On my Opera works fine, but when I use mozilla or IE (6.x) ... after click "shout now" I get a Dowenloadbox for Shoutbox.php and in mozilla I see cryptical text...
any hints, whats wrong?
try it here: http://swishzone.net/vb/shoutbox.php
Hi,
I wonder if anybody can help with this great hack!
I have some users that are actually using the "Shoutbox" as a chatroom! Intresting reading but it is really annoying some other members.
Can I restrict users from posting if their user ID is X or Y?
Thanks.
TWTCommish
06-29-2002, 12:42 PM
Sure. Right BEFORE this...
if ($bbuserinfo[usergroupid] == 10 && $action == 'delete' && $shoutid) {
$DB_site->query("DELETE FROM shoutbox WHERE shoutid = $shoutid");
header("Location: shoutbox.php");
}
...add this...
if ($bbuserinfo[userid] == X || $bbuserinfo[userid] == Y) {
header("Location: index.php");
}
Replace X and Y with the userids you want to block, and those users will just be redirected back to the board's index when they try to load the Shoutbox. :)
Surperb! Thank you for this and also the extremely quick response!
Wildthinks
07-01-2002, 05:08 AM
the problem is still going on...anybody can help me?
I have create a account
User: guestvb
PW:guestvb ,
so you can try it. :bunny: :dead:
Plz help me...
Originally posted by Wildthinks
On my Opera works fine, but when I use mozilla or IE (6.x) ... after click "shout now" I get a Dowenloadbox for Shoutbox.php and in mozilla I see cryptical text...
any hints, whats wrong?
try it here: http://swishzone.net/vb/shoutbox.php
Dyntheos
07-01-2002, 05:22 AM
First up love this hack.
some problems Iam experiencing.
1) Smilies. I have tried all the suggestions in this thread to fix them but the bbcode for smilies does not work. all other bbcodes do though, so you can post images using [img] and that's how members are posting smilies at the moment.
2) The width of the text in the output box when posted only stretches half the screen yet you can lengthen, down the page, the output through a post, to basically stretch the forum in length. Currently the box is at the bottom of the forums due to this.
What I would like to do is add it to the top but have it only take up half the width of the page, and have the length of a post limited in its display, possobly using a scrollbar to view it all.
I have my users browsing the forums at the top of the page and would like to have that and the shoutbox side by side in their own category, yet the length of the shout box limited on the forum home, so as it won't screw with the formatting.
any ideas?
My forums are here http://forums.relicnews.com/
It's only visible on the "purplehaze" skin tho as we're testing it out at the moment. The quickskin selector is at the bottom of the forumhome to view the shoutbox.
Dyntheos
07-01-2002, 08:28 AM
gah I have the smilies working but I have html code popping out everywhere
w00t fixed the code aswell.
in the previous post that stated too add this
$shout_text = bbcodeparse($shout_text,X);
above this
eval("\$shoutbits .= \"".gettemplate("shoutboxbit",1,0)."\";");
I did this exactly.
what fixed it was to actually replace the instance of
$shout_text = bbcodeparse($shout_text);
above this code (some lines above) with $shout_text = bbcodeparse($shout_text,X);
In essence I was basically duplicating a line of code instead of replacing it.
Dyntheos
07-01-2002, 08:59 AM
sorry for all these follow up posts but Iam still trying to work this out.
when i posted above i was only refreshing the actual shoutbox page.
all is working fine there, iam not getting smilies to show in the forum home display.
TWTCommish on your forums shout box your colors and backgrounds are perfect with your forum but when i installed this the colors and back grounds wernt at all right with the rest of the forums i have inserted a pick of your shout box.
mine as i stated before are messed up
like the cats bagrounds and the borders and cfont colors. i was wondering if you can post the fixes to this if not i will end up figuring it out after awhile
heres a pick of mine i circled whats wrong with it
TWTCommish
07-01-2002, 01:19 PM
Well there's nothing to be fixed really: vB Shoutbox uses YOUR settings and colors for categories and table headers to create its look and feel. It's all in the templates.
Dyntheos: replace the "X" with a number of one of your forums, bud. :)
i have attempted to change the look of the shoutbox template but it always gets messed up.
i am trying to get the border to show instead of it only being the pagebg
johnr
07-01-2002, 07:24 PM
My members will love this hack, Maybe they'll say more than "Come to chat (username)" :D
How can I split it from my welcome panel (If you want to see what I mean visit www.weakestlinkforum.com).
find $shoutbox in forum home and put a <br> in front of it
Dyntheos
07-01-2002, 11:53 PM
TWT: I had done that and replaced the variable with a 4.
How do I have the last five shouts diplayed on the forum home? I saw a post on page one by someone but it was impossible to follow.
tweak
07-02-2002, 07:28 AM
My latest shouts arent changing??? it reamains on the first shout posted when shown on my forum home.?
Schorsch
07-05-2002, 03:13 AM
when I'm trying to shout something and click on Button "Shout Now!" a HTTP 404 NOT FOUND error site appears!! BUT when i manually get back to shoutbox.php I can see my shout!!!
I still changed in shoutbox_postshout template from "/shoutbox.php" to "$bburl/shoutbox.php" but the error stays.
also when I wanna delete a shout a HTTP 404 NOT FOUND error site appears!!
whats wrong ??
I have vB 2.2.6, you can test it HERE (http://www.fetter-esel.com/vB/shoutbox.php), User: testman pass: testman
thanks in advance,
Schorsch
Schorsch
07-05-2002, 02:08 PM
plz I need help...this hack is so amazing...thanks!!
Schorsch
alanvo
07-05-2002, 03:38 PM
help me please!!!
I cannot execute the sql query that I have to run. it wouldnt let me, is there another way i can do this. Please help...
alanvo
07-05-2002, 03:43 PM
got it, thanks
Units
07-06-2002, 01:23 AM
Would anyone be able to release a template for this shoutbox? I have mine customized currently, But it looks kinda sloppy :( lol
Schorsch
07-06-2002, 04:35 AM
that is really boring :( I also tried it to reinstall it with vBhacker, but same error!! always HTTP 404 NOT FOUND page!
somebody got this hack working with 2.2.6 ??
and is there no support anymore on this hack or why is nobody answering ?
I'd appreciate any help!!!
regards,
Schorsch
Schorsch
07-07-2002, 04:34 PM
Hello!!
could somebody help me with this HTTP 404 PAGE NOT FOUND error? I badly need this damn good hack :bunny:
I really don't understand this error, because when I press F5 (refresh) the shoutbox.php appears!!!
what could be the error ?? CHMOD ??
thanks,
Schorsch
Limpkinw
07-07-2002, 11:27 PM
same thing here and submit is really slow...it used to suibmit 17 shouts but I did the update to limit to one
Schorsch
07-08-2002, 06:58 PM
is TWTCommish in vacation or why isn't he answering ?
come on...please help me :p
thanks,
Schorsch
TWTCommish
07-08-2002, 11:58 PM
Vacation? Uh, no. :) If I were on vacation, I'd spend more time here...I'm spending time on my job, buddy. :)
Anyway, in the "shoutbox_postshout" template, find this:
<form action="shoutbox.php">
...replace it with this:
<form action="$bburl/shoutbox.php">
Schorsch
07-09-2002, 12:04 AM
I already did this step in template shoutbox_postshout
I still changed in shoutbox_postshout template from "/shoutbox.php" to "$bburl/shoutbox.php" but the error stays.
but the error appears :nervous: plz help
u can see the error on my board, goto http://www.fetter-esel.com with user: testman password: testman
thanks for tips,
Schorsch
TWTCommish
07-09-2002, 12:10 AM
The problem is your "bburl" variable contains "http://www.fetter-esel.com/vv" instead of "http://www.fetter-esel.com/vB"
Schorsch
07-09-2002, 12:13 AM
where can I change this ?
TWTCommish
07-09-2002, 12:14 AM
It's one of the first settings on the vBulletin Options page in the Admin CP.
Schorsch
07-09-2002, 12:18 AM
but this is correct!!
URL
URL (with no final "/") of the BB. Do not include "/index.php" on the end! Your URL should look something like this: http://www.example.com/forum
http://www.fetter-esel.com/vB
TWTCommish
07-09-2002, 12:21 AM
Something's obviously wrong. Your URL is apparently set to this:
http://www.fetter-esel.com/vb
And as you can see, that won't work:
http://www.fetter-esel.com/vb/shoutbox.php
The B, however, when capitalized, works just fine:
http://www.fetter-esel.com/vB/shoutbox.php
Schorsch
07-09-2002, 12:27 AM
I know that it must be vB and not vb, but what is wrong ? what do I have to change ?
regards,
Schorsch
TWTCommish
07-09-2002, 12:27 AM
I told you. :) Go to the vBulletin Options page, and change the forum's base URL to http://www.fetter-esel.com/vB
Schorsch
07-09-2002, 12:38 AM
but it already IS http://www.fetter-esel.com/vB
please take a look at my attachment.
regards,
Schorsch
TWTCommish
07-09-2002, 12:39 AM
It sounds like it might be a cache problem. Try clearing your cache and then submitting...
...I tried shouting, and I got the 404, and it did NOT come up alright after refreshing.
Schorsch
07-09-2002, 12:49 AM
that could be with the cache, but look at the screenshot the url is right!
and my Base URL in vBulletin Options is also right (look at the attachment).
so what else could be the fault ?
regards,
Schorsch
edit: I cleared my cache and after pressing F5 shoutbox.php appears...it's definitly in the right directory www.fetter-esel.com/vB/shoutbox.php
Schorsch
07-09-2002, 10:32 PM
any ideas ?
thx
Schorsch
TWTCommish
07-09-2002, 11:35 PM
No, no ideas. Quite frankly I'm stumped as to how this is even possible.
Schorsch
07-09-2002, 11:59 PM
:( :( :( I wonder that I'm the only one with this problem :surprised:
Schorsch
07-11-2002, 01:21 AM
so please can you help mit with this forwarding, so that after pressing "shout now" I get forwardet to vB/index.php ?
the main issue is that no HTTP 404 error site appears...
THANKS in advance!!
regards,
Schorsch
pjgoncalves
07-11-2002, 12:49 PM
Originally posted by Schorsch
so please can you help mit with this forwarding, so that after pressing "shout now" I get forwardet to vB/index.php ?
the main issue is that no HTTP 404 error site appears...
THANKS in advance!!
regards,
Schorsch
I have the same problem.. when i click on 'shout now' it redirects to a 404 page :(
pjgoncalves
07-11-2002, 01:02 PM
working now.. :)
i changed form action="/shoutbox.php" to form action="$bbtile/shoutbox.php"
tks for the Shoutbox :D
globalwin
07-11-2002, 01:19 PM
anyone know how I can add this to Who's Online so it shows that people are in the shoutbox when people look at whos online?
Originally posted by globalwin
anyone know how I can add this to Who's Online so it shows that people are in the shoutbox when people look at whos online? Use Firefly's hack. It's excellent:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=32849
Heineken77
07-15-2002, 10:00 PM
Hi :)
Great hack, I love it!!!! Just a couple questions:
My shoutbox is located at the top of the forum http://nba2k3.net/forum/index.php. How would I go about changing: The Shoutbox - Latest Shout to match my other forum category colors? If you go look at it, you'll see that bar is Black with Lime color fonts. I would like to have that changed to Lime background color and Black colored fonts. Also, How could I change the color of the fonts in the actual shout alone if I wanted to?
I still can't seem to figure out how to have the Shout posted to the top of each sub-forum, rather than just the main forum page:( Can anyone help me with this?
Finally, what template is it that I change where the shout bar at the top of my forums are shown? Say for example I wanted to move it to the bottom.
Oh .. and by the way...what does the shoutbox_hack.php file do and where am I supposed to upload it?
Thanks very much!! :) I love this hack :)
Heineken
TWTCommish
07-16-2002, 06:27 PM
I'd like to respectfully ask the people reading this to PLEASE keep all requests for support within this thread...I cannot offer support via email, PM, or IM. If I did, it wouldn't be long at all before I found myself spending more time troubleshooting with people than I I'd spent on the hack itself, by far.
Read the instructions included with the hack, and read through the thread if need be.
Thank you. :)
Schorsch
07-18-2002, 02:34 AM
I solved my problem (getting an "HTTP404 page not found" error site after pressing shout button)!!!!!! :) :)
in shoutbox.php I replaced
header("Location: $PHP_SELF?s=$sessionhash[sessionid]");
with:
header("Location: shoutbox.php?s=$sessionhash[sessionid]");
nevertheless I would like to know where the exact fault is located, why doesn't work this $PHP_SELF thing with the shoutbox on my board ??
thanks,
Schorsch
Limpkinw
07-18-2002, 02:50 AM
This works for my problem also thanks!
Originally posted by Schorsch
I solved my problem (getting an "HTTP404 page not found" error site after pressing shout button)!!!!!! :) :)
in shoutbox.php I replaced
header("Location: $PHP_SELF?s=$sessionhash[sessionid]");
with:
header("Location: shoutbox.php?s=$sessionhash[sessionid]");
nevertheless I would like to know where the exact fault is located, why doesn't work this $PHP_SELF thing with the shoutbox on my board ??
thanks,
Schorsch
musicfreak12399
07-18-2002, 03:27 AM
Hey TWT. I love this hack, and so dont my members. BUT, when ever you click shout, it refreshes Page cannot be found, and it does that for the whole site, not just the shout box. Has this happened to ne one? and how do i fix it? ive tried re-installing it, but i dont see how i coulda messed up seeing as i just copied and pasted.
Thanx
Schorsch
07-18-2002, 03:28 PM
do you mean that a "HTTP404 page not found" site appears after pressing Shout button ????
if yes watch my above post, I had the same problem, but fixed it.
regards,
Schorsch
I am getting ready to actually install this hack, but I had one question before I did it.
You know how the shoutbox is Vertical like so:
||
||
||
||
||
Is there a way to make it so it's horizontal, and multiple shouts can be seen across the top of the forum homepage like:
===========
(can't think of any other way to display what I mean) :D
Sue
Edit: One more Q . . . any way to show the Shoutbox in an index.html page? I'm not too great at doing things like that :cross-eyed:
slazareth
07-19-2002, 08:18 PM
Hey TWT,
I was wondering how I can make it so I can delete shoutbox posts. I am the admin, but I don't see the delete button...I am userid 1...so what should I do?
Thanks!
dprice
07-20-2002, 10:55 PM
The hack posted by someone to show the last X shouts does not work:
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")."\";");
Any other solutions?
Kars10
07-21-2002, 06:34 AM
Hello Chris!!
This Hack is one of the greatest ive seen here on VB.org.
I installed it not with vbhacker (pure manually) and it worked beautiful!!
My Users like it much and me to.
Thank u very very much.
I klick installed!! ;)
Kars10
07-21-2002, 07:34 AM
Hello Chris!
I forget something: i using the vbindex-hack. Is there a way to put the latest shout on this site?? I think the change on the index.php in your hack must be done also on the "Vbindex-Site". But what else must i do?? :confused:
shovel
07-22-2002, 01:16 AM
Hey Chris. Would you mind if I upgraded this hack? I've added many new options to my own creation like an installer, Shout Edit, Shoutbox Moderators, and more. I respectfully still acredit your original work. What do you think?
Originally posted by Sue
I am getting ready to actually install this hack, but I had one question before I did it.
You know how the shoutbox is Vertical like so:
||
||
||
||
||
Is there a way to make it so it's horizontal, and multiple shouts can be seen across the top of the forum homepage like:
===========
(can't think of any other way to display what I mean) :D
Sue
Edit: One more Q . . . any way to show the Shoutbox in an index.html page? I'm not too great at doing things like that :cross-eyed:
anyone? bueller? bueller?
:confused:
Kars10
07-28-2002, 02:27 PM
*bumb*
Erwin
07-28-2002, 10:41 PM
Suggestion: Users Browsing Shoutbox (at the top of the Shoutbox page) - requested by my members. :)
This is a great hack by the way. Thanks!
Erwin
07-30-2002, 08:07 PM
Has anyone managed to figure out how to limit the number of smilies in shouts? I have users piling on 50 smilies at once in the shouts, which really stuffs up the index page. :)
Erwin
08-01-2002, 02:53 AM
Okay, I went ahead and figured out how to limit the number of smilies in each shout to 5.
In shoutbox.php, find:
if ($type == 'shout' && $comment_submit && trim($message) != '' && $bbuserinfo[userid] > 0) {
Directly underneath, add:
$parsey = bbcodeparse($message, 0, 1, 1);
if (countchar($parsey,"<img")>5) {
eval("standarderror(\"".gettemplate("error_toomanyimages")."\");");
exit;
}
Change the number 5 to any number you want for your shoutbox. It works well! :)
Schorsch
08-01-2002, 03:05 AM
Danke Erwin funktioniert wunderbar :)
-------------------------------------------
Thanks Erwin works fine :)
cu
Schorsch
Heineken77
08-01-2002, 10:44 PM
Can I ask a huge favour? :D
I am attatching a picture of what my forum index looks with this post...see below :)
Now what I want to do:
1 - get the heading you see above the shoutbox: Forum/Posts/Threads/Last Post/Moderator to be moved right above and stick to the top of the first category of my forum.
2 - Have the shoutbox section ((that would be The Shoutbox - Latest Shout bar ... and the bar below it that has the poster's name and shout in it)) to stick to the bottom of the Private Messages bar you see in the attatched screenshot. And then leave a space between it before the Forum/Posts/Threads heading begins.
3 - I would also love to have The Shoutbox bar look the same as the Private Messages and Important Announcement Categories look on my forum. Rather than having the background Black and the writing Green :(
Is there anyone who could help me on this one please? :(
Kars10
08-03-2002, 06:09 PM
Hello heineken. I think you did not exactly what the manual says.
Normaly it would look like the PM-Bar.
In which template did you place "$the_shoutbox" ?
This must be addet to forumhome-template..directly after $pminfo
Hope that fixed youre Problem... ;)
BlackTiger
08-03-2002, 06:15 PM
begin 666 Re_ Your post was processed and added! Re_ Your post was processed and added! Re_ Your post was processed and added! Re_ Your post was processed and added! Re_ What Styles are we All using .eml
M2&]I:&]I+@T*#0I):R!B96X@965N('!A87(@=V5E:VIE<R!M970@=F%K86YT
M:64N#0I(970@:V%N(&1U<R!E=F5N(&1U<F5N(&5E<B!J92!E96X@86YT=V]O
M<F0@:W)I:F=T+@T*06QS(&AE="!V<F%G96X@>FEJ;B!O=F5R('-A=&5L;&EE
M="!O9B!S871E;&QI=&5F=6XL#0IS8VAR:6IF(&1A;B!D96YK=&5N:T!S871E
M;&QI=&5F=6XN;W)G(&5E;B!B97)I8VAT:F4N#0H-"DES(&1I="!B97)I8VAT
M('-P96-I86%L(&)E9&]E;'0@=F]O<B!M:6H@>F5L9BP-"F1A;B!K<FEJ9R!J
M92!V86YZ96QF(&5E;B!A;G1W;V]R9"!A;',@:6L@=&5R=6<@8F5N+@T*#0I4
8;W0@>FEE;G,N#0H-"D)L86-K(%1I9V5R
`
end
Kars10
08-06-2002, 10:53 AM
Hello Guys
@ Post 80, the same Problem to me.
I need also the Username with the *.
Please help me!! :)
NexDog
08-06-2002, 01:43 PM
The hack rocks.....
Bit of a basic question, but how do I change the colour of the bar the shoutbox is on, on the index page. It seems to have taken the wrong variable. If you look on our forum, the shoutbox is set on dark blue, would be better if it was purple like the forum categories......
TWTCommish
08-06-2002, 01:50 PM
Actually, it's not the "wrong" variable -- it's designed to take on the table head color, rather than the category color. If you want to change that, though, find all instances of this...
{ tableheadbgcolor }
in your forumhome_shoutbox template...and replace them with this...
{ categorybackcolor }
...then, replace the instances of this...
{ tableheadtextcolor }
...with this...
{ categoryfontcolor }
Of course, remove the spaces. :)
Kars10
08-06-2002, 03:53 PM
@ Twt, why you answer not to my questions??
I ask something...nothing happends.
Someone else asks and get the answer from you.....:confused:
TWTCommish
08-06-2002, 03:58 PM
I don't know if you realize this, but I do this in my spare time, and there are about a DOZEN questions that are unanswered. I just get to them whenever I can...and I tend to address the easy ones off the top of my head right away.
Tok Muda
08-06-2002, 04:31 PM
Hello,
Is there a way to disable the html codes? my users
had mess up my shoutbox using html on their shouts?
thanks ...
Kars10
08-06-2002, 04:41 PM
@ Twt, i know this.
Wonder after Post 80, the user asks the same then me.....has the same problem than me, nothing frome you comes....
I mean i am not a hacker, i just use the work from the hackers here (also from you), but if in my Forum a user asks something, and i donĀ“t know the answer i let him know.
Sorry .....
NexDog
08-07-2002, 04:07 AM
Thanks TWT. Actually, the dark blue is starting to grow on me. :)
NexDog
08-07-2002, 04:24 AM
Hey, how can I list the last 5 shouts on index instead of just having one? A scroll would be even better. :D
RenzukenX
08-08-2002, 05:25 PM
I'm having a very small problem, but a problem none the less.
My forums are situated in a directory (Ie www.example.com/forum) and everytime someone goes to post a shout it goes to the main directory (www.example.com).
What do I need to edit to fix this?
Jadelit
08-09-2002, 10:11 AM
Ok I looked at all the posts, and did some of the fixes, but when I try to submit it just idles for about 30 seconds and then displays a 404. Then when I go back to */shoutbox.php it shows about 27 posts.
Any help I would appreciate!
<a href="https://vborg.vbsupport.ru/showthread.php?postid=273727#post273727" target="_blank">https://vborg.vbsupport.ru/showt...727#post273727</a>
read that post m8 and it does work
u got the url problem thats all
RenzukenX
08-09-2002, 11:03 AM
No that doesn't seem to work.
My shoutbox is located at www.coalitionforums.com/hyperuppercut/shoutbox.php
and whenever a shout is submitted it still tries to go back to the main directory www.coalitionforums.com
after i hit the submit button to post a shout i got the page not displayed all time so if i went back and refreshed the shout had been added but the url was wrong once it had been submitted so i found all instances of where the url was pointing to and changed them to my current dir as mine is not in a vbb folder and i think this threw it a bit.
NexDog
08-09-2002, 11:40 AM
Originally posted by NexDog
Hey, how can I list the last 5 shouts on index instead of just having one? A scroll would be even better. :D
I know you want to help me. Can't you feel the urge? ;)
Sadie Frost
08-12-2002, 07:23 PM
Originally posted by Mr_P
after i hit the submit button to post a shout i got the page not displayed all time so if i went back and refreshed the shout had been added but the url was wrong once it had been submitted so i found all instances of where the url was pointing to and changed them to my current dir as mine is not in a vbb folder and i think this threw it a bit.
I had the same problem. So I had to go through all the shoutbox templates and where the path was forums/blahblah.php, I changed it to just blahblah.php
:)
Okiewan
08-18-2002, 08:06 PM
The smilie issue has to do with an installed hack, wish I could remeber the name of it, but it's the one that modify's vbcode.js .... causing smilies to be inserted where the curser is, rather than the end of the post text.
I put the original version back in and the smilies work. It would be SWEET if the shoutbox could use the modifed file, inserting smilies is a LOT nicer with that hack.
NexDog
08-19-2002, 02:00 AM
Be great to have a scoller for the shoutbox or at least show the last 3 shouts on index.php.......
My page is empty after I post a shout. It only shows the number of shouts for me which adds 27 shouts to each one I post, yet it doesn't show the shouts at all like it should. It only shows the newest shout on the main page.
What can be wrong here?
Odil
Webmasta XT
08-19-2002, 06:01 PM
my lastest shout on ForumHome, doesn't display the smilies... it displays the smilies in the shoutbox.php but not on forumhome.. WHY? help..
TWTCommish
08-19-2002, 06:25 PM
Open index.php. Replace this:
$shout[shout_text] = bbcodeparse($shout[shout_text]);
...with this...
$shout[shout_text] = bbcodeparse($shout[shout_text], X);
Replace "X" with a forumid number of one of your forums that allows vB Code parsing. :) That should do it.
NexDog
08-19-2002, 11:39 PM
Hey TWT,
I definitely saw a forum that had your shoutbox with a scroller on the home page. How is it done? If that is a bit hectic, how to post the last 3 shouts instead of one???
Webmasta XT
08-20-2002, 03:31 AM
thnx TWT, this hack rules!
Googa
08-21-2002, 03:48 PM
Originally posted by RenzukenX
No that doesn't seem to work.
My shoutbox is located at www.coalitionforums.com/hyperuppercut/shoutbox.php
and whenever a shout is submitted it still tries to go back to the main directory www.coalitionforums.com
Just fixed this problem for myself.
Go into the template "shoutbox_postshout", and find:
<form action="/shoutbox.php" method="post" name="vbform">
and replace it with:
<form action="/shoutbox.php" method="post" name="vbform">
That'll do it nice and easy :)
Erwin
08-22-2002, 12:30 AM
The 2 lines of codes in your post are the same. You meant to say to remove the "/" before the "shoutbox.php". :)
HI
When I try out the board by posting a shout, it posts the one shout about 23 times. What could be the problem?
Odil
yzztik
08-22-2002, 12:02 PM
Is there any admin options other than delete one shout at a time? Any way to cleanout out the shoutbox?
Googa
08-22-2002, 03:32 PM
Originally posted by Erwin
The 2 lines of codes in your post are the same. You meant to say to remove the "/" before the "shoutbox.php". :)
lol, yea - silly me ;)
jbear6
08-22-2002, 11:39 PM
Great Hack! I love it!
I have one question though, when I bring up shoutbox.php, under the test shout I made, I have a "tr>" typed in like I made a mistake copy pasting something somewhere. Anyone have any idea where I could have made this mistake, like in which template (I hate to totally reinstall due to my carelessness)?
Thanks
Jbear6
Googa
08-23-2002, 06:07 PM
I just tried to install this on another board (not my test), and I can't get the shoutbox to display on index.php. Nothing at all shows up.
What can be wrong here?
thanks in advance...
Googa
08-23-2002, 07:10 PM
Doh. Fixed the problem.
index.php wasn't uploading correctly.
Webmasta XT
08-27-2002, 02:01 PM
i installed this hack
https://vborg.vbsupport.ru/showthread.php?s=&threadid=24033&highlight=shoutbox
and now my shoutbox smilies don't work, but the smilies of the whole forum work.. help plz..
Gohan
08-29-2002, 01:13 AM
shoutbox like as spammer message?
NexDog
08-29-2002, 02:12 AM
errrrm.........
LightBringer
08-29-2002, 03:33 AM
Any advice on how to incoprorate this into the vbindex hack that NTLDR put out? :) I think it would look great on a front page in a vertical column.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.