[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/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/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/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 - Hvordan sætter jeg en linje ind her (LØST)

Hvordan sætter jeg en linje ind her (LØST)

Generel debat om brug af CMS. Kan jeg bruge det til det her ? Forslag og ideer til CMS-"dækningen" her på OpenForum ? Forslag til et godt CMS, vi skal oprette en forum-kategori til og se igennem ? Eller andet generelt.

Redaktør: Redaktionen

Hvordan sætter jeg en linje ind her (LØST)

Indlægaf ravsted » 2008-11-27 11:12

Hej

Ville meget gerne have en linje mellem vær vare. Men kan bare ikke få den til det. Er der nogen her som kan hjælpe mig med det.

Dette er product_listing.php filen
----------------------------------------------------

<?php
/*
$Id: product_listing.php 1739 2007-12-20 00:52:16Z hpdl $

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

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

$listing_split = new splitPageResults($listing_sql, MAX_DISPLAY_SEARCH_RESULTS, 'p.products_id');

if ( ($listing_split->number_of_rows > 0) && ( (PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3') ) ) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="smallText"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td>
<td class="smallText" align="right"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td>
</tr>
</table>
<?php
}

$list_box_contents = array();

for ($col=0, $n=sizeof($column_list); $col<$n; $col++) {
switch ($column_list[$col]) {
case 'PRODUCT_LIST_MODEL':
$lc_text = TABLE_HEADING_MODEL;
$lc_align = '';
break;
case 'PRODUCT_LIST_NAME':
$lc_text = TABLE_HEADING_PRODUCTS;
$lc_align = '';
break;
case 'PRODUCT_LIST_MANUFACTURER':
$lc_text = TABLE_HEADING_MANUFACTURER;
$lc_align = '';
break;
case 'PRODUCT_LIST_PRICE':
$lc_text = TABLE_HEADING_PRICE;
$lc_align = 'right';
break;
case 'PRODUCT_LIST_QUANTITY':
$lc_text = TABLE_HEADING_QUANTITY;
$lc_align = 'right';
break;
case 'PRODUCT_LIST_WEIGHT':
$lc_text = TABLE_HEADING_WEIGHT;
$lc_align = 'right';
break;
case 'PRODUCT_LIST_IMAGE':
$lc_text = TABLE_HEADING_IMAGE;
$lc_align = 'center';
break;
case 'PRODUCT_LIST_BUY_NOW':
$lc_text = TABLE_HEADING_BUY_NOW;
$lc_align = 'center';
break;

}


if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) {
$lc_text = tep_create_sort_heading($HTTP_GET_VARS['sort'], $col+1, $lc_text);
}

$list_box_contents[0][] = array('align' => $lc_align,
'params' => 'class="productListing-heading"',
'text' => '&nbsp;' . $lc_text . '&nbsp;');
}

if ($listing_split->number_of_rows > 0) {
$rows = 0;
$listing_query = tep_db_query($listing_split->sql_query);
while ($listing = tep_db_fetch_array($listing_query)) {
$rows++;

if (($rows/2) == floor($rows/2)) {
$list_box_contents[] = array('params' => 'class="productListing-even"');
} else {
$list_box_contents[] = array('params' => 'class="productListing-odd"');
}

$cur_row = sizeof($list_box_contents) - 1;

for ($col=0, $n=sizeof($column_list); $col<$n; $col++) {
$lc_align = '';

switch ($column_list[$col]) {
case 'PRODUCT_LIST_MODEL':
$lc_align = '';
$lc_text = '&nbsp;' . $listing['products_model'] . '&nbsp;';
break;
case 'PRODUCT_LIST_NAME':
$lc_align = '';
if (isset($HTTP_GET_VARS['manufacturers_id'])) {
$lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>';
} else {
$lc_text = '&nbsp;<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>&nbsp;';
}
break;
case 'PRODUCT_LIST_MANUFACTURER':
$lc_align = '';
$lc_text = '&nbsp;<a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . '</a>&nbsp;';
break;
case 'PRODUCT_LIST_PRICE':
$lc_align = 'right';
if (tep_not_null($listing['specials_new_products_price'])) {
$lc_text = '&nbsp;<s>' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s>&nbsp;&nbsp;<span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span>&nbsp;';
} else {
$lc_text = '&nbsp;' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '&nbsp;';
}
break;
case 'PRODUCT_LIST_QUANTITY':
$lc_align = 'right';
$lc_text = '&nbsp;' . $listing['products_quantity'] . '&nbsp;';
break;
case 'PRODUCT_LIST_WEIGHT':
$lc_align = 'right';
$lc_text = '&nbsp;' . $listing['products_weight'] . '&nbsp;';
break;
case 'PRODUCT_LIST_IMAGE':
$lc_align = 'center';
if (isset($HTTP_GET_VARS['manufacturers_id'])) {
$lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';
} else {
$lc_text = '&nbsp;<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>&nbsp;';
}
break;
case 'PRODUCT_LIST_BUY_NOW':
$lc_align = 'center';
$lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a>&nbsp;';
break;
}


$list_box_contents[$cur_row][] = array('align' => $lc_align,
'params' => 'class="productListing-data"',
'text' => $lc_text);
}
}

new productListingBox($list_box_contents);
} else {
$list_box_contents = array();

$list_box_contents[0] = array('params' => 'class="productListing-odd"');
$list_box_contents[0][] = array('params' => 'class="productListing-data"',
'text' => TEXT_NO_PRODUCTS);

new productListingBox($list_box_contents);
}

if ( ($listing_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3')) ) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="smallText"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td>
<td class="smallText" align="right"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td>
</tr>
</table>
<?php
}
?>
Senest rettet af ravsted 2009-05-4 08:58, rettet i alt 1 gang.
ravsted
Novice
Novice
 
Indlæg: 26
Tilmeldt: 2005-06-9 22:43

Re: Hvordan sætter jeg en linje ind her

Indlægaf tidemann » 2008-11-27 19:03

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

Re: Hvordan sætter jeg en linje ind her

Indlægaf ravsted » 2008-11-27 23:23

Nej det gør det ikke, der kommer slet ikke noget frem på siden nu.
ravsted
Novice
Novice
 
Indlæg: 26
Tilmeldt: 2005-06-9 22:43

Re: Hvordan sætter jeg en linje ind her

Indlægaf tidemann » 2008-11-27 23:38

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

Re: Hvordan sætter jeg en linje ind her

Indlægaf tidemann » 2008-11-27 23:58

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

Re: Hvordan sætter jeg en linje ind her

Indlægaf ravsted » 2008-11-28 07:31

Hellere ikke, det bliver helt deform af det.
ravsted
Novice
Novice
 
Indlæg: 26
Tilmeldt: 2005-06-9 22:43

Re: Hvordan sætter jeg en linje ind her

Indlægaf tidemann » 2008-11-28 16:31

Ja det ved jeg.
Det var også bare for at tjekke, men det hjælper ikke så meget
når jeg har glemt at sætte en <hr> ind! :oops:

Altså, tag den sidste fil som jeg har vist!

Prøv lige at find denne linie:
<tr><td width=437 height=1 background=images/m29-1.gif></td></tr>

og erstat den med:
<tr><td width=437 height=20>Her skulle gerne komme en <br /><hr></td></tr>


og læg hele filen op igen. Hvad sker der så?
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

Re: Hvordan sætter jeg en linje ind her

Indlægaf ravsted » 2008-12-1 13:10

Der kommer en streg, men ser ikke så godt ud med resten af siden.

http://www.sb-shop.dk/index.php?cPath=22_28
ravsted
Novice
Novice
 
Indlæg: 26
Tilmeldt: 2005-06-9 22:43

Re: Hvordan sætter jeg en linje ind her

Indlægaf tidemann » 2008-12-1 19:21

Godt så!

Så skal jeg bare lige støvsuge filen, så den passer til din egen shop.
Ser på det senere...
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

Re: Hvordan sætter jeg en linje ind her

Indlægaf ravsted » 2008-12-1 19:25

Det lyder godt, jeg er også på MSN hvis det er.
ravsted
Novice
Novice
 
Indlæg: 26
Tilmeldt: 2005-06-9 22:43

Re: Hvordan sætter jeg en linje ind her

Indlægaf tidemann » 2008-12-2 01:40

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

Re: Hvordan sætter jeg en linje ind her

Indlægaf ravsted » 2008-12-2 13:51

Så var det andet bedre.
http://shop.sb-service.dk/index.php?cPa ... b6f0a234a1

Der skulle du kunne se din streg.
ravsted
Novice
Novice
 
Indlæg: 26
Tilmeldt: 2005-06-9 22:43

Re: Hvordan sætter jeg en linje ind her

Indlægaf tidemann » 2008-12-2 21:47

Jamen, har du selv prøvet at flytte rundt på det stykke jeg har sat ind??

F.eks. under dette:
new productListingBox($list_box_contents);
}
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

Re: Hvordan sætter jeg en linje ind her

Indlægaf ravsted » 2008-12-2 22:05

Jeg har snart prøvet alt, og kan bare ikke få den til det
ravsted
Novice
Novice
 
Indlæg: 26
Tilmeldt: 2005-06-9 22:43

Re: Hvordan sætter jeg en linje ind her

Indlægaf ravsted » 2008-12-5 14:15

Har du en løsning på dette
ravsted
Novice
Novice
 
Indlæg: 26
Tilmeldt: 2005-06-9 22:43

Næste

Tilbage til Generel debat

Hvem er online

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

cron