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 CUSTOMIZATION - Add Titles To Next & Previous Pics In Pic Navigation 
 
Hi i was wanting to add the actual picture titles to the next and previous pictures on the picture navigation on album_showpage_body right now the tpl file shows:

Code: [Download] [Hide] [Select]
<!-- BEGIN pics_nav -->
<br />
<table class="forumline" width="98%" align="center" cellspacing="1" cellpadding="2">
    <tr><th class="thTop" nowrap="nowrap" width="100%" colspan="5">{pics_nav.L_PICS_NAV}</th></tr>
    <tr>
        <!-- BEGIN next -->
        <td class="row1" width="20%" align="center">
            <table><tr><td><div class="picshadow"><div class="picframe">
                <a href="{pics_nav.next.U_PICS_LINK}"><img src="{pics_nav.next.U_PICS_THUMB}" {THUMB_SIZE} alt="{pics_nav.L_PICS_NAV_NEXT}" title="{pics_nav.L_PICS_NAV_NEXT}" vspace="10" border="0" {pics_nav.next.PIC_PREVIEW} /></a>
            </div></div></td></tr></table>
        </td>
        <!-- END next -->
        <td class="row1" width="20%" align="center">
            <table><tr><td><div class="picshadow"><div class="picframe">
                <img src="{U_PIC_THUMB}" {THUMB_SIZE} border="3px" alt="{PIC_TITLE}" title="{PIC_TITLE}" vspace="10" style="border-color: #FF8866" />
            </div></div></td></tr></table>
        </td>
        <!-- BEGIN prev -->
        <td class="row1" width="20%" align="center">
            <table><tr><td><div class="picshadow"><div class="picframe">
                <a href="{pics_nav.prev.U_PICS_LINK}"><img src="{pics_nav.prev.U_PICS_THUMB}" {THUMB_SIZE} alt="{pics_nav.L_PICS_NAV_PREV}" title="{pics_nav.L_PICS_NAV_PREV}" vspace="10" border="0" {pics_nav.prev.PIC_PREVIEW} /></a>
            </div></div></td></tr></table>
        </td>
        <!-- END prev -->
    </tr>
</table>
<br />
<!-- END pics_nav -->


so instead of {pics_nav.L_PICS_NAV_NEXT} it'd be like {pics_nav.L_PICS_NAV_NEXT_TITLE} and {pics_nav.L_PICS_NAV_PREV} it'd be like {pics_nav.L_PICS_NAV_PREV_TITLE}
 



 
Last edited by luckyou03 on Tue 25 Dec, 2007 00:14; edited 1 time in total 
luckyou03Send 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: Add Titles To Next & Previous Pics In Pic Navigation 
 
I assume you are wanting the pic title to display in the tooltip on mouseover of the next/prev thumbnails.
This should do that for you.


OPEN album_showpage.php

FIND 4 instances of
Code: [Download] [Hide] [Select]
'PIC_PREVIEW' => $pic_preview,

AFTER ADD (2 instances where applicable for Next Pic)
Code: [Download] [Hide] [Select]
'PIC_TITLE' => $next_pic_rows[$i]['pic_title'],

AND

AFTER ADD (2 instances where applicable for Previous Pic)
Code: [Download] [Hide] [Select]
'PIC_TITLE' => $prev_pic_rows[$i]['pic_title'],


OPEN album_showpage_body.tpl

FIND
Code: [Download] [Hide] [Select]
alt="{pics_nav.L_PICS_NAV_NEXT}" title="{pics_nav.L_PICS_NAV_NEXT}"

REPLACE WITH
Code: [Download] [Hide] [Select]
alt="{pics_nav.next.PIC_TITLE}" title="{pics_nav.next.PIC_TITLE}"

FIND
Code: [Download] [Hide] [Select]
alt="{pics_nav.L_PICS_NAV_PREV}" title="{pics_nav.L_PICS_NAV_PREV}"

REPLACE WITH
Code: [Download] [Hide] [Select]
alt="{pics_nav.prev.PIC_TITLE}" title="{pics_nav.prev.PIC_TITLE}"

 



 
ArtieSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Add Titles To Next & Previous Pics In Pic Navigation 
 
you are the best, thanks very much
 



 
luckyou03Send 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