Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
Shoutbox Hack 1.04b Details »»
Shoutbox Hack 1.04b
Version: 1.04b, by GeekyDesigns GeekyDesigns is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 08-29-2004 Last Update: 11-09-2004 Installs: 288
DB Changes
 
No support by the author.

11/09/04 - Version 1.04b. Just an installer upgrade, nothing more. Nothing to see here, move along.

10/22/04 - Version 1.04a released. This is not an upgrade from 1.04. If you already have 1.04 installed, don't worry about this. This release just updates the installer and fixes any errors in it. If you had problems installing it last time, this should work better. If you need support, posting it here may get it answered, though posting at the board at GeekyDesigns.com is prefered.

This is the same hack formerly released by Link14716.

08/30/04 4:19 PM EDT: Fixed a settings bug (I hope): see this post.

08/29/04: Shoutbox 1.04 is released, featuring a new installer system (using the Hack Installer System) and redone templates, as well as a few bug fixes. Enjoy.

Presenting: The Shoutbox Hack


Support posts made at GeekyDesigns.com have a higher priority than posts made in this thread, and is the prefered way of getting support.



There are way too many features to list, so I'll just let the screenshots do the talking.

Shoutbox credits

PHP Code:
Matthew Gordon
Templates:
Zachery Woods
- misc: Matthew Gordon
- Originally by TWTCommish, redone by Zachery for 1.04


If you feel your not able to install this yourself please feel free to drop me a pm and we can make arrangments

If you would like to donate to us please pm us and again we can make arragnments

Dont forget to click install!

Install Instructions:
Code:
NEW INSTALL/UPGRADE FROM 1.03 to Current
 
 1. Upload the contents of the 'upload' folder to your forums directory.
 2. Run http://www.yoursite.com/forums/install/hack_install.php
 3. Select "Shoutbox Hack" and then follow the instructions to install.
 4. Follow the directions in the readme files when it gets to that step, then finalize the install (by clicking the last link in the install).
 5. Enjoy your shoutbox!
Matrixgl did a template modification to make the shoutbit more like its vB2 counterpart and released it (tested on 1.03) here.

FOR THOSE WHO WANT SUPPORT, SPECIFY THIS INFORMATION OR BE IGNORED:

What is the exact error you recieve?
Where does the supposed error happen?
What vB version are you running?


Here are the old screenshots, new ones will be posted soon:
settings.gif (186.0 KB)
forumhome.gif (37.1 KB)
forumhome_iframe.gif (30.0 KB)
shoutbox_home.gif (96.1 KB)
shoutbox_home_guest.gif (84.8 KB)
user_settings.gif (85.5 KB)
usergroup_permissions.gif (67.8 KB)
shoutbox_home_textarea.gif (78.9 KB)





Enjoy.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #642  
Old 05-12-2005, 01:22 PM
smacklan's Avatar
smacklan smacklan is offline
 
Join Date: Mar 2005
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not to sound pissy, but I get the same errors when trying to update my Usergroup permissions, and no one is supporting this at Geeky nor here very much. ***Uninstalled***
Reply With Quote
  #643  
Old 05-12-2005, 04:55 PM
Jenta Jenta is offline
 
Join Date: Dec 2004
Posts: 377
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Step 1. (Optional) Edit the attached file and change 50 to whatever you want (you can leave it at 50 if that number is ok with you)

The 50 is at the end of this line...
PHP Code:
$DB_site->query("DELETE FROM " TABLE_PREFIX "shoutbox_posts WHERE shoutid < ($lastshoutid[max] - 50)"); 
That number (50 in this case), controls how many shouts are left in your database after this script runs

Step 2. (Optional) Save the file. (if u did step 1)

Step 3. Upload deleteoldshouts.php to your includes/cron/ directory

Add a new scheduled task as shown in the attached images.
Change it to whatever suits you.


If you use it, thank sabret00the and MarcoH64 for enlightening me on the correct query string.
Reply With Quote
  #644  
Old 05-12-2005, 06:53 PM
Jenta Jenta is offline
 
Join Date: Dec 2004
Posts: 377
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Original


After


on line 1069 of shoutbox.php

find

PHP Code:
        $shoutbox_posts $DB_site->query("
                                SELECT s.*, u.username AS absusername
                                FROM " 
TABLE_PREFIX "shoutbox_posts s 
                                LEFT JOIN " 
TABLE_PREFIX "user u ON (s.userid=u.userid) 
                                WHERE (deleted='0' OR deleted IS NULL)
                                ORDER BY time DESC LIMIT 
$vboptions[shoutbox_numberofforumhomeshouts]
                                "
); 
replace with

PHP Code:
        $lastshoutid $DB_site->query_first("SELECT MAX(shoutid) AS max FROM shoutbox_posts"); 
        
$shoutbox_posts $DB_site->query(
                                SELECT s.*, u.username AS absusername 
                                FROM shoutbox_posts s 
                                LEFT JOIN user u ON (s.userid=u.userid) 
                                WHERE (deleted='0' OR deleted IS NULL) 
                                AND shoutid > (
$lastshoutid[max] - $vboptions[shoutbox_numberofforumhomeshouts]
                                ORDER BY shoutid ASC 
                                "
); 

in template forumhome
look for
HTML Code:
<!-- IF THE IFRAME IS ENABLED -->
cut this section

HTML Code:
<iframe src="shoutbox.php?$session[sessionurl]do=iframe" width="100%" height="165" scrolling="auto" frameborder="0" name="forumhome_shoutbox" id="forumhome_shoutbox"></iframe>
and move it up right under

HTML Code:
<!-- IF THE IFRAME IS ENABLED -->
	<td class="alt1" width="100%"><span class="smallfont">

in template shoutbox_iframe

right below
HTML Code:
</head>
add
HTML Code:
<body onLoad="self.scrollTo(0,9999)">
you may also want to redo that template and add beginning and closing html, body, doctype, etc tags
they arent there :/
unless im missing something..perhaps iframes dont need them?


If you use it, thank sabret00the and MarcoH64 for enlightening me on the correct query string.
Reply With Quote
  #645  
Old 05-12-2005, 07:10 PM
kermit_criminal kermit_criminal is offline
 
Join Date: Jun 2004
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

where is the readme file, i cant find it in the zip file
Reply With Quote
  #646  
Old 05-12-2005, 07:18 PM
Jenta Jenta is offline
 
Join Date: Dec 2004
Posts: 377
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kermit_criminal
where is the readme file, i cant find it in the zip file
right in the root of the zip file
its called install.txt
Reply With Quote
  #647  
Old 05-12-2005, 10:02 PM
Kyderoy Kyderoy is offline
 
Join Date: Feb 2005
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed a new skin and the shout box was not added to the skin. How do I get the shout box to show up in the new skin? Thanks
Reply With Quote
  #648  
Old 05-13-2005, 07:33 PM
FlyingHammer FlyingHammer is offline
 
Join Date: Jul 2004
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where and how would I change the form background from white to a darker color?

Thanks
Reply With Quote
  #649  
Old 05-13-2005, 08:14 PM
Jenta Jenta is offline
 
Join Date: Dec 2004
Posts: 377
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

note sure what u mean by FORM background
but if ur talking the grayish areas that dont seem to match

in template shoutbox_iframe look for...
HTML Code:
$headinclude
<style type="text/css">
<!--
body {
margin: 0px 0px 0px 0px;
}
</style>
</head>
change it to
HTML Code:
$headinclude
<style type="text/css">
<!--
body {
margin: 0px 0px 0px 0px;
background-color: WHATEVER COLOR YOU WANT; <--- new line (remove this part and put a color code there!)
}
</style>
</head>
also there is a missing closing style comment tag there so change it to
example...
HTML Code:
$headinclude
<style type="text/css">
<!--
body {
margin: 0px 0px 0px 0px;
background-color: #000000;
}
//-->
</style>
</head>
Reply With Quote
  #650  
Old 05-13-2005, 08:17 PM
Jenta Jenta is offline
 
Join Date: Dec 2004
Posts: 377
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kyderoy
I installed a new skin and the shout box was not added to the skin. How do I get the shout box to show up in the new skin? Thanks
you need to copy over all the templates that are from the shoutbox to the new skin
then modify the stock vb templates with the changes the shoutbox makes...like to forumhome, etc

you can also download the xml files for each style and use a file compare utitilty to merge the changes in the older style to the newer style

then just upload the modified xml file, overwriting the style

there's a hack here that will allow you to edit one style and have the changes applied to all the styles
this is a must if ur in the habit of modifying templates and want them applied to all styles
or u can use child styles
Reply With Quote
  #651  
Old 05-13-2005, 09:50 PM
FlyingHammer FlyingHammer is offline
 
Join Date: Jul 2004
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jenta
note sure what u mean by FORM background
but if ur talking the grayish areas that dont seem to match

in template shoutbox_iframe look for...
HTML Code:
$headinclude
<style type="text/css">
<!--
body {
margin: 0px 0px 0px 0px;
}
</style>
</head>
change it to
HTML Code:
$headinclude
<style type="text/css">
<!--
body {
margin: 0px 0px 0px 0px;
background-color: WHATEVER COLOR YOU WANT; <--- new line (remove this part and put a color code there!)
}
</style>
</head>
also there is a missing closing style comment tag there so change it to
example...
HTML Code:
$headinclude
<style type="text/css">
<!--
body {
margin: 0px 0px 0px 0px;
background-color: #000000;
}
//-->
</style>
</head>

I am refering to the white form where you enter the text to shout. My board is dark and the white really stands out and is distracting, thanks for the fast responce, hopefully youll know how to do this as well so I am one more step to going live.

Thanks, Hammer
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:35 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04791 seconds
  • Memory Usage 2,345KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (11)bbcode_html
  • (3)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete