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)
-   -   [HTL] & [Normal] Shoutbox Hack - 1.03d (https://vborg.vbsupport.ru/showthread.php?t=59985)

Link14716 01-09-2004 10:00 PM

[HTL] & [Normal] Shoutbox Hack - 1.03d
 
Re-released at https://vborg.vbsupport.ru/showthrea...790#post547790

VampireMan 01-10-2004 10:11 AM

Im impressed , i thought it would be hard to improve on the shoutbox anymore.
Oh well it will keep the brides2be happy .. thanks

AshAbed 01-10-2004 10:28 AM

would this work on rc2? i really want to install it, but dont want to take any chances ;)
thanks

VampireMan 01-10-2004 10:29 AM

it works great on rc2

----
edit.

No need for extra posts for a silly reason.

Just a small question ... where's the installer ?

AshAbed 01-10-2004 10:53 AM

its in upload/admincp
and i have a question... after i installed it it came out like this..
http://forums.rebelliongfx.com/shoutbox.php?
it seems like the vbphrases arent showing up...? if theres a page i need to edit/edited wrong can you please direct me to it? or please tell me what i should do to fix it
Thanks alot

Link14716 01-10-2004 11:19 AM

I thought I had fixed that... the phrases should have been updated in step 6.

Well, to fix it in your case, just go into the phrase manager, click 'edit' on a phrase and save it without changing anything. I'll work on fixing the installer.

MindTrix 01-10-2004 11:41 AM

Just installed, Took awhile :)

Yet problems, look at the screenshow too see what i mean ;)

Link14716 01-10-2004 11:43 AM

Quote:

Originally Posted by MindTrix
Just installed, Took awhile :)

Yet problems, look at the screenshow too see what i mean ;)

Quote:

Originally Posted by Link14716
I thought I had fixed that... the phrases should have been updated in step 6.

Well, to fix it in your case, just go into the phrase manager, click 'edit' on a phrase and save it without changing anything. I'll work on fixing the installer.

I have updated the installer fixing it, I hope.

MindTrix 01-10-2004 11:44 AM

Okkk so meaning what? Im not going through the wholleeeee installer again :)

sabret00the 01-10-2004 11:52 AM

look great, looks like i found my shoutbox :D

any news on being able to merge a thread into the shoutbox?

MindTrix 01-10-2004 12:01 PM

Ok seems like i must have had an attitude in my last post ;)

Can you post a file giving the fixes, to anyone who installed it before the problems were fixed?

MindTrix 01-10-2004 12:53 PM

Ok ran the installer again and sorted things out. I guess i should have looked when you said you fixed it all, but you could have mentioned that it needed to be ran to fix the errors ;)

MindTrix 01-10-2004 12:55 PM

Number of Forum Home Shouts?
Enter the number of shouts to be displayed on forumhome if the option is enabled



In the admin CP needs to be changed because you have it set as a Yes / No option when people need to be able to input the ammount of shouts they wish displayed

Link14716 01-10-2004 03:46 PM

It is both. If you set it to no, that setting doesn't matter, if it is set to yes, then that setting controls how many is displayed on forumhome.

And if you looked at the post I had quoted, it said to edit a phrase and then save it. That would have updated the phrase cache and fixed everything.;)

MindTrix 01-10-2004 03:49 PM

I dont think you get what i mean ;)

If you select yes to for limiting the amount of shouts on the forum home, The option underneath should allow you too specify how many you want shown, according to the descritions. But it does not, it gives you a YES/NO option which is wrong:p

Link14716 01-10-2004 03:52 PM

Haha... whoops. BRB.

MindTrix 01-10-2004 03:54 PM

Ahhh now you understand :) lol

Link14716 01-10-2004 03:56 PM

Installer updated. If you already used the installer to do a new install, use the query I put in the first post.

MindTrix 01-10-2004 04:04 PM

Hehe thats better, Thanks!

Link14716 01-10-2004 04:06 PM

Quote:

Originally Posted by sabret00the
look great, looks like i found my shoutbox :D

any news on being able to merge a thread into the shoutbox?

I'll probably make that after I squash all the bugs and release 1.0 Final. I can confirm a bug when a user in coventry shouts and someone who does not have permission to view shouts by coventry users sees the shout before and after it, the backgrounds are the same.

SB2002 01-10-2004 04:38 PM

Looks great, although i only have one question. On forumhome, when it says lastest shout by..... every username is replace by a 0

this is after i have updated all counters and run the doupdate in shoutbox.php

any ideas anyone?

EDIT: not to worry, it's only the old shouts that are showing up like this, so nevermind.

Link14716 01-10-2004 04:46 PM

Are you sure you ran shoutbox.php?do=update?

SB2002 01-10-2004 05:47 PM

lol, i thought i had, but i'm almost ashamed to admit this, i forgot to remove the ? off of the end or i must have added an extra char. I ran it again just now and it's worked

/me is dumb

thanks for the help, great hack btw

NuclioN 01-10-2004 09:35 PM

I give up on this hack because the mysql tableprefix must be put in the sqls before we can use it. :(

Link14716 01-10-2004 09:45 PM

RC1 comes with an installer that inserts and creates everything with the prefix.

NuclioN 01-10-2004 10:25 PM

That's good news Link14716 :) I hope you can make it look as the pos31don chatbox because that whas awesome on the forumhome.

Link14716 01-10-2004 10:27 PM

Well, an input box on forumhome is an option and is enabled by default. :)

AshAbed 01-10-2004 10:30 PM

<a href="http://forums.rebelliongfx.com/adv_index.php" target="_blank">http://forums.rebelliongfx.com/adv_index.php</a>
i tried to add the shoutbox on another page... the phrases dont show up and the scroll-section where the shouts should be dont show up
if it doesnt take a lot of your time could you possibly tell me how i could fix it
Thanks alot

Link14716 01-10-2004 10:34 PM

I get a 404 error on the above URL.

Just make sure you make all appropriate changes that are supposed to be made to index.php to the other page and it should work.

AshAbed 01-11-2004 01:11 AM

http://forums.rebelliongfx.com/adv_index2.php
i edited it just like i edited the index.php page and now its fine except the same messages repeat themselves alot of time... theres about 9 messages and they repeat untill theres 50...?
i think it has something to do with this code:
PHP Code:

require_once('./includes/functions_bbcodeparse.php');
if (
$vboptions['shoutbox_forumhomeshouts'] == 1) {
    
$noviewperms $vbphrase['shoutbox_noviewperms'];
    
$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'
                            ORDER BY time DESC LIMIT 
$vboptions[shoutbox_numberofforumhomeshouts]
                            "
);
    while (
$shoutbox_post=$DB_site->fetch_array($shoutbox_posts)) {
        if (
$tachyuser != in_coventry($shoutbox_post['userid'])) {
            if ((
$permissions['shoutboxpermissions'] & SHOUTCOVENTRY)) {
                
$shout_tachygoestocoventry 1;
            } elseif (!(
$permissions['shoutboxpermissions'] & SHOUTCOVENTRY)) {
                
$screwyoucoventryshout 1;
            }
        }
        
$shoutbox_post_date vbdate($vboptions['dateformat'], $shoutbox_post['time'], 1);
        
$shoutbox_post_time vbdate($vboptions['timeformat'], $shoutbox_post['time']);
        
$shoutbox_post_text $shoutbox_post['text'];
        
// In case you have the /me code hack...
        
$post['username'] = $shoutbox_post['username'];
        
$shoutbox_text parse_bbcode2("$shoutbox_post_text"$vboptions['shoutbox_allowhtml'], $vboptions['shoutbox_allowimage'], $vboptions['shoutbox_allowsmilies'], $vboptions['shoutbox_allowbbcode'], 01);
        
$ignore = array();
        if (
trim($bbuserinfo['ignorelist'])) {
            
$ignorelist preg_split('/( )+/'trim($bbuserinfo['ignorelist']), -1PREG_SPLIT_NO_EMPTY);
            foreach (
$ignorelist AS $ignoreuserid) {
                
$ignore["$ignoreuserid"] = 1;
            }
        }
        if (isset(
$ignore["$shoutbox_post[userid]"]) AND !in_array($shoutbox_post['userid'], explode(' '$bbuserinfo['buddylist']))) {
            
$ignoreuser '1';
        } else {
            unset(
$ignoreuser);
        }
        if (
$screwyoucoventryshout != 1) {
            eval(
'$latestshouts .= "' fetch_template('forumhome_shoutbit') . '";');
            unset(
$shout_tachygoestocoventry);
        } else {
            unset(
$screwyoucoventryshout);
        }
    }



Link14716 01-11-2004 01:37 AM

The only way that would happen is if you put in the code 10 times...?

AshAbed 01-11-2004 03:54 PM

well.. i only put it in once lol, i deleted all the posts and posted twice, they show up 10 times...
would you consider doing it for me for 5$? or maybe 10 if takes time

Link14716 01-11-2004 05:01 PM

PM me and I'll try to help you with it.

Vampire 01-11-2004 05:53 PM

Perhaps you can help me. Every time I want so send my message I get this error, but when I refresh the site, the message is in the shoutbox
(Sorry for the englisch)


Quote:

There seems to have been a slight problem with the PassTV database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience

Database error in vBulletin 3.0.0 Release Candidate 1:

Invalid SQL: UPDATE user SET shouts=shouts+1 WHERE userid='2'
mysql error: Table 'dbname.user' doesn't exist

mysql error number: 1146

Date: xxx
Script: http://myurl/shoutbox.php
Referer: http://myurl/index.php?
Username: xxx
IP Address: xxx


Link14716 01-11-2004 05:58 PM

You must have a table prefix. I'll fix it in a few minutes.

Link14716 01-11-2004 06:07 PM

Ok, I updated the zip with a new shoutbox.php. Re-download the zip and use the new shoutbox.php. That should get rid of the error.

Vampire 01-11-2004 06:15 PM

it works, thx a lot :)

Ryan Ashbrook 01-11-2004 07:21 PM

I ran the new query you posted in the first post of this thread but none of the shouts are showing up on the forumhome.

Have a clue?

The site is here: http://tgp.crystalterra.com/forums/

Link14716 01-11-2004 07:23 PM

Make sure you edit the settings and turn on "Show Latest Shouts on Forum Home?" and set "Number of Forum Home Shouts?" to a non-zero positive number.

AshAbed 01-11-2004 11:32 PM

incase anyone was wondering Link helped me out with getting the shoutbox to work on my portal, again great hack, thanks Link


All times are GMT. The time now is 04:52 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.01770 seconds
  • Memory Usage 1,835KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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