1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum is for release discussion only. Discussions that do not relate specifically to the resource release should be discussed in another, more appropriate forum.
    Dismiss Notice
  3. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Replace title image with flash object

Discussion in 'Template Modifications [Archive]' started by Jake Bunce, Jun 15, 2011.

  1. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    (in response to laztrix's post)



    Edit this template:

    Admin CP -> Appearance -> Templates -> logo_block

    Replace the title image code:

    			<div id="logo"><a href="{$logoLink}">
    				<span><xen:comment>This span fixes IE vertical positioning</xen:comment></span>
    				<img src="@headerLogoPath" alt="{$xenOptions.boardTitle}" />
    With a flash object, like so:

    			<div id="logo">
    				<span><xen:comment>This span fixes IE vertical positioning</xen:comment></span>
    				<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/
    cabs/flash/swflash.cab#version=6,0,40,0" width="468" height="60" id="mymoviename">
    				<param name="movie" value="example.swf" />
    				<param name="quality" value="high" />
    				<param name="bgcolor" value="#ffffff" />
    				<embed src="example.swf" quality="high" bgcolor="#ffffff" width="468" height="60" name="mymoviename" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
    You need to replace both instances of example.swf with the location of your flash file. You can set the width and height in the code (two instances of width="468" height="60"). There are also two instances of bgcolor if you need a background color.

    Then you also need to set this height appropriately:

    Admin CP -> Appearance -> Style Properties -> Header and Navigation -> Height of Header Logo

    Screen shot 2011-06-15 at 10.11.05 AM.png
    Liam23, 8thos, EQnoble and 4 others like this.
  2. yavuz

    yavuz Well-Known Member

    Worked like a charm. Thank you so much Jake :) (y)
    Perspektif likes this.
  3. arabic

    arabic Member

    Nice work (y)
  4. GRJoker

    GRJoker Member

    Is there anyway to make this for the footer image? Thank for the help
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    You can add the flash code to your footer template:

    Admin CP -> Appearance -> Templates -> footer

Share This Page