vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Need some help spare a minute please (https://vborg.vbsupport.ru/showthread.php?t=100839)

lazyseller 11-15-2005 03:31 AM

Need some help spare a minute please
 
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

PHP Code:

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


All times are GMT. The time now is 05:09 AM.

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.01580 seconds
  • Memory Usage 1,721KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete