Famous
Forum Replies Created
-
Forum: Plugins
In reply to: Add a link to user blog MUThanks David, your code led me here and it works great!
<?php if(is_user_logged_in()) { global $current_user; $blogs = get_blogs_of_user( $current_user->id ); if($blogs) { foreach ( $blogs as $blog ) { echo '<li><a href="http://' . $blog->domain . $blog->path .'">' . $blog->blogname . '</a></li>'; } } } ?>Thank you Sir
Forum: Plugins
In reply to: Add a link to user blog MUwhat function would I use?
bp_members__blog_directory_permalink();Something like the above?
Thanks
Forum: Hacks
In reply to: Random images image.phpCan someone please point out code that will show a random thumbnail in twentytwelve theme with a link to its post page?
Thank you
Forum: Hacks
In reply to: Random images image.phpby the way this doesn’t work:
<?php $query_images_args = array( 'post_type' => 'attachment', 'post_mime_type' =>'image', 'post_status' => 'inherit', 'posts_per_page' => -1, ); $query_images = new WP_Query( $query_images_args ); $images = array(); foreach ( $query_images->posts as $image) { $images[]= wp_get_attachment_url( $image->ID ); } ?>Forum: Hacks
In reply to: Random images image.phpI worded that incorrect – I need this next_attachment_url to take me to the image page. Not a refresh with a new image. I need it to take me to that images url, not the jpg url. Any ideas?
Thanks
Forum: Hacks
In reply to: Random images image.phpnot sure about that link. Can you tell me what the link is to take me to an image url?
Thanks
Forum: Hacks
In reply to: Random images image.phpway ahead of you on that Esmi. I always use child themes. Got any ideas on how to do it?
Forum: Hacks
In reply to: Random images image.phpso I found this, but is there a way to specify how many images show, and stop duplicate images?
<?php $query = new WP_Query( array( 'post_status' => 'any', 'post_type' => 'attachment' ) ); $key = array_rand($query->posts, 1); echo wp_get_attachment_image($query->posts[$key]->ID, 'thumbnail'); ?>[Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Thanks
Forum: Localhost Installs
In reply to: permalinks problem on MACMy web files are located here:
Library/WebServer/Documents/mySite1
Library/WebServer/Documents/mySite2
Library/WebServer/Documents/mySite3
etc…That was my disconnect, I knew something was different about my setup, but it had been so long ago. You have saved me much heart ache my friend and in the process taught me quite a bit. Thank you.
I had to point the .conf file here:
<Directory "/Library/WebServer/Documents/fam-os">That enabled my .htaccess to be read as you stated. Anyhow thank you so much for your help!
Forum: Localhost Installs
In reply to: permalinks problem on MACdid I miss something?
I could not change directory site1 – I get this:
-bash: cd: /users/site1: No such file or directoryForum: Localhost Installs
In reply to: permalinks problem on MACcouldn’t get that to work.
I remember I setup my websites a bit different, not sure if that has anything to do with it. Instead of:
Documents/AllMySites/site1
Documents/AllMySites/site2I had them setup as:
Documents/site1
Documents/site2I did what you said, I created this:
<Directory "/Users/site1/"> Options Indexes MultiViews FollowSymLinks AllowOverride All AuthConfig Order allow,deny Allow from all </Directory>and put it in:
apache2/users/site1.confAfter I created it, I ran this command:
sudo apachectl restartBut no dice π
Any other ideas? And thanks for your help so far.
Forum: Plugins
In reply to: hiding imagesI see this message.
This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.Is there anything else out there that is supported still? Thanks for the suggestion
Forum: Fixing WordPress
In reply to: password protect photosForum: Fixing WordPress
In reply to: password protect photosWell I am using BuddyPress and I really don’t want to use their plugin for this (photo albums) at this time. And I was hoping that WP would eventually protect images in a future release, but if that is not the case then I will have to find a different solution. However, I really like the functionality that comes with the blog – all its missing is the protection feature.
Forum: Fixing WordPress
In reply to: password protect photoshaha – you been doing this too long. Can anyone else potentially help?
Thanks