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 - Change 'Show All Comments' Button To 'Show New Comments' 
 
hey,

I'm wondering how I can change the Show all Comments button on the 'All Pics' page to actually show new comments instead of comment count. I realize this is selectable in the dropdown menu, but i feel it's a more important feature and should be easily accessible via the button.
 



 
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: Change 'Show All Comments' Button To 'Show New Comments' 
 
You can do this, but it will also affect when viewing all pictures of users .... if that matters to you.
 



 
ArtieSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Change 'Show All Comments' Button To 'Show New Comments' 
 
Not sure what you mean. So it's not possible without great effort to just change the button path to show 'new comments' instead of 'all comments' without changing the default display of 'all photos' by 'time' on the 'All Pics' page?
 



 
krisbfunkSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Change 'Show All Comments' Button To 'Show New Comments' 
 
It is no problem to simply change the path of the button

OPEN album_allpics.php

FIND
Code: [Download] [Hide] [Select]
'U_SHOW_ALL_COMMENTS' => append_sid(album_append_uid('album_allpics.' . $phpEx . '?'.$album_view_mode_param.'&type=comment')),


REPLACE WITH
Code: [Download] [Hide] [Select]
'U_SHOW_ALL_COMMENTS' => append_sid(album_append_uid('album_allpics.' . $phpEx . '?'.$album_view_mode_param.'&type=comment&sort_method=new_comment&sort_order=DESC')),

 



 
ArtieSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Change 'Show All Comments' Button To 'Show New Comments' 
 
that's great, works perferctly, thanks Artie.
 



 
krisbfunkSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Change 'Show All Comments' Button To 'Show New Comments' 
 
You are most welcome.  
 



 
ArtieSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Change 'Show All Comments' Button To 'Show New Comments' 
 
i tried to make this work for ratings too....

Code: [Download] [Hide] [Select]
'U_SHOW_ALL_RATINGS' => append_sid(album_append_uid('album_allpics.' . $phpEx . '?$album_view_mode_param&type=rating&sort_order=ASC')),


i wanna display that pic with the last rate on it at the first position an the page.

but it wont work  

maybe you can fix my problem ?
 



 
AnemiaSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Change 'Show All Comments' Button To 'Show New Comments' 
 
Anemia wrote: [View Post]
i tried to make this work for ratings too....

Code: [Download] [Hide] [Select]
'U_SHOW_ALL_RATINGS' => append_sid(album_append_uid('album_allpics.' . $phpEx . '?$album_view_mode_param&type=rating&sort_order=ASC')),


i wanna display that pic with the last rate on it at the first position an the page.

but it wont work  

maybe you can fix my problem ?


you're missing a couple periods and single quotes in your code..

try this, it worked for me:

Code: [Download] [Hide]
  1. 'U_SHOW_ALL_RATINGS' => append_sid(album_append_uid('album_allpics.' . $phpEx . '?'.$album_view_mode_param.'&type=rating&sort_order=ASC')), 

 



 
krisbfunkSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Change 'Show All Comments' Button To 'Show New Comments' 
 
I forgot to include this in my post above:

"First you should apply this fix:  http://www.icyphoenix.com/viewtopic.php?t=946 "

Anemia wrote: [View Post]

i wanna display that pic with the last rate on it at the first position an the page.


Ascending is the default. If you want the order descending try this:

Code: [Download] [Hide] [Select]
'U_SHOW_ALL_RATINGS' => append_sid(album_append_uid('album_allpics.' . $phpEx . '?'.$album_view_mode_param.'&type=rating&sort_method=rating&sort_order=DESC')),

 



 
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