![]() |
Need help with code
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... |
All times are GMT. The time now is 11:51 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|