aaahhh yes perfect! my favorites button is working great now!
http://ad6storieshigh.com/gallery/displayimage.php?pos=-476And just to help anyone out that wants the same...a full explanation.
(I'm using stramm's modpack, oranje theme, but my navbar is taken from eyeball and modified slightly)
1st - Add a image fav.gif into your themes/images/ folder (mine is located in themes/images/newnav/ just so I can edit those files and leave stramm's alone)
2nd - In themes/yourtheme/theme.php
AFTER
<!-- BEGIN ecard_button -->
<td align="center" valign="middle" class="navmenu" width="48">
<a href="{ECARD_TGT}" class="navmenu_pic" title="{ECARD_TITLE}"><img src="{LOCATION}images/ecard.gif" border="0" align="middle" alt="{ECARD_TITLE}" /></a>
</td>
<!-- END ecard_button -->
ADD
<!-- DEBUT lien vers les favorits (ajout FRANTZ) -->
<td align="center" valign="middle" class="navmenu" width="48">
<a href="{FAV_TGT}" class="navmenu_pic" title="{FAV_TITLE}"><img src="{LOCATION}images/fav.gif" border="0" align="middle" alt="{FAV_TITLE}" /></a>
</td>
<!-- FIN Lien favorits (ajout FRANTZ) -->
3rd - Open include/themes.inc.php (this code might already be in your themes/yourtheme/theme.php, if so skip to step 4)
Copy the whole function..
function theme_html_img_nav_menu()
Paste it into THEMES.PHP right before
?>
Close themes.inc.php, don't edit it or save changes to it.
4th - In function theme_html_img_nav_menu()
After
global $album, $cat, $pos, $pic_count, $lang_img_nav_bar, $lang_text_dir, $template_img_navbar;
Add
global $lang_picinfo, $FAVPICS ;//ajout pour icone favorits
After
$CONFIG['slideshow_interval'];
$pic_pos = sprintf($lang_img_nav_bar['pic_pos'], $human_pos, $pic_count);
if (defined('THEME_HAS_NAVBAR_GRAPHICS')) {
$location= $THEME_DIR;
} else {
$location= '';
}
Add
//ajout pour lien vers favorits (Frantz)
// Create the add to fav link
if (!in_array($CURRENT_PIC_DATA['pid'], $FAVPICS)) {
$fav_tgt = "addfav.php?album=$album$cat_link&pid=$pid&pos=$pos";
$fav_title = $lang_picinfo['addFav'];
} else {
$fav_tgt = "addfav.php?album=$album$cat_link&pid=$pid&pos=$pos";
$fav_title = $lang_picinfo['remFav'];
}
//fin ajout
close theme.php (save of course)
5th - In (galleryroot)/displayimage.php
AFTER
// Display picture information
function html_picinfo()
{
global $CONFIG, $CURRENT_PIC_DATA, $CURRENT_ALBUM_DATA, $THEME_DIR, $REFERER;
global $album, $lang_picinfo, $lang_display_image_php, $lang_byte_units, $lastup_date_fmt;
ADD
global $FAVPICS ;//ajout pour icone favorits
Thanks Nibbler and stramm.
all credit goes to the people in the threads mentioned in my first post