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)

eXtremeTim 01-14-2004 09:29 PM

I modified the templates some as you can see here on http://www.extremechatforums.com/forum/shoutbox.php If you guys are interested in these changes please let me know and i will post the modified templates. If thats okay with link.

Link14716 01-14-2004 09:52 PM

Quote:

Originally Posted by deemon
well.. maybe not.. but i mos deffenetly will try to uninstall it ..
i let you know if anything gets any better after uninstall

kthnxoh yea.. one thing more.. i got this error on mail if i posted somehing to shoutbox..

Invalid SQL: INSERT INTO phrase (phraseid, languageid, varname, text, phrasetypeid) VALUES (NULL, '0', 'shoutbox_shoutbit_at', 'at', '716')
mysql error: Duplicate entry 'shoutbox_shoutbit_at-0-716' for key 2

mysql error number: 1062

.. i'm finished with uninstall.. and some minor things got better.. but yea.. sorry i quess it wasnt your hack that screwd up my admincp new user registrations.. sorry about that one ;)

That seems like you had an error when you installed it, it was trying to add a phrase that already existed. (Upgrading to RC2 error.). It wouldn't occur when people shout.

Link14716 01-14-2004 09:54 PM

Quote:

Originally Posted by techno
No, it doesn't for me...or any of my users.

Any ideas as to why, or how I could force it to redirect to the proper page?

There are 2 lines of code to pay attention to in shoutbox.php:
PHP Code:

        header("Location: $_SERVER[HTTP_REFERER]");
        exit; 

Now, you can change $_SERVER[HTTP_REFERER] to a relative URL to redirect them to a certain page, or change both lines to this to redirect to the shoutbox:
PHP Code:

        $do "main"


Link14716 01-14-2004 09:59 PM

Quote:

Originally Posted by geezzaa
I jave uploaded it to a totally fresh vb3 test board.
I keep getting the error Parse error: parse error in /home/geezzaa/public_html/ukctest/includes/init.php on line 821

Possibly something simple, i dont know much about board hacking so please go easy on the answer.
Thanks

Post from lines 816-826 of init.php here so I can see what is wrong.

Link14716 01-14-2004 10:01 PM

Quote:

Originally Posted by eXtremeTim
I modified the templates some as you can see here on http://www.extremechatforums.com/forum/shoutbox.php If you guys are interested in these changes please let me know and i will post the modified templates. If thats okay with link.

Go ahead and post them :)

techno 01-14-2004 10:30 PM

Quote:

Originally Posted by Link14716
There are 2 lines of code to pay attention to in shoutbox.php:
PHP Code:

        header("Location: $_SERVER[HTTP_REFERER]");
        exit; 

Now, you can change $_SERVER[HTTP_REFERER] to a relative URL to redirect them to a certain page, or change both lines to this to redirect to the shoutbox:
PHP Code:

        $do "main"


That fixed it!!!!!!! Thanks!!!

geezzaa 01-14-2004 10:44 PM

Quote:

Originally Posted by Link14716
Post from lines 816-826 of init.php here so I can see what is wrong.

'indexposts' => 16384,
'styleoverride' => 32768,
'showonforumjump' => 65536,
'warnall' => 131072
);
}
/*================================================= =====================*\
|| ################################################## ##################
|| # Downloaded: 05:58, Fri Jan 9th 2004
|| # CVS: $RCSfile: init.php,v $ - $Revision: 1.216 $
|| ################################################## ##################
\*================================================ ======================*/
?>

Link14716 01-14-2004 10:53 PM

Post about 20 lines down from here then:
PHP Code:

// ### INSERT PLUGIN USERGROUP PERMISSIONS BITFIELDS HERE ###
// ---------------------------------------------------------- 


Link14716 01-15-2004 02:31 AM

Look at what it says on my localhost now!!!
Quote:

Shoutbox 1.0 Final by squall14716 for VGGM.
Templates (mostly) by TWTCommish for the vB2 Shoutbox 1.0.
Ok, so the final is going out tonight. All I need to do is the .txt files for file edits and templates and re-test the install.

Link14716 01-15-2004 03:23 AM

And here are the new 1.0 Final Screenshots:

*arie 01-15-2004 03:54 AM

Quote:

Originally Posted by Link14716
And here are the new 1.0 Final Screenshots:

i am so confused. I'm trying to upgrade from RC1 to this final. There are so many files in there. Can you point me to the right file that tells me how to upgrade?

geezzaa 01-15-2004 07:23 AM

Hi mate. Here ya go

// ### INSERT PLUGIN USERGROUP PERMISSIONS BITFIELDS HERE ###
// ----------------------------------------------------------
$_BITFIELD['usergroup']['shoutboxpermissions'] = array(
'shoutview' => 1,
'shoutpost' => 2,
'shoutedit' => 4,
'shoutdelete' => 8,
'shouthdelete' => 16,
'shouteditothers' => 32,
'shoutdeleteothers' => 64,
'shouthdeleteothers' => 128,
'shoutip' => 256,
'shoutcoventry' => 512
);

// ----------------------------------------------------------
// ### END PLUGIN USERGROUP PERMISSIONS BITFIELDS HERE ###

// now take all the usergroup bitfields and define constants for spot permission checks
foreach($_BITFIELD['usergroup'] AS $_permgroup)
{
foreach($_permgroup AS $_constname => $_constval)
{
define(strtoupper($_constname), $_constval);
}
}
unset($_constname, $_constval, $_permgroup);

// Calendar Moderator permissions
$_BITFIELD['calmoderatorpermissions'] = array(
'caneditevents' => 1,
'candeleteevents' => 2,
'canmoderateevents' => 4,
'canviewips' => 8,
'canmoveevents' => 16
);

// Forum Moderator permissions

sabret00the 01-15-2004 07:32 AM

Well done on brining this to final

Martin CX 01-15-2004 09:56 AM

It looks very nice, and it works beautifully in the iframe on forumhome. However, when I go to the shoutbox.php-page with a usergroup that's allowed to shout it shows up completely blank. (If I try to access the shoutbox-page with a usergroup that isn't allowed it shows a rejection message).

Any ideas where the problem might be?

Link14716 01-15-2004 10:09 AM

Quote:

Originally Posted by *arie
i am so confused. I'm trying to upgrade from RC1 to this final. There are so many files in there. Can you point me to the right file that tells me how to upgrade?

Upload all files in the upload folder of the zip to your forums directory and run http://www.yoursite.com/forums/admin...l_shoutbox.php.

Link14716 01-15-2004 10:10 AM

geezzaa: I don't see any error in that code. Has another hack that you installed edit init.php?

Link14716 01-15-2004 10:11 AM

Quote:

Originally Posted by Martin CX
It looks very nice, and it works beautifully in the iframe on forumhome. However, when I go to the shoutbox.php-page with a usergroup that's allowed to shout it shows up completely blank. (If I try to access the shoutbox-page with a usergroup that isn't allowed it shows a rejection message).

Any ideas where the problem might be?

The only thing that I could think of would be a missing SHOUTBOX template.

Martin CX 01-15-2004 10:26 AM

Quote:

Originally Posted by Link14716
The only thing that I could think of would be a missing SHOUTBOX template.

Doh! It was in lowercase ("shoutbox") instead of upper case. :tired:

Thanks for the help! :)

Link14716 01-15-2004 10:28 AM

Quote:

Originally Posted by Martin CX
Doh! It was in lowercase ("shoutbox") instead of upper case. :tired:

Thanks for the help! :)

Glad you got it working. :)

*arie 01-15-2004 12:35 PM

Quote:

Originally Posted by Link14716
Upload all files in the upload folder of the zip to your forums directory and run http://www.yoursite.com/forums/admin..._shoutbox.php.

okay thanks.

NuclioN 01-15-2004 12:46 PM

<a href="http://www.cyberty.nl/forums/shoutbox.php?" target="_blank">http://www.cyberty.nl/forums/shoutbox.php?</a> javascript error and...the header is pushed togheter.

How can i remove the 'Today's shout' above the shoutlines on foumhome?

--edit-- the javascript error is gone when i remove the onload after the body tag in SHOUTBOX template.

infernonet 01-15-2004 03:11 PM

Nice hack works a treat thanks :D

PennylessZ28 01-15-2004 04:07 PM

after editing my index.php in the root I'm getting

Parse error: parse error, expecting `')'' in /home/ttacnet/public_html/forum.php on line 17

Can't figure this one out. Edited perfectly so I thought. gonna continue to work on it.

PennylessZ28 01-15-2004 04:15 PM

I figured it out, I left off the );

Martin CX 01-15-2004 06:51 PM

I would like it if it was possible to create an automatic pruning of old shouts. Is there any easy way of doing this?

PennylessZ28 01-15-2004 08:20 PM

Alright, new problem this afternoon, has been working fine, but my shouts don't show up on the forum home if I disable the iframe. I'd rather not use the iframe.

Link14716 01-15-2004 09:13 PM

Quote:

Originally Posted by NuclioN
http://www.cyberty.nl/forums/shoutbox.php? javascript error and...the header is pushed togheter.

How can i remove the 'Today's shout' above the shoutlines on foumhome?



--edit-- the javascript error is gone when i remove the onload after the body tag in SHOUTBOX template.

It is in the "shoutbox_iframe" template and the "Other shouts" is in the "shoutbox_iframe_shoutbit" template. (It's a $vbphrase)

Link14716 01-15-2004 09:14 PM

Quote:

Originally Posted by Martin CX
I would like it if it was possible to create an automatic pruning of old shouts. Is there any easy way of doing this?

Pruning will come later, I started on an admin script with pruning a while back but got frustrated with it, I'll try again later. I'll keep your suggestion in mind and make a cron-compatible script to prune shouts as well.

Link14716 01-15-2004 09:16 PM

Quote:

Originally Posted by HR3rdGen
Alright, new problem this afternoon, has been working fine, but my shouts don't show up on the forum home if I disable the iframe. I'd rather not use the iframe.

As long as you have edited index.php, created the 'forumhome_shoutbit' template, edited the 'FORUMHOME' template correctly, and switched the iframe off in the 'Shoutbox Settings' part of 'vBulletin Options', it should work.

Link14716 01-15-2004 09:18 PM

Heh, looks like a forgot to phrase a few words in shoutbox.php (the navbar), so I'm going to release 1.01 soon.

Martin CX 01-15-2004 10:06 PM

Quote:

Originally Posted by Link14716
Pruning will come later, I started on an admin script with pruning a while back but got frustrated with it, I'll try again later. I'll keep your suggestion in mind and make a cron-compatible script to prune shouts as well.

Thanks. :)

PennylessZ28 01-16-2004 12:27 AM

Quote:

Originally Posted by Link14716
As long as you have edited index.php, created the 'forumhome_shoutbit' template, edited the 'FORUMHOME' template correctly, and switched the iframe off in the 'Shoutbox Settings' part of 'vBulletin Options', it should work.

Sure enough, index.php, my copy and paste job from the install was off, all I pasted in was

"// Shoutbox Latest Shouts
// Shoutbox hack by squall14716

Left out the rest, haha. Thanks for the advice though.

RN BB guy 01-16-2004 03:13 AM

I cant run the installer

iNSTALL INSTRUCTIONS

1. Upload the contents of the 'upload' folder to your forums directory.
2. Run http://www.yoursite.com/forums/admin...l_shoutbox.php and follow the directions.


when I do that i get this:
Warning: main(./global.php): failed to open stream: No such file or directory in /home/nurses/public_html/forum/admincp/install_shoutbox.php on line 23

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nurses/public_html/forum/admincp/install_shoutbox.php on line 23


any suggestions?

geezzaa 01-16-2004 07:47 AM

Quote:

Originally Posted by Link14716
Post about 20 lines down from here then:
PHP Code:

// ### INSERT PLUGIN USERGROUP PERMISSIONS BITFIELDS HERE ###
// ---------------------------------------------------------- 


Here ya go.
Congrats on the final .:)

PHP Code:

// ### INSERT PLUGIN USERGROUP PERMISSIONS BITFIELDS HERE ###
// ----------------------------------------------------------
$_BITFIELD['usergroup']['shoutboxpermissions'] = array(
    
'shoutview'             => 1,
    
'shoutpost'             => 2,
    
'shoutedit'             => 4,
    
'shoutdelete'           => 8,
    
'shouthdelete'          => 16,
    
'shouteditothers'       => 32,
    
'shoutdeleteothers'     => 64,
    
'shouthdeleteothers'    => 128,
    
'shoutip'               => 256,
    
'shoutcoventry'         => 512
);

// ----------------------------------------------------------
// ###  END PLUGIN USERGROUP PERMISSIONS BITFIELDS HERE   ###

// now take all the usergroup bitfields and define constants for spot permission checks
foreach($_BITFIELD['usergroup'] AS $_permgroup)
{
    foreach(
$_permgroup AS $_constname => $_constval)
    {
        
define(strtoupper($_constname), $_constval);
    }
}
unset(
$_constname$_constval$_permgroup);

// Calendar Moderator permissions
$_BITFIELD['calmoderatorpermissions'] = array(
    
'caneditevents'         => 1,
    
'candeleteevents'       => 2,
    
'canmoderateevents'     => 4,
    
'canviewips'            => 8,
    
'canmoveevents'         => 16
);

// Forum Moderator permissions
$_BITFIELD['moderatorpermissions'] = array(
    
'caneditposts'           => 1


AshAbed 01-16-2004 09:03 AM

i attached a picture of what the shoutbox looks like on my page... would you happen to know what went wrong?
it works when i turn i-frame off though... if its alot of work ill just leave iframe off but i would prefer to turn it on so if its not hard to fix then please tell me how ;)
Thanks alot!

Link14716 01-16-2004 10:25 AM

Quote:

Originally Posted by RN BB guy
I cant run the installer

iNSTALL INSTRUCTIONS

1. Upload the contents of the 'upload' folder to your forums directory.
2. Run http://www.yoursite.com/forums/admin...l_shoutbox.php and follow the directions.


when I do that i get this:
Warning: main(./global.php): failed to open stream: No such file or directory in /home/nurses/public_html/forum/admincp/install_shoutbox.php on line 23

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nurses/public_html/forum/admincp/install_shoutbox.php on line 23


any suggestions?

That error indicates that global.php in the admincp directory doesn't exist!?! Did you happen to rename your admin folder?

Link14716 01-16-2004 10:28 AM

Quote:

Originally Posted by geezzaa
Here ya go.
Congrats on the final .:)

PHP Code:

// ### INSERT PLUGIN USERGROUP PERMISSIONS BITFIELDS HERE ###
// ----------------------------------------------------------
$_BITFIELD['usergroup']['shoutboxpermissions'] = array(
    
'shoutview'             => 1,
    
'shoutpost'             => 2,
    
'shoutedit'             => 4,
    
'shoutdelete'           => 8,
    
'shouthdelete'          => 16,
    
'shouteditothers'       => 32,
    
'shoutdeleteothers'     => 64,
    
'shouthdeleteothers'    => 128,
    
'shoutip'               => 256,
    
'shoutcoventry'         => 512
);

// ----------------------------------------------------------
// ###  END PLUGIN USERGROUP PERMISSIONS BITFIELDS HERE   ###

// now take all the usergroup bitfields and define constants for spot permission checks
foreach($_BITFIELD['usergroup'] AS $_permgroup)
{
    foreach(
$_permgroup AS $_constname => $_constval)
    {
        
define(strtoupper($_constname), $_constval);
    }
}
unset(
$_constname$_constval$_permgroup);

// Calendar Moderator permissions
$_BITFIELD['calmoderatorpermissions'] = array(
    
'caneditevents'         => 1,
    
'candeleteevents'       => 2,
    
'canmoderateevents'     => 4,
    
'canviewips'            => 8,
    
'canmoveevents'         => 16
);

// Forum Moderator permissions
$_BITFIELD['moderatorpermissions'] = array(
    
'caneditposts'           => 1


As I said before, I see nothing wrong with that code. Does a fresh init.php solve the error? Have you tried to re-hack a fresh init.php?

Link14716 01-16-2004 10:31 AM

Quote:

Originally Posted by AshAbed
i attached a picture of what the shoutbox looks like on my page... would you happen to know what went wrong?
it works when i turn i-frame off though... if its alot of work ill just leave iframe off but i would prefer to turn it on so if its not hard to fix then please tell me how ;)
Thanks alot!

Make sure your shoutbox_iframe_shoutbit template exists

geezzaa 01-16-2004 11:41 AM

Yes mate. its a totally new board, no other hacks installed and no changes made to directories

magazineforall 01-16-2004 06:30 PM

Will be installing this I just wondered how I uninstall this if I need to I'd really appreciate it if someone could give me some instructions before I do install thanks :D


All times are GMT. The time now is 04:20 AM.

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.01888 seconds
  • Memory Usage 1,884KB
  • 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
  • (8)bbcode_php_printable
  • (22)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