Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Template customization


omihack

Recommended Posts

Hello, I have installed this template http://www.tuhostmx.com/heaven/index.php but I wonder if I can add .swf animation (banner) in to the page.

 

I made the following I hope anyone can understand and give me some advice please.

 

for the banner i have the .swf file, images, and xml files configuration.. you can take a look at http://www.tuhostmx.com/heaven/preview.swf

 

Then I found the original template had a .jpg called from header.php

 

<a href="<?php echo tep_href_link('index.php')?>"><?php echo tep_image(DIR_WS_IMAGES.'p.jpg')?></a><br>

 

So I made the change as follows..

 

<a href="<?php echo tep_href_link('index.php')?>"><?php echo tep_image('preview.swf')?></a><br>

 

After that I found at google that is necessary declare something like this in index.php

 

<table width="1024" border="0" cellspacing="0" cellpadding="0">

<tr>

<td><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="1024" height="450">

<param name="movie" value="http://yourdomain.com/locationofflashfile.swf" />

<param name="quality" value="high" />

<param name="wmode" value="transparent" />

<embed src="http://yourdomain.com/locationofflashfile.swf" width="1024" height="450" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>

</object></td>

</tr>

</table>

 

 

but I already tried wiht any succes :(

Link to comment
Share on other sites

More importantly....

 

Visit the link below:

 

How to Secure Your Site

 

Pay close attention to "SECURING THE ADMIN" - Yours is vulnerable.

 

It's easier to do a few security fixes now than to clean up a hacked store later.

 

And if you don't secure the admin your shop will be hacked.

 

It's just a question of when...

:o

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Hey Jim,, Thanks a lot! I didn´t even imagined this possibility! Right now begin reading about it..

another question, do you hace all the security add-ons mentioned here? I mean I really need them all?

 

http://www.oscommerce.com/forums/topic/313323-how-to-secure-your-site/

 

It's just a question of when...

:o

 

Regards!

Link to comment
Share on other sites

I finally made it thanks anyway 33 visits and just one answer..

For those who got the same issue..

 

I just replace the line code of the original gif at the header.php with this.

 

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase= "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="708" HEIGHT="265" ALIGN="absmiddle">

 

<PARAM NAME=movie VALUE="FILE SWF">

<PARAM NAME=quality VALUE=high>

<PARAM NAME=bgcolor VALUE=#333399>

<EMBED src="FILE SWF" quality=high bgcolor=#333399 WIDTH="320" HEIGHT="240" ALIGN="absmiddle" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>

</OBJECT>

 

ensure to add <BR> before and after in order to get the template structured

Link to comment
Share on other sites

Your admin is still a hack just waiting to happen....

:huh:

 

If you don't secure it, it will.

 

Maybe tomorrow, next week, or next month - it's just a question of when will the hack bots find your site.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Hi Germ, thanks for the warnings, could you please take a look? I think the admin is now secured Admin renamed, blocked with password from control panel and file manager and define language erased..

 

Could you please send me your opinion? I really appreciate your knowledge and time :blush:

Link to comment
Share on other sites

Admin secured.

:thumbsup:

 

The only other item I saw was the permissions on the /heaven/images folder.

 

They were 777.

 

That will get you hacked as fast as a leaky admin.

 

They shouldn't be higher than 755.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Ok, I'll change the permissions, another question, I think alll my folders has 777 :'( Wich ones must to remain or may I change all the folders to 755 without problems?

 

Regarding the customization.. Im trying figure out how change the Green color to another in header and categories.. http://www.tuhostmx.com/heaven, I tried editing header.php, aplication_top, aplication_bottom, Header, and stylesheet

 

But even I change the color code the site still with no changes ! :blink: I dont know what to do..I tried even with this http://jqueryui.com/themeroller/developertool/

 

Thank you very much for your patience! and help Sr.!

Edited by omihack
Link to comment
Share on other sites

Folder permissions should not be higher that 755.

 

The only folder I saw higher than that was the one I told you about.

 

If you examine the HTML source closely you'll discvover that all the green parts you want to change are images.

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...