Menu

Theme Modifications

Help
John T
2003-09-09
2003-09-09
  • John T

    John T - 2003-09-09

    Collective,

    As I know about how to spell PHP, however, I can't write it yet.  What I want to do is add a icon to the login link in the header.  I looked for the link thinking it was simple html.  I have not been able to locate how to add a icon to represent the login.  My users are the older crowd in the family, so they tend to miss the Login text.

    Thanks
    John

     
    • Arne Eckmann

      Arne Eckmann - 2003-09-09

      In MySQL version, functions.php line 1079 you'll find:

      function print_user_links() {

      In line 1089 in this function you'll find:

      print "<a href=\"login.php\" class=\"link\">".$pgv_lang["login"]."</a></div>";

      My guess is, that replacing line 1089 with say:

      print "<a href=\"login.php\" class=\"link\"><img src=\"images/whatever.gif\"></a></div>";

      will do the trick.

      best regard
      Arne

       
    • Arne Eckmann

      Arne Eckmann - 2003-09-09

      In the non-MySQL version the linenumbers in question is:
      1013 = function print_user_links() {

      1023 = print "<a href=\"login.php\" class=\"link\">".$pgv_lang["login"]."</a></div>";

      best regard

      Arne

       
    • John Finlay

      John Finlay - 2003-09-09

      I moved the login links to a function, as Arne has pointed out, so that you could use one function in your header or footer to get all of the related admin links.  You are not required to use this function to print out the links.  I thought it would be easier for non PHP people to modify their themes if the links were in a function so that they wouldn't have to wade through PHP code when they were modifying their headers.

      In your case you can either modify the print_user_links() function or you can remove the link <?php print_user_links(); ?> from your header and do the admin links however you want.

      Perhaps I should move the print_user_links function to the file theme.php instead of in functions.php?

      --John

       
    • John T

      John T - 2003-09-09

      Collective,

      Yes I use the MySQL version, is there any other?  j/k

      In my non-PHP coding abilities, I think it would be wise to move the links to the themes directory.  I would also like ot chime in on the images and linking to custom images.  I personally feel this package has saved me 100 MB of disk space.  So for me to have the same image in each theme directory is not an issue.  Perhaps you could have a base image directory, and a theme only directory.  I don't know how you'd do this, but from what I can see, John and crew can figure out a slick way to do it.

      John

       

Log in to post a comment.