vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Shoutbox Hack - 1.0 Gamma 1 (Outdated -> RC1 in Full Releases) (https://vborg.vbsupport.ru/showthread.php?t=59548)

Link14716 01-02-2004 10:00 PM

Shoutbox Hack - 1.0 Gamma 1 (Outdated -> RC1 in Full Releases)
 
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.

Code:

<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

Quote:

Originally Posted by cirisme
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 :(

Quote:

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,
Quote:

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

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.

Quote:

Originally Posted by AViO 07
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

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:

Quote:

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
thanks

tomshawk 01-04-2004 01:53 PM

Quote:

Originally Posted by Link14716
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

PHP Code:

<a href="$bburl/misc.php 

replace with

PHP Code:

<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!

Quote:

Originally Posted by Link14716
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:
HTML Code:

$latestshouts
and add this after it:
HTML Code:

<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:
HTML Code:

<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:
PHP Code:

// ########################### START ADD SHOUT ############################ 

Now search under it for this:
PHP Code:

    $do "main"

Change that to this:
PHP Code:

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

Quote:

Originally Posted by TheSonic
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...


All times are GMT. The time now is 10:22 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.01416 seconds
  • Memory Usage 1,838KB
  • 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
  • (3)bbcode_html_printable
  • (5)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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