vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   How to call varibles from custom.php in plugin? (https://vborg.vbsupport.ru/showthread.php?t=236314)

Sarcoth 02-19-2010 01:19 PM

How to call varibles from custom.php in plugin?
 
How can I call variables from my custom.php page in my plugin?

For example, I'm using Lynne's [HOW TO - vB4] Create a New Tab in the navbar and I'm trying to change the following:

<li><a href="link1.php">Link 1</a></li>

I'd like "Link 1" to be the name of whatever the first column is from my custom.php page. Basically, I want the code to be:

<li><a href="page.php">columns['title1']</a></li>

I tried using: include "custom.php";, but that didn't seem to help. I keep getting an error whenever I try to use columns['title1']. Any help would be appreciated. If you can even point me to a post that could help me, that would be great.

--------------- Added [DATE]1266640058[/DATE] at [TIME]1266640058[/TIME] ---------------

Well, I'm certainly determined. I spent 6 hours on this today and zero luck. I can't find anything in the forums on how to do this. I've tried so many things I think I'm starting to repeat myself. Anyhow, I didn't see anyway of accomplishing this with Lynne's navbar, so I tried ragtek's instead. Since his uses a template, I figured I could get the variables to load up in the template if they get called in my custom.php. Well, I haven't had luck yet. Course, now I have a couple more idea's. Back to testing.


All times are GMT. The time now is 07:18 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.00932 seconds
  • Memory Usage 1,709KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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