PDA


View Full Version : Divide by Zero Error in cmps_index.php


AdultVideoGuy
06-12-2005, 02:24 AM
Just installed the hack and got to say I am pretty pleased with myself. LOL not a programming bone in my body and the script works... hats off to you guys.

One problem and one feature though:

Problem:

Top of the page, I get two lines:

Warning: Division by zero in /home/blackboo/public_html/cmps_index.php on line 21

Second line same as the first.

Feature:

Found the variable that affects the distance between zones vertically, where is the variable that determines the distance between zones horizontally?

Thanks a lot for any help.

cheers
AVG

Brian
06-12-2005, 12:48 PM
Can you post the contents of your cmps_index.php file here?

AdultVideoGuy
06-12-2005, 12:57 PM
will a link to the file do or would you like the whole text tossed in here?

cheers
VG

Brian
06-12-2005, 12:59 PM
It would need to be the text from the file since there shouldn't even be anything that's being divided on that line, or anywhere in that file for that matter.

AdultVideoGuy
06-12-2005, 01:08 PM
<?php
// ++=========================================================================++
// || vBadvanced CMPS v1.0.1
// || © 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved
// || This file may not be redistributed in whole or significant part.
// || http://vbadvanced.com
// || vb.org distro
// ||
// ++ ========================================================================++

error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'adv_index');
define('VBA_PORTAL', true);

// ============================================
// Enter the full path to your forum here
// Example: /home/vbadvanced/public_html/forum
// ============================================

home/blackboo/public_html;

// ============================================
// No Further Editing Necessary!
// ============================================

$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();

require_once('./global.php');

print_portal_output($home);

?>

AdultVideoGuy
06-12-2005, 01:09 PM
Thanks for your assistance.

cheers
VG

Brian
06-12-2005, 01:34 PM
home/blackboo/public_html;

Should be:

chdir('/home/blackboo/public_html');

Though if you're using the CMPS in the same directory as your forums you can just comment out that line by adding // in front of it.

AdultVideoGuy
06-12-2005, 01:40 PM
Thank you so much.

cheers
VG

http://www.blackbookexchange.com/cmps_index.php