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)

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 01:03 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.01590 seconds
  • Memory Usage 1,776KB
  • 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
  • (3)bbcode_php_printable
  • (6)bbcode_quote_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