vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Shoutbox Hack 1.04b (https://vborg.vbsupport.ru/showthread.php?t=68861)

noppid 01-09-2005 08:34 PM

I don't know about the uninstall, but as far as not safe, a quick look at the handling of text input by users appears like link has handled it safely. Do you know of a specific issue with this hack?

HERO|Highlander 01-09-2005 09:05 PM

Just run the installer again and choose uninstall when prompted.

Quote:

Originally Posted by wolfgang2
i would like to deinstall the shoutbox hack after upgrading to vB 3.0.5
Also it seems like a safety hazard.

Templates etc. i can delete, as well as shoutbox.php, but in the databsae it is not so easy.
Any hints what i have to delete out of the mysql database?
shoutboxposts is clear...but the rest?

Did the install via NON HTL Install.
Thank You for any help


HERO|Highlander 01-09-2005 09:08 PM

Well I've been running this particular shout hack for a while now and I used to run the original ShoutBox hack by TWCommish back in the day and I've never come across any security issues with it.

Quote:

Originally Posted by noppid
I don't know about the uninstall, but as far as not safe, a quick look at the handling of text input by users appears like link has handled it safely. Do you know of a specific issue with this hack?


HERO|Highlander 01-09-2005 09:11 PM

Well, what I would do is to uninstall the hack using the installer script and then reinstall it... much easier to do IMHO.

Quote:

Originally Posted by Megareus Rex
Ummm...I updated my vB to 3.0.5, and now I need to re-hack all the various php files neccessary to make it function properly.

Are the php changes specified anywhere?


HERO|Highlander 01-09-2005 09:15 PM

Not to sure what the error message is trying to tell yah but if the problem is you can't edit the usergroup permissions inorder to see the shoutbox it's because there were a few php file edits not showing up in the new installer. Go here https://vborg.vbsupport.ru/showpost....&postcount=373 and get the edit text and apply the edits to the proper php files and that should solve your problem I believe.

Quote:

Originally Posted by drl2005
Hello Guy's

I have a problem when I edit the usergroup.php
When I put this code to my usergroup.php, I can not manage the usergroups permissions.

It's this code :

Find :
PHP Code:

    if ($usergroupid != 1// Guests can not post attachments
    
{
        
print_table_header($vbphrase['attachment_permissions']); 

Add Above :
PHP Code:

    print_table_header($vbphrase['shoutbox_cpusergroup_title']);
    
print_yes_no_row($vbphrase['shoutbox_cpusergroup_canview'], 'usergroup[shoutview]'$ug_bitfield['shoutview']);
    
print_yes_no_row($vbphrase['shoutbox_cpusergroup_canshout'], 'usergroup[shoutpost]'$ug_bitfield['shoutpost']);
    
print_input_row($vbphrase['shoutbox_cpusergroup_maxdaily'], 'usergroup[shoutmaxdaily]'$usergroup[shoutmaxdaily]);
    if (
$usergroupid != 1) { // Allow guests to shout but do nothing else...
        
print_yes_no_row($vbphrase['shoutbox_cpusergroup_canedit'], 'usergroup[shoutedit]'$ug_bitfield['shoutedit']);
        
print_yes_no_row($vbphrase['shoutbox_cpusergroup_candelete'], 'usergroup[shoutdelete]'$ug_bitfield['shoutdelete']);
        
print_yes_no_row($vbphrase['shoutbox_cpusergroup_canhdelete'], 'usergroup[shouthdelete]'$ug_bitfield['shouthdelete']);
        
print_yes_no_row($vbphrase['shoutbox_cpusergroup_caneditothers'], 'usergroup[shouteditothers]'$ug_bitfield['shouteditothers']);
        
print_yes_no_row($vbphrase['shoutbox_cpusergroup_candeleteothers'], 'usergroup[shoutdeleteothers]'$ug_bitfield['shoutdeleteothers']);
        
print_yes_no_row($vbphrase['shoutbox_cpusergroup_canhdeleteothers'], 'usergroup[shouthdeleteothers]'$ug_bitfield['shouthdeleteothers']);
        
print_yes_no_row($vbphrase['shoutbox_cpusergroup_canip'], 'usergroup[shoutip]'$ug_bitfield['shoutip']);
        
print_yes_no_row($vbphrase['shoutbox_cpusergroup_coventry'], 'usergroup[shoutcoventry]'$ug_bitfield['shoutcoventry']);
        if (
$vboptions['shoutbox_enablehierarchy'] == 1) {
            
print_input_row($vbphrase['shoutbox_cpusergroup_hierarchy'], 'usergroup[shouthierarchy]'$usergroup['shouthierarchy']);
        }
    }
    
print_table_break();
    
print_column_style_code(array('width: 70%''width: 30%')); 

This is my error, it's happend on all groups:
HTML Code:

Usergroup Manager

Database error in vBulletin 3.0.5:

Invalid SQL: UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
        title = 'Administrators',
        description = 'Beheerder van de Dutch Racing League',
        usertitle = 'Administrator',
        opentag = '',
        closetag = '',
        passwordexpires = '90',
        passwordhistory = '0',
        shoutview = '0',
        shoutpost = '0',
        shoutmaxdaily = '0',
        shoutedit = '0',
        shoutdelete = '0',
        shouthdelete = '0',
        shouteditothers = '0',
        shoutdeleteothers = '0',
        shouthdeleteothers = '0',
        shoutip = '0',
        shoutcoventry = '0',
        shouthierarchy = '1',
        attachlimit = '0',
        avatarmaxwidth = '120',
        avatarmaxheight = '120',
        avatarmaxsize = '25000',
        profilepicmaxwidth = '60',
        profilepicmaxheight = '60',
        profilepicmaxsize = '12500',
        pmquota = '25',
        pmsendmax = '10',
        forumpermissions = '393215',
        pmpermissions = '3',
        calendarpermissions = '31',
        wolpermissions = '31',
        adminpermissions = '3',
        genericpermissions = '4194239',
        genericoptions = '31'
WHERE usergroupid=6
mysql error: Unknown column 'shoutview' in 'field list'

mysql error number: 1054



HERO|Highlander 01-09-2005 09:20 PM

Did you edit the correct forum template? It should be the FORUMHOME template and did you make sure you copied "all" the code from the installer to the FORUMHOME template correctly? Check these things again. :)

Quote:

Originally Posted by dan_bevington
Hey Folks.
I've had a quick look round in this thread, but can't really find an answer to my problem.
I'm having trouble displaying my shoutbox on the forum index page.
I have copied the code exactly as it is in the installed and have tried reinstalling the shoutbox too.
It is set to enabled in the shoutbox settings, I have even tried reverting my forumhome template to the original, but still no luck.
Can anyone shed any light on the problem?
Cheers,
Dan.


MooMan65 01-10-2005 03:43 AM

Great hack! Since upgrading to v3.0.5 I've changed from using BVShoutbox to this one, except I'm wondering has anyone figured out a reason/fix for the refresh bug? I'm getting the same issue where it refreshes the whole page when you submit a shout, but the auto-refresh works fine. I have members using Firefox and IE, and on different Windows versions all having the same problem, so it might be a coding issue. Anyone?

Rhoads 01-10-2005 07:30 AM

Quote:

Originally Posted by HERO|Highlander
Not to sure what the error message is trying to tell yah but if the problem is you can't edit the usergroup permissions inorder to see the shoutbox it's because there were a few php file edits not showing up in the new installer. Go here https://vborg.vbsupport.ru/showpost....&postcount=373 and get the edit text and apply the edits to the proper php files and that should solve your problem I believe.

Thnx Highlander, I have edit all php files, but I forget de init.php off vb3.0.5
Now I can set de permissions ;)

freakz 01-10-2005 10:34 AM

after upgrading to 3.05 and reinstalling the hack I recieved a problem with the init.php code we have to add. If I add the code the package tells us to, I get a error on line 920 with a already writing header to cookie. But when I reload the original init.php file the shoutbox works but all users can see ip address and ect...

anyone have that problem, and have any idea how to fix...

The Realist 01-10-2005 08:03 PM

Can anyone tell me how I can drop what ever is causing this Mysql error:

Duplicate entry 'shoutbox_archive--1' for key 2

Vman 01-12-2005 04:57 AM

Hell, Im still waiting on a reply for Pruning Shouts....I have asked this question 4 times and still nothing...Other than that...LOVE THE HACK!!!! and so do my members!!!

noppid 01-12-2005 05:14 AM

Quote:

Originally Posted by BBCVman
Hell, Im still waiting on a reply for Pruning Shouts....I have asked this question 4 times and still nothing...Other than that...LOVE THE HACK!!!! and so do my members!!!

Ok, I'm not awake but in phpmyadmin using the field time

delete from shout_posts where time < YOUR_TIME;

look up linux time functions to get YOUR_TIME figured out,

There's a start.

yoyoyoyo 01-12-2005 03:43 PM

Quote:

Originally Posted by TruckMuddr
Yes, I just tried it and it is very easy.

Make a new Template and use this code or if you change the code that was on the FORUMHOME template use that.
Template name: adv_portal_shout
Code:

<if condition="$vboptions['shoutbox_forumhomeshouts'] == 1">
<!-- shoutbox hack (by squall14716) -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
        <td class="tcat" 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_tcat$vbcollapse[collapseimg_forumhome_shoutbox].gif" alt="" border="0" /></a>
<a href="shoutbox.php?$session[sessionurl]">
<if condition="$vboptions[shoutbox_numberofforumhomeshouts] == 1">
<phrase 1="$vbphrase[shoutbox_forumhome_latest]" 2="" 3="$vbphrase[shoutbox_forumhome_shout]">$vbphrase[shoutbox_forumhome_x_y_z]</phrase>
<else /><phrase 1="$vbphrase[shoutbox_forumhome_last]" 2="$vboptions[shoutbox_numberofforumhomeshouts]" 3="$vbphrase[shoutbox_forumhome_shouts]">$vbphrase[shoutbox_forumhome_x_y_z]</phrase>
</if></a></td>
</tr>
<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="" border="0" />       
<if condition="!($permissions['shoutboxpermissions'] & SHOUTVIEW) || $bbuserinfo['shoutbanned'] == 1">
        <td class="alt1" width="100%"><span class="smallfont"><b>$vbphrase[shoutbox_noviewperms]</b></span></td>
<else />
<if condition="$vboptions['shoutbox_iframe'] == 0">
<!-- IF THE IFRAME IS DISABLED -->
        <td class="alt1" width="100%"><span class="smallfont">
<div class="smallfont" style="height:150px;width:100%;overflow:auto"><hr>  $latestshouts<br/> </div>  <if condition="$vboptions['shoutbox_shoutonforumhome'] == input && $permissions['shoutboxpermissions'] & SHOUTPOST && $bbuserinfo['usergroupid'] != 1"><form action="shoutbox.php" method="post"><input type="hidden" name="do" value="addshout"><input type="text" name="message" value="" size="60" <if condition="$vboptions['shoutbox_shoutcharlimit'] != 0">maxlength="$vboptions[shoutbox_shoutcharlimit]"</if>>&nbsp;&nbsp;<input type="submit" name="submit" value="$vbphrase[shoutbox_shout_now]" class="bginput" accesskey="s"></form></if> <if condition="$vboptions['shoutbox_shoutonforumhome'] == textarea && $permissions['shoutboxpermissions'] & SHOUTPOST && $bbuserinfo['usergroupid'] != 1"><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="$vbphrase[shoutbox_shout_now]" class="bginput" accesskey="s"></form></center></if>
        </span></td>
<else />
<!-- IF THE IFRAME IS ENABLED -->
        <td class="alt1" width="100%"><span class="smallfont">
<if condition="$vboptions['shoutbox_shoutonforumhome'] == input && $permissions['shoutboxpermissions'] & SHOUTPOST && $bbuserinfo['usergroupid'] != 1"><form action="shoutbox.php" method="post"><input type="hidden" name="do" value="addshout"><input type="text" name="message" value="" size="60" <if condition="$vboptions['shoutbox_shoutcharlimit'] != 0">maxlength="$vboptions[shoutbox_shoutcharlimit]"</if>>&nbsp;&nbsp;<input type="submit" name="submit" value="$vbphrase[shoutbox_shout_now]" class="bginput" accesskey="s"></form><br /></if>
<iframe src="shoutbox.php?$session[sessionurl]do=iframe" width="100%" height="165" scrolling="auto" frameborder="0" name="forumhome_shoutbox" id="forumhome_shoutbox"></iframe>
<if condition="$vboptions['shoutbox_shoutonforumhome'] == textarea && $permissions['shoutboxpermissions'] & SHOUTPOST && $bbuserinfo['usergroupid'] != 1"><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="$vbphrase[shoutbox_shout_now]" class="bginput" accesskey="s"></form></center></if>
        </span></td>
</if>
</tr>
</if>
</tbody>
</thead>
</table>
<br />
<!-- end shoutbox hack (by squall14716) -->
</if>


Now, go to Add Module Under vBa CMPS, and enter this info:

Module Title: Shoutbox - Thats what I used, You can use anything
Module Identifier: Leave Blank
File to Include: None
OR Template to Include: shout - Same as the template but w/o "adv_portal"
Active: Yes
Column: Center Column
Display Order: Where ever you want it
Templates Used: Leave Blank

You may or may not have to go to Edit Page and Click on the page and make sure the shout box is checked.


Hope this helps and doesn't piss anyone off. Atleast someone is trying to help.


EXCELLENT! MY THANKS TruckMuddr!

Gary King 01-12-2005 11:47 PM

I can't seem to see the Edit/Delete buttons for shouts in the shoutbox, even though I have permissions to do so.

Anyone else have this problem?

noppid 01-13-2005 12:04 AM

Quote:

Originally Posted by Gary King
I can't seem to see the Edit/Delete buttons for shouts in the shoutbox, even though I have permissions to do so.

Anyone else have this problem?

Click on the posters name and you'll see a drop down menu.

Gary King 01-13-2005 12:05 AM

ah yes thank you, that's it :)

steadicamop 01-13-2005 06:55 PM

Quote:

Originally Posted by MooMan65
Great hack! Since upgrading to v3.0.5 I've changed from using BVShoutbox to this one, except I'm wondering has anyone figured out a reason/fix for the refresh bug? I'm getting the same issue where it refreshes the whole page when you submit a shout, but the auto-refresh works fine. I have members using Firefox and IE, and on different Windows versions all having the same problem, so it might be a coding issue. Anyone?

Yep I'm having the same issue .... a tad annoying but it works a charm otherwise!

RMS 01-14-2005 12:39 AM

I had this running fine earlier and I tried to get it to run on a a new style but it wouldn't. I tried to just reinstall it which ended up in me not being able to use the shoutbox in my original style either. I mean I could see everything fine in shoutbox.php but not on the index. So, I tried removing everything and redid everything (I think) but it's even worse now. Now, the empty box doesn't even show up on the index at all.

I'm trying to uninstall this now but I can't seem to get the uninstall script to run. It tells me "There is no record of being installed. It cannot be uninstalled." I'm looking at my database and clearly see that there are in fact many records. How can I fix this?

dede1 01-14-2005 04:28 PM

Hello,

I have two mistake lines in the Shoutbox Settings:

Quote:

Parse error: parse error, unexpected T_STRING in /var/www/vboard/Board/includes/adminfunctions_options.php(96) : eval()'d code on line 1
and then this error ist not yes/no Attitude

Quote:

Hierarchy Mode?
If you set this to option #1, then users <b>can</b> edit other users with the same hierarchy rank (default). If you set it to option #2, then users <b>can not</b> edit users with the same hierarchy rank.

Show an Input Box/Textarea on Forumhome?

With this option, you can show a textarea or an input box on forumhome allowing users to shout without going to into the shoutbox first.


Where is the mistake there?

yoyoyoyo 01-14-2005 09:10 PM

here's an odd bug, not sure if it has been reported: you can't start a shout with a non-alpha character or it takes you to the shoutbox.php page
Nothing to make me click uninstall, etc., but it is just odd

Also- something weird I discovered: go to the page that has the shout box and change the ? after the .php to a / (ie: index.php? to index.php/) and check out the shoutbox. then scroll up and down a few times in the shoutbox area with your scrolling mouse... pretty wacky. Again - not a bug with the shoutbox of course since the php code is incorrect for the URL, but I just thought it was cool to see and thought others might like to check it out.

Vman 01-15-2005 05:22 AM

Quote:

Originally Posted by HERO|Highlander
Well the only way I know of atm is to go into phpmyadmin and then to the shoutbox_posts table and start deleting. At least you can set how many you want to delete at a time. I deleted 4000 shouts yesterday.

OK, thanks...thats a start....Hope someone have include this in the AdminCp, it makes scense to have this option and to use it so you don't have a whole lot of unwanted shouts just taking up space..

Again Thanks...Ill give that a try..

Keta 01-16-2005 08:40 AM

is it possible to have the shoutbox in a side bar?

dede1 01-16-2005 09:04 AM

No one knows change can where I that?

Look:
https://vborg.vbsupport.ru/showpost....&postcount=419

noppid 01-16-2005 10:01 AM

Hopefully we'll see an update soon.

Rhoads 01-16-2005 08:36 PM

Hi hello :

I have a problem with the WYSIWYG editor on the shoutbox.php page, when I press on a button (code) then happened nothing, and my page goes to the top. Is there someone who has a fix for that.

Thnx

wolfgang2 01-21-2005 12:47 AM

works fine with vB 3.0.6

dede1 01-21-2005 06:30 AM

Does probably none give answer here on its questions or?

wolfgang2 01-21-2005 10:52 AM

i am sorry, i pressed the quote button instead of reply...
i thought i may be interesting for some people that tha hack works fine with 3.0.6

Harry72 01-21-2005 12:43 PM

Quote:

Originally Posted by wolfgang2
i am sorry, i pressed the quote button instead of reply...
i thought i may be interesting for some people that tha hack works fine with 3.0.6

Hi,

the hack works wonderful with 3.0.6 - yes !


Harry :nervous:

CuriousGeorge 01-22-2005 12:06 PM

I just upgraded my VB installation to 3.0.6. I re-installed the hack as I have had to do following these security upgrades. Now it seems like something has gone wrong, and if you review the attached screen shot you can see what I mean. The words like shot now and others have disapeared from the mainpage.

Can anyone give some guidance on how to restore these words?

docvader 01-22-2005 04:30 PM

I'm getting the white screen of death after upgrading to 3.06, whenever I click on "shout", which calls to shoutbox.php. I've reinstalled, and saved the templates again. All my file edits are still there. The shouts get installed, and are viewed, once you click "back" on your browser. Anyone have any idea why this is only partially working????

http://x.russbo.com/vb/index.php

CuriousGeorge 01-22-2005 09:14 PM

Quote:

Originally Posted by CuriousGeorge
I just upgraded my VB installation to 3.0.6. I re-installed the hack as I have had to do following these security upgrades. Now it seems like something has gone wrong, and if you review the attached screen shot you can see what I mean. The words like shot now and others have disapeared from the mainpage.

Can anyone give some guidance on how to restore these words?

Nevermind, I figured it out.

I was using ExamDiff to check the modified files from 3.0.5 to 3.0.6 & I guess I completely missed index.php

Anyway, everything is under control now :D

Gary King 01-24-2005 08:14 PM

For some reason, when I send a message to my shoutbox on forumhome, it refreshes the entire page instead of just the iframe? This just began happening recently.

Has anyone had this happen to them before, and how did you solve it?

Thanks in advance! :) :D

Vman 01-24-2005 11:01 PM

why is it that some members can only see the shoutbox if it NOT in iframes? I get alot of member who say they can't see the shoutbox, then I change it to non-iframes and then they see it...

Vizionz 01-24-2005 11:04 PM

not all browsers allow iframes i dont think netscape is capable of them

Gary King 01-25-2005 01:48 AM

I think Netscape is capable of iframes. Netscape still keeps up-to-date with such HTML code like iframes. AFAIK anyways, I don't see why they don't.

Unless you are talking about something like Netscape Navigator, which is like 4 years old :rolleyes:

sportster 01-25-2005 10:05 PM

I installed this hack, but think I may have missed something :ermm:

Was I meant to edit some templates?? I just kept clicking next on every page of the install process.
I have the Shoutbox option in my Admin CP ,and the shoutbox is set to ON but I see nothing

djjeffa 01-26-2005 01:22 AM

when i veiw the online.php it says im @ Unknown Location
/vb/shoutbox.php?do=iframe
any way i could fix this?

Jenta 01-26-2005 05:46 PM

Prune all shouts with a cron job

Can't believe this hack didnt come with this standard so here you go

Upload to includes/cron/

Then just have it run once a week or whatever suits you

sportster 01-26-2005 07:58 PM

I installed this. How do I get the box to appear on the screen??
I take it I have to add a module??
What template do I use with it?Do I have to create one?
The documentation is rather sparse.


All times are GMT. The time now is 01:36 PM.

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.02263 seconds
  • Memory Usage 1,888KB
  • 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
  • (1)bbcode_html_printable
  • (2)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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