Icy Phoenix

     
 


This forum is locked: you cannot post, reply or edit topics.  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
Reply with quote Download Post 
Post 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.
 



 
sharkattaqSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post 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'])) . '">' ;

 



 
ArtieSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 



 
sharkattaqSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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'] )),

 



 
ArtieSend private message  
Back to topPage bottom
This forum is locked: you cannot post, reply or edit topics.  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron