Recent Topics

1 Aug 11, 2006 06:11    

hey guys,
I'm looking for a way to embed a flash object on the side bar above the calendar.

Is this possible? can you embed inside php?
Here's my sidebar code located in skin/_main.php

<!-- =================================== START OF SIDEBAR =================================== -->


<div class="bSideBar">
<div class="innerwrap">


	<?php // -------------------------- CALENDAR INCLUDED HERE -----------------------------
		// Call the Calendar plugin:
		$Plugins->call_by_code( 'evo_Calr', array(	// Params follow:
				'title'=>'',			// No title.
			) );
		// -------------------------------- END OF CALENDAR ---------------------------------- ?>

	<div class="bSideItem">
		<h3><?php $Blog->disp( 'name', 'htmlbody' ) ?></h3>
		<p><?php $Blog->disp( 'longdesc', 'htmlbody' ); ?></p>
		<ul>
			<li><a href="<?php $Blog->disp( 'dynurl', 'raw' ) ?>"><strong><?php echo T_('Recently') ?></strong></a></li>
			<li><a href="<?php $Blog->disp( 'arcdirurl', 'raw' ) ?>"><strong><?php echo T_('Archives') ?></strong></a></li>
			<li><a href="<?php $Blog->disp( 'lastcommentsurl', 'raw' ) ?>"><strong><?php echo T_('Last comments') ?></strong></a></li>
		</ul>
	</div>

	<div class="bSideItem">
		<h3 class="sideItemTitle"><?php echo T_('Search') ?></h3>
		<?php form_formstart( $Blog->dget( 'blogurl', 'raw' ), 'search', 'SearchForm' ) ?>
			<p><input type="text" name="s" size="30" value="<?php echo htmlspecialchars($s) ?>" class="SearchField" /><br />
			<input type="radio" name="sentence" value="AND" id="sentAND" <?php if( $sentence=='AND' ) echo 'checked="checked" ' ?>/><label for="sentAND"><?php echo T_('All Words') ?></label><br />
			<input type="radio" name="sentence" value="OR" id="sentOR" <?php if( $sentence=='OR' ) echo 'checked="checked" ' ?>/><label for="sentOR"><?php echo T_('Some Word') ?></label><br />
			<input type="radio" name="sentence" value="sentence" id="sentence" <?php if( $sentence=='sentence' ) echo 'checked="checked" ' ?>/><label for="sentence"><?php echo T_('Entire phrase') ?></label></p>
			<input type="submit" name="submit" class="submit" value="<?php echo T_('Search') ?>" />
		</form>
	</div>


	<?php // -------------------------- CATEGORIES INCLUDED HERE -----------------------------
		// Call the Categories plugin:
		$Plugins->call_by_code( 'evo_Cats', array(	// Add parameters below:
			) );
		// -------------------------------- END OF CATEGORIES ---------------------------------- ?>


	<?php // -------------------------- ARCHIVES INCLUDED HERE -----------------------------
		// Call the Archives plugin:
		$Plugins->call_by_code( 'evo_Arch', array(	// Add parameters below:
			) );
		// -------------------------------- END OF ARCHIVES ---------------------------------- ?>
		

	<?php if( ! $Blog->get('force_skin') )
	{	// Skin switching is allowed for this blog: ?>
		<div class="bSideItem">
			<h3><?php echo T_('Choose skin') ?></h3>
			<ul>
				<?php // ------------------------------- START OF SKIN LIST -------------------------------
				for( skin_list_start(); skin_list_next(); ) { ?>
					<li><a href="<?php skin_change_url() ?>"><?php skin_list_iteminfo( 'name', 'htmlbody' ) ?></a></li>
				<?php } // ------------------------------ END OF SKIN LIST ------------------------------ ?>
			</ul>
		</div>
	<?php } ?>

	<div class="bSideItem">
		<h3><?php echo T_('Misc') ?></h3>
		<ul>
			<?php
				user_login_link( '<li>', '</li>' );
				user_register_link( '<li>', '</li>' );
				user_admin_link( '<li>', '</li>' );
				user_profile_link( '<li>', '</li>' );
				user_subs_link( '<li>', '</li>' );
				user_logout_link( '<li>', '</li>' );
			?>
		</ul>
	</div>

<div class="bSideItem">
		<h3><img src="<?php echo $rsc_url ?>icons/feed-icon-16x16.gif" width="16" height="16" class="top" alt="" /> <?php echo T_('XML Feeds') ?></h3>
			<ul>
				<li>
					RSS 0.92:
					<a href="<?php $Blog->disp( 'rss_url', 'raw' ) ?>"><?php echo T_('Posts') ?></a>,
					<a href="<?php $Blog->disp( 'comments_rss_url', 'raw' ) ?>"><?php echo T_('Comments') ?></a>
				</li>
				<li>
					RSS 1.0:
					<a href="<?php $Blog->disp( 'rdf_url', 'raw' ) ?>"><?php echo T_('Posts') ?></a>,
					<a href="<?php $Blog->disp( 'comments_rdf_url', 'raw' ) ?>"><?php echo T_('Comments') ?></a>
				</li>
				<li>
					RSS 2.0:
					<a href="<?php $Blog->disp( 'rss2_url', 'raw' ) ?>"><?php echo T_('Posts') ?></a>,
					<a href="<?php $Blog->disp( 'comments_rss2_url', 'raw' ) ?>"><?php echo T_('Comments') ?></a>
				</li>
				<li>
					Atom:
					<a href="<?php $Blog->disp( 'atom_url', 'raw' ) ?>"><?php echo T_('Posts') ?></a>,
					<a href="<?php $Blog->disp( 'comments_atom_url', 'raw' ) ?>"><?php echo T_('Comments') ?></a>
				</li>
			</ul>

		<a href="http://fplanque.net/Blog/itTrends/2004/01/10/rss_rdf_and_atom_in_a_nutshell" title="External - English">What is this?</a>

</div>

<p class="center">powered by<br />
<a href="http://b2evolution.net/" title="b2evolution home"><img src="<?php echo $rsc_url; ?>img/b2evolution_logo_80.gif" alt="b2evolution" width="80" height="17" border="0" class="middle" /></a></p>

</div>
</div>

<div class="clear"><img src="<?php echo $rsc_url; ?>img/blank.gif" width="1" height="1" alt="" /></div>

<div id="pageFooter">
	<p class="baseline">
		Original <a href="http://b2evolution.net/">b2evolution</a> template design by <a href="http://severinelandrieu.com/">S&eacute;verine LANDRIEU</a> &amp; <a href="http://fplanque.net/">Fran&ccedil;ois PLANQUE</a>.
	</p>
	<?php
		$Hit->log();	// log the hit on this page
		debug_info(); // output debug info if requested
	?>
</div>


</div>

And here's the flash object code

<script type="text/javascript">
AC_FL_RunContent( 'width','300','height','160','id','mp3player','codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','src','mp3player','name','mp3player',
'pluginspage','http://www.macromedia.com/go/getflashplayer','movie','mp3player' ); //end AC code
</script><noscript><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="300" height="160" id="mp3player"
		codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" >
    <param name="movie" value="mp3player.swf" />
    <embed src="mp3player.swf" width="300" height="160" name="mp3player"
    	type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object></noscript>

2 Aug 11, 2006 12:21

this is a skin question. Please be mindful of where you post. I will move this to the skins forum.

3 Aug 11, 2006 13:57

a php-page is nothing more than a html page with special functions in between.
So you can absolutely put flashcode or javascript-code or... .. code in a php-file.

4 Aug 11, 2006 16:09

ok well inserted the code for it right where the side bar is, above the calendar:

<!-- =================================== START OF SIDEBAR =================================== -->
<div class="bSideBar">
<div class="innerwrap">
<script type="text/javascript">
AC_FL_RunContent( 'width','300','height','160','id','mp3player','codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','src','mp3player','name','mp3player','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','mp3player' ); //end AC code
</script><noscript><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="300" height="160" id="mp3player"
		codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" >
    <param name="movie" value="mp3player.swf" />
    <embed src="mp3player.swf" width="300" height="160" name="mp3player"
    	type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object></noscript>
</div>
</div>

It doesn't show up just by doing this. is it because of the size differences? the flash player has a width of 300 but the side bar has a width of "29ex". what the crap does that mean?

5 Aug 11, 2006 19:41

Apart from the fact that you have a </div> to many (assuming you have other stuff in yer sidebar)..... have you got the correct filename (mp3player.swf) .... if you do then, just for a laugh, copy it to your /skins/<skin name>/ folder and see if it works ;)

If not, can you provide a link to your page where it's not working?

¥

6 Aug 11, 2006 20:05

This is the entire code for a flash clock I have imbedded in a sidebar. Dreamweaver generates the necessay code, if you have access to it.


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="110" height="110">
    <param name="movie" value="clock132.swf">
    <param name=quality value=high>
    <embed src="clock132.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="110" height="110"></embed>
  </object>

7 Aug 11, 2006 21:05

You use dreamweaver? 8| No wonder you need to believe that stuff works "because" :|

¥

8 Aug 11, 2006 21:18

ok I took out one of those </div> tags. and yes the files are all located in proper skin folder. This is the way the author of the file told me to add it to a page. The only thing i added to it are the <div bsidebar> and other div.

I also checked the files name and it is correct also.

The website is www.ajourneyforyouth.com/blog_page/

9 Aug 11, 2006 21:19

what's wrong with dreamweaver? should I be using something else?

10 Aug 11, 2006 23:36

The only time I get a hard look at how things really work, my eyes cross. B)

Sides, because is why everything is the way it is...ask any parent.

11 Aug 12, 2006 01:09

ok i got it working. I placed the object

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="29ex" height="160" id="mp3player"
		codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" >
    <param name="movie" value="mp3player.swf" />
    <embed src="mp3player.swf" width="200" height="160" name="mp3player"
    	type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

right under the first div for the calendar. I also adjusted the width to 29ex. (I still don't know what that is outside of somesort of measuring unit.) the problem i was having is that dreamweaver was asking me if i wanted to optimize code for internet explorer.

Dang it!!! I hate MS IE. there has never been a worse company or browser. i just toggled to me pc and brought up the site and sure enough it doesn't display for crap. Back to the drawing board

well it's working on mac os x firefox and safari

12 Aug 12, 2006 02:03

The width and height are referenced in 2 places in the code. I noticed you have 29 ex in one place and 200 px under embed.

I'm not sure, but this might cause a probelm with some browsers.

13 Aug 12, 2006 02:17

ok here's the final that works in safari, firefox, and ie...

<!-- =================================== START OF SIDEBAR =================================== -->

<div class="bSideBar">
<div class="innerwrap">

<script type="text/javascript">
AC_FL_RunContent( 'width','200','height','250','id','mp3player','codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','src','mp3player','name','mp3player','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','mp3player' ); //end AC code
</script><noscript><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="200" height="250" id="mp3player"
		codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" >
    <param name="movie" value="mp3player.swf" />
    <embed src="mp3player.swf" width="200" height="250" name="mp3player"
    	type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object></noscript>
	
The calendar starts right here...........

And I changed the size consistantly across it. This is what fits in the sidebar best. Thanks for everyone that helped. here's a link if you want to see the final http://www.ajourneyforyouth.com/blog_page/


Form is loading...