• [Mod] Let visitors to chose how to sort images(date,name,..) 5 0 5 1
Currently:  

Author Topic: [Mod] Let visitors to chose how to sort images(date,name,..)  (Read 182062 times)

0 Members and 1 Guest are viewing this topic.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [Mod] Let visitors to chose how to sort images(date,name,..)
« Reply #90 on: October 08, 2007, 01:05:52 AM »
Ok but ... which place in 4images you want to show this ? ... site layout (left side), details ... categories page ? Please say detail ...
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Falldog

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: [Mod] Let visitors to chose how to sort images(date,name,..)
« Reply #91 on: October 08, 2007, 02:27:32 AM »
Just on the categories page...

i.e. > http://imgdump.info/cat-boats-647.htm

On the categories page I have the following code chunk...

Code: [Select]
                  {if thumbnails}<br>{imgsort_dropdown_form}<br>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td>{thumbnails}</td>
                    </tr>
                  </table>
  {endif thumbnails}

I put the {imgsort_dropdown_form} within the {if thumbnails} so it doesn't display unless there are images in the category.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [Mod] Let visitors to chose how to sort images(date,name,..)
« Reply #92 on: October 08, 2007, 02:50:42 AM »
Ok before you say file size and now is dropdown ... I no get what you try to do sorry.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Falldog

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: [Mod] Let visitors to chose how to sort images(date,name,..)
« Reply #93 on: October 08, 2007, 04:03:47 AM »
Well the same way that this mod allows you to sort a category of images based on image_date, image_downloads, image_votes, or image_rating I would like to sort by the file size of the images.

Just a modification to this mod as is that lets you select "File Size" from that drop down list and sort the same way as the other options.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [Mod] Let visitors to chose how to sort images(date,name,..)
« Reply #94 on: October 08, 2007, 04:41:06 AM »
File size for categories ... ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline hoho

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Re: [Mod] Let visitors to chose how to sort images(date,name,..)
« Reply #95 on: December 10, 2007, 05:58:46 PM »
HY.

Is there a way to change the drop down menu to text links. For example, I would like to be able to click Name, Date, Rating etc. to sort the images.
An example of this is posted here, http://www.desktopwallpapers.co.uk/desktop_wallpaper/landscapes.html

Haw can i make this.

Please help.

Offline malpa

  • Pre-Newbie
  • Posts: 8
    • View Profile
    • Video center
Re: [Mod] Let visitors to chose how to sort images(date,name,..)
« Reply #96 on: January 02, 2008, 07:19:11 PM »
A have installed A-version of this MOD.

But the MOD doesn't work:

User selects to sort images (there is no matter how), but after reloading of a page nothing happens: the script of the 4images takes data from the cache folder!

Only Admin can refresh the cache folder manually. After refreshing of the cache folder MOD begins to sort images.

So, users use this MOD, but they get nothing after refreshing: script shows an old version of the page with date-sorting from cache folder!

How can we solve this problem with an old version of the page in cache folder?


Offline Falldog

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: [Mod] Let visitors to chose how to sort images(date,name,..)
« Reply #97 on: January 16, 2008, 05:43:31 PM »
File size for categories ... ?

Hmmm... let's see if I can explain this.

Let's say I have a gallery with five images.

Name       Date     Hits     Downloads     Size
Image 1     12/6     5            2             3.6MB
Image 2     6/3     100          4             1.6MB
Image 3     1/2     50            40            700KB
Image 4     3/9     10            0             10KB
Image 5    12/5     4             0             2.2MB

When you sort by hits descending while in the category the sort would go images 2, 3, 4, 1, 5.

I'd like to allow users to sort by size, where decending the order would be images 1, 5, 2, 3, 4

Tobi.L

  • Guest
Re: [Mod] Let visitors to chose how to sort images(date,name,..)
« Reply #98 on: June 09, 2008, 11:21:17 PM »
Nice Mod!
Läuft unter 1.7.6!

Offline Daniel

  • Full Member
  • ***
  • Posts: 183
  • php rockt
    • View Profile
Re: [Mod] Let visitors to chose how to sort images(date,name,..)
« Reply #99 on: July 10, 2008, 04:14:51 PM »
Kann ich bestätigen. Läuft ausgezeichnet unter 1.7.6.
Danke/Thanks great!
4images in Benutzung/use seit/since 2002 / Version 1.7.6

Offline tennis-ecards

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: [Mod] Let visitors to chose how to sort images(date,name,..)
« Reply #100 on: September 25, 2008, 04:55:47 PM »
Hi, ich möchte die User nach Anzahl versendeter eCards sortieren lassen. Was muss ich ändern? Den MOD zum Zählen der Postkarten habe ich bereits installiert. (http://www.4homepages.de/forum/index.php?topic=10439.msg51881#msg51881)

Hi, how can visitors sort by number of ecards sent? I allready have this MOD installed (http://www.4homepages.de/forum/index.php?topic=10439.msg51881#msg51881)

Please help!

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Let visitors to chose how to sort images(date,name,..)
« Reply #101 on: September 26, 2008, 12:26:13 AM »
Hi, how can visitors sort by number of ecards sent? I allready have this MOD installed (http://www.4homepages.de/forum/index.php?topic=10439.msg51881#msg51881)

Please help!
Try use this code from Step 2.1:
//--------------Images Sort-------------------------
//---This was taken from /lang/YOURLANG/admin.php---
//--------------------------------------------------
$lang['image_order'] = "Sort images by";
$image_order_optionlist = array(
  
"image_name"      => "Name",
  
"image_date"      => "Date",
  
"image_downloads" => "Downloads",
  
"image_votes"     => "Votes",
  
"image_rating"    => "Rating",
  
"image_hits"      => "Hits",
  
"image_postcards" => "Sent eCards",
);
$lang['image_sort'] = "Ascending/Descending";
$image_sort_optionlist = array(
  
"ASC"  => "Ascending",
  
"DESC" => "Descending"
);
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline tennis-ecards

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: [Mod] Let visitors to chose how to sort images(date,name,..)
« Reply #102 on: September 27, 2008, 04:56:02 PM »
it works when using this in admin.php and main.php
thanks!

Offline Daniel

  • Full Member
  • ***
  • Posts: 183
  • php rockt
    • View Profile
Re: [Mod] Let visitors to chose how to sort images(date,name,..)
« Reply #103 on: May 01, 2009, 03:46:58 PM »
HI,

how i can make a LINK for the image-sort?
example: LINK for the most Hits:

<FORM method="post" action="{self}&imagesorder=image_hits&imagessort=DESC">  <INPUT type="submit" value="most seen" class="button" name="submit" /></FORM>

But it dont work. Anything Ideas?

thanks and greets
daniel
4images in Benutzung/use seit/since 2002 / Version 1.7.6

Offline Joss

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • All about digital photography
Re: [Mod] Let visitors to chose how to sort images(date,name,..)
« Reply #104 on: October 28, 2009, 01:47:13 PM »
A have installed A-version of this MOD.

But the MOD doesn't work:

User selects to sort images (there is no matter how), but after reloading of a page nothing happens: the script of the 4images takes data from the cache folder!

Only Admin can refresh the cache folder manually. After refreshing of the cache folder MOD begins to sort images.

So, users use this MOD, but they get nothing after refreshing: script shows an old version of the page with date-sorting from cache folder!

How can we solve this problem with an old version of the page in cache folder?



Vano, the same problem with B-version. Is there any solution for make this MOD working with category caching?
Digital Photo Gallery: http://gallery.imagemaster.ru