SOLVED FAP CUSTOMIZATION - Change 'Show All Comments' Button To 'Show New Comments'


Subject: 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.

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

Profile PM  
Subject: 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?

Profile PM  
Subject: 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')),

Profile PM  
Subject: Re: Change 'Show All Comments' Button To 'Show New Comments'
that's great, works perferctly, thanks Artie.

Profile PM  
Subject: Re: Change 'Show All Comments' Button To 'Show New Comments'
You are most welcome. 8)

Profile PM  
Subject: 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 ?

Profile PM  
Subject: 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')), 

Profile PM  
Subject: 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')),

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.0947s (PHP: 22% SQL: 78%)
SQL queries: 10 - Debug Off - GZIP Enabled