PhotoPlog

PhotoPlog (http://www.photoplog.com/forum/index.php)
-   "How Do I..." Questions (http://www.photoplog.com/forum/forumdisplay.php?f=7)
-   -   modifying subnav link variables (http://www.photoplog.com/forum/showthread.php?t=155)

lightnb 03-19-2006 08:12 PM

modifying subnav link variables
 
you know the table at the top, where it says "home, upload, search" etc.?

I want to edit those link variables, so that instead of being text phrases they are graphical buttons.

where can i find the actuall links?

thanks,

Nick

Morgan 03-21-2006 04:21 PM

Look for the following in the settings.php file:
Code:

// ################### INITIALIZE SUB NAVBAR LINKS ########################

WNM07 07-08-2008 02:01 PM

Quote:

Originally Posted by Morgan (Post 6219)
Look for the following in the settings.php file:
Code:

// ################### INITIALIZE SUB NAVBAR LINKS ########################

can you give me an example of how i would edit that to make an image show instead of text?

Morgan 07-09-2008 01:31 PM

From:
Code:

                $photoplog['view_link'] = "<a href=\"".$photoplog_view_loc."\">".$vbphrase['photoplog_home']."</a>";
To:
Code:

                $photoplog['view_link'] = "<a href=\"".$photoplog_view_loc."\"><img src=\"path_to_image_here.jpg\" alt=\"\" border=\"0\" /></a>";
Or edit the photoplog_home phrase via the ACP or edit the photoplog_sub_navbar template.

WNM07 07-10-2008 03:30 PM

yeah i understand how to make the images appear but with edit and delete each picture has it's own address

Morgan 07-10-2008 03:36 PM

It's the same for the other links. The A HREF part is already set. You replace the phrase part as shown in the previous post:
Code:

                $photoplog['edit_link'] = "<a href=\"".$photoplog_edit_loc."\">".$vbphrase['photoplog_edit']."</a>";
Code:

                $photoplog['edit_link'] = "<a href=\"".$photoplog_edit_loc."\"><img src=\"path_to_image_here.jpg\" alt=\"\" border=\"0\" /></a>";
Or edit the photoplog_edit phrase via the ACP or edit the photoplog_sub_navbar template, the latter of which would require that you set both the A HREF link and IMG tag, so it's probably not the easiest choice. Editing the photoplog_edit phrase would probably be the easiest choice, but that of course would affect all places where the phrase appears on screen, so that leaves the PHP file edits.


All times are GMT. The time now is 02:26 AM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.