SOLVED FAP SUPPORT - Modifying Pic Links At The Main Album Page


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.

Profile PM  
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: [Download] [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: [Download] [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'])) . '">' ;

Profile PM  
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.

Profile PM  
Subject: Re: Modifying Pic Links At The Main Album Page
OPEN album_allpics.php

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

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


FIND
Code: [Download] [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: [Download] [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'] )),

Profile PM  

Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.0653s (PHP: 30% SQL: 70%)
SQL queries: 10 - Debug Off - GZIP Enabled