PDA

View Full Version : How to call varibles from custom.php in plugin?


Sarcoth
02-19-2010, 01:19 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=226914) 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 1266640058 at 1266640058 ---------------

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.