Autor | Zpráva | ||
---|---|---|---|
Darth Daron Profil |
#1 · Zasláno: 8. 2. 2007, 19:44:29
Řekněmě, že nam tohle:
$ro1 = "808080"; $ro2 = "#000000"; $space_color = "#FFFFF"; Jde nějak udělat místo toho přímího stylopisu externí stylopis, něco jako $ro1 class="xxx" ??? |
||
WanTo Profil |
#2 · Zasláno: 8. 2. 2007, 19:53:03
Nějak nechápu, proč a jak kombinuješ PHP s CSS. Mohl bys svůj dotaz trochu upřesnit?
|
||
Darth Daron Profil |
#3 · Zasláno: 8. 2. 2007, 20:27:35
prostě potřebuju ten stylopis dostat do externího css, z celýho toho souboru. Tohle uvádim jenom jako příklad.
|
||
WanTo Profil |
#4 · Zasláno: 8. 2. 2007, 20:41:46
Ale co tam dělá to PHP? :)
|
||
Darth Daron Profil |
#5 · Zasláno: 8. 2. 2007, 20:46:14
je to script na komentáře, a tohle je soubor comments-config.php...
<?php /* The only reason for the configuration file is so that YOU can customize the script behaviour WITHOUT any need to edit any of the script files. If you decide not to customize the script behaviour, but simply go with the default values ... AT LEAST CHANGE THE EMAIL ADDRESS below */ // YOUR email/domain name information for emails sent from the comments system $eaddr = "you"; // for comment post notification $domain = "yourdomain.com"; // for comment post notification $mail_on = 0; // 1 = provide post notification, 0 = disable post notification // set limit to number of comments displayed at a time - paginates automatically $limit = 10; // show countries dropdown and flag (image) selected by poster $show_flags = 0; // 1 = show country flags/show dropdown, 0 = disable feature // turn off ability to post comments on ALL pages $commoff = 0; // set to 1 to turn off comment form // avoid insignificant comments $useful = 4; // shortest acceptable comment length in characters // include swear-checked posts to display (including baaaaad words) $swearban = 0; // set to 0 to include posts that fail swear checking, otherwise set to 1 // configuration of how posted dates are displayed ... // see the php function in the comments-lang.php file /* Configuration of the lightweight captcha option You can turn this on or off, as well as using your own images and matching 'security' codes. Make SURE they match!! */ // use captcha_lite as security image check $captchas = 1; // set to 0 to skip display of captcha image // begin with array of captcha image file names $captcha_images = array("", "captcha1.gif", "captcha2.gif", "captcha3.gif", "captcha4.gif", "captcha5.gif", "captcha6.gif", "captcha7.gif", "captcha8.gif", "captcha9.gif", "captcha10.gif"); // follow with the corresponding matching 'code' for each captcha $captcha_match = array("", "1234", "5678", "9012", "3456", "7890", "0987", "6543", "2109", "8765", "4321"); // alternate row background colours for displayed comments $ro1 = "#808080"; // odd rows $ro2 = "#000000"; // even rows $space_color = "#FFFFF"; // divider line colour between comments /* This section of the configuration file contains CSS styles applied INLINE to some elements of the comments displayed. Change them as you see fit. */ // CSS style applied to comments count line (24 comments on 2 pages this is page 1 of 2, etc. $num_style = "font-family: arial, helvetica, sans-serif; font-size:11px; color: #666666;"; // CSS style applied to displayed comments (in paragraph tags) $comm_style = "margin:3px 5px 3px 5px; font-family: arial, helvetica, sans-serif; font-size:12px; color: #FFFFFF;"; // CSS style applied to next/previous pagination images $img_left = "float:left; margin:10px 0 0 15px;"; $img_right = "float:right; margin:10px 15px;"; // NOTE: the comments input form takes its styles from those YOU provide for YOUR own pages ?> Tady je celej zdroják, abyste věděli, o co de... potřebuju všechno to stylování do style.css.. Takže jde to nějak? |
||
WanTo Profil |
#6 · Zasláno: 8. 2. 2007, 21:20:11
Určitě to nějak půjde, ale když vezmeš konfigurák nějakého redakčního systému a ani nenapíšeš jakého, tak to je těžké. Spíš se obrať na fórum toho RS, tam ti poradí víc.
|
||
Darth Daron Profil |
#7 · Zasláno: 8. 2. 2007, 21:27:21
neni to RS, jenom přímo skript na komentáře:
http://www.digitalmidget.com/php_noob/comment.php |
||
WanTo Profil |
#8 · Zasláno: 8. 2. 2007, 21:34:09
To nic nemění na tom, že z konfiguráku nejde nic poznat. Brání ti něco si ten skript (ne konfigurák) upravit tak, aby pracoval přesně, jak chceš?
|
||
Darth Daron Profil |
#9 · Zasláno: 8. 2. 2007, 21:34:52
JO, třeba to, že sem ten NOOB... :-P
|
||
DJ Miky Profil |
#10 · Zasláno: 8. 2. 2007, 22:04:23
Tak to aspoň lépe popiš, co, kde a jak chceš pomoct... Takhle nikdo neví, o co ti vlastně jde.
|
||
Darth Daron Profil |
#11 · Zasláno: 8. 2. 2007, 22:17:56
Už nic, sem na to přišel..
|
||
Časová prodleva: 17 let
|
Toto téma je uzamčeno. Odpověď nelze zaslat.
0