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)
-   -   BVShoutbox FULLL (https://vborg.vbsupport.ru/showthread.php?t=63562)

Lionel 11-27-2004 03:51 PM

Quote:

Originally Posted by mooecow
he just took the code im guessing and went about putting it in the FORUMHOME template and then took the redirection and put it in the head area

you have to put the redirection in the php as per intructions below (last)

This code below above the line towards the end in forum/index.php

// ### ALL DONE! SPIT OUT THE HTML AND LET'S GET OUTA HERE... ###

PHP Code:

    $shouts $DB_site->query("
        SELECT s.*, u.username
        FROM " 
TABLE_PREFIX "shout s
        LEFT JOIN " 
TABLE_PREFIX "user u ON (u.userid = s.userid)
        ORDER BY dateline " 
$vboptions['shoutframeorder'] . ", shoutid " $vboptions['shoutframeorder'] . " LIMIT " $vboptions['shoutframeamount'] . "
    "
);
    while (
$shout $DB_site->fetch_array($shouts))
    {
        
$shout['date'] = vbdate($vboptions['dateformat'], $shout['dateline']);
        
$shout['time'] = vbdate($vboptions['timeformat'], $shout['dateline']);
        
$shout['pagetext'] = parse_bbcode($shout['pagetext'], 'shoutbox');

        if (
$shout['userid'] == 0)
        {
            
$shout['username'] = "<i>" $vbpharse['guest'] . "</i>";
        }

        if (
substr(strtolower($shout['pagetext']), 03) == "/me")
        {
            
$shout['pagetext'] = str_replace("/me """$shout['pagetext']);
            eval(
'$shoutbits .= "' fetch_template('shoutbox_main_message_me') . '";');
        }
        else
        {
            eval(
'$shoutbits .= "' fetch_template('shoutbox_main_message') . '";');
        }
    } 

place this in forumhome before </head>


PHP Code:

<script language="javascript">
<!--
function 
validate(theform)
{
    if (
theform.message.value == "")
    {
        
alert('$vbphrase[you_must_enter_a_shout]');
        return 
false;
    }
    else
    {
        return 
true;
    }
}
//-->
</script


replace the iframe code in forumhome (below $navbar or where you have it) with:

PHP Code:

<!-- shoutbox -->
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="$stylevar[tablewidth]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>
            <if 
condition="$bbuserinfo[userid] > 0"> <a href="shoutbox.php?$session[sessionurl]"></if>Short Public Messages<if condition="$bbuserinfo[userid] > 0"> </a></if> <if condition="$bbuserinfo[userid] > 0"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<form action="shoutbox.php" method="post" onsubmit="return validate(this);" name="shoutform">
<
input type="hidden" name="s" value="$session[sessionhash]/>
<
input type="hidden" name="do" value="insert" />
<
input type="text" style="background-color:#DBDBDB;width:80;" name="message" id="message" value="" size="60" />
<
input style="background-color:#DBDBDB;border:1px solid color:#C0C0C0;height:21px;"
type="submit" value="$vbphrase[shout]class="button" />
</
form> </if></td>
    </
tr>
</
thead>
<
tbody id="collapseobj_forumhome_shoutbox" style="$vbcollapse[collapseobj_forumhome_shoutbox]">
    <
tr>
        <
td class="alt1" width="100%">

        
$shoutbits
        
</td>
    </
tr>
</
tbody>
</
table>
<!-- 
end shoutbox --> 

replace your shoutbox_main_message template with:

PHP Code:

<div class="smallfont">[$shout[date] <span class="time">$shout[time]</span>] <strong>$shout[username]:</strong>-
                    
$shout[pagetext]</div

I got it set in admincp to display only one shout. If you want to display more, place:

<div style="height:30px; width:100%; overflow:auto;"> in forumfome shoutbox code before $shoutbits and that will add a scrollbar. And then goodbye iframe.


And don't forget in shoutbox.php to replace the redirection.

PHP Code:

    // insert into the database
    
$DB_site->query("INSERT INTO " TABLE_PREFIX "shout
        (userid, dateline, pagetext)
    VALUES
        (
$bbuserinfo[userid], " TIMENOW ", '" addslashes($pagetext) . "')
    "
);
    
$shoutid $DB_site->insert_id();

    
header("Location: http://yoursite.com/forums");

    exit; 

The same thing can be done with homepage, by simply inserting the code in there.


And the other guy wants to make people pay for this????

Tru Smiles 11-27-2004 05:47 PM

I get "Fatal error: Call to undefined function: parse_bbcode() in /home/perfecte/public_html/comm/forum/index.php on line 542" when I try and do that with the index.php o_O I do have a few other hacks installed though.

And I think the other guy meant that he would pay people if they did this :P

Lionel 11-27-2004 06:53 PM

put this in before new code
require_once('./includes/functions_bbcodeparse.php');

as for free... here is one of the two posts

https://vborg.vbsupport.ru/showpost....&postcount=143

Tru Smiles 11-28-2004 07:34 AM

I didn't realise you had to pay for support o_O

Right, the main page is loading and everything, and the redirect code is into shoutbox.php, but when I click on shout, it just loads up a blank page with nothing. Maybe this script just doesn't like me or something :P

If I can't get it working right, I'll have to figure out how to uninstall it again.

Lionel 11-28-2004 02:40 PM

Quote:

Originally Posted by Tru Smiles
I didn't realise you had to pay for support o_O

Right, the main page is loading and everything, and the redirect code is into shoutbox.php, but when I click on shout, it just loads up a blank page with nothing. Maybe this script just doesn't like me or something :P

If I can't get it working right, I'll have to figure out how to uninstall it again.

you probably skip the step of the javascrit in the <head> </head>. This is meant to validate the form and prevent what you are saying from happening. (the blank page). Instead you get an alert box.

Tru Smiles 11-28-2004 07:36 PM

Yeah, I put that in the forumhome head the first time, and nothing o_O;;

I think I'll have to uninstall it, so, uh, thanks very much for your help ^__^

Tru Smiles 11-30-2004 07:42 AM

Actually, its gonna be very difficult to uninstall, as I have added about five more extra hacks to it >_< So, do I have to pay to get support for it? o_O

Kagen 11-30-2004 05:01 PM

my problem is i cant even run the shoutbox install or anything

X-Sector 12-05-2004 06:19 AM

I get this MySQL database error when updating the usergroup.php

Database error in vBulletin 3.0.3:

Invalid SQL: UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
title = 'Registered Users',
description = '',
usertitle = '',
opentag = '',
closetag = '',
passwordexpires = '0',
passwordhistory = '0',
attachlimit = '0',
avatarmaxwidth = '100',
avatarmaxheight = '100',
avatarmaxsize = '20000',
profilepicmaxwidth = '100',
profilepicmaxheight = '100',
profilepicmaxsize = '65535',
pmquota = '50',
pmsendmax = '5',
uttstore_discount = '0',
canaddshout = '0',
candropshout = '0',
candropothershout = '0',
caneditshout = '0',
caneditothershout = '0',
canreadshouts = '0',
forumpermissions = '127487',
pmpermissions = '3',
calendarpermissions = '19',
wolpermissions = '1',
adminpermissions = '0',
genericpermissions = '2889415',
genericoptions = '30',
arcadepermissions = '19'
WHERE usergroupid=2
mysql error: Unknown column 'canaddshout' in 'field list'

mysql error number: 1054

Date: Sunday 05th of December 2004 12:15:44 AM
Script: http://www.xelation.net/forums/admincp/usergroup.php
Referer: http://www.xelation.net/forums/admin...&usergroupid=2
Username: logica
IP Address: 62.255.32.11

I'm really not sure what to do..

X-Sector 12-05-2004 04:39 PM

*Bump* :(

X-Sector 12-05-2004 11:35 PM

*bump* <.<

X-Sector 12-06-2004 11:23 AM

I get this MySQL database error when updating the usergroup.php

Database error in vBulletin 3.0.3:

Invalid SQL: UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
title = 'Registered Users',
description = '',
usertitle = '',
opentag = '',
closetag = '',
passwordexpires = '0',
passwordhistory = '0',
attachlimit = '0',
avatarmaxwidth = '100',
avatarmaxheight = '100',
avatarmaxsize = '20000',
profilepicmaxwidth = '100',
profilepicmaxheight = '100',
profilepicmaxsize = '65535',
pmquota = '50',
pmsendmax = '5',
uttstore_discount = '0',
canaddshout = '0',
candropshout = '0',
candropothershout = '0',
caneditshout = '0',
caneditothershout = '0',
canreadshouts = '0',
forumpermissions = '127487',
pmpermissions = '3',
calendarpermissions = '19',
wolpermissions = '1',
adminpermissions = '0',
genericpermissions = '2889415',
genericoptions = '30',
arcadepermissions = '19'
WHERE usergroupid=2
mysql error: Unknown column 'canaddshout' in 'field list'

mysql error number: 1054

Date: Sunday 05th of December 2004 12:15:44 AM
Script: http://www.xelation.net/forums/admincp/usergroup.php
Referer: http://www.xelation.net/forums/admi...t&usergroupid=2
Username: logica
IP Address: 62.255.32.11

I'm really not sure what to do..

paulyy 12-07-2004 12:48 PM

No offence but this hack sucks

X-Sector 12-07-2004 02:49 PM

This hack don't sucks, its just.. you have to uninstall it manually -_-

X-Sector 12-07-2004 10:02 PM

someone help me...

TTG 12-07-2004 10:05 PM

Installed it 4 times on various forums and had no problems .. what are you doing wrong !?

X-Sector 12-08-2004 12:48 PM

Can someone tell me how to delete my shoutbox templates because i want to uninstall this hack ><

and how the hell can l fix this mysql error.

X-Sector 12-09-2004 08:10 AM

. ... -_-

fatalsex 12-10-2004 05:45 AM

I'v installed.
now i got full of errors.
how can i uninstall ?

fatalsex 12-10-2004 07:07 PM

HEy.. ppl...
installed... and have website crashed... how can i remove tables from DATABASE ?
and roll back templates ?

suryoyena 12-13-2004 02:20 PM

i'm searching an uninstallscript too. whre can i get it ?

1shot1kill 12-21-2004 03:15 PM

I've been using this hack for a few months and it works great, the only thing i still have not been able to manange is to get the 2 shoutbox menus in the admin panel, i got the one under vbulletin options, but the 2 from the menu i can't get to show up.

The Realist 01-10-2005 07:44 PM

Can someone tell me what the phrases are so I can add them manually please.

steadicamop 01-11-2005 06:53 PM

There seems to be an issue with the installer, it doesn't add the extra tables on the usergroup table ..... I added them manually, but now anyone can use the shoutbox, and whenever I change the permissions in the usergroup setting in the AdminCP, it makes no difference, still anyone can post, regardless.

Pretty useless in the state it's in unfortunately, good job I backed up my forum files and DB, time to restore!

Jason

Rogue Pan 01-20-2005 02:54 AM

it works fine for me also on board i admin at for 3.0.6

Playboy69 01-22-2005 05:58 AM

I am almost done with this installation but I am stuck

BV Shoutbox Installation - FORUMHOME

Were is this forumhome so I can edit it and continue?

Razz 01-22-2005 09:36 AM

Log into your admincp, select Styles & Templates > Style Manager

Use the dropdown menu next to the style your editing and select edit templates.

Expand the forumhome templates and you will see FORUMHOME, edit this.

Playboy69 01-22-2005 01:10 PM

Ok that was easy now what are the edits that I have to do in forumhome since it is now another day and I tried to continue without the editing of forumhome. I just need to know what it is I edit in forum home and the code i put in.

Playboy69 01-22-2005 01:22 PM

I get this error after I have tried to edit the forumhome part.

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/ultimate/public_html/forums/includes/adminfunctions_template.php(3096) : eval()'d code on line 15

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

Playboy69 01-22-2005 05:13 PM

I cant seem to unistall this and then redo it and make it work. I had it all going good untill I didnt edit the forumhome now how do I unistall it so I can reinstall it. I keep getting this error when I run the install

Invalid SQL: ALTER TABLE usergroup ADD shoutboxpermissions INT UNSIGNED NOT NULL DEFAULT '0' AFTER forumpermissions
mysql error: Duplicate column name 'shoutboxpermissions'

mysql error number: 1060

Can someone help me please

Vizionz 01-24-2005 10:02 PM

Can someone post the edits

i am missing something i guess. i tried installing this on 3.6 and it worked the first time then i made a mistake in another hack and had to restart and this time i must of missed something because when i goto the last step and set the permissions for shouting and viewing i get this error

Code:

Invalid SQL: UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
        title = 'Administrators',
        description = '',
        usertitle = 'Administrator',
        opentag = '',
        closetag = '',
        passwordexpires = '180',
        passwordhistory = '360',
        attachlimit = '0',
        avatarmaxwidth = '80',
        avatarmaxheight = '80',
        avatarmaxsize = '20000',
        profilepicmaxwidth = '100',
        profilepicmaxheight = '100',
        profilepicmaxsize = '65535',
        pmquota = '50',
        pmsendmax = '5',
        canaddshout = '1',
        candropshout = '0',
        candropothershout = '0',
        caneditshout = '0',
        caneditothershout = '0',
        canreadshouts = '1',
        forumpermissions = '393215',
        pmpermissions = '3',
        calendarpermissions = '31',
        wolpermissions = '31',
        adminpermissions = '3',
        genericpermissions = '191',
        genericoptions = '31',
WHERE usergroupid=6
mysql error: Unknown column 'canaddshout' in 'field list'

mysql error number: 1054


TLCanna 03-09-2005 09:35 AM

I went to install this and it told me that it hasn't been tested on my version and that it's recommended that I do NOT continue. I have 3.0.7. Anyone know if this works with that version?

TLCanna 03-09-2005 09:36 AM

well, didn't mean to quote all that. I just want to know if this has been tested on 3.0.7.

Scerina 03-09-2005 07:47 PM

Quote:

Originally Posted by Playboy69
Ok that was easy now what are the edits that I have to do in forumhome since it is now another day and I tried to continue without the editing of forumhome. I just need to know what it is I edit in forum home and the code i put in.

Is there an updated version of this hack with more FULLER & CLEARER installation instructions (including MODIFYING TEMPLATES & MODIFYING FILES) since the instructiosn are only this in the current version:

/*================================================= ========================*\
|| ################################################## ##################### ||
|| # BVShoutbox FULL (v 1.00) - A hack created by BVScripts # ||
|| # ------------------------------------------------------------------- # ||
|| # All PHP code in this file is ? 2003-2004 BVScripts # ||
|| # This file may not be redistributed and may only be downloaded by # ||
|| # vBulletin license holders, and from vBulletin.org # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ------------------- # ||
|| # http://www.bvscripts.net | http://www.vbulletin.com # ||
|| ################################################## ##################### ||
\*================================================ =========================*/

To install the shoutbox upload all the files included in the ZIP file to the
following directories:

shoutbox.php = forum root directory
shout.php = admincp directory
shout_install.php = admincp directory

then go to admincp/shout_install.php and follw the instructions from there.


I would really luv to install this but if this hack is faulty or buggy...I dont' want it nor do I need a non supported faulty or buggy hack such as this.

JAYEMULE 03-09-2005 11:08 PM

TLCanna..
I am running vb version 3.7 and it works great for our forum.

Scerina...
I too had a hard time finding the install instructions at first. After I put my glasses on I saw the link to them on one of the install pages. I forget which one right off but it was the page where it prompted for any changes to be made (?) , anyways, there is a link under that where you go for the file and template edits.

Hope this helps.

Jaye

PS. you are given the option to generate a text file for the file and teplate changes needed. I did do this so if it is permitted I could attach them to a post here for those who are having difficulty finding them. But I don't know if that would be against the rules. I thought it would have been nice to have them in a seperate file any way.
The hack works great, I have had no problems, and if I can do it anyone can ;)

ShawnV 03-26-2005 11:50 PM

Is this hack abandon, it doesn’t seem to have been updated since 2004?

TTG 03-27-2005 05:06 AM

Author abandoned, but members still help when / where we can :)

Snake 03-31-2005 03:46 PM

Okay I have a new skin installed and when I run the install script, I get this error.

Quote:

BV Shoutbox Installation - Running MySQL Queries
Dropping shout table (if it exists)... Done
Creating shout table... Done
Deleting setting group (if it exists)... Done
Deleting setting group phrase (if it exists)... Done
Creating setting group... Done
Creating permissions collumn...

Database error in vBulletin 3.0.7:

Invalid SQL: ALTER TABLE forums_usergroup ADD shoutboxpermissions INT UNSIGNED NOT NULL DEFAULT '0' AFTER forumpermissions
mysql error: Duplicate column name 'shoutboxpermissions'

mysql error number: 1060

Date: Thursday 31st of March 2005 09:34:41 AM
Script: http://www.rpginsider.com/forums/adm...ut_install.php
Referer: http://www.rpginsider.com/forums/adm...ut_install.php
Username: Snake
IP Address: [private]
I want the readme installation file for the mod so I can install the template mods on my other skins but it doesn't let me to go through. :( What to do?

akramosama 03-31-2005 10:58 PM

Won't work with 3.0.7

Snake 04-01-2005 08:20 AM

Are you sure akramosama?


All times are GMT. The time now is 12:01 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.01962 seconds
  • Memory Usage 1,898KB
  • 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
  • (5)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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