$boardurl variable not working?

Started by NanoSector, November 21, 2010, 06:41:39 AM

Previous topic - Next topic

NanoSector

Hello.

I am writing a modification (SMFtools Documentation Tab) that makes use of the $boardurl variable.

Here's the code in which it's used:

Code (Subs.php) Select
'docs' => array(
'title' => $txt['docs'],
'href' => $boardurl . '/docs/index.php',
'show' => true,
'sub_buttons' => array(
),
),


Now, go to the page http://smftools.comlu.com/docs/index.php . What do you see?

Notice: Undefined variable: boardurl in /home/a9406461/public_html/forum/Sources/Subs.php on line 3948

So, can somebody help me?
SMF version: 2.0 RC4
Themes: Curve
Mods: Custom Top menu (uninstalling as we speak)

Thank you.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Kindred

did you global the $boardurl in the function?

mostly we use $scripturl for actions...   so I don't know if boardurl is set to be global.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

NanoSector

Quote from: Kindred on November 22, 2010, 02:40:24 PM
did you global the $boardurl in the function?

mostly we use $scripturl for actions...   so I don't know if boardurl is set to be global.
Erhm, no, I think.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

NanoSector

Thank you, that solved it (after a few errors....)!
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Advertisement: