{} Variables aren't working. {} Variables aren't working.
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

{} Variables aren't working.

Started by Sw0rDz, July 24, 2010, 05:25:37 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Sw0rDz

I'm not sure if this the right board and feel free to move it.  I can't get any of the {}'s variables to work!  So I decide to hard-code all the links for my navigation, and I'm having trouble with some of the links, especially logut.

So I see that in my theme.php I have $template_sys_menu defined and define('THEME_HAS_NO_SYS_MENU_BUTTONS', 1); near the <?, ignoring comments.  It won't show any of the links or the code!

However, I do use pageheader(); and that's being used.  I'm thinking conflicting with this.


function pageheader($section, $meta = '')
{

global $CONFIG;
include('config.php');

$title = $CONFIG['gallery_name'];
$description = $CONFIG['gallery_description'];
$keywords = "zelda, legend, dungeon, artwork, pictures, photographs";

if(isset($CURRENT_PIC_DATA) )
{
$keywords .= ", " . $CURRENT_PIC_DATA['keywords'] . ", " . $CURRENT_PIC_DATA['title'];
$title .= " - " . $CURRENT_PIC_DATA['title'];
}

$extraheader[] = "<link rel=\"stylesheet\" href=\"css/coppermine.css\" type=\"text/css\" />";
$extraheader[] = "<link rel=\"stylesheet\" href=\"themes/19Dungeon/style.css\" type=\"text/css\" />";
$extraheader[] = theme_javascript_head();
include('header.php');


}


The header, config are files that I need to be included because they're being used other files to keep site consistency.

Thanks!

papukaija


Sw0rDz

I've got it to work now.  It was when I was overwriting the function that handle the header.  I did a custom header, which it included a .php file that I used to handle my header.  Thanks for the reply though!