Log in

View Full Version : Need some help spare a minute please


lazyseller
11-15-2005, 03:31 AM
i have no idea what im doing but im messing with the plugin manager

i added a code and am using hook

postbit_display_complete

when i put this

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

$post['message'] = Amazon_Cobrand_Link($post['message']);

it works exactly as how i want it ... but when i do this

if ($style[styleid] == '7')
{

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

$post['message'] = Amazon_Cobrand_Link($post['message']);

}

it doesnt work anymore

if someone can point me in the right direction that would be great...

cinq
11-15-2005, 03:40 AM
I think your conditional should be


if ($vbulletin->options['styleid']=="7")
{
//blah blah blah
}

lazyseller
11-15-2005, 03:45 AM
doesnt seem to be working...

Boofo
11-15-2005, 03:49 AM
Do you have another plug-in at that location doing a print_output for the template?

lazyseller
11-15-2005, 04:01 AM
sorry i have no idea what that means if you could please explain

if you can give me information on where to look and what to look for i can try.. i am very limited i am just trying to piece an existing hack to work how i need it to so far im successful 2 out of 3 and this one doesnt seem to work.

i also tried

if ($styleid == 7)
{

and it doesnt seem to work either

do u mean do i have another plugin in the same hook location ? if that is the question no i do not

Guest190829
11-15-2005, 04:52 AM
Wait why are you using a plug-in? You can just directly edited that template for that style....

lazyseller
11-15-2005, 05:06 AM
well currently right now

i have

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

$post['message'] = Amazon_Cobrand_Link($post['message']);

ands its working exactly as i want it to ...

but i only need it to work on certain styles

ok i tried doign this

if ($style[styleid] == '7')
{

echo "something blah blha blah";

and it doesnt echo so i must need help here

i also did this
echo "$styleid = styleid";

and this showed up

= styleid = styleid = styleid = styleid

Marco van Herwaarden
11-15-2005, 06:26 AM
See reply #2

lazyseller
11-15-2005, 06:37 AM
alright i found a solution to what i was trying to do...

Thanks for your help