PDA

View Full Version : Need help with code


lazyseller
11-13-2005, 03:50 PM
I am trying to mod a hack i downloaded to use for my site but im a bit confused on how to get it to do what i want

hook location: showthread_postbit_create

i tried this and it doesnt work im basically looking to change the functions file based on styleid

here is orginal:

require_once(DIR . '/includes/functions_amazon.php');

$post['pagetext'] = process_amazon_links($post['pagetext']);

__________________________________________________ __

if ($style[styleid] == '7')
{
require_once(DIR . '/includes/functions_amazon7.php');
}
else
{
require_once(DIR . '/includes/functions_amazon.php');
}

$post['pagetext'] = process_amazon_links($post['pagetext']);

i dont know any programming but if you can help that would be appreciated

im a idiot ... i didnt look at the hook location

hook location: showthread_postbit_create

so my code did work...