Nessdufrat
Forum Replies Created
-
Forum: Plugins
In reply to: Sharing a WP database on two domain names (same server)Anybody ? ??
Forum: Plugins
In reply to: Sharing a WP database on two domain names (same server)I’m not sure I really understand it. The point is to have only ONE database, ONE wordpress installation. It’s more of a htaccess redirect thing, but I don’t know if it’s possible.
It’s like you have https://www.mydomain1.com/blog/category/cat1
and https://sub.mydomain1.com/blog/category/cat2
Both cat1 and cat2 being on the same database and the same wordpress install. I don’t know if it’s clear ?
If I need to use 2 databases, or 2 databases prefixes, I can also install it twice on the server, it’s not the files I don’t want duplicated, it’s the database. Some categories will be shared between the three websites, I don’t want to have to update them all the time with duplicate content.
The design will be different on each website, so basically, I need to call the same database from each domain.Forum: Fixing WordPress
In reply to: User-defined page contentI’m bumping this, because I think it would be really awesome to have something like that on wordpress.
Forum: Fixing WordPress
In reply to: Account not validatedThanks a lot, I was having this problem too, and thanks to you I could solve it in 5 minutes ??
Forum: Fixing WordPress
In reply to: Conditional tag and parse errorYeah ?? A friend (C# programmer) helped me write this, and it works like a charm !
Forum: Fixing WordPress
In reply to: Conditional tag and parse errorActually, I did something different because my code was completly false from the beginning.
Here is the right version :
<div class="sidebar"> <? if( function_exists( 'dynamic_sidebar' ) ) { switch ( is_page( $post->ID ) ) { case "8": { dynamic_sidebar( 2 ); break; } case "7": { dynamic_sidebar( 1 ); break; } } } ?> </div>
Forum: Fixing WordPress
In reply to: CSS Style SwitchingUp for this, I have the same problem…
Forum: Plugins
In reply to: User Photo plugin in Author PageOk. Thanks to the French forum, the solution is :
<?php $image_dir = 'wp-content/uploads/userphoto'; // directory where author images reside $image_file = $user->user_nicename; // format for image name $image_path = trim($image_dir, '/') . '/' . $image_file; if(file_exists(ABSPATH . $image_path . '.jpg')) : $author_image = get_bloginfo('home') . '/' . $image_path . '.jpg'; elseif(file_exists(ABSPATH . $image_path . '.png')) : $author_image = get_bloginfo('home') . '/' . $image_path . '.png'; elseif(file_exists(ABSPATH . $image_path . '.gif')) : $author_image = get_bloginfo('home') . '/' . $image_path . '.gif'; else : $author_image = "https://mydomain.com/wp-content/uploads/userphoto/defaultbig.gif"; endif; ?> <img class="user-image" src="<?php echo $author_image; ?>" alt="<?php echo $user->display_name; ?>" title="<?php echo $user->display_name; ?>" />
I don’t know whether the code is totally correct or not, but it works really fine.
Note that without the default image, I get the image from the above author repeated for an author without image.
No idea why, but I’m clearly no PHP godess.Forum: Plugins
In reply to: User Photo plugin in Author PageNobody ? Is it really THAT difficult ? I had no idea. I don’t really understand why I can’t get the user photo plugin to work. Tell me, is the synthax correct ?
(I know, the endforeach is missing in the first code part, but it’s there in the rest of the code in my page, I just didn’t want to copy and paste the whole thing)
Forum: Plugins
In reply to: What is the best way to display pics from a photoalbum in WP?For my part, I really like NextGen Gallery. If you want to see it in action, I made a post with a gallery on this page :
https://blog.lesenfantsdelo.com/2008/04/03/salon-de-limaginaire-nogent/Forum: Plugins
In reply to: User Photo plugin in Author PageI tried searching around for a solution, but all the hacks I found were with jpg only images.
Anyone knows of a solution to display all image types ?
Forum: Plugins
In reply to: User Photo plugin in Author PageNobody ? ??
Forum: Plugins
In reply to: Looking for a plugin that would list the plugins used on the blog ?Hey, thanks, that’s exactly what I was looking for ! Thanks for such a quick reply !
Forum: Installing WordPress
In reply to: HUGE problemOk, just found the solution by myself, I redownloaded and reuploaded everything. Apparently, during the upload, the index.php file which is called when you type the blog url was replaced by another one, empty.
(the one with the comment “silence is gold”)So everything is perfect, the problem was the index file, you were right Aaron !
Now I hope everything will run smoothly !!!
Forum: Installing WordPress
In reply to: HUGE problemI reuploaded all the files, it still get the blank page. It’s really a WP-related problem, as files that are not part of WP on the same server work as a charm.
Should I try switching back to the 2.3 ?