[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4752: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4754: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4755: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4756: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
 OpenForum.dk • Vis emne - Har du brug for et slideshow, f.eks af varer...

Har du brug for et slideshow, f.eks af varer...

Her kan du beskrive smarte løsninger og tips til andre.

Redaktør: Redaktionen

Indlægaf tidemann » 2007-10-12 13:25

Jag vil se den fil du vil have slideshowet på,
column_right.php, column_left.php, index.php eller hvilken?
Hele php koden.........

Og jeg vil gerne se siden også, så kan jeg bedre forholde mig til hvor og hvad.
Mvh Marianne
designer af: singingwolfs.dk - royalmontana.dk - c-fitness.dk - fitness2all.dk - dirtyflirt.dk - ragdollys-cat-link.dk
Brugeravatar
tidemann
Oldtimer :o)
Oldtimer :o)
 
Indlæg: 621
Tilmeldt: 2007-05-8 01:26
Geografisk sted: Hjertet af Jylland

Indlægaf Hustler » 2007-10-12 17:38

Ok er på arbejde lige nu... men sender den i løbet af aftenen når der er tid....
Hustler
Godt igang
Godt igang
 
Indlæg: 56
Tilmeldt: 2007-08-21 23:43

Indlægaf Hustler » 2007-10-12 18:58

[glow=red]Hej Tidemann
Min side hedder www.nicelook.dk og den fil jeg har sat ind er den originale og ikke den jeg ændrede i tidligere.[/glow]


<?php
/*
$Id: column_right.php,v 1.17 2003/06/09 22:06:41 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

require(DIR_WS_BOXES . 'shopping_cart.php');

if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php');

if (tep_session_is_registered('customer_id')) {
if ($guest_account == false) include(DIR_WS_BOXES . 'order_history.php');
}

if (isset($HTTP_GET_VARS['products_id'])) {
if (tep_session_is_registered('customer_id')) {
$check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'");
$check = tep_db_fetch_array($check_query);
if ($check['count'] > 0) {
include(DIR_WS_BOXES . 'best_sellers.php');
} else {
if ($guest_account == false) include(DIR_WS_BOXES . 'product_notifications.php');
}
} else {
if ($guest_account == false) include(DIR_WS_BOXES . 'product_notifications.php');
}
} else {
include(DIR_WS_BOXES . 'best_sellers.php');
}

if (isset($HTTP_GET_VARS['products_id'])) {
if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');
} else {
include(DIR_WS_BOXES . 'specials.php');
}

require(DIR_WS_BOXES . 'reviews.php');

if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
include(DIR_WS_BOXES . 'languages.php');
include(DIR_WS_BOXES . 'currencies.php');
}
?>
Hustler
Godt igang
Godt igang
 
Indlæg: 56
Tilmeldt: 2007-08-21 23:43

Indlægaf tidemann » 2007-10-12 19:37

Hvad sker der hvis du gør sådan:
[php]

<?php
/*
$Id: column_right.php,v 1.17 2003/06/09 22:06:41 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

require(DIR_WS_BOXES . 'shopping_cart.php');

if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php');

if (tep_session_is_registered('customer_id')) {
if ($guest_account == false) include(DIR_WS_BOXES . 'order_history.php');
}

if (isset($HTTP_GET_VARS['products_id'])) {
if (tep_session_is_registered('customer_id')) {
$check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'");
$check = tep_db_fetch_array($check_query);
if ($check['count'] > 0) {
include(DIR_WS_BOXES . 'best_sellers.php');
} else {
if ($guest_account == false) include(DIR_WS_BOXES . 'product_notifications.php');
}
} else {
if ($guest_account == false) include(DIR_WS_BOXES . 'product_notifications.php');
}
} else {
include(DIR_WS_BOXES . 'best_sellers.php');
}

if (isset($HTTP_GET_VARS['products_id'])) {
if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');
} else {
include(DIR_WS_BOXES . 'specials.php');
}

require(DIR_WS_BOXES . 'reviews.php');

if (substr(basename($PHP_SELF), 0, != 'checkout') {
include(DIR_WS_BOXES . 'languages.php');
include(DIR_WS_BOXES . 'currencies.php');
}
?>

[glow=red]her skal du måske ha top på kassen?<tr><td>et eller andet></td></tr>[/glow]
<tr>
<td height="418" align="center"><img src="images/banners/1.jpg" name="SlideShow" width="195" height="418" border="0" alt="" /><script type="text/javascript">
/*** SLIDESHOW START ***/
var slideShowSpeed = 4000;
var blendTrans = 3;

var Pic = new Array();
Pic[0] = "images/banners/1.jpg";
Pic[1] = "images/banners/2.jpg";
Pic[2] = "images/banners/3.jpg";
Pic[3] = "images/banners/4.jpg";
Pic[4] = "images/banners/5.jpg";
Pic[5] = "images/banners/1.jpg";
Pic[6] = "images/banners/2.jpg";
Pic[7] = "images/banners/3.jpg";
Pic[8] = "images/banners/4.jpg";
Pic[9] = "images/banners/5.jpg";

function randOrd(a, b){
return (Math.round(Math.random())-0.5);
}
Pic.sort( randOrd );


var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
function runSlideShow() {
if (document.all) {
document.images.SlideShow.style.filter="blendTrans(duration=2)";
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow.filters.blendTrans.Apply();
}
document.images.SlideShow.src = preLoad[j].src;
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}
/*** SLIDESHOW SLUT ***/

/*** MENU-HACK START ***/
// var h = document.body.clientHeight;
// h = (h-481)/2;
LeftPosCorrection = -138;
/*** MENU-HACK SLUT ***/

/*** RELOAD HACK START ***/
var reload_side= new Function("window.location.reload();");
window.onresize=reload_side;
/*** RELOAD HACK SLUT ***/
</script></td>
<!-- ---------------------------------------------------------------- -->
</tr>[/php]

Den sidste ?> efter </tr> skal ikke med, ved ikke hvorfor den kommer med :roll:

Skal desværre i byen, så kan ikke lige teste den....
Mvh Marianne
designer af: singingwolfs.dk - royalmontana.dk - c-fitness.dk - fitness2all.dk - dirtyflirt.dk - ragdollys-cat-link.dk
Brugeravatar
tidemann
Oldtimer :o)
Oldtimer :o)
 
Indlæg: 621
Tilmeldt: 2007-05-8 01:26
Geografisk sted: Hjertet af Jylland

Indlægaf Hustler » 2007-10-13 01:37

Hej Marianne..
Nu har jeg lavet en testside... hvor jeg har lagt kodningen ind men..... billedet kommer nu men uden slideshow...
Der kom først billed på da jeg slettede denne linie her:if (substr(basename($PHP_SELF), 0, != 'checkout') {

Mit php program fortalte mig at der var fejl i den linie... mangler der noget eller ?

Du kan kigge på testsiden som hedder www.onlyfriends.dk
Hustler
Godt igang
Godt igang
 
Indlæg: 56
Tilmeldt: 2007-08-21 23:43

Indlægaf tidemann » 2007-10-13 03:26

Du mangler det vigtigste!!
<body onload="runSlideShow();" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

i index.php
Mvh Marianne
designer af: singingwolfs.dk - royalmontana.dk - c-fitness.dk - fitness2all.dk - dirtyflirt.dk - ragdollys-cat-link.dk
Brugeravatar
tidemann
Oldtimer :o)
Oldtimer :o)
 
Indlæg: 621
Tilmeldt: 2007-05-8 01:26
Geografisk sted: Hjertet af Jylland

Indlægaf Hustler » 2007-10-13 11:44

Hej Marianne
Sådan her ser det ud når jeg har sat det ind... men ingen virkning :-( :


?>
<!-- body_text_eof //-->
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>
[glow=red]<body onload="runSlideShow();" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> [/glow] </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>



Hvad gør jeg galt he he ? :-)
Hustler
Godt igang
Godt igang
 
Indlæg: 56
Tilmeldt: 2007-08-21 23:43

Indlægaf tidemann » 2007-10-13 12:27

Det er ikke der det skal ind. Det er jo din column_right.php side!!
Du skal finde index.php siden

Den ser sådan ud i toppen

[php]<?php
/*
$Id: index.php,v 1.2 2005/12/02 12:42:30 olby Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

require('includes/application_top.php');

// the following cPath references come from application_top.php
$category_depth = 'top';
if (isset($cPath) && tep_not_null($cPath)) {
$categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");
$cateqories_products = tep_db_fetch_array($categories_products_query);
if ($cateqories_products['total'] > 0) {
$category_depth = 'products'; // display products
} else {
$category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'");
$category_parent = tep_db_fetch_array($category_parent_query);
if ($category_parent['total'] > 0) {
$category_depth = 'nested'; // navigate through the categories
} else {
$category_depth = 'products'; // category has no products, but display the 'no products' message
}
}
}

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT);
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
[glow=red]<body onload="runSlideShow();" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" style="z-index:1;">[/glow]

<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table height="310" border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="<?php echo BOX_WIDTH; ?>" valign="top">
<table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
[/php]

Sæt onload="runSlideShow();" ind der hvor jeg har markeret med rødt, og prøv også lige at sætte style="z-index:1;" på.
Mvh Marianne
designer af: singingwolfs.dk - royalmontana.dk - c-fitness.dk - fitness2all.dk - dirtyflirt.dk - ragdollys-cat-link.dk
Brugeravatar
tidemann
Oldtimer :o)
Oldtimer :o)
 
Indlæg: 621
Tilmeldt: 2007-05-8 01:26
Geografisk sted: Hjertet af Jylland

Indlægaf Hustler » 2007-10-14 02:43

Hej Marianne
Har hele tiden haft sat den linie ind i Index.php... men ikke samme sted :-)
Men det hjælper stadig intet af en eller anden grund vil den ikke skifte billeder :-(
Hustler
Godt igang
Godt igang
 
Indlæg: 56
Tilmeldt: 2007-08-21 23:43

Indlægaf tidemann » 2007-10-14 08:56

Når jeg læser i kildekoden, ser jeg en fejl..
[php]<!-- right_navigation_eof //-->
</table></td>
<body onload="runSlideShow();" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">style="z-index:1;"

</tr>
</table>
<!-- body_eof //-->[/php]

Den skal ikke være der........... er det i column_right.php, eller bare der hvor du sætter column_right ind?

Og dette:
[php]border="1" alt="" /><script type="text/javascript">
include(DIR_WS_BOXES . 'best_sellers.php') [/php]

include(DIR_WS_BOXES . 'best_sellers.php') skal IKKE være der, den ødelægger javascriptet.

Og du skal flytte en afslutning >, den skal ikke være efter "0"> men efter z-index:1; !! [glow=red]rightmargin="0" style="z-index:1;">[/glow]
Mvh Marianne
designer af: singingwolfs.dk - royalmontana.dk - c-fitness.dk - fitness2all.dk - dirtyflirt.dk - ragdollys-cat-link.dk
Brugeravatar
tidemann
Oldtimer :o)
Oldtimer :o)
 
Indlæg: 621
Tilmeldt: 2007-05-8 01:26
Geografisk sted: Hjertet af Jylland

Indlægaf Hustler » 2007-10-14 23:28

Hej Marianne...
Nøj du er klog manse :-).... nu kører showet... men dog med en lille fejl som jeg ikke helt forstår...
Nede i bunden af siden plejer der at stå Copyright © 2003 oscommerce.com
Powered by openosc og så en HITS ...
Af en eller anden grund står det nu under slideshowet istedet for nede i bunden he he

Kan man ikke få det slideshow til at blive vist i f.eks tilbuds kollonnen så den kører i en rigitig boks ?

Der er en ting mere... ved du hvordan man laver de andre scrolls-bokse hvor billederne kommer enten kører nedefra og op eller omvendt med pris og det hele?
Hustler
Godt igang
Godt igang
 
Indlæg: 56
Tilmeldt: 2007-08-21 23:43

Indlægaf Hustler » 2007-10-14 23:47

Nu har jeg også prøvet at lægge den ind på min rigtige side.... men der vil den sgu ikke lave slideshowet :-(...
Kan der virkelig være så stor forskel på 2 sider at man ikke bare kan føre filerne over ? for der kommer kun et enkelt billed frem og så stopper den... men hvis jeg skifter index filen ud med den originale... er der bare et billede :-(
Damn jeg er ikke nogen nørd til det her ha ha... men kan jo være man bliver det en dag :-)
Hustler
Godt igang
Godt igang
 
Indlæg: 56
Tilmeldt: 2007-08-21 23:43

Indlægaf tidemann » 2007-10-15 00:54

Hvor mange billeder har du gemt, og er stien rigtig??

Ellers send mig en Privat besked, jeg bliver nød til at kunne logge ind og se din kode.

Andre scrolls-bokse
http://www.oscommerce.com/community/contributions,2583
Mvh Marianne
designer af: singingwolfs.dk - royalmontana.dk - c-fitness.dk - fitness2all.dk - dirtyflirt.dk - ragdollys-cat-link.dk
Brugeravatar
tidemann
Oldtimer :o)
Oldtimer :o)
 
Indlæg: 621
Tilmeldt: 2007-05-8 01:26
Geografisk sted: Hjertet af Jylland

Indlægaf Hustler » 2007-10-15 10:07

Hustler
Godt igang
Godt igang
 
Indlæg: 56
Tilmeldt: 2007-08-21 23:43

Indlægaf tidemann » 2007-10-15 12:48

Har ikke modtaget noget??

Ellers send en mail, har gjort den aktiv!!
Mvh Marianne
designer af: singingwolfs.dk - royalmontana.dk - c-fitness.dk - fitness2all.dk - dirtyflirt.dk - ragdollys-cat-link.dk
Brugeravatar
tidemann
Oldtimer :o)
Oldtimer :o)
 
Indlæg: 621
Tilmeldt: 2007-05-8 01:26
Geografisk sted: Hjertet af Jylland

ForegåendeNæste

Tilbage til Tips & Tricks

Hvem er online

Brugere der læser dette forum: Ingen tilmeldte og 11 gæster

cron