Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   Can I push everything over? (http://forum.bytesforall.com/showthread.php?t=632)

eyup Mar 3, 2009 05:21 PM

Can I push everything over?
Hi there - awesome theme!

I'm wondering if i can push everything over to the right and insert a div with some flash in it?

I've emulated it here using frames (though I want it to scroll with the rest of the page):


(I also set the left column to 0)


Flynn Mar 3, 2009 05:35 PM

To move both sidebars to the right see http://forum.bytesforall.com/showthread.php?t=168

Moving them to the left is almost the same if you look at the code. Let me know if you get stuck

You can insert Flash anywhere but would have to provide the embed code, there is no auto flash insertion or something like that in the theme

eyup Mar 3, 2009 06:09 PM

Hi Flyn,

What i mean is can 'everything' be pushed over - the whole caboodle, so i can put a column of flash down the left side stretching from top to bottom?

Flynn Mar 3, 2009 06:36 PM

In header.php, find
HTML Code:

<div id="container">
and below it, add:
HTML Code:

<div style="width: 100px; float: left;">



Change 100px to the desired width. Also add margin-right: XXpx if you want to have space between this column and the main layout

And in style.css, find
HTML Code:

table#layout {
    font-size: 100%;
    width: 100%;
    max-width: 100%;
    table-layout: fixed;

and change to

HTML Code:

table#layout {
    font-size: 100%;
    table-layout: fixed;

This style.css change will most likely be in version 3.2.1, so it would not be overwritten when you update Atahualpa

eyup Mar 3, 2009 06:43 PM

You the man Flyn - I'll give it a bash!

eyup Mar 3, 2009 08:28 PM

Soo close:


The Flash doesn't load - seems it can't find the swf file though it finds the jpg at the top.

something to do with permalinks?

I've put the flash file in the same directory as header.php too.

or is it something to do with Wordpress?

Flynn Mar 3, 2009 08:38 PM

You're referencing the swf as
HTML Code:

embed src="roamer.swf"
Change to
HTML Code:

embed src="/roamer.swf"
I also noticed you're referencing various images and javascript i.e. as

HTML Code:

<img src="../../../../images/shaven-logo-menu.jpg"
I'd change those to absolute paths, beginning at your domain root

HTML Code:

<img src="/images/shaven-logo-menu.jpg"

HTML Code:

<img src="http://www.shavenraspberry.com/images/shaven-logo-menu.jpg"

eyup Mar 3, 2009 08:55 PM

Hurrah - CHEERS Flyn - sorted!

Here's the embed stuff for other peeps (I've left a few tags around them so they'll know where it is):

AC_RunActiveContent.js is in a folder called 'Scripts' at root level.

Header code:


<?php echo ($bfa_ata_html_inserts_header != "" ? apply_filters(widget_text, $bfa_ata_html_inserts_header) : ''); ?>
<script src="../../../../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>

My swf is in the root folder.


<div id="wrapper">
<div id="container">
<div style="width: 349px; float: left;"><img src="http://www.shavenraspberry.com/images/shaven-logo-menu.jpg" alt="" height="135" width="349" border="0" /><br />
  <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','349','height','1180','src','/htdocs/roamer/wp-content/themes/atahualpa/roamer','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','/roamer' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="349" height="1180">
    <param name="movie" value="/roamer.swf" />
    <param name="quality" value="high" />
    <embed src="/roamer.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="349" height="1180"></embed>

Thanks again Flynn (this is my 1st Wordpress site ;-)

eyup Mar 4, 2009 11:05 AM

Now here's a thing...

When I go to the Comments page:


the side Flash disappears.

Weird because the jpg is there - do I have to change something?



Flynn Mar 4, 2009 11:40 AM

The path to the Javascript probably doesn't fit anymore once you're deeper inside the site

a path like "../../../..." will always break at some point in Wordpress if you're using permalinks


HTML Code:

<script src="../../../../Scripts/AC_RunActiveContent.js"

HTML Code:

<script src="/Scripts/AC_RunActiveContent.js"
and change other "../../..." paths you may have as well

eyup Mar 4, 2009 12:40 PM


(another small donation winging your way :)

All times are GMT -6. The time now is 05:30 AM.

Powered by vBulletin® Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.