• [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 181487 times)

0 Members and 1 Guest are viewing this topic.

Offline popo

  • Pre-Newbie
  • Posts: 8
    • View Profile
[Mod] Let visitors to chose how to sort images(date,name,..)
« Reply #45 on: June 03, 2003, 03:29:12 AM »
but I think it's sortted images by username will be better.

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
[Mod] Let visitors to chose how to sort images(date,name,..)
« Reply #46 on: June 03, 2003, 03:55:51 AM »
Quote from: popo
but I think it's sortted images by username will be better.

did u read all replys?
I posted the code on second page of this thread
http://www.4homepages.de/forum/viewtopic.php?t=3842
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 popo

  • Pre-Newbie
  • Posts: 8
    • View Profile
[Mod] Let visitors to chose how to sort images(date,name,..)
« Reply #47 on: June 03, 2003, 06:13:06 AM »
oh, sorry, it worked after I read the second page.

Offline lutz

  • Addicted member
  • ******
  • Posts: 1.675
    • View Profile
[Mod] Let visitors to chose how to sort images(date,name,..)
« Reply #48 on: June 11, 2003, 01:09:48 PM »
hi all,
is someone able to do this mod as a selfjump box as the ohter mods with dropdown lists? i have the category dropdown list and the images per page list as selfjump box, so this would be the only one where i have to click "go"...
i don´t know anything about php, so this is just a humble request  :wink:
Grüße, Lutz
kurze antworten sind nicht unhöflich gemeint, sondern effizient
short answers are not meant rude, but just efficient

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
[Mod] Let visitors to chose how to sort images(date,name,..)
« Reply #49 on: June 11, 2003, 03:06:25 PM »
Be careful about making the submission of that a form a "selfjump" action.  There are two form elements, the drop down list and the radio buttons.  If I'm a user and I see that form, I'm going to think I can select something from the drop down "sort by" and then click one of the radio buttons to choose the ascending/descending.  If you make the drop down list a selfjump, I'm going to be surprised that I couldn't change the radio button.  This is a usability issue and just my two cents.

Offline lutz

  • Addicted member
  • ******
  • Posts: 1.675
    • View Profile
[Mod] Let visitors to chose how to sort images(date,name,..)
« Reply #50 on: June 11, 2003, 04:36:43 PM »
ok, that´s a good consideration.
Grüße, Lutz
kurze antworten sind nicht unhöflich gemeint, sondern effizient
short answers are not meant rude, but just efficient

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
[Mod] Let visitors to chose how to sort images(date,name,..)
« Reply #51 on: June 11, 2003, 08:18:13 PM »
just want to add to Chris post:
selfjump would work for dropdown, right? so, if u didnt select the order radio button and changed sort options, u'll have to chose another sort option, change order and than select again the desired sort option...
« Last Edit: March 09, 2005, 03:05:10 AM by Chris »
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 Sheep707

  • Full Member
  • ***
  • Posts: 165
    • View Profile
    • http://www.leeger.net
sort by comments
« Reply #52 on: June 17, 2003, 05:15:54 PM »
Ok it work, but not by sort whith comments!!!!!!

See example here: http://www.datenplatz.ch/leeger/gallery/categories.php?cat_id=9

I use the version with cookies.

???Does someone know why it dowsnt work???
Wer einen Rechtschreibefeher findet, kann ihn behalten!

Offline comicart

  • Full Member
  • ***
  • Posts: 151
    • View Profile
error message I get
« Reply #53 on: June 23, 2003, 08:41:21 PM »
Can anyone explain this?
I followed the instructions using the "cookie" method for part of step 1.3

I got this error message after I uploaded everything.

Code: [Select]
Parse error:  parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/comicart/public_html/gallery/lang/english/main.php on line 376
 
 Parse error:  parse error, unexpected T_VARIABLE in /home/comicart/public_html/gallery/includes/page_header.php on line 303


Terry

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: error message I get
« Reply #54 on: June 23, 2003, 08:46:15 PM »
Quote from: comicart
Can anyone explain this?
Code: [Select]
Parse error:  parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/comicart/public_html/gallery/lang/english/main.php on line 376
 
 Parse error:  parse error, unexpected T_VARIABLE in /home/comicart/public_html/gallery/includes/page_header.php on line 303

Sounds like you're missing a closing
Code: [Select]
)in main.php or one of the other files you modified.  Recheck the syntax of the new language variables.

Offline comicart

  • Full Member
  • ***
  • Posts: 151
    • View Profile
wow
« Reply #55 on: June 23, 2003, 10:32:35 PM »
Turns out what caused the error (it seems) is copy and pasting the code in SAFARI.

I switched to MOZILLA and everything works just fine.

Go figure...

T

Offline Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: [Mod] Let visitors to chose how to sort images(date,name,..)
« Reply #56 on: March 10, 2005, 06:54:00 PM »
How many changes are lost in this code  :wink:
Sincerly
vincent
Beati pauperi spiritus

4images 1.7 // My Installed Mods


Offline AntiNSA2

  • Hero Member
  • *****
  • Posts: 774
  • As long as I can finish my site before I die.
    • View Profile
    • http://www.thelifephotography.com
Re: [Mod] Let visitors to chose how to sort images(date,name,..)
« Reply #57 on: March 14, 2005, 02:24:11 PM »
How many changes are lost in this code  :wink:
Sincerly
vincent

And, what was the best method, cookies or no cookies?

Why?
As long as I can finish my site before I die.

Offline bibabobu

  • Sr. Member
  • ****
  • Posts: 311
  • Technische und künstlerische Gravuren
    • View Profile
    • Technische und künstlerische Gravuren für die gesamte Metall-, Kunststoff- und Papierindustrie
Re: [Mod] Let visitors to chose how to sort images(date,name,..)
« Reply #58 on: June 02, 2005, 12:41:41 AM »
Hello!

i have just installed the MOD.

I got radio buttons for ASC and DESC instead of a selecting menu field.

What CODE i have to change to see a selecting menu like the one of the categorie selection.
I would prefer this.

My URL:  www.industrie-gravuren.de/galerie

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 #59 on: June 02, 2005, 12:49:50 AM »
ok, u changed the code to have radio buttons instead of dropdown menu and now u want go back to dropdown instead of radio buttons?
I'm confused..
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)