Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> galeria Usera php fusion
djblack
post
Post #1





Grupa: Zarejestrowani
Postów: 20
Pomógł: 0
Dołączył: 13.05.2010

Ostrzeżenie: (0%)
-----


witam chodzi mi o przerobienie tej galerii żeby zamiast wczytywania z galerii photogallery czytało z usergalerie chodzi mi tylko o przerobienie z góry dziękuje
interesuje mnie taki link (IMG:style_emoticons/default/smile.gif) )

  1. http://www.twojeforum.pl/infusions/usergalerie/view_usergalerie.php?user_id=..&photo..
w miejsce kropek liczby id

  1. `<?php
  2. /* Created for PHP-FUSION 6.00
  3.   Copyright (c) 2005 Petter Paulsson
  4.   Gets it´s name from panel administration. */
  5.  
  6. if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
  7.  
  8.  
  9. $result = dbquery("SELECT panel_name FROM ".$db_prefix."panels WHERE panel_filename = 'latest_images_panel'");
  10. if (dbrows($result) != 0) {
  11. $data = dbarray($result);
  12. $panel_name = $data['panel_name'];
  13. }
  14. openside($panel_name);
  15.  
  16. $result = dbquery("SELECT * FROM ".$db_prefix."photos ORDER BY photo_id DESC LIMIT 0,4");
  17. if (dbrows($result) != 0) {
  18. while($data = dbarray($result)) {
  19. $itemsubject = trimlink($data['photo_id'], 23);
  20. $itemdescription = trimlink($data['photo_title'], 23);
  21. echo "<center> <a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='gallery'>
  22. <img src='".PHOTOS."album_".$data['album_id']."/".$data['photo_thumb1']."'
  23.  
  24. title='".$data['photo_title']."' alt='".$data['photo_title']."' border='0' width='35' height='35' >
  25. </a>
  26. </a>\n";
  27. }
  28. } else {
  29.  
  30. echo $locale['004'];
  31. }
  32. closeside();
  33. ?>
  34.  


Ten post edytował djblack 5.06.2010, 18:38:21
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 24.08.2025 - 14:51