Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [php][cutenews]Styl newsa
Tabus
post 8.04.2008, 16:36:19
Post #1





Grupa: Zarejestrowani
Postów: 65
Pomógł: 0
Dołączył: 22.03.2008

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


Witam zrobiłem własny styl do cutenewsa.. ale cos nie działa jak powinien.

ponizej daje kod z całego pliku .tpl


  1. <?PHP
  2. ///////////////////// Tabus STYL /////////////////////
  3.  
  4.  
  5.  
  6.  
  7.  
  8. $template_active = <<<HTML
  9. <div style="width:400px; height:50px; margin-bottom:0px;">
  10. <div><strong><center><table border='1'><td background='http://upload-triosat.pl/tlo.jpg'><font color='white'>{title}</font></table></center></strong></div>
  11.  
  12. <div style="text-align:justify; padding:1px; margin-top:1px; margin-bottom:1px; border-top:1px solid #CCCCCC;">
  13.  
  14.  
  15.  
  16. <table border='1'><td bgcolor='#FFFFFF'>{short-story}</table></div>
  17.  
  18.  
  19.  
  20. </div>
  21.  
  22.  
  23.  
  24.  
  25.  
  26. $template_prev_next = <<<HTML
  27. <p align="center">[prev-link]<< Poprzedni[/prev-link] {pages} [next-link]Następny>>[/next-link]</p>
  28. HTML;
  29.  
  30. ?>



dosłownie chodzi o to ze << POPRZEDNI 1 ,2,3,4 NASTĘPNY >>> naklada sie na newsa efekt mozna zobaczyc na upload-triosat.pl lub wyskakuje [prev-link]<< POPRZEDNI[/prev-link] {pages} [next-link]NASTĘPNY>>[/next-link]

Ten post edytował Tabus 8.04.2008, 16:37:12
Go to the top of the page
+Quote Post
trucksweb
post 8.04.2008, 16:42:37
Post #2





Grupa: Zarejestrowani
Postów: 1 199
Pomógł: 31
Dołączył: 22.03.2004
Skąd: Warszawa

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


po co uzywasz <p> ?

  1. <p align="center">[prev-link]<< Poprzedni[/prev-link] {pages} [next-link]Następny>>[/next-link]</p>

zamiast tego daj to w div'a a w nim ustaw styl:

  1. #nazwa {
  2. clear:both;
  3. float:left;
  4.  
  5. }


i powinno pomoc

//edit
ps. to chyba nie ten dzial forum- raczej do CSS sie nadaje, ale coz guitar.gif

Ten post edytował trucksweb 8.04.2008, 16:43:37


--------------------
Rozmawia dwóch dyrektorów:
- Jaki jest twój ideał sekretarki?
- 20-letnia dziewczyna z 30-letnim doświadczeniem.
Go to the top of the page
+Quote Post
Tabus
post 8.04.2008, 16:51:34
Post #3





Grupa: Zarejestrowani
Postów: 65
Pomógł: 0
Dołączył: 22.03.2008

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


zrobiłem tak


  1. ///////////////////// Tabus STYL /////////////////////
  2.  
  3.  
  4.  
  5.  
  6.  
  7. $template_active = <<
  8. <div style=\"width:400px; height:50px; margin-bottom:0px;\">
  9. </div style=\"width:400px; height:50px; margin-bottom:0px;\"><div><strong>
  10.  
  11. zrobiłem tak 
  12.  
  13.  
  14. [php]<?PHP]
  15. ///////////////////// Tabus STYL /////////////////////
  16.  
  17.  
  18.  
  19.  
  20.  
  21. $template_active = <<<HTML
  22. <div style="width:400px; height:50px; margin-bottom:0px;">
  23. <div><strong><center><table border='1'><td background='http://upload-triosat.pl/tlo.jpg'><font 
  24.  
  25. color='white'>{title}</font></table></center></strong></div>
  26.  
  27. <div style="text-align:justify; padding:1px; margin-top:1px; margin-bottom:1px; border-top:1px solid #CCCCCC;">
  28.  
  29.  
  30.  
  31. <table border='1'><td bgcolor='#FFFFFF'>{short-story}</table></div>
  32.  
  33.  
  34.  
  35. </div>
  36.  
  37.  
  38.  
  39.  
  40.  
  41. $template_prev_next = <<<HTML
  42. <div><strong><center><table border='1'><td background='http://upload-triosat.pl/tlo.jpg'><font color='white'>[prev-link]<< 
  43.  
  44. Previous[/prev-link] {pages} [next-link]Next >>[/next-link]</font></table></center></strong></div>
  45. HTML;
  46.  
  47. ?>



i dalej sie cos pieprzy tylko ze bardziej

Ten post edytował Tabus 8.04.2008, 16:52:11
Go to the top of the page
+Quote Post
trucksweb
post 8.04.2008, 16:56:46
Post #4





Grupa: Zarejestrowani
Postów: 1 199
Pomógł: 31
Dołączył: 22.03.2004
Skąd: Warszawa

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


zrob tak jak podalem przez PW jak sie ma nie piperzyc jak wladowales tylko diva nie stylujac go sciana.gif


--------------------
Rozmawia dwóch dyrektorów:
- Jaki jest twój ideał sekretarki?
- 20-letnia dziewczyna z 30-letnim doświadczeniem.
Go to the top of the page
+Quote Post
Tabus
post 8.04.2008, 17:06:00
Post #5





Grupa: Zarejestrowani
Postów: 65
Pomógł: 0
Dołączył: 22.03.2008

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


pisałem na pw ze nie ma do tego stylu pliku .css snitch.gif
Go to the top of the page
+Quote Post
trucksweb
post 8.04.2008, 18:38:09
Post #6





Grupa: Zarejestrowani
Postów: 1 199
Pomógł: 31
Dołączył: 22.03.2004
Skąd: Warszawa

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


sciana.gif nc

to wez wpisz sobie:
<div style="clear:both;float:left;">..tu paginacja..</div>


--------------------
Rozmawia dwóch dyrektorów:
- Jaki jest twój ideał sekretarki?
- 20-letnia dziewczyna z 30-letnim doświadczeniem.
Go to the top of the page
+Quote Post

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 Wersja Lo-Fi Aktualny czas: 24.07.2025 - 17:03