JohnWinch
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Ramdom background imagesThanks !
Forum: Fixing WordPress
In reply to: Random logo script not working ?Thanks you ! It’s working !
Forum: Fixing WordPress
In reply to: Random logo script not working ?It’s not working but when I put my mouse over the place where the logo should be displayed I’ve got the following :
Array
(
[0] => l.jpg
[1] => logo1.jpg
[2] => logo2.jpg
[3] => logo3.jpg
[4] => zeatrt.jpg
[5] => zergter.jpg
[6] => zerzt.jpg
)Forum: Fixing WordPress
In reply to: Random logo script not working ?What should I be looking for ? I’m new to this but if you explain to me it might help me understand.
Forum: Fixing WordPress
In reply to: Random logo script not working ?It didn’t work, but when I look at the source code from Firefox, here’s how the code is displayed :
<img src=”https://127.0.0.1/blog/wp-content/themes/fashionpro/images/logo/l.jpg%20border=” 0=””>
This must have something to do with the %20 after the .jpg
Forum: Fixing WordPress
In reply to: Random logo script not working ?Thanks, I’ve tried it but it didn’t work either.
Here’s my code, i don’t think I’ve made any mistakes.<?php // Ouvre un dossier bien connu, et liste tous les fichiers $directory = TEMPLATEPATH . '/images/logo'; $directory_uri = get_stylesheet_directory_uri() . '/images/logo/'; // Définition d'$image comme tableau $image = array(); //on vérifie s’il s’agit bien d’un répertoire if (is_dir($directory)) { //on ouvre le repertoire if ($dh = opendir($directory)) { //Lit une entrée du dossier et readdir retourne le nom du fichier while (($file = readdir($dh)) !== false) { // Vérifie de ne pas prendre en compte les dossier ... if ($file != '...' && $file != '..' && $file != '.') { // On ajoute le nom du fichier dans le tableau $image[] = $file; } } //On ferme le repertoire closedir($dh); // On récupère le nombre d'image total $total = count($image)-1; // On prend une valeur au hasard entre 1 et le nombre total d'images $aleatoire = rand(0, $total); // On récupère le nom de l'image avec le chiffre hasard $image_afficher = "$image[$aleatoire]"; // Affiche l'image du hasard :p print '<img src="' . $directory_uri . $image_afficher . ' border="0" />'; } } ?>
Here’s the path to my theme file :
https://127.0.0.1/blog/wp-content/themes/fashionpro/My logo’s folder :
https://127.0.0.1/blog/wp-content/themes/fashionpro/images/logo/Forum: Fixing WordPress
In reply to: Random logo script not working ?Thanks you for your answer but it didn’t work.
Is there an another way to display randomly a logo from a folder ?Forum: Fixing WordPress
In reply to: Posts paginationI don’t have a website, I’m working with Wamp. There’s no HTML in the nextpage tag, how can he break my current HTLM tags ?
Forum: Themes and Templates
In reply to: Trouble with creating a child themeNo need to apologies, I really appreciate the time you spent by helping me.
Here’s the code form firebug :
<link media=”screen” href=”https://127.0.0.1/wordpresstest/wp-content/themes/fashionpro/style.css” type=”text/css” rel=”stylesheet”>Despite the theme description in the wordpress’s administration panel who say that the css are in fashionprochild, apparently the css is called from fashionpro.
Is there a problem with the path used to load the theme ?
@import url(“../fashionpro/style.css”);Current Theme
FashionPro 1.0.1 by Roy GuanChild theme for Fashionpro.
The template files are located in /themes/fashionpro. The stylesheet files are located in /themes/fashionprochild. FashionPro uses templates from FashionPro. Changes made to the templates will affect both themes.
Forum: Themes and Templates
In reply to: Trouble with creating a child themeI’ve downloaded the extension, how do I check if the right css is called ?
Forum: Themes and Templates
In reply to: Trouble with creating a child themeHow can I do this myself ?
Forum: Themes and Templates
In reply to: Trouble with creating a child themeI’m working on Wamp, I’m sorry it’s not online ??
Forum: Themes and Templates
In reply to: Trouble with creating a child themeYes, I’ve activated my child theme ??
Current Theme
FashionPro 1.0.1 by Roy GuanChild theme for Fashionpro.
The template files are located in /themes/fashionpro. The stylesheet files are located in /themes/fashionprochild. FashionPro uses templates from FashionPro. Changes made to the templates will affect both themes.
Forum: Themes and Templates
In reply to: Trouble with creating a child themeThanks you for your answer. I’ve corrected it, cleared the cache of Firefox but nothing has changed. I don’t understand why this don’t work.
Anyone got any ideas ?