Menu

Vars used for images

Help
John T
2003-11-28
2003-11-29
  • John T

    John T - 2003-11-28

    John,

    In 2.61b3 I found in Themes.php all the image vars listed.  I thought I might place an additional var in the list.  $PGV_HEADER_IMG = "header.jpg";

    In my header.html file, I changed the reference for thq image to the following on line 4:

    <img src="<?php print "$PGV_IMAGE_DIR/$PGV_HEADER_IMG";?>" alt="" /></td>

    When it tries to display this, I get an "Undefined variable:  PGV_HEADER_IMG " in the error log.  As such the picture does not display.  Being as the Header logo appears to be the only graphic not defined in a variable, I was attempting to move it.  Is there any other place besides THQMES.php that this var should be declared?

    Thanks
    John

     
    • John Finlay

      John Finlay - 2003-11-29

      The variable needs to be declared global in the print_header() function in the functions_print.php file.

      I didn't add a variable to theme.php for the header image because it is only referenced in the header.html file not in any of the PhpGedView code.  The image files that have variables are referenced in other areas of the program.

      --John

       
    • John T

      John T - 2003-11-29

      John,

      Ok thanks.  My only reason is that I'm goofing with theme ideas not only for gedview but with other ideas for my site.  I just thought if I had multiple header graphics, that I could adjust it according to theme options at the time.  Hoping to cause less errors later.

      So assuming the altered lin in header.html is correct,  I now need to a. add it to theme.php and update function_print.php this being done, I think one could have additional control ofver the themes, and would minimize errors one could accidently introduce onto ones self.  Seeing as how you standardized all other graphics, why not include the header?

      Otherwise, I do understand.  Either way is fine with me.

      Thanks for the Reply.
      John

       

Log in to post a comment.