vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Plugin Problem (https://vborg.vbsupport.ru/showthread.php?t=262385)

JannuBl22t 04-21-2011 11:21 AM

Plugin Problem
 
Hey!

I have a problem.. I created a plugin that looks like this:

PHP Code:

$url $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; 
$url str_replace('?''_'$url);
$url str_replace('&''-'$url);
$vbulletin->options['DisplayLogo'] = file_get_contents('http://myrurl.com/displaylogo.php?url='.$url); 

And I added it to template like this:

HTML Code:

<div class="profile_widgets">
{vb:raw vboptions.DisplayLogo}
</div>

The thing is that.. script "displaylogo.php" works correctly.. but it shows logo only on my profile, others can't see their logo.. output is blank. Anybody has any idea why is it so?

Lynne 04-21-2011 04:00 PM

No idea. Probably something wrong in the script if it isn't showing for other users. What is in the page source?

JannuBl22t 04-22-2011 06:14 AM

Nope, script shows everything to everybody. Weird thing is that it shows banner on my website.. my script produces html table with logo in it and others it shows nothing.. just empty div

Lynne 04-22-2011 03:53 PM

Why are you using the variable $vboptions? My guess is that is causing the issue. Try using another variable name (like just $DisplayLogo).


All times are GMT. The time now is 08:49 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
  • Page Generation 0.01091 seconds
  • Memory Usage 1,716KB
  • 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_html_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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