Forum

Questions and discussions

Related items - max amount limit? - Sorting order?

Script's setup and configuration

Related items - max amount limit? - Sorting order?

Postby pepperstreet » Tue Dec 18, 2012 2:32 am

The "RELATED" content keyword is used in details view. It seems, it does not allow any configuration?! How to set max amount of items ?

I expected to find something like the parameters for homepage components.


EDIT: :oops:
- Max. parameter is found in "settings" -> "site"
- Please, see my new comment and suggestion.
Last edited by pepperstreet on Mon Feb 25, 2013 8:32 pm, edited 2 times in total.
pepperstreet
 
Posts: 117
Joined: Fri Dec 14, 2012 10:49 pm

Re: Related items - min and max amount ?

Postby admin » Wed Dec 19, 2012 7:54 am

There are no any min or max limits. The script searches all photo which have similar titles/keywords/descriptions.

You can change the code in the file:
/admin/function/show.php

function show_related_items
admin
Site Admin
 
Posts: 1465
Joined: Sun Mar 07, 2010 5:55 pm

Re: Related items - min and max amount ?

Postby pepperstreet » Wed Dec 19, 2012 5:12 pm

No limits? :o

Forget about MIN, makes no real sense ;-)

I found the MAX value! It is located in "settings" -> "site". :D

Still one suggestion:
How are related items found and sorted? It seems to show always the SAME items. It would be ideal to have a random display, or an additional link in frontend to "show more related items"... This way, you are able to see the next XX items. The result: Not the same items on each visit.
pepperstreet
 
Posts: 117
Joined: Fri Dec 14, 2012 10:49 pm

Re: Related items - Sorting order ? Random ? Next ?

Postby pepperstreet » Mon Feb 25, 2013 8:30 pm

pepperstreet wrote:... How are related items found and sorted? It seems to show always the SAME items. It would be ideal to have a random display, or an additional link in frontend to "show more related items"... This way, you are able to see the next XX items. The result: Not the same items on each visit.


Any thoughts?
pepperstreet
 
Posts: 117
Joined: Fri Dec 14, 2012 10:49 pm

Re: Related items - max amount limit? - Sorting order?

Postby admin » Fri Mar 01, 2013 9:32 am

The script searches files which have similar titles/keywords/description from the database. It show X images order by random.
admin
Site Admin
 
Posts: 1465
Joined: Sun Mar 07, 2010 5:55 pm

Re: Related items - max amount limit? - Sorting order?

Postby pepperstreet » Fri Mar 01, 2013 9:48 am

admin wrote:The script searches files which have similar titles/keywords/description from the database. It show X images order by random.


Are you sure with "random"?!
It seems to show the same items all the time? Or is it a cache issue/feature ?
pepperstreet
 
Posts: 117
Joined: Fri Dec 14, 2012 10:49 pm

Re: Related items - max amount limit? - Sorting order?

Postby Indivstock » Sun Mar 03, 2013 5:08 pm

Yes this is a problem..
there is no cahce or cookie funciotn.. how its called.. dont know..
if it is set random.. maybe it happenes the same image is shown on page 1, 2 and 3... 500.
so one iamge will be displayed 500 times.. this means 500 other images arent shown...
do you know what i mean.. thats really bad..
cmsaccount script is loading random images on every site the user clicks and search for images..
Dont like it too.
Indivstock
 

Re: Related items - max amount limit? - Sorting order?

Postby pepperstreet » Mon Mar 04, 2013 8:55 pm

@Indivstock @cmsaccount
o.k. random order seems to work now. Don´t know why it did not work on my last session :?

Performance and No Limits:
This might become a really important issue. Is it possible to improve it for a very large amount of items?
pepperstreet
 
Posts: 117
Joined: Fri Dec 14, 2012 10:49 pm


Return to Configuration

Who is online

Users browsing this forum: No registered users and 4 guests

cron
  Photo Store Script

Professional php photo stock script and WordPress plug-in for photographers and video producers.

  Support
  CMSaccount Inc.