Grafik in Dropdown Menü

    Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

      Grafik in Dropdown Menü

      Hey Leute...
      hab ein Dropdownmenü erstellt wo Leute ihren Lieblingsverein wählen können und anschließend wird ein Icon in der Userliste angezeigt.
      Funktioniert auch soweit ganz gut. Jetz möchte ich allerdings, dass in dem Dropdownmenü neben dem Namen des Vereins auch ein kleines Wappen angezeigt wird. Finde aber irgendwie keine Lösung dafür. Hat vielleicht jemand ne idee?

      Quellcode

      1. <select name=icon style="width:50%"><option value="0" {IIF|$user_information.icon==0|selected}>Keins<option value="1" {IIF|$user_information.icon==1|selected}>Bayern <option value="2" {IIF|$user_information.icon==2|selected}>Stuttgart <option value="3" {IIF|$user_information.icon==3|selected}>Schalke <option value="4" {IIF|$user_information.icon==4|selected}>Dortmund <option value="5" {IIF|$user_information.icon==5|selected}>Bremen <option value="6" {IIF|$user_information.icon==6|selected}>Freiburg <option value="7" {IIF|$user_information.icon==7|selected}>Gladbach <option value="8" {IIF|$user_information.icon==8|selected}>Hertha BSC <option value="9" {IIF|$user_information.icon==9|selected}>LASK<option value="10" {IIF|$user_information.icon==10|selected}>Leverkusen<option value="11" {IIF|$user_information.icon==11|selected}>Hertha BSC<option value="12" {IIF|$user_information.icon==12|selected}>Frankfurt <option value="13" {IIF|$user_information.icon==13|selected}>Wolfsburg <option value="14" {IIF|$user_information.icon==14|selected}>Hannover<option value="15" {IIF|$user_information.icon==15|selected}>Osnabrück <option value="16" {IIF|$user_information.icon==16|selected}>1860 München <option value="17" {IIF|$user_information.icon==17|selected}>Deutschland
      2. </select>
      Hallo Mizanain90

      Mit rein HTML kommst du da nicht so weit da must du auch schon css verwenden.

      Habe hier mal bisschen Code für dich.

      packe folgendes in dean <head> bereich der editprofile.html

      PHP-Quellcode

      1. <style type="text/css">
      2. <!--
      3. option[value="0"]:before {
      4. content: url("URL ZU GRAFIK");
      5. }
      6. option[value="1"]:before {
      7. content: url("URL ZU GRAFIK");
      8. }
      9. option[value="2"]:before {
      10. content: url("URL ZU GRAFIK");
      11. }
      12. option[value="3"]:before {
      13. content: url("URL ZU GRAFIK");
      14. }
      15. option[value="4"]:before {
      16. content: url("URL ZU GRAFIK");
      17. }
      18. option[value="5"]:before {
      19. content: url("URL ZU GRAFIK");
      20. }
      21. option[value="6"]:before {
      22. content: url("URL ZU GRAFIK");
      23. }
      24. option[value="7"]:before {
      25. content: url("URL ZU GRAFIK");
      26. }
      27. option[value="8"]:before {
      28. content: url("URL ZU GRAFIK");
      29. }
      30. option[value="9"]:before {
      31. content: url("URL ZU GRAFIK");
      32. }
      33. option[value="10"]:before {
      34. content: url("URL ZU GRAFIK");
      35. }
      36. option[value="11"]:before {
      37. content: url("URL ZU GRAFIK");
      38. }
      39. option[value="12"]:before {
      40. content: url("URL ZU GRAFIK");
      41. }
      42. option[value="13"]:before {
      43. content: url("URL ZU GRAFIK");
      44. }
      45. option[value="14"]:before {
      46. content: url("URL ZU GRAFIK");
      47. }
      48. option[value="15"]:before {
      49. content: url("URL ZU GRAFIK");
      50. }
      51. option[value="16"]:before {
      52. content: url("URL ZU GRAFIK");
      53. }
      54. option[value="17"]:before {
      55. content: url("URL ZU GRAFIK");
      56. }
      57. -->
      58. </style>


      Zu beachten ist noch das du für die einzelden grafiken angeben must das muss da rein wo stehst URL ZU GRAFIK.

      Dann zu deinem Code verwende mal folgendes.

      PHP-Quellcode

      1. <select size="1" style="width:50%">
      2. <option value="0" {IIF|$user_information.icon==0|selected}>Keins</option>
      3. <option value="1" {IIF|$user_information.icon==1|selected}>Bayern</option>
      4. <option value="2" {IIF|$user_information.icon==2|selected}>Stuttgart</option>
      5. <option value="3" {IIF|$user_information.icon==3|selected}>Schalke</option>
      6. <option value="4" {IIF|$user_information.icon==4|selected}>Dortmund</option>
      7. <option value="5" {IIF|$user_information.icon==5|selected}>Bremen</option>
      8. <option value="6" {IIF|$user_information.icon==6|selected}>Freiburg</option>
      9. <option value="7" {IIF|$user_information.icon==7|selected}>Gladbach</option>
      10. <option value="8" {IIF|$user_information.icon==8|selected}>Hertha BSC</option>
      11. <option value="9" {IIF|$user_information.icon==9|selected}>LASK</option>
      12. <option value="10" {IIF|$user_information.icon==10|selected}>Leverkusen</option>
      13. <option value="11" {IIF|$user_information.icon==11|selected}>Hertha BSC</option>
      14. <option value="12" {IIF|$user_information.icon==12|selected}>Frankfurt</option>
      15. <option value="13" {IIF|$user_information.icon==13|selected}>Wolfsburg</option>
      16. <option value="14" {IIF|$user_information.icon==14|selected}>Hannover</option>
      17. <option value="15" {IIF|$user_information.icon==15|selected}>Osnabrück</option>
      18. <option value="16" {IIF|$user_information.icon==16|selected}>1860 München</option>
      19. <option value="17" {IIF|$user_information.icon==17|selected}>Deutschland</option>
      20. </select>


      Es kann aber sein das user die mit dem Internet Explorer unterwegs sind das bei den die Grafiken nicht angezeigt werden könnte warum auch immer ist halt so bei unterschiedlichen browser ^^

      Lg. xXNeoXx
      Hosting-Panter.eu - Home
      Antiref.net


      if ($ahnung == 'keine' ) { use ( FAQ ) && ( Google | | Suche ) }
      if ($antwort == 0 ) { post ( Frage ) }
      Ich hab da noch nen anderen vorschlag der funktioniert auf jedenfall du hast dann aber sehr viele dropdown menus :S das is der einzige nachteil

      wenn du das verheiraten addon nimmst hast du die anzeige in der users.html ne andere lösung hab ich zurzeit nicht :S
      Wer hat Interresse an dem Foto Kommentar addon von mir?? is sogar mit dem /m system von burli001 verbunden :D
      Hi Maxim,

      Ich weis nun leider nicht welche Version vom Chat du in benutzung hast, aber ich gebe dir mal den Code von meinem Chat.
      Füge dies bitte in der text.html vor dem teil ein wo der Name des Users ausgelesen wir.

      Quellcode

      1. {IF|$params.avatarbild}<img src={GET|$params.avatarbild} width=25 broder=0>{ELSE}{ENDIF}


      Bei weiteren Frage einfach erneut schreiben.

      LG Speedy

      Keine mehr da....
      mhm wird auch nich angezeigt...

      Der Code den ich in der Userliste verwende ist folgender:

      Quellcode

      1. {IF|$user.icon==0}<img src="http://www.bkkmobilontour.de/fileadmin/default/templates/images/fragezeichen-black.png">{ENDIF} {IF|$user.icon==1}<img src="http://www.smalltalk-24.com//www/images/ul_icons/bayern_icon.gif">{ENDIF}{IF|$user.icon==2}<img src="http://www.smalltalk-24.com//www/images/ul_icons/stuttgart_icon.gif">{ENDIF}{IF|$user.icon==3}<img src="http://www.smalltalk-24.com//www/images/ul_icons/schalke_icon.gif">{ENDIF}{IF|$user.icon==4}<img src="http://www.smalltalk-24.com//www/images/ul_icons/bvb_icon.gif">{ENDIF}{IF|$user.icon==5}<img src="http://www.smalltalk-24.com//www/images/ul_icons/bremen_icon.gif">{ENDIF}{IF|$user.icon==6}<img src="http://www.smalltalk-24.com//www/images/ul_icons/freiburg_icon.gif">{ENDIF}{IF|$user.icon==7}<img src="http://www.smalltalk-24.com//www/images/ul_icons/bmg_icon.gif">{ENDIF}{IF|$user.icon==8}<img src="http://www.smalltalk-24.com//www/images/ul_icons/hertha_icon.gif">{ENDIF}{IF|$user.icon==9}<img src="http://www.smalltalk-24.com//www/images/ul_icons/wienersc_icon.png">{ENDIF}{IF|$user.icon==10}<img src="http://www.smalltalk-24.com//www/images/ul_icons/leverkusen_icon.gif">{ENDIF}{IF|$user.icon==11}<img src="http://www.smalltalk-24.com//www/images/ul_icons/hertha_icon.gif">{ENDIF}{IF|$user.icon==12}<img src="http://www.smalltalk-24.com//www/images/ul_icons/frankfurt_icon.gif">{ENDIF}{IF|$user.icon==13}<img src="http://www.smalltalk-24.com//www/images/ul_icons/wolfsburg_icon.gif">{ENDIF}{IF|$user.icon==14}<img src="http://www.smalltalk-24.com//www/images/ul_icons/96.gif">{ENDIF}{IF|$user.icon==15}<img src="http://www.smalltalk-24.com//www/images/ul_icons/osna_icon.gif">{ENDIF}{IF|$user.icon==16}<img src="http://www.smalltalk-24.com//www/images/ul_icons/1860_icon.gif">{ENDIF} {IF|$user.icon==17}<img src="http://www.smalltalk-24.com//www/images/ul_icons/schland.gif">{ENDIF} {IF|$user.icon==18}<img src="http://www.bkkmobilontour.de/fileadmin/default/templates/images/fragezeichen-black.png">{ENDIF} {IF|$user.icon==19}<img src="http://www.smalltalk-24.com//www/images/ul_icons/koeln_icon.gif">{ENDIF} {IF|$user.icon==20}<img src="http://www.smalltalk-24.com//www/images/ul_icons/graz_icon.gif">{ENDIF} {IF|$user.icon==21}<img src="http://www.smalltalk-24.com//www/images/ul_icons/barca_icon.gif">{ENDIF} {IF|$user.icon==22}<img src="http://www.smalltalk-24.com//www/images/ul_icons/real_icon.gif">{ENDIF} {IF|$user.icon==24}<img src="http://www.smalltalk-24.com//www/images/ul_icons/graz_icon.gif">{ENDIF}{IF|$user.icon==23}<img src="http://www.smalltalk-24.com//www/images/ul_icons/nuernberg_icon.gif">{ENDIF}



      Wenn ich den aber einfüge, dann wird immer das oberste angezeigt
      Okay, du möchtest es ja so haben das der Avatar bzw bei der Icon im Chatstream angezeigt wir oder versteh ich das falsch ?
      Wenn das so sein sollte, dann schau dir noch mal den Code an den ich dir geschickt habe.
      Ich schau mir das heute abend noch mal genau an, und wenn mir noch etwas auffällt, melde ich mich noch mal zurück.

      LG Speedy

      Keine mehr da....