Topic: SVpro-v2 into the Wordpress Header ?

Hi everyone !

I would like to embed SVpro-v2 into the header in wordpress. How can I do that ?

Does the plugin from simpleviewer.net is useful for this task ? I understood that it was only for a post.

By the way, I am really not an expert with Php

Thanx a lot !
big_smile

Re: SVpro-v2 into the Wordpress Header ?

The plug-in is for adding SimpleViewer to posts, to add SimpleViewer to the head of your blog edit the head document for your theme and use the normal embed code.

Mike Richards
SimpleViewer Support Team.

Re: SVpro-v2 into the Wordpress Header ?

Mike Richards wrote:

The plug-in is for adding SimpleViewer to posts, to add SimpleViewer to the head of your blog edit the head document for your theme and use the normal embed code.

Thanx Mike but I already tried with the embed code from svBuilder and I have a big black square instead of my header.

I cannot see any pictures or loaders or anything...

Re: SVpro-v2 into the Wordpress Header ?

SVBuilder gives me something like that

<!-- SIMPLEVIEWER HEAD. Paste this into the head of the HTML page-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.galleryURL = "gallery.xml";
var params = {};
params.bgcolor = "000000";
params.allowfullscreen = true;
params.allowscriptaccess = "always";
swfobject.embedSWF("simpleviewer.swf", "flashContent", "100%", "100%", "9.0.124", false, flashvars, params);
</script>


<!-- SIMPLEVIEWER BODY. Paste this into the body of the HTML page where you want to the gallery to appear -->
<div id="flashContent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.adobe.com/go/getflashplayer/">Get Flash.</a></div>

and the simple viewer embeding guide syas it should be more like this:

<!-- SIMPLEVIEWER HEAD. Paste this into the head of the HTML page-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.galleryURL = "gallery.xml";
var params = {};
params.bgcolor = "000000";
params.allowfullscreen = true;
params.allowscriptaccess = "always";
swfobject.embedSWF("simpleviewer.swf", "flashContent", "100%", "100%", "9.0.124", false, flashvars, params);
</script>


<!-- SIMPLEVIEWER BODY. Paste this into the body of the HTML page where you want to the gallery to appear -->
<div id="flashContent">SimpleViewer requires JavaScript and the Flash Player. <a href="http://www.adobe.com/go/getflashplayer/">Get Flash.</a></div>

I am really not an expert but it does not look similar

With the one from SVBuilder I still have this big black box instead of my picture.

I am adding the code in header.php and pasted simpleviewer.swf and gallery.xml into the folder of my wordpress theme (same folder as header.php)

What am I doing wrong ?

thanx a lot ! wink

Re: SVpro-v2 into the Wordpress Header ?

Ok so I updated my SV version to the 2.1.1 and the embed code looks just like you said.

I paste it into header.php and copied the folders svcore, images, thumbs in the same as header.php the but it doesn't show up on the page...

please help !

thanx

Re: SVpro-v2 into the Wordpress Header ?

Please post the URL for the page you are having issues with.

Mike Richards
SimpleViewer Support Team.

Re: SVpro-v2 into the Wordpress Header ?

I am working with Xampp on localhost for now...

Would it be the problem ? I guess not...

here is what I wrote into header.php

<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title><?php if (is_home () ) { bloginfo('name'); } elseif ( is_category() ) { single_cat_title(); echo ' - ' ; bloginfo('name'); }
 elseif (is_single() ) { single_post_title(); }
 elseif (is_page() ) { bloginfo('name'); echo ': '; single_post_title(); }
 else { wp_title('',true); } ?></title>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/script.js"></script>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<!--[if IE 6]><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style.ie6.css" type="text/css" media="screen" /><![endif]-->
<link rel="alternate" type="application/rss+xml" title="<?php printf(__('%s RSS Feed', 'kubrick'), get_bloginfo('name')); ?>" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php printf(__('%s Atom Feed', 'kubrick'), get_bloginfo('name')); ?>" href="<?php bloginfo('atom_url'); ?>" /> 

<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_head(); ?>

</head>

<body>

<!--START SIMPLEVIEWER EMBED -->
    <script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
    <script type="text/javascript">
    jQuery(document).ready(function () {
        SV.simpleviewer.load('sv-container', '100%', '100%', '666666', true );
    });
    </script>
    <div id="sv-container"></div>
    <!--END SIMPLEVIEWER EMBED -->

    <div class="PageBackgroundGradient"></div>
<div class="PageBackgroundGlare">
    <div class="PageBackgroundGlareImage"></div>
</div>
<div class="Main">
<div class="Sheet">
    <div class="Sheet-tl"></div>    
    <div class="Sheet-lu"><div></div></div>
    <div class="Sheet-tr"><div></div></div>
    <div class="Sheet-bl"><div></div></div>
    <div class="Sheet-br"><div></div></div>
    <div class="Sheet-tc"><div></div></div>
    <div class="Sheet-bc"><div></div></div>
    <div class="Sheet-cl"><div></div></div>
    <div class="Sheet-cr"><div></div></div>
    <div class="Sheet-cc"></div>
    <div class="Sheet-body">
<div class="Header">
    <div class="Header-png"></div>
    <div class="Header-jpeg"></div>
    <div class="Header-unc"onclick></div>
    
    
    
<div class="logo">
    <h1 id="name-text" class="logo-name">
        <a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
    <div id="slogan-text" class="logo-text">
        <?php bloginfo('description'); ?></div>
</div>

</div>
<div class="nav">
    <?php wp30_menu(); ?>
    <div class="l">
    </div>
    <div class="r">
        <div>
        </div>
    </div>
</div>




<div class="breadcrumbs">
<?php
if(function_exists('bcn_display'))
{
    bcn_display();
}
?>
</div>

Thanx for helping

Last edited by phantom2040 (2011-01-19 17:21:51)

Re: SVpro-v2 into the Wordpress Header ?

I tried embed my simpleviewer into a .fla file and save into another .swf and it works fine.

Then I added this new .swf into my header. It works but the simpleviewer loader inside that .swf is empty...

Is there a way to display my simpleviewer gallery into my header ?

please help

thanx a lot !

Re: SVpro-v2 into the Wordpress Header ?

The problem is probably a path issue, since you site is on a local server and we can't take a look I would suggest using the iframe method.

Mike Richards
SimpleViewer Support Team.

Re: SVpro-v2 into the Wordpress Header ?

Great it works ! big_smile

Even though the path is exactly the same as header.php and gallery.xml...

thanx Mike !