PDA

View Full Version : Shoutbox Hack - 1.0 Gamma 1 (Outdated -> RC1 in Full Releases)


Link14716
01-02-2004, 10:00 PM
Release Candidate 1 is now released! It is posted in a new thread (here --->): https://vborg.vbsupport.ru/showthread.php?p=459717

Can a mod or admin close this thread?

MindTrix
01-03-2004, 09:47 AM
Looks Nice mate. Do you have to have that many shown on the front page or is this editable?

I already have a shoutbox with the new Portal for RC1 so if there is a way i can use this one with that then ill definetly use it, otherwise i got myself a problem :)

Nice work anyway.

Link14716
01-03-2004, 09:49 AM
Looks like I forgot to upload the settings.gif screenshot. Yes, it is editable, as most things are.

gmarik
01-03-2004, 12:05 PM
Great, now I'll install it.
Only one request: (I have not downloaded it and doen't have them time to chech the code now), but, could you make it that

1) the option, that every second shout is in one of the two predefined colours - so make it not just colours, but predefined css styles, so everybody could easily change the colour scheme

Dos this goes? Respect!

Link14716
01-03-2004, 12:07 PM
It uses the standard "First Alternating Color" and "Second Alternating Color" CSS classes.

gmarik
01-03-2004, 12:16 PM
Great - another important question. Could you make and add-on or as an option so that guest, unregistered could enter they're name in the shoutbox and shout, let's say, for some 3 times and would have to register with the same name later? It is the only thing that is really missing in all the other chat soft from vb. If you code this, I'll make some design for you for free and that's my word, count on me.

Link14716
01-03-2004, 12:18 PM
I'll look into it for the next release.

C.Birch
01-03-2004, 12:42 PM
Invalid SQL: UPDATE user SET rpgmoney=rpgmoney+5 WHERE userid='1'
mysql error: Unknown column 'rpgmoney' in 'field list'

any ideas thats when i try to post a shout, im guessing part of the datebase is missing.

Link14716
01-03-2004, 12:45 PM
Hehe... whoops. That's what I get for putting a store add-on into the shoutbox and forgetting to remove the line from shoutbox.php when I downloaded it from the board I am developing it on...

I'll update the ZIP in a minute.

C.Birch
01-03-2004, 12:47 PM
lol i guessed has much :p

dont worry i have done the same before with the tombot hack.

Link14716
01-03-2004, 12:49 PM
Ok, I've updated the zip. Redownload the zip and upload shoutbox.php, that should fix the error.

Dan
01-03-2004, 01:04 PM
Nice one :D I might use it one day.

C.Birch
01-03-2004, 01:08 PM
all working fine here now :)

<jay>
01-03-2004, 01:16 PM
sweet man, i was lookin' forward to get this hack. =)

cirisme
01-03-2004, 03:19 PM
Does this modify the standard usergroup bitfields, or does it do it's own?

C.Birch
01-03-2004, 03:40 PM
hope you dont mind but i have edited the forumhome html code so it use's the vb3 open and close buttons so people can hide it if they want.

<if condition="$vboptions['shoutbox_forumhomeshouts'] == 1">
<!-- shoutbox hack (by squall14716) -->
<tbody>
<tr>
<td class="thead" colspan="2"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_shoutbox')"><img id="collapseimg_forumhome_shoutbox" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_shoutbox].gif" alt="" border="0" /></a>
<a href="shoutbox.php?$session[sessionurl]">Shoutbox - <if condition="$vboptions[shoutbox_numberofforumhomeshouts] == 1">Latest
Shout<else />Last $vboptions[shoutbox_numberofforumhomeshouts] Shouts</if></a></td>
</tr></tbody> <tbody id="collapseobj_forumhome_shoutbox" style="$vbcollapse[collapseobj_forumhome_shoutbox]">
<tr valign="top">
<td class="alt2"><a href="shoutbox.php?$session[sessionurl]"><img src="$stylevar[imagesfolder]/icons/icon2.gif" alt="" title="(temporary button) Enter the Shoutbox" border="0" /></a></td>
<td class="alt1" width="100%"><span class="smallfont"> <if condition="!($permissions['shoutboxpermissions'] & SHOUTVIEW) || $bbuserinfo['shoutbanned'] == 1"><b>$noviewperms</b><else />
<hr>
$latestshouts</if> </span></td>
</tr>

</tbody>
<!-- end shoutbox hack (by squall14716) -->
</if>

Link14716
01-03-2004, 04:22 PM
Does this modify the standard usergroup bitfields, or does it do it's own?
It creates its own.

Rocol
01-03-2004, 06:50 PM
Hiyah .. I have just downloaded the shoutbox hack .. but .. being a newbie at this .. I am confused by the various documentation.

I have just installed vB3 RC1, could you tell me, in newbie terms, how I go about installing the shoutbox as a completely new install please.

Thanks

Link14716
01-03-2004, 07:02 PM
First, go to phpMyAdmin, and click on the database that you installed vB into. Click the "SQL" link at the top. Click the "Browse" button under "Or Location of the textfile :", go to the folder you extracted the zip archive to and select shoutbox.sql. Click "Open" to close the the dialogue box and "Go" to execute the file. Repeat it for settings.sql. After that, open up file_edits.txt and follow the instructions. Once you properly make all of the file edits, upload all the edited files (if you haven't already). Then, open up templates.txt and edit the FORUMHOME template as noted, and then create the needed templates. After that, go to the phrase manager and go to edit a phrase, but save it without changes. Then go to 'vBulletin Options' and select "Shoutbox Settings" and change the settings to your liking (or if you wish to keep the defaults, save it without changing anything). Now, go to the usergroup manager and go to edit a usergroup. You can customize some of the shoutbox settings for that usergroup there, but even if you do not, make sure you save it even if you do not make any changes. Repeat this step for any usergroup that you want to customize the shoutbox settings for.

Rocol
01-03-2004, 07:12 PM
Ok .. thankyou very much for your quick and explanatory reply .. I wil have a crack at that .. much obliged :up: :cool:

surfhog
01-03-2004, 08:41 PM
I like the screenshots and the concept of the hack.

I hope it works for RC1??

I am confused a little vb2, vb3 Beta, vb3 Gamma now vb3 RC1 ----big diffences between vb3 Beta and vb3 Gamma and RC1?? I think.

Link14716
01-03-2004, 08:43 PM
This has been tested and known to work on vB3 Gamma, however, without testing it on vB3 RC1, I cannot say that it will work with 100% certainty, although it should work perfectly.

tomshawk
01-03-2004, 10:14 PM
I've installed this on my test site, which is RC1

It went quite smooth

I only had one hickup, if you want to call it that

In templates

edit FORUMHOME

Find
<if condition="$birthdays">

It should be
<if condition="$show['birthdays']">

But this is fairly obvious

Excellent work :banana:

I'll install it on my main site once I upgrade to RC1 tonight ;)

Link14716
01-03-2004, 10:21 PM
I knew I forgot something.

Zip updated, thanks. :)

MindTrix
01-03-2004, 10:51 PM
Ohhh the update looks brilliant!!!

surfhog
01-04-2004, 05:12 AM
templates and php files I can do :)

mysql and phrase, I do not :(

After that, go to the phrase manager and go to edit a phrase, but save it without changes.
I do not quite understand this quote? in the zip there is a file called "phrasesonly" and the contents look like sql - How do I insert the contents of this file please?

MySql: I can run query normaly, editing them to prefix the table names I have never had to do this :( where would I need to edit them please?

Some enlightenment would be much appreciated.
Thanks

Xyphen
01-04-2004, 05:14 AM
Hmm can you make it so ppl can reply on the forumhome page? and not have to go to the shoutbox.php to respond?? lil reply box on the forumhome page like on www.yaxay.com (http://www.yaxay.com)

Link14716
01-04-2004, 05:26 AM
Don't worry about phraseonly.sql, the 2 .sql files you need to worry about are shoutbox.sql and settings.sql. If you do not have table_prefixes, do not worry about editing any .sql files.

Run the .sql files in phpMyAdmin, go to the phrase manager, edit a phrase, and save without modifying. Go to vBulletin Options, edit the Shoutbox Settings to what you want and save (or save without modifying). Edit a usergroup, modify the shoutbox permissions to how you want them, and save (or save without modifying). That should do it.

Hmm can you make it so ppl can reply on the forumhome page? and not have to go to the shoutbox.php to respond?? lil reply box on the forumhome page like on www.yaxay.com (http://www.yaxay.com)
It's a simple template edit to the FORUMHOME template. I don't have the HTML right now, but it's not that hard, just a simple form and textarea.

surfhog
01-04-2004, 10:24 AM
OK and thank you Link14716, I will try this later and see how I get on ;)

I understand a bit more now and I missed the usergroup part :( still a bit unsure about the pharse part. I have done like a Global add to the pharse, so this is something new to me, sorry for that.

I also would like please:

Hmm can you make it so ppl can reply on the forumhome page? and not have to go to the shoutbox.php to respond?? lil reply box on the forumhome page like on www.yaxay.com (http://www.yaxay.com/)
thanks

tomshawk
01-04-2004, 01:53 PM
I knew I forgot something.

Zip updated, thanks. :)

No problem, Glad to help

Found another problem as well for RC1

Edit these templates

SHOUTBOX, shoutbox_editshout

find


<a href="$bburl/misc.php


replace with


<a href="$vboptions[bburl]/misc.php


You should find 2 instances in each template

BTW, I really want that post in the forumhome box as well, Cant wait for that update :p

:banana:

TheSonic
01-04-2004, 04:00 PM
Great hack ! Thanks!


It's a simple template edit to the FORUMHOME template. I don't have the HTML right now, but it's not that hard, just a simple form and textarea.

Can someone post a modified FORUMHOME-Template, so users can add shouts directly from the Forum's Mainpage?

Thanks.

Link14716
01-04-2004, 04:05 PM
Yeah, I found that error a while ago, it's fixed for Beta 6.

I'll make a quick edit to the FORUMHOME template and post it here.

Link14716
01-04-2004, 04:20 PM
Ok, this will make a small textarea under the shouts. In FORUMHOME, find this: $latestshouts and add this after it: <center><form action="shoutbox.php" method="post"><input type="hidden" name="do" value="addshout"><textarea name="message" rows="5" cols="60" class="bginput" wrap></textarea><br><input type="submit" name="submit" value="Shout Now!" class="bginput" accesskey="s"></form> Or for a small input box under the last shouts, add this: <form action="shoutbox.php" method="post"><input type="hidden" name="do" value="addshout"><input type="text" name="message" value="" size="60"><input type="submit" name="submit" value="Shout Now!" class="bginput" accesskey="s"></form>

tomshawk
01-04-2004, 04:31 PM
Perfect, thank you Link14716

Link14716
01-04-2004, 05:05 PM
Ok, in Beta 6, there is a toggable setting - you can select an input box, a textarea, or neither to show up on FORUMHOME.

TheSonic
01-04-2004, 05:27 PM
Link, you are the man !
Thanks for this great hack and the html-code :D

TheSonic
01-04-2004, 05:37 PM
AH, one thing... Is there a way that the user will not be forwarded to the shoutbox.php-Mainpage, then he ads a shout. I just want the shout added and the user should stay on forumhome.

Link14716
01-04-2004, 05:43 PM
An option will be in the next release.

For now, though, find this:// ########################### START ADD SHOUT ############################Now search under it for this: $do = "main";Change that to this:header("Location: index.php");
exit;And that should work.

TheSonic
01-04-2004, 05:53 PM
Yes, works (after using a ; instead of : after ..php.)

For the next version, it would be cool if the script could check, if the user is on the forumhome or in shoutbox.php and stay after adding a new shout at the user's current location.

Link14716
01-04-2004, 05:57 PM
Yes, works (after using a ; instead of : after ..php.)

For the next version, it would be cool if the script could check, if the user is on the forumhome or in shoutbox.php and stay after adding a new shout at the user's current location.
Damned shift key! Yeah, that's a better idea. Let me implement it now...

TheSonic
01-04-2004, 06:01 PM
...and perhaps limit Chars for a shout :D I dont want users to type more than one Line :D
(Looks not good on Forum's home :D )

tomshawk
01-04-2004, 06:02 PM
Damned shift key! Yeah, that's a better idea. Let me implement it now...

LOL, I was just about to post about that. hehe

Excellent work

Link14716
01-04-2004, 06:57 PM
Features left to implement before Beta 6:

Unregister users can shout (with options) (https://vborg.vbsupport.ru/showpost.php?p=455122&postcount=4)
Char limit for shouts (https://vborg.vbsupport.ru/showpost.php?p=456144&postcount=41)

Anything else?

tomshawk
01-04-2004, 07:14 PM
Features left to implement before Beta 6:

Unregister users can shout (with options) (https://vborg.vbsupport.ru/showpost.php?p=455122&postcount=4)
Char limit for shouts (https://vborg.vbsupport.ru/showpost.php?p=456144&postcount=41)

Anything else?

A smilie box in both the shoutbox.php and the quick reply shout maybe

If you know the codes, they work, but for those that dont

Link14716
01-04-2004, 08:47 PM
I don't see any point in a smilie box on forumhome. And there is already a setting to have one in shoutbox.php.

tomshawk
01-04-2004, 09:20 PM
I don't see any point in a smilie box on forumhome. And there is already a setting to have one in shoutbox.php.

Yes, there is a link to open the smilies on a seperate page, but the click through like in a post does not work, so you have to copy and paste the code.

as for the one on the forumhome, I see your point :p

Thanks for the reply ;)

Link14716
01-04-2004, 10:22 PM
There is also a setting to show the smilie box on the shoutbox page, but it's turned off by default, especially now that it is integrated with the textarea. There just isn't a whole lot of room because of the 2 column layout. I'm looking into changing the layout sometime. It'd be a little easier if I actually knew a decent amount of HTML.

mzlogical
01-04-2004, 10:51 PM
nice hack! is there any way to make it refresh (# of secs) on the forumhome?

robertuss
01-05-2004, 05:42 AM
what I did not find in the screenshots (me==blind ?):
can I limit the amount of shouts per user per day?
I like the box, but my board will be floaded by "advertisment" shouts if I install it without an limitation...

Link14716
01-05-2004, 06:09 AM
I'll add it to my to-do list for Beta 6. Expect the release tommorow, followed by a fully-phrase Gamma release after followed by the RC release in the Full Releases forum.

TheSonic
01-05-2004, 09:12 AM
I minimized the HTML-Code for Forumshome... I think, the display on Forumhome should be as small as possible. So i stripped all Horizontal Lines, changed the Timestamps and removed Linebreaks... I think on Forumhome, it should be small and quick. User who want advanced features should use shoutbox.php.
(Thats why i really like this hack - because i cann offer both options...)

Just my 2 cents.

Link14716
01-05-2004, 09:16 AM
Well, here's what the forumhome will look like on Beta 6 (well, there's an input box under the shouts, but you have to be logged in to see it): http://www.gaming-hell.com/forums/index.php?

mzlogical
01-05-2004, 04:16 PM
this may be a bit easy, but how do you change the background of the forumhome shoutbox? I know it goes with .page css. but can't change that. I just want the background a different color. :)

Rapid Gaming
01-05-2004, 05:16 PM
Nice hack, I'll be sure to install it, sometime...

Link14716
01-05-2004, 11:46 PM
Great - another important question. Could you make and add-on or as an option so that guest, unregistered could enter they're name in the shoutbox and shout, let's say, for some 3 times and would have to register with the same name later? It is the only thing that is really missing in all the other chat soft from vb. If you code this, I'll make some design for you for free and that's my word, count on me.
This has now been completed.

Rocol
01-06-2004, 01:48 AM
An excellent Shoutbox Hack, and it is working well .. but is there any chance of a " Delete All Shouts " button, for Admin Use, so that it can be cleared in one go ;) :up:

Gary King
01-06-2004, 02:24 AM
Might want to remove some of the sensitive information in your screenshots, I just tend to notice these things :p

I'm talking about things like IPs, email addresses, etc. :)

By the way, nice hack, but the forumhome display seems a bit messy :)

Zachery
01-06-2004, 02:31 AM
Link you know you can bug me to help code it ;D

Link14716
01-06-2004, 10:23 AM
Fine then, Faranth, you can help me with the HTML. :p

Gary: I'm not real good with HTML, so the display might not be perfect, but I just tried to make it... well... work.

I'm going to try to complete Beta 6 today, including several new features and several small bugfixes, and afterwords I'll start phrasing it and working on the admin script which will include pruning at least, not sure what else to add to it.

TheSonic
01-06-2004, 10:54 AM
Yeah, i would love to install the next Beta :D
I will come back often to this thread today :D

Zachery
01-06-2004, 12:25 PM
then ill get a test board up and see what i can do with it :)

sabret00the
01-06-2004, 12:29 PM
i personally hate the look and thought of the shoutbox being scrollable on the forumhome, i say stick too TWT commish style one or two shouts :)

link: don't forget my question for the merge thread into shoutbox feature ;)

mzlogical
01-06-2004, 01:34 PM
i inserted a div scroll code to have more shouts on the forumhome. :)

Gary King
01-06-2004, 07:29 PM
Fine then, Faranth, you can help me with the HTML. :p

Gary: I'm not real good with HTML, so the display might not be perfect, but I just tried to make it... well... work.

I'm going to try to complete Beta 6 today, including several new features and several small bugfixes, and afterwords I'll start phrasing it and working on the admin script which will include pruning at least, not sure what else to add to it.
Okay, I understand :)

Link14716
01-06-2004, 11:58 PM
Beta 6... err.... Gamma 1 has been released, including many new features and bugfixes. I believe that the hack is stable enough to be considered a gamma release and not a beta, hence why I'm calling it Gamma 1.

Gary King
01-07-2004, 12:16 AM
Beta 6... err.... Gamma 1 has been released, including many new features and bugfixes. I believe that the hack is stable enough to be considered a gamma release and not a beta, hence why I'm calling it Gamma 1.
I don't think many hacks had a "Gamma" release until vB 3 began a Gamma phase :p

Link14716
01-07-2004, 12:17 AM
Probably not. :p But I don't see many bugs at all in it, so I gave it Gamma status. :)

Link14716
01-07-2004, 12:45 AM
Zip updated at 9:40 PM EST - redownload if you are doing a full install.

Link14716
01-07-2004, 01:16 AM
Zip updated 10:16 PM EST... again. It appears I forgot a query. If you have already installed or updated, run this query:ALTER TABLE shoutbox_posts ADD `username` VARCHAR (255) DEFAULT '0'

Link14716
01-07-2004, 04:39 AM
*Ahem*

1.0 Gamma 1 Screens

Gary King
01-07-2004, 01:00 PM
Probably not. :p But I don't see many bugs at all in it, so I gave it Gamma status. :)
Gamma is still a non-stable version though, just call it something like 1.0 FINAL :)

mzlogical
01-07-2004, 03:18 PM
edit: fixed!

The Quibbler
01-07-2004, 04:32 PM
Nice hack :) It's just the sort of shoutbox I've been looking for. I'm definitely going to install when it's no longer a beta release... and maybe sooner.

Few questions:

1) Does this work in RC2?
2) Any idea when this will no longer be a beta?

TheSonic
01-07-2004, 05:32 PM
1) It works great on both of my RC2-Boards.
2) Its Gamma now... Dont mind, the hacks works well !

Link14716
01-07-2004, 07:07 PM
1) Yes, if you notice, the screenshots were taken on a RC2 testboard - it's compatible on every vB3 version since Gamma.

2) It's Gamma now, and will be an RC and eventually a final in the near future. Very near future.

Link14716
01-07-2004, 10:12 PM
Gamma is still a non-stable version though, just call it something like 1.0 FINAL :)

But it isn't FINAL. I still have to finish up phrasing this thing. :D

I'm through phrasing the SHOUTBOX template, moving on to the others now and then I'll get rid of the English that is still hardcoded in shoutbox.php.

Then I gotta make an installer, to install phrases and settings and run the other queries (at least) and afterwords test it and release it as a final release and all.

Then I'll begin working on other features, such as admin_shoutbox.php (I can only think of putting pruning in there, suggestions welcome) and the "merge thread into shoutbox" feature.

monstergamer
01-08-2004, 02:15 AM
i like the look of this one since you changed it...
but could i ask some thing from you......i it is not to much trouble could you add the smilie drop down box to the shout button on the forum home
or would that be to much of a headache

thanx
MG

Link14716
01-08-2004, 03:01 AM
i like the look of this one since you changed it...
but could i ask some thing from you......i it is not to much trouble could you add the smilie drop down box to the shout button on the forum home
or would that be to much of a headache

thanx
MG
That would be pretty difficult, but I'll try to look into it later.

Zachery
01-08-2004, 03:05 AM
That would be pretty difficult, but I'll try to look into it later.
moreso than diffucult i belive it would increase page load time at least on the forum home, maybe you could add more smilies link

monstergamer
01-08-2004, 03:07 AM
moreso than diffucult i belive it would increase page load time at least on the forum home, maybe you could add more smilies link
if it is going to be so much trouble then a pop up link would do just fine

Link14716
01-08-2004, 03:11 AM
I really don't see if it would increase pageload - it would just take one more row selected from the datastore and then try to make a dropdown box out of it...

On a unrelated note, I am pretty sure that I have got all the English out of the templates and files now and into the phrase system. Once I create an installer, I'll package it up and release it.

Zachery
01-08-2004, 03:16 AM
I really don't see if it would increase pageload - it would just take one more row selected from the datastore and then try to make a dropdown box out of it...

On a unrelated note, I am pretty sure that I have got all the English out of the templates and files now and into the phrase system. Once I create an installer, I'll package it up and release it.
unless i miss understood. he wants to add a dropdown that has the smilies in it?

so it qould increase pageload time for each smilie that would get displayed

monstergamer
01-08-2004, 03:19 AM
unless i miss understood. he wants to add a dropdown that has the smilies in it?

so it qould increase pageload time for each smilie that would get displayed
what if he makes it were you can limit how smilies show up there

Zachery
01-08-2004, 03:22 AM
what if he makes it were you can limit how smilies show up there
still users on 56k would expirece a slowdown, i do think the best bet would be to call the smilies list

monstergamer
01-08-2004, 03:27 AM
if it was a pop up, would it cause much stress on a 56k user?

Link14716
01-08-2004, 03:27 AM
Sorry, I was confusing serverload and pageload.... bah, I need some caffeine. ;)

Zachery
01-08-2004, 03:30 AM
if it was a pop up, would it cause much stress on a 56k user?
well if it gets into its own new window then its their choice.

if is forced on the page it makes your site less accessable as a first time visitor already has to download much

Link14716
01-09-2004, 02:28 AM
I have finished steps 1-3 of the install script for both a clean install and an upgrade from 1.0 Gamma 1. Attached are screens.

The Quibbler
01-09-2004, 03:33 AM
Looks good :) You say you've finished steps 1-3 - how many steps will there be?

Link14716
01-09-2004, 03:35 AM
I'm not sure. Probably around 6, and then a 7th optional step to convert data from TWTCommish's vB2 shoutbox if you still have the shoutbox table and its data from vB2.

monstergamer
01-09-2004, 04:26 PM
what if i have the other shoutbox here https://vborg.vbsupport.ru/showthread.php?t=59602, could there be an upgrade from that?

gmarik
01-09-2004, 05:30 PM
To make an converter is rather a headache,
nobody will code it for you, have to hire someone.

Link14716
01-09-2004, 07:13 PM
I will code it. I already have one made for TWTCommish's, Black Vivi's shouldn't be much harder (in fact, it should be easier if anything). It's just a simple query and then a while loop and another query to insert the data.

monstergamer
01-09-2004, 08:34 PM
I will code it. I already have one made for TWTCommish's, Black Vivi's shouldn't be much harder (in fact, it should be easier if anything). It's just a simple query and then a while loop and another query to insert the data.thanx for the time you spend on it and I really appreciate it, it would not be a problem if you don't make a converter for it

Link14716
01-09-2004, 10:43 PM
Expect RC1 to go out tonight. It'll be fully phrased and it has a new install/upgrade script (no more phpMyAdmin needed).

gmarik
01-09-2004, 11:19 PM
How many chat scripts are there at this moment?
Could this be made more of the chat, than the shoutbox, because it's even more dynamic?

TheSonic
01-10-2004, 01:08 AM
Dont know... But me an my users love this one.
The ones just want to shout use the forumhome, the others use shoutbox.php (chat :D )...

This Script is perfect.... if you ask me :D

Link14716
01-10-2004, 01:16 AM
I'll be releasing RC1 in about 15 minutes.