Seite 1 von 2

Album Mod

Verfasst: 02.01.2003 20:58
von Gert
Hallo Leute......

hab da ne Frage zum Album Mod. Besser gesagt zur sortierung der Bilder.
ich weiss......es gibt irgendso ein Posting.....finde das Teil aber nicht:-))))

Zur Frage.........Bilder werden Standard immer nach Bildname sortiert. Kann ich es so einstellen das der Standard "Zeit" wäre?

www.aquafreaks.ch/phpBB2/

Gruss Gert

Verfasst: 02.01.2003 21:14
von Markocat
Hallo,

öffne mal dazu die templates/subSilver/album_body.tbl und suche nach

Code: Alles auswählen

		  {L_SELECT_SORT_METHOD}
		<select name="sort_method">
		<option class="genmed" value="title">{L_PIC_TITLE}</option>
		<option class="genmed" value="username">{L_USERNAME}</option>
		<option class="genmed" value="timestamp">{L_TIME}</option>
		</select>
und dann ersetz das ganze durch

Code: Alles auswählen

		&nbsp;&nbsp;{L_SELECT_SORT_METHOD}
		<select name="sort_method">
		<option class="genmed" value="timestamp">{L_TIME}</option>
		<option class="genmed" value="title">{L_PIC_TITLE}</option>
		<option class="genmed" value="username">{L_USERNAME}</option>
		</select>

Verfasst: 02.01.2003 21:27
von Gert
Hallo Markocat......

Danke dir!

Gruss Gert

Verfasst: 08.01.2003 16:14
von SQRT
Hallo

Ich wollte mal fragen ob es für das Album Mod ein Bewertungssystem vorhanden ist und wenn nicht, wollte ich mal fragen, ob man nicht diesen Script hier irgendwie da einbauen könnte:

Code: Alles auswählen

<?PHP 
//this needs to reside in its own php page 
//you can include that php page in your html as your would an image like follows: 
//<IMG SRC="http://codewalkers.com/ratingpng.php?rating=86.6&id=63" border="0" alt="code rating"> 

function drawRating($rating, $id) { 
    $image = imagecreate(102,20); 
    $maroon = ImageColorAllocate($image,123,9,60);  
    $white = ImageColorAllocate($image,255,255,255); 
    $black = ImageColorAllocate($image,0,0,0); 
    $red = ImageColorAllocate($image,255,60,75); 
    ImageFilledRectangle($image,0,0,101,19,$maroon); 
    ImageFilledRectangle($image,0,10,101,19,$white); 
    ImageFilledRectangle($image,1,11,$rating,18,$red); 
    ImageRectangle($image,0,10,101,19,$black); 
    ImageTTFText ($image, 8, 0, 1, 9, $white, "/home/mjw21/www/images/arial.ttf","1"); 
    ImageTTFText ($image, 8, 0, 48, 9, $white, "/home/mjw21/www/images/arial.ttf","5"); 
    ImageTTFText ($image, 8, 0, 90, 9, $white, "/home/mjw21/www/images/arial.ttf","10"); 
    imagePNG($image); 
    imagedestroy($image); 
} 

Header("Content-type: image/png"); 
drawRating($rating,$id); 
?>

Verfasst: 09.01.2003 20:16
von Gert
Hallöchen......

die Sortierung nach zeit funktioniert, nur nicht bei der ersten Albumseite :D

Diese wird erst sortiert wenn man nochmal auf "go" klickt.........weiss jemand was?

Gruss Gert

Verfasst: 09.01.2003 21:40
von Guido
Lies Dir mal DAS UND DAS komplett durch...

Verfasst: 09.01.2003 22:06
von Gert
Hallo Guido.......

danke, konnta da aber nichts finden was mein Problem beseitigt.
Die Sortierung nach Zeit funzt bei mir bestens.........das Problem besteht darin, das wenn ich vom Forum aus ins Album gehe die erste Albumrubrikseite nicht so sortiert ist, sondern erst wenn ich erneut auf "go" klicke.
Wenn ich in die weiteren Rubrikenseiten gehe funzt es prima......

Gruss Gert

http://www.aquafreaks.ch/phpBB2/

Verfasst: 09.01.2003 22:09
von Guido
Sorry da hatte ich dann wohl was verwechselt... :oops: k.A. ansonsten cache problem wird es ja wohl dann auch nicht sein...

Verfasst: 09.01.2003 22:13
von Guido
Achso doch noch was. Hast Du oben die Änderung in der.tpl gemacht oder das hier:
hast du die änderung dieses topics gemacht?
auf jeden fall musst du das Code:
$HTTP_GET_VARS['sort_method'] : 'title'
durch Code:
$HTTP_GET_VARS['sort_method'] : 'timestamp'
und das Code:
$HTTP_GET_VARS['sort_order'] : ''
druch Code:
$HTTP_GET_VARS['sort_order'] : 'DESC'
ersetzen...
Mach auf jeden Fall mal das letztere...

EDIT: In der album.php

Verfasst: 09.01.2003 22:14
von Gert
Hallo Guido.....

kein Problem :D

Ne, iss kein Cache Problem...........

Gruss Gert