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 - Consistant Pic_detail Forum Wide 
 
I modified the formatting of the pic_detail in album_cat_body.tpl and want it to be consistant forum wide, but I can't seem to find the pic_detail section for album_allpics, which tpl file is it located in? I thought it was in album_box.tpl, but don't see similar code there.
 



 
krisbfunkSend 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: Consistant Pic_detail Forum Wide 
 
I'm pretty sure it's album_memberlist_body.tpl
 



 
ArtieSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Consistant Pic_detail Forum Wide 
 
ok, it is. I'd like to add a 'Poster' feild in there, can you help with that?
 



 
krisbfunkSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Consistant Pic_detail Forum Wide 
 
Give this a try.

OPEN templates/YOUR TEMPLATE/album_memberlist_body.tpl

FIND
Code: [Download] [Hide] [Select]
{L_PIC_ID}: {picrow.pic_detail.PIC_ID}<br />
            

AFTER ADD
Code: [Download] [Hide] [Select]
{L_POSTER}: {picrow.pic_detail.POSTER}<br />


OPEN album_allpics.php

FIND
Code: [Download] [Hide] [Select]
$list_sql = "SELECT DISTINCT(p.pic_id), ct.cat_user_id, ct.cat_id, ct.cat_title, p.pic_title, p.pic_desc, p.pic_user_id, p.pic_user_ip, p.pic_time, p.pic_view_count, p.pic_lock, p.pic_filename, p.pic_thumbnail, r.rate_pic_id,
                        AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments, MAX(c.comment_id) as new_comment
                    FROM ".ALBUM_TABLE. " AS p
                        LEFT JOIN ".ALBUM_RATE_TABLE." AS r ON p.pic_id = r.rate_pic_id
                        LEFT JOIN ".ALBUM_COMMENT_TABLE." AS c ON p.pic_id = c.comment_pic_id
                        LEFT JOIN ".ALBUM_CAT_TABLE." AS ct ON p.pic_cat_id = ct.cat_id                    
                              WHERE ct.cat_id IN ($allowed_cat)
                    GROUP BY p.pic_id
                    ORDER BY $sort_method $sort_order
                    LIMIT $limit_sql";

REPLACE WITH
Code: [Download] [Hide] [Select]
$list_sql = "SELECT DISTINCT(p.pic_id), ct.cat_user_id, ct.cat_id, ct.cat_title, p.pic_title, p.pic_desc, p.pic_user_id, p.pic_user_ip, p.pic_time, p.pic_view_count, p.pic_lock, p.pic_filename, p.pic_thumbnail, r.rate_pic_id,
                        AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments, MAX(c.comment_id) as new_comment, u.username AS username
                    FROM ".ALBUM_TABLE. " AS p
                        LEFT JOIN ".ALBUM_RATE_TABLE." AS r ON p.pic_id = r.rate_pic_id
                        LEFT JOIN ".ALBUM_COMMENT_TABLE." AS c ON p.pic_id = c.comment_pic_id
                        LEFT JOIN ".ALBUM_CAT_TABLE." AS ct ON p.pic_cat_id = ct.cat_id                    
                    LEFT JOIN ".USERS_TABLE." AS u ON p.pic_user_id = u.user_id
          WHERE ct.cat_id IN ($allowed_cat)
                    GROUP BY p.pic_id
                    ORDER BY $sort_method $sort_order
                    LIMIT $limit_sql";



FIND
Code: [Download] [Hide] [Select]
$image_cat_url = append_sid(album_append_uid($album_page_url . '?cat_id=' . $picrow[$j]['cat_id'] . '&amp;user_id=' . $picrow[$j]['cat_user_id']));

AFTER ADD
Code: [Download] [Hide] [Select]
    if( ($picrow[$j]['pic_user_id'] == ALBUM_GUEST) || ($picrow[$j]['username'] == '') )
                {
                    $pic_poster = ($picrow[$j]['pic_username'] == '') ? $lang['Guest'] : $picrow[$j]['pic_username'];
                }
                else
                {
                    $pic_poster = '<a href="'. append_sid(PROFILE_MG . '?mode=viewprofile&amp;' . POST_USERS_URL .'='. $picrow[$j]['pic_user_id']) .'">'. $picrow[$j]['username'] .'</a>';
                }


FIND
Code: [Download] [Hide] [Select]
'TITLE' => $picrow[$j]['pic_title'],

AFTER ADD
Code: [Download] [Hide] [Select]
'POSTER' => $pic_poster,



FIND
Code: [Download] [Hide] [Select]
'L_PICTURES_OF_USER' => $list_title,

AFTER ADD
Code: [Download] [Hide] [Select]
'L_POSTER' => $lang['Pic_Poster'],


album_mod/album_memberlist.php also uses this same tpl file (for all pics of user)...I suspect it is very similar to album_allpics.php, but I did not check....so if you want the poster name here, you will need to modify it as well
 



 
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