Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127
Insert a Flash SlideShow on the Front Page: the most efficient way? « ThemeShaper Forums

ThemeShaper Forums » Thematic

[closed]

Insert a Flash SlideShow on the Front Page: the most efficient way?

(3 posts)
  • Started 5 years ago by Baudesign
  • Latest reply from Baudesign
  • This topic is not resolved
  1. Baudesign
    Member

    Hi everyone,

    I am building a child theme that needs to have a large slideshow on the front page. Based on kimili's plugin, I embedded a flash movie (.swf) like so, in my function.php file:

    // Ça y est, on place le diaporama en page d'accueil, basé sur le plugin Kimili
    function my_slideshow() {
    	if (is_front_page()) {
    	$content = '<div id="slideshow">';
    	$content .= '[kml_flashembed publishmethod="static" fversion="8.0.0" movie="http://www.mulibwanji.com/ma/wp-content/themes/ma/media/test.swf" width="940" height="528" targetclass="flashmovie"]
    					<a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a>
    					[/kml_flashembed]';
    	$content .= '</div>';
    	echo do_shortcode($content);
    		}
    	}
    	add_action('thematic_belowheader', 'my_slideshow');

    It actually works fine.

    But the response time seems to be a bit long, probably du to PHP parsing. Would there be another and more efficient way to do so?

    Thanks

    Pat

    By the way, if you want to have an idea, look here temporally: http://www.mulibwanji.com/ma/

    Posted 5 years ago #

  2. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512


    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512
    Chris

    Moderator

    Hi Pat,

    open the sourceview of your browser and copy the code created by the plugin. Paste this code into your function. This should work faster.

    Chris

    Posted 5 years ago #
  3. Baudesign
    Member

    @ Chris,

    Yea, this makes sense. You save a couple of milliseconds of PHP parsing that way. I should have thought about this one. ;-)

    Posted 5 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.


Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GA_Filter::spool_analytics() should not be called statically in /home/themes/public_html/forums/bb-includes/wp-functions.php on line 586

Strict Standards: Non-static method GA_Filter::spool_this() should not be called statically in /home/themes/public_html/forums/my-plugins/googleanalytics.php on line 183