Go Back   Pligg CMS Forum > Pligg Development > Pligg Templates > Template Support > "yget"

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-20-2008, 05:09 AM
New Pligger
 
Join Date: Mar 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Problem for add HTML in template

Hello

I'am Emilien and french sorry for my bad language.
I'am work on the yget template for Pligg and i want construct my structure page in pligg.tpl with HTML and table, tr, td because i'm not a fan of CSS and DIV.

but when i program this code (HTML) i have a lot of problems when i upload the pligg.tpl. No align, no width ...

Quote:
{config_load file="/languages/lang_".$pligg_language.".conf"}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="XHTML namespace" xml:lang="fr">
<head>
{include file="meta.tpl"}

<link rel="stylesheet" type="text/css" href="{$my_pligg_base}/templates/{$the_template}/css/main.css" media="screen" />
{if $Voting_Method eq 2}
<style type="text/css" media="screen">
.top {literal}{{/literal}padding:0 0 0 5px;margin-left:-0px;{literal}}{/literal}
.news-submitted {literal}{{/literal}font-size:85%;margin-bottom:3px;color:#999999; {literal}}{/literal}
.news-body-text {literal}{{/literal}margin:10px 0px 0px 0px; font-size:96%;{literal}}{/literal}
.news-details {literal}{{/literal}margin:0;font-size:85%;{literal}}{/literal}
</style>
<link rel="stylesheet" type="text/css" href="{$my_pligg_base}/templates/{$the_template}/css/star_rating/star.css" media="screen" />
{/if}
{* this is an IE6 specific 'hack' for the yget template *}
<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css" href="{$my_pligg_base}/templates/{$the_template}/css/ie6.css" media="screen" />
<script type="text/javascript">
if (typeof blankImg == 'undefined') var blankImg = '{$my_pligg_base}/templates/{$the_template}/images/blank.gif';
</script>
<style type="text/css" media="screen">
body {ldelim}behavior:url({$my_pligg_base}/templates/{$the_template}/css/iehfix.htc); {rdelim}
img {ldelim}behavior:url({$my_pligg_base}/templates/{$the_template}/css/iepngfix.htc); {rdelim}
</style>
<![endif]-->
{checkActionsTpl location="tpl_pligg_pre_title_thickbox"}

{checkForCss}
{checkForJs}

{checkActionsTpl location="tpl_pligg_pre_title_lightbox"}
{if $pagename neq "published" && $pagename neq "upcoming"}
{if $Spell_Checker eq 1}
<script src="{$my_pligg_base}/3rdparty/speller/spellChecker.js" type="text/javascript"></script>
{/if}
{/if}
<title>{if isset($pretitle)}{$pretitle}{/if}{#PLIGG_Visual_Name#}{if isset($posttitle)}{$posttitle}{/if}</title>
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="{$my_base_url}{$my_pligg_base}/rss.php"/>
<link rel="icon" href="{$my_pligg_base}/favicon.ico" type="image/x-icon"/>
</head>
<body {$body_args}>
<br />
<table width="992" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="992" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="3"><img src="../templates/{$the_template}/images/haut-coin-gauche.gif" width="3" height="80" /></td>
<td background="../templates/{$the_template}/images/haut-fond.gif">&nbsp;</td>
<td width="3"><img src="../templates/{$the_template}/images/haut-coin-droit.gif" width="3" height="80" /></td>
</tr>
</table>
<table width="992" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1" background="../templates/{$the_template}/images/pixel1.gif"></td>
<td width="990"><div id="header">
{include file=$tpl_header.".tpl"}
</div><!-- header end -->

<div id="content-wrap2">

<div id="contentbox" {if $pagename eq "editor"}style="width:100%"{/if}>
{checkActionsTpl location="tpl_pligg_above_center"}
{include file=$tpl_center.".tpl"}
{checkActionsTpl location="tpl_pligg_below_center"}
</div><!-- contentbox end -->

<div id="sidebar">
{if $pagename neq "editor"}{include file=$tpl_right_sidebar.".tpl"}{/if}
</div><!-- sidebar end -->
</div><!-- content-wrap end -->
{include file=$tpl_footer.".tpl"}</td>
<td width="1" background="../templates/{$the_template}/images/pixel1.gif"></td>
</tr>
</table>
<br /></td>
</tr>
</table>
</body>
</html>
What's the problem ? Doctype, or why ?

Pligg Beta 9 / Les news

Thanks a lot

Last edited by Emilien; 03-20-2008 at 05:17 AM..
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
MacBlue Free Pligg Template by Yankidank Yankidank Pligg Templates 13 11-10-2008 05:37 PM
Turning HTML design into pligg template mattmd Template Support 2 09-27-2007 10:36 PM
Web Programming Basics Yankidank Wiki Articles 1 09-03-2007 05:51 PM
Problem with template in IE7 xsillence General Help 2 08-29-2007 11:30 PM
problem of change template tozt Installation and Upgrade Help 1 06-02-2007 12:42 PM


Search Engine Friendly URLs by vBSEO 3.2.0