FAP SUPPORT - Modifying Pic Links At The Main Album Page »  Show posts from    to     

Icy Phoenix


Archived phpBB Topics (Styles, Mods, Support) - FAP SUPPORT - Modifying Pic Links At The Main Album Page



sharkattaq [ Fri 26 Dec, 2008 17:45 ]
Post subject: FAP SUPPORT - Modifying Pic Links At The Main Album Page
In the main album page (album.php) in the categories listing I have both a last pic thumbnail column and a last pic details column.

Clicking on the thumbnail at one column or on the pic title at the other column has the same effect.

From the control panel I can select whether clicking there leads to the pic popup or the pic description. But no matter what I do they both always have to point to the same thing.

What I would want is to click on the thumbnail and go the pic popup and to click to the title and go to the pic description.

But obviously, these two links share the same code and are always the same. A look at the code revealed no obvious small change that could fix that.

Can anyone help me with this? Thank you.

Felix.


Artie [ Sat 27 Dec, 2008 23:45 ]
Post subject: Re: Modifying Pic Links At The Main Album Page
I think this will do it for you

OPEN album_hierarchy_sql.php
FIND
Code: [Hide] [Select]
$info .= ($album_config['fullpic_popup']) ? append_sid(album_append_uid('album_pic.' . $phpEx . '?pic_id=' . $row['pic_id'])) . '" target="_blank">' : append_sid(album_append_uid($album_pic_url . '?pic_id=' . $row['pic_id'])) . '">' ;

REPLACE WITH
Code: [Hide] [Select]
//$info .= ($album_config['fullpic_popup']) ? append_sid(album_append_uid('album_pic.' . $phpEx . '?pic_id=' . $row['pic_id'])) . '" target="_blank">' : append_sid(album_append_uid($album_pic_url . '?pic_id=' . $row['pic_id'])) . '">' ;
$info .= append_sid(album_append_uid($album_pic_url . '?pic_id=' . $row['pic_id'])) . '">' ;


sharkattaq [ Sun 28 Dec, 2008 02:31 ]
Post subject: Re: Modifying Pic Links At The Main Album Page
Thanks, it works great!

Do you know how I can apply the same change at the allpics page? Meaning clicking on title to open description and clicking on thumb to open a popup.


Artie [ Thu 01 Jan, 2009 18:57 ]
Post subject: Re: Modifying Pic Links At The Main Album Page
OPEN album_allpics.php

FIND
Code: [Hide] [Select]
$album_show_pic_url = 'album_showpage.' . $phpEx;

AFTER ADD
Code: [Hide] [Select]
$album_show_pic_detail_url = 'album_showpage.' . $phpEx;


FIND
Code: [Hide] [Select]
'U_PIC' => append_sid(album_append_uid($album_show_pic_url . '?pic_id=' . $picrow[$j]['pic_id'] . '&sort_order=' . $sort_order. '&sort_method=' .$sort_method)),

REPLACE WITH
Code: [Hide] [Select]
//'U_PIC' => append_sid(album_append_uid($album_show_pic_url . '?pic_id=' . $picrow[$j]['pic_id'] . '&sort_order=' . $sort_order. '&sort_method=' .$sort_method)),
'U_PIC' => append_sid(album_append_uid($album_show_pic_detail_url . '?pic_id=' . $picrow[$j]['pic_id'] )),




Powered by Icy Phoenix