Forum Replies Created

Viewing 15 replies - 1 through 15 (of 25 total)
  • mstrmoo,

    I just came across your post and have a similar issue here:

    https://www.ads-software.com/support/topic/lost-on-how-to-grab-image-from-post-to-create-featured-image?replies=1

    Can you confirm this is the same thing you are (sort of) doing… if so have you figured this out?

    Bosshawk & Southafricanrob,

    Have you got this working for your site? I need to do soemthing similar and was curious how you might have acheived this. Thanks

    Thread Starter jderosa3

    (@jderosa3)

    I have tried using this code as well:

    <?php get_the_image( array( 'image_scan' => true, 'meta_key' => 'feature_img', 'size' => 'medium', 'width' => '200', 'height' => '200', 'image_class' => 'feature' ) ); ?>

    I placed this just below the following code on my page.php file:

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    Saved and uploaded the edited file… refreshed the page and nothing shows up – doesn’t look like anything on the page changed.

    So I am somewhat lost with this. I know this plug in must work it has been downloaded a ton of times and has a five star rating.

    I am frustrated, but don’t want to give up just yet! Thanks for any help!

    Thread Starter jderosa3

    (@jderosa3)

    The author of my theme clarified this error for me… in case anyone else has a similar issue:

    You need to delete your categories called “featured” and “pictures”. You need to *tag* the posts only, they do not need to be in a specific category. Once you have deleted the categories go and edit the tag slugs and remove the “-2” from them e.g. “featured-2” becomes “featured”.

    Thread Starter jderosa3

    (@jderosa3)

    I actually talked with the person who designed my theme. I was told to do the following:

    div.post-113 h2.entry-title { display: none; }

    where 113 is the ID of the post in question. Obviously the H2 tag is from the CSS – none the less. I think I have learned that if you are going to hide titles… they need to be called correctly with code that matches your theme.

    Thanks for the tips, but the case is closed on this.

    Thread Starter jderosa3

    (@jderosa3)

    do you mean my page.php code?

    I have also found other “solutions” but they dont work. Do any other these seem to make anyt sense to you:

    https://blog.actsmedia.com/2009/08/wordpress-carrington-theme-page-title-hide/

    https://www.ads-software.com/support/topic/hide-single-page-title-using-css-display-none-help?replies=9

    Both of these seem to make logical sense… but neither work. Any other thoughts?

    Thread Starter jderosa3

    (@jderosa3)

    got it to work! Incase anyone needs to know how to do this:

    <?php
    $dir = "./flash/portfolio/branding/images/";
    $jpgs = glob($dir . "*.jpg");
    
    foreach ($jpgs as $jpg) {
        $jpg = substr($jpg, 1);
        echo "<img src='https://www.mydomain.com{$jpg}' /><br />";
    }
    ?>

    Thread Starter jderosa3

    (@jderosa3)

    I figured it out for anyone that need to know how to do this if they are accessing a directory in the root of their server:

    <?php
    $dir = "./flash/portfolio/branding/images/";
    $jpgs = glob($dir . "*.jpg");
    
    foreach ($jpgs as $jpg) {
        $jpg = substr($jpg, 1);
        echo "<img src='https://www.mydomain.com{$jpg}' /><br />";
    }
    ?>

    Thread Starter jderosa3

    (@jderosa3)

    Ok… I finally have it reading file onto the page, but… they come up with broken icons as if the graphics are not there… here is my new code:

    <?php
    $dir = "./flash/portfolio/branding/images/";
    //open dir
    if ($opendir = opendir($dir))
    {
       //read dir
    while (($file = readdir($opendir)) !== FALSE)
    {
    if ($file!="."&amp;&amp;$file!="..")
    echo $file."<img src='$dir/$file'><br />";
       }
    }
    ?>

    Any ideas?

    Thread Starter jderosa3

    (@jderosa3)

    I have tried changing

    this:

    <?php
    	$handle = opendir ('https://www.xxx.com/flash/portfolio/branding/images/');
        while (false !== ($file = readdir($handle))) {
            echo '<img src="'.$file.'"/>'.$file.'';
        }
    ?>

    to this:

    <?php
    	$handle = opendir ('../flash/portfolio/branding/images/');
        while (false !== ($file = readdir($handle))) {
            echo '<img src="'.$file.'"/>'.$file.'';
        }
    ?>

    No luck.. is there a javascript snippet that does what I want?

    These above still cause errors with the exec-PHP plugin… not sure what going on…

    Thread Starter jderosa3

    (@jderosa3)

    Finally got it all working… IE, Safari, Firefox and iPhone: here is the new code:

    <script type="text/javascript" src="https://www.xxx.com/js/
    swfobject.js"></script>
                    <script type="text/javascript">
                            var flashvars = {};
                            var params = {};
                            params.quality = "high";
                            params.scale = "noscale";
                            params.wmode = "transparent";
                            var attributes = {};
                            swfobject.embedSWF("https://www.xxx.com/flash/contact-header.swf",
    "myAlternativeContent", "642", "286", "9.0.0", false, flashvars,
    params, attributes);
                    </script>
                    <div id="myAlternativeContent">
                            <a href="https://www.adobe.com/go/getflashplayer">
                                    <img src="https://www.adobe.com/images/shared/download_buttons/
    get_flash_player.gif" alt="Get Adobe Flash player" />
                            </a>
                    </div>
    Thread Starter jderosa3

    (@jderosa3)

    Ok… I know have firefox displaying the alternate content but not the Flash object… My IE code was incorrect.

    I had:
    <!--[if !IE]>--> HTML <!--<![endif]-->

    It was suppose to be:
    <!--[if IE]> HTML <![endif]-->

    Resulting code now looks like:

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="642" height="286" id="myFlashContent">
    				<param name="movie" value="https://www.xxx.com/flash/contact-header.swf" />
    				<param name="loop" value="false" />
    				<param name="quality" value="high" />
    				<param name="scale" value="noscale" />
    				<param name="wmode" value="transparent" />
    				<param name="allowfullscreen" value="false" />
    				<!--[if IE]>
    				<object type="application/x-shockwave-flash" data="https://www.xxx.com/flash/contact-header.swf" width="642" height="286">
    					<param name="loop" value="false" />
    					<param name="quality" value="high" />
    					<param name="scale" value="noscale" />
    					<param name="wmode" value="transparent" />
    					<param name="allowfullscreen" value="false" />
    				<![endif]-->
    					<img src="https://www.xxx.com/images/contact-header.jpg" alt="Contact Us" />
    				<!--[if IE]>
    				</object>
    				<![endif]-->
    			</object>

    Any final thoughts on this?

    Thread Starter jderosa3

    (@jderosa3)

    I do have a flash object in my home page with the following code that
    works fine in Firefox…

    <object width="641" height="510" data="https://www.xxx.com/
    flash/home-text.swf" type="application/x-shockwave-flash"><param
    name="wmode" value="transparent"> <param name="quality" value="high" /
    ><param name="scale" value="noscale" /><param name="src" value="https://
    
    www.xxx.com/flash/home-text.swf" /></object>

    but my code in the first post is something firefox does not like… im
    confused…

    Thread Starter jderosa3

    (@jderosa3)

    got it to work… put the JS refernce in the header.php file of the template and then used this code:

    FireFox 3 is displaying on the page “->” where the Flash should be… It looked like a broken tag… but I don’t think so – here is my code:

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="641" height="281" id="myFlashContent">
    				<param name="movie" value="https://www.xxx.com/wp-content/uploads/about.swf" />
    				<param name="loop" value="false" />
    				<param name="quality" value="high" />
    				<param name="scale" value="noscale" />
    				<param name="wmode" value="transparent" />
    				<param name="allowfullscreen" value="false" />
    				<!--[if !IE]>-->
    				<object type="application/x-shockwave-flash" data="https://www.xxx.com/wp-content/uploads/about.swf" width="641" height="281">
    					<param name="loop" value="false" />
    					<param name="quality" value="high" />
    					<param name="scale" value="noscale" />
    					<param name="wmode" value="transparent" />
    					<param name="allowfullscreen" value="false" />
    				<!--<![endif]-->
    <img src="https://www.xxx.com/images/about-header.jpg" alt="About Us" />
    					<!--[if !IE]>-->
    				</object>
    				<!--<![endif]-->
    			</object>

    This code works perfect in IE and also Safari, but not FireFox (3)… any ideas?

    Thread Starter jderosa3

    (@jderosa3)

    got it:

    <param name=”wmode” value=”transparent”>

    Had to add the above to my flash attributes…

Viewing 15 replies - 1 through 15 (of 25 total)