Forum Replies Created

Viewing 15 replies - 16 through 30 (of 59 total)
  • Forum: Plugins
    In reply to: Add a link to user blog MU
    Thread Starter Famous

    (@famous)

    Thanks 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 MU
    Thread Starter Famous

    (@famous)

    what function would I use?
    bp_members__blog_directory_permalink();

    Something like the above?

    Thanks

    Forum: Hacks
    In reply to: Random images image.php
    Thread Starter Famous

    (@famous)

    Can 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.php
    Thread Starter Famous

    (@famous)

    by 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.php
    Thread Starter Famous

    (@famous)

    I 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.php
    Thread Starter Famous

    (@famous)

    not 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.php
    Thread Starter Famous

    (@famous)

    way 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.php
    Thread Starter Famous

    (@famous)

    so 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

    Thread Starter Famous

    (@famous)

    My 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!

    Thread Starter Famous

    (@famous)

    did I miss something?

    I could not change directory site1 – I get this:
    -bash: cd: /users/site1: No such file or directory

    Thread Starter Famous

    (@famous)

    couldn’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/site2

    I had them setup as:
    Documents/site1
    Documents/site2

    I 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.conf

    After I created it, I ran this command:

    sudo apachectl restart

    But no dice πŸ™

    Any other ideas? And thanks for your help so far.

    Forum: Plugins
    In reply to: hiding images
    Thread Starter Famous

    (@famous)

    I 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

    Thread Starter Famous

    (@famous)

    Thanks for + solutions @esander4 @mcsolas, I’ll take a look into them.

    Thread Starter Famous

    (@famous)

    Well 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.

    Thread Starter Famous

    (@famous)

    haha – you been doing this too long. Can anyone else potentially help?

    Thanks

Viewing 15 replies - 16 through 30 (of 59 total)