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)

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);
        }
    }




All times are GMT. The time now is 01:04 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.01570 seconds
  • Memory Usage 1,763KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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