View Full Version : How to stop new comments from changing order of pics in Categories?
June 29th, 2004, 09:09 AM
We haven't used the comments feature much because we use the forums for discussion.
As a result, I have just noticed that when a comment is made, that it changes the order of the pictures in a category.
This is a major problem, because we go to great effort to post photos in sequence so we can link to a series of pics for example, the first of a series of pics, where the member can then press next.
Is the only option I have to turn off coments?
June 29th, 2004, 09:11 AM
Well, the default Sort Order of "Most Active" uses comments to change the order. You can change the default sort order to "Most Recent" to avoid that.
June 29th, 2004, 03:22 PM
OK I can see where to do this for each category.
As we want the whole gallery's default sort order to be most recent, is there another way to change them all at once.
How would I (that is, Carole) do this?
Also I would like to remove the most active button completely.
I have decided not to use the comments function in this gallery, so therefore most active is not relevent. (correct?)
And this is the only one that functions with comments, is this right?.
So how would Carole remove Most Active completly?,
so that`Latest' shows up instead?
Most appreciate your help.
June 29th, 2004, 04:06 PM
...and when I click on `last day' it is not showing in order of latest (most recent) but most active (comments are screwing it up)
I deleted the comment but it did not return the pic to it's upload time.
So mainly i need to get rid of the most active(comments) function
June 29th, 2004, 06:51 PM
hmm even though I have comments turned off in admin options, comments and posts info are showing in each members profile.
Are we going to have to do a bunch of mods to eliminate the comments feature?
June 29th, 2004, 08:04 PM
Well, I looked at the source code.
Find showgallery.php and look at line 110
You will find following.
if ( empty($sort) ) $sortparam = ( isset($catsortorder) && $catsortorder > 0 ? $catsortorder : 1 );
And from photopost database, you have this,
2 Latest ORDER BY disporder,date DESC
3 Most Views ORDER BY disporder,views DESC
1 Most Active ORDER BY disporder,lastpost DESC
4 Most Popular ORDER BY disporder,rating DESC, views DESC
6 Random ORDER BY disporder,RAND()
5 Least Popular ORDER BY disporder,rating,views
7 Image Name ORDER BY disporder,bigimage
8 Title ORDER BY disporder,title
Replace ( isset($catsortorder) && $catsortorder > 0 ? $catsortorder : 1 ) with the sort # you want.
For an example, in my case, I wanted "Image name" to be default.
So, my code was,
if ( empty($sort) ) $sortparam = 7;
Not a complete solution for you, but it may help somewhat.
June 29th, 2004, 10:26 PM
Thanks klisis for your help! I'll pass this on to my partner who has to do the work!
This thread has evolved from ` How to stop new comments from changing order of pics in Categories?'
(which Michael showed me how to change sort order as per category)
...to my decision not to use the comments feature at all...
...and Q's on how to remove all things in the Gallery that associate with comments
- change default sort order from most active to `latest' (most recent)
- remove `active comments' button from the drop menu
- make it so last day(s) buttons show `most recent'
- remove comments/posts view from members profile
Perhaps I, or Carole should start a new thread about this...
The comments feature may be all and well for some folks (we are considering buying another PP for our site which may enable commenting, but in the current gallery, the app looks much cleaner and professional looking with out the comments.
Iwas hoping that it might be as easy as checking some boxes and clicking on a button... oh well...
vBulletin® v3.8.1, Copyright ©2000-2015, Jelsoft Enterprises Ltd.