WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Use get_header() and get_footer() commands in custom page? (7 posts)

  1. ar3s
    Member
    Posted 8 years ago #

    Howdy,

    Just trying to make my own custom pages within WordPress - instead of having seperate pages outside of them..
    My website is http://www.ar3s.com, and i want to have the sidebar, header etc functions able to work in these pages (webdesign, artwork, etc).. is this possible?
    any help would be greatly appreciated. :)
    email me at tommyconroy@gmail.com (i also use this for MSN messenger)

  2. skulled
    Member
    Posted 8 years ago #

    Please read through the information in the codex. There are instructions on how to create custom Page templates

    http://codex.wordpress.org/Pages#Page_Templates

  3. ar3s
    Member
    Posted 8 years ago #

    Okay, thanks :)
    I think i did it correctly, however i went to create a new page this code:

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="640" height="400" title="thingthing2">
    <param name="movie" value="games/game.swf" />
    <param name="quality" value="high" />
    <embed src="games/game.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="640" height="400"></embed>
    </object>

    it worked properly, however nothing came up - http://www.ar3s.com/wordpress/?page_id=11

  4. skulled
    Member
    Posted 8 years ago #

    Please use full paths to the flash files.

    I am guessing your flash file is not being displayed since the paths are relative right now, and the path that wordpress is assuming is not the same as where the flash file itself resides on your server ..

  5. ar3s
    Member
    Posted 8 years ago #

    Hmm... I dont think that I'm entering the flash file script properly..
    Heres a link the file I want to play in this page:
    http://ar3s.com/wordpress/wp-content/themes/ar3s/games/game.swf
    would anyone have experience with embedding flash files?

    also, heres a link to the template file (may be something wrong with it):
    http://ar3s.com/wordpress/wp-content/themes/ar3s/games.php

    I tried using the simple
    <embed src="http://ar3s.com/wordpress/wp-content/themes/ar3s/games/game.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="640" height="400"></embed>

    ..which didnt work
    I went to edit it and it completely removed all of the code..

    Thanks for your help so far :)

  6. skulled
    Member
    Posted 8 years ago #

    You should still use the entire <object> embed code to inser the flash file.

    The path you are using to the flash file seems to be correct.

    Try using the full code, and not just the <embed> stuff ..

    If that doesn't work, post back and we can see what else could be wrong ..

  7. ar3s
    Member
    Posted 8 years ago #

    I put this into the code:
    <table><td>
    A cool game called "Thing Thing 2"<br/>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="640" height="400">
    <param name="movie" value="http://ar3s.com/wordpress/wp-content/themes/ar3s/games/game.swf" />
    <param name="quality" value="high" />
    <embed src="http://ar3s.com/wordpress/wp-content/themes/ar3s/games/game.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="640" height="400"></embed>
    </object>

    </td></table>

    ...and when it didnt work, i hit edit, and came back with:

    <table>
    <tr>
    <td>A cool game called "Thing Thing 2"
    <object width="640" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
    <param value="http://ar3s.com/wordpress/wp-content/themes/ar3s/games/game.swf" name="movie" />
    <param value="high" name="quality" /></object></td>
    </tr>
    </table>

    EDIT: Holy crap! it opens properly in IE

    Now to get it to open in FireFox >_<

Topic Closed

This topic has been closed to new replies.

About this Topic