forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: coopersita on August 20, 2004, 12:18:59 am

Title: [Solved]: html syntax errors
Post by: coopersita on August 20, 2004, 12:18:59 am
I've found some html syntax errors I've been trying to fix, but I just can't find where to fix them:

1- the url on  links on the breadcrum are not quoted (eg <a href=index.php>Home</a> instead of <a href="index.php">Home</a>)

2- thumbnail images have an extra " after class="images" and before height: <img src="albums/userpics/10001/thumb_1.jpg" class="image" " height="100" border="0" alt="...>

Does anyone know where to change that?

Thanks
Title: Re: html syntax errors
Post by: Joachim Müller on August 20, 2004, 08:47:40 am
edit include/functionsinc.php, find
Code: [Select]
$breadcrumb = '<a href=index.php>'.$lang_list_categories['home'].'</a>';and replace with
Code: [Select]
$breadcrumb = '<a href="index.php">'.$lang_list_categories['home'].'</a>';Then find
Code: [Select]
$link = "<a href=index.php?cat={$category[0]}>{$category[1]}</a>";and replace with
Code: [Select]
$link = "<a href=\"index.php?cat={$category[0]}\">{$category[1]}</a>";Next, find
Code: [Select]
$breadcrumb = '<a href=index.php>'.$lang_list_categories['home'].'</a>';and replace with
Code: [Select]
$breadcrumb = '<a href="index.php">'.$lang_list_categories['home'].'</a>';After that, find
Code: [Select]
$link = "<a href=thumbnails.php?album=".$CURRENT_ALBUM_DATA['aid'].">".$CURRENT_ALBUM_DATA['title']."</a>";and replace with
Code: [Select]
$link = "<a href=\"thumbnails.php?album=".$CURRENT_ALBUM_DATA['aid']."\">".$CURRENT_ALBUM_DATA['title']."</a>";
To fix the surplus quote, find
Code: [Select]
$image_size['geom'] = '" height="'.$image_size['height'].'"';and replace with
Code: [Select]
$image_size['geom'] = ' height="'.$image_size['height'].'"';
@devs: fixed this in stable branch of the cvs, the devel branch already had the fix

GauGau
Title: Re: html syntax errors
Post by: coopersita on August 20, 2004, 08:27:52 pm
Thanks GauGau,

As usually, it worked like a charm!