Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

slide show on index.php


kenkja

Recommended Posts

Hi all

 

I am trying to create a slideshow on index.php, which at present does not need to be linked to a specific product, but probably should be linked to a news page but at present is not and only shows 2 of the 6 images I would like to display. I am not very good at php so have tried with html

 

So in includes->languages->english.php the define text greeting line has been changed to

 

define('TEXT_GREETING_GUEST', 'Hello <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?.</br></br><font color="#ffff00"><table><tr><td><a href="http://www.mysite.co.uk/product_info.php/raw-sports-rw5006-action-rain-jacket-p-408298" target="_blank">
<img src="http://www.mysite.co.uk/images/actionivrain.jpg" /></a></td>
<td><font size="3">Gearing up for the Scottish</br></br>High Quality rainwear is an absolute must</font></br></br>Click on the image</br>for more info</br></br></td> </font></br></br></font><td>

 

 

which displays a picture link to a product and works fine, then comes the slideshow, which doesn't work

 

define('TEXT_GREETING_GUEST', 'Hello <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?.</br></br><font color="#ffff00"><table><tr><td><a href="http://www.mysite.co.uk/product_info.php/raw-sports-rw5006-action-rain-jacket-p-408298" target="_blank">
<img src="http://www.mysite.co.uk/images/actionivrain.jpg" /></a></td>
<td><font size="3">Gearing up for the Scottish</br></br>High Quality rainwear is an absolute must</font></br></br>Click on the image</br>for more info</br></br></td> </font></br></br></font><td>
<div align=center><table width=450 border=0 align=center><tr><td><marquee width="450"><img src="http://www.mysite.co.uk/images/denyargentina1.jpg"> <img src="http://www.mysite.co.uk/images/denyargentina2.jpg"> <img src="http://www.mysite.co.uk/images/denyargentina3.jpg"> <img src="http://www.mysite.co.uk/images/moriargentina1.jpg"> <img src="http://www.mysite.co.uk/images/moriargentina2.jpg"> <img src="http://www.mysite.co.uk/images/moriargentina3.jpg">
</marquee></td></tr></table></div>
</td></tr></table>');

 

I'm usure why but the last code block has three more images sources which did not appear in the code upload, but am sure you'll get the drift only denyargentina1 and moriargentina1 are displayed in the slideshow.

Os-commerce v2.3.3

Security Pro v11

Site Monitor

IP Trap

htaccess Protection

Bad Behaviour Block

Year Make Model

Document Manager

X Sell

Star Product

Modular Front Page

Modular Header Tags

Link to comment
Share on other sites

sorry none of that makes much sense, all of the 6 image sources are in the code block but it only displays the first 2

Os-commerce v2.3.3

Security Pro v11

Site Monitor

IP Trap

htaccess Protection

Bad Behaviour Block

Year Make Model

Document Manager

X Sell

Star Product

Modular Front Page

Modular Header Tags

Link to comment
Share on other sites

Hi Ken

 

Would be easier to insert directly in index.php somewhere below

 

<?php

 

} else { // default page

?>

 

towards the bottom.

 

As it looks as if you have modular front page installed why not use the banner rotator,??

 

Personally find the the nivo slider is a bit cooler really easy install just a question of getting the position right in the index.php which requires a bit of fiddling / testing.

 

(install for osc is available search the addons well written easy install)

 

the banner rotater advantages is that it can be updated from admin links to specific products can be added as far as I remember.

 

Regards

 

Joli

To improve is to change; to be perfect is to change often.

 

Link to comment
Share on other sites

Hi Joli

 

yes your are most likely to be correct, but I have a limited understanding of php, so am not confident of trying to many alterations to the base code of the system.

 

I've just spoken to my boss, he says the slideshow is showing all the images on his pc so may be cache issue for me.

 

Yes you are correct I have modular front page installed but I am sure I am not using it to its full potential, reading between the lines I think you are saying I can do away with the html code changes to customer greeting and create far more banners to make the site "more interesting"

 

if your like me and a bit of web numpty, iits sometimes comparatively easy to follow the instructions to add an add-on, but they rarely seem to show how to best use them, I ain't having a go at anyone with that comment, just a relative oursiders take on things.

 

with regard to nivo slider. I am sure you are correct. but I have to worry about "breaking" index.php terminally.

 

I do know my html code to includes/languages/emglish.php, is not "good", but at the mo its all I can manage

 

regards ken

Os-commerce v2.3.3

Security Pro v11

Site Monitor

IP Trap

htaccess Protection

Bad Behaviour Block

Year Make Model

Document Manager

X Sell

Star Product

Modular Front Page

Modular Header Tags

Link to comment
Share on other sites

Hi Ken,

 

If you do not try you will never learn easiest thing in the world is to backup the file / or site and then experiment as long as you have a backup of the database and 1 x of the site not much can go wrong.

 

Even better is to clone the site and database in a subdomain / folder and do your changes there you only need to change the configure.php's when you are satisfied that the addon works transfer to live site (a no index in robots text is advisable to prevent duplicate content ).

 

I have notice that you very active on the forums and work a lot of work on your sites / site so it is really better to have a clone / development store to test and change as long as you are not limited by your host to x 1 database as you do need x 2 I see no problem.

 

Takes about x 1 hour to set up a development site.

 

Regards

Joli

 

PS: as regards customer greeting etc it will make a space (div) at the top of page so if you do not need just // comment out

To improve is to change; to be perfect is to change often.

 

Link to comment
Share on other sites

Hi Joli

 

Thanks for the advice, your bang on the banner rotator is very much better. And do have a development site although I do tend to use only for testing add ons - probably should find a book - PHP for dummies, if there is one

 

Cheers

 

Ken

Os-commerce v2.3.3

Security Pro v11

Site Monitor

IP Trap

htaccess Protection

Bad Behaviour Block

Year Make Model

Document Manager

X Sell

Star Product

Modular Front Page

Modular Header Tags

Link to comment
Share on other sites

Hi Ken,

 

Well looking for a PHP for dummies book myself did ask a well known forum member so who knows :D .

 

regards

 

Joli

To improve is to change; to be perfect is to change often.

 

Link to comment
Share on other sites

Ken, Chapter 7 of my tutorial contains info for setting up a slider on the index page, with the ability to just drop in files, which auto-link to products (can easily be changed to link to categories, pages, whatever.

Link to comment
Share on other sites

gary

 

do you mean your ebook ?

 

ken

Os-commerce v2.3.3

Security Pro v11

Site Monitor

IP Trap

htaccess Protection

Bad Behaviour Block

Year Make Model

Document Manager

X Sell

Star Product

Modular Front Page

Modular Header Tags

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...