Bloodrun said:Lol thanks =D
Let me know if something doesn't work right, or if there's something you think should be added.
postedit.php is missing.
Bloodrun said:Lol thanks =D
Let me know if something doesn't work right, or if there's something you think should be added.
Saphira said:Bloodrun said:Lol thanks =D
Let me know if something doesn't work right, or if there's something you think should be added.
postedit.php is missing.
Saphira said:Hmm, is there any way to make the system recognise new paragraphs? I've tried html and bbcode, and they both fail. Everything shows up in one continuous paragraph.
Bloodrun said:mapleblade said:at me its really weird its all on the wrong place,
take a look, and HELP ME!
http://yoshisisland.0fees.net/adoptables/news.php?nid=1
Oh boy, it's really messing up your layout.
hmm, can i see your template file?
The reason I ask, is because are you using the:
$article_content
or are you using something else?
I think I may know the problem, but would you allow me access to your ftp to fix it?
I believe the structure is just conflicting with the way your template is set up.
<html>
<head>
<TITLE>:BROWSERTITLE:</TITLE>
<meta name="keywords" content="{%MetaKeywords%}">
<meta name="description" content="{%MetaDescription%}">
<meta http-equiv="Content-Type" content="{%MetaCharset%}">
<style type="text/css">
<!--
td {
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 11px;
}
body {
background-image: url(images/e025_01.png);
}
.content {
padding-top: 20px;
padding-right: 20px;
padding-bottom: 40px;
padding-left: 20px;
background-image: url(images/e025_14.png);
background-repeat: no-repeat;
background-position: top;
background-color: #FFFFFF;
}
.menutop {
height: 29px;
padding-right: 10px;
padding-left: 5px;
vertical-align: middle;
font-weight: bold;
color: #FFFFFF;
background-image: url(images/e025_09.png);
background-repeat: no-repeat;
background-position: right;
}
#menu {
height:35px;
line-height:35px;
background:url(images/d018_08.jpg) repeat-x;
padding:0 10px;
}
#menu ul {
list-style-type:none;
}
#menu li {
float:left;
}
#menu li a {
padding:0 15px;
display:block;
color:#ffffff;
margin-right:2px;
}
#menu li a:hover {
background:url(images/bg-menu-hover.png) no-repeat center center;
}
a:link, a:visited {
color: #FFFFFF;
text-decoration: underline;
}
a:hover {
color: #000000;
text-decoration: none;
}
.menutop a:link, .menutop a:visited {
color: #FFFFFF;
text-decoration: none;
}
.menutop a:hover {
color: #C8FBFD;
text-decoration: underline;
}
.footer, .footer a:link, .footer a:visited {
color: #000000;
}
.newsbar {
color: #000000;
font-weight: bold;
padding-left: 40px;
}
.logo {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-weight: bold;
color: #FFFFFF;
}
.leftcontent {
padding-top: 10px;
padding-right: 10px;
padding-bottom: 25px;
padding-left: 35px;
}
.style1 {font-size: 16px}
.date {
color: #FFFFFF;
padding-right: 15px;
padding-left: 15px;
}
-->
</style>
</head>
<body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="745" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="211" height="69" background="images/e025_02.png"> </td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/e025_03.png" width="534" height="39" alt=""></td>
</tr>
<tr>
<td height="35" background="images/e025_07.png"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="100%"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="211" valign="top" background="images/e025_22.png"><table width="211" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="129" align="center" background="images/e025_13.png"><table width="210" border="0" cellpadding="5" cellspacing="0">
<tr>
<td align="center" nowrap class="logo"><span class="style1">:SITENAME: </span><br>
Where Yoshi's are the Boss</td>
</tr>
</table></td>
</tr>
<tr>
<td height="58" background="images/e025_15.png" class="newsbar">Explore</td>
</tr>
<tr>
<td height="100%" valign="top" background="images/e025_17.png" class="leftcontent">:SIDEFEED:</td>
</tr>
<tr>
<td height="7" background="images/e025_17.png"><img src="images/e025_20.png" width="211" height="7" alt=""></td>
</tr>
<tr>
<td height="6"><img src="images/e025_21.png" width="211" height="6" alt=""></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td height="124" background="images/e025_25.png"> </td>
</tr>
</table></td>
<td valign="top"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<div id="menu">
<ul>
:LINKSBAR:
</ul>
</div>
<tr>
<td height="100%" valign="top" class="content"><p>:ARTICETITLE::ARTICLEDATE:<br><br>:ARTICLECONTENT:</p>
</td>
</tr>
<tr>
<td height="65" align="center" background="images/e025_26.png">Powered by Rusnak PHP Adoptables Script</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
mapleblade said:Bloodrun said:mapleblade said:at me its really weird its all on the wrong place,
take a look, and HELP ME!
http://yoshisisland.0fees.net/adoptables/news.php?nid=1
Oh boy, it's really messing up your layout.
hmm, can i see your template file?
The reason I ask, is because are you using the:
$article_content
or are you using something else?
I think I may know the problem, but would you allow me access to your ftp to fix it?
I believe the structure is just conflicting with the way your template is set up.
Well here is my template :
<html>
<head>
<TITLE>:BROWSERTITLE:</TITLE>
<meta name="keywords" content="{%MetaKeywords%}">
<meta name="description" content="{%MetaDescription%}">
<meta http-equiv="Content-Type" content="{%MetaCharset%}">
<style type="text/css">
<!--
td {
font-family: Tahoma, Arial, Helvetica, sans-serif;
font-size: 11px;
}
body {
background-image: url(images/e025_01.png);
}
.content {
padding-top: 20px;
padding-right: 20px;
padding-bottom: 40px;
padding-left: 20px;
background-image: url(images/e025_14.png);
background-repeat: no-repeat;
background-position: top;
background-color: #FFFFFF;
}
.menutop {
height: 29px;
padding-right: 10px;
padding-left: 5px;
vertical-align: middle;
font-weight: bold;
color: #FFFFFF;
background-image: url(images/e025_09.png);
background-repeat: no-repeat;
background-position: right;
}
#menu {
height:35px;
line-height:35px;
background:url(images/d018_08.jpg) repeat-x;
padding:0 10px;
}
#menu ul {
list-style-type:none;
}
#menu li {
float:left;
}
#menu li a {
padding:0 15px;
display:block;
color:#ffffff;
margin-right:2px;
}
#menu li a:hover {
background:url(images/bg-menu-hover.png) no-repeat center center;
}
a:link, a:visited {
color: #FFFFFF;
text-decoration: underline;
}
a:hover {
color: #000000;
text-decoration: none;
}
.menutop a:link, .menutop a:visited {
color: #FFFFFF;
text-decoration: none;
}
.menutop a:hover {
color: #C8FBFD;
text-decoration: underline;
}
.footer, .footer a:link, .footer a:visited {
color: #000000;
}
.newsbar {
color: #000000;
font-weight: bold;
padding-left: 40px;
}
.logo {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-weight: bold;
color: #FFFFFF;
}
.leftcontent {
padding-top: 10px;
padding-right: 10px;
padding-bottom: 25px;
padding-left: 35px;
}
.style1 {font-size: 16px}
.date {
color: #FFFFFF;
padding-right: 15px;
padding-left: 15px;
}
-->
</style>
</head>
<body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="745" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="211" height="69" background="images/e025_02.png"> </td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/e025_03.png" width="534" height="39" alt=""></td>
</tr>
<tr>
<td height="35" background="images/e025_07.png"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="100%"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="211" valign="top" background="images/e025_22.png"><table width="211" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="129" align="center" background="images/e025_13.png"><table width="210" border="0" cellpadding="5" cellspacing="0">
<tr>
<td align="center" nowrap class="logo"><span class="style1">:SITENAME: </span><br>
Where Yoshi's are the Boss</td>
</tr>
</table></td>
</tr>
<tr>
<td height="58" background="images/e025_15.png" class="newsbar">Explore</td>
</tr>
<tr>
<td height="100%" valign="top" background="images/e025_17.png" class="leftcontent">:SIDEFEED:</td>
</tr>
<tr>
<td height="7" background="images/e025_17.png"><img src="images/e025_20.png" width="211" height="7" alt=""></td>
</tr>
<tr>
<td height="6"><img src="images/e025_21.png" width="211" height="6" alt=""></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td height="124" background="images/e025_25.png"> </td>
</tr>
</table></td>
<td valign="top"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<div id="menu">
<ul>
:LINKSBAR:
</ul>
</div>
<tr>
<td height="100%" valign="top" class="content"><p>:ARTICETITLE::ARTICLEDATE:<br><br>:ARTICLECONTENT:</p>
</td>
</tr>
<tr>
<td height="65" align="center" background="images/e025_26.png">Powered by Rusnak PHP Adoptables Script</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
mapleblade said:oh oops and just <p>:ARTICECONTENT:</p>?
Bloodrun said:Saphira said:Hmm, is there any way to make the system recognise new paragraphs? I've tried html and bbcode, and they both fail. Everything shows up in one continuous paragraph.
Did you try <br>?
If that doesn't work, Ill just convert the thing to BBcode.
mapleblade said:now its still bugged (but its better then earlier)
Saphira said:Bloodrun said:Saphira said:Hmm, is there any way to make the system recognise new paragraphs? I've tried html and bbcode, and they both fail. Everything shows up in one continuous paragraph.
Did you try <br>?
If that doesn't work, Ill just convert the thing to BBcode.
I tried <br>, and <p>, and neither work. It turns
These
Are
Separate, into
These are separate, etc.
$query = "INSERT INTO ".$prefix."news(topic, detail, name, nid, datetime) VALUES('".$topic."', '".$detail."', '".$name."', '".$Max_idd."', '".$datetime."')";
nid int(11)
topic varchar(255)
detail longtext
name varchar(65)
datetime varchar(25)
Saphira said:Hmm. I haven't tried this out since I changed the database field for detail to LONGTEXT. I'm trying to post news now, and I'm getting an error on add_news.php. I'm guessing that there's an error inserting it into the database.
PHP:$query = "INSERT INTO ".$prefix."news(topic, detail, name, nid, datetime) VALUES('".$topic."', '".$detail."', '".$name."', '".$Max_idd."', '".$datetime."')";
The line of code to insert it, and below, the database layout:
nid int(11)
topic varchar(255)
detail longtext
name varchar(65)
datetime varchar(25)
Does this all seem right to you?
Invalid query: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'm testing this using single quotes.', 'Jon', '31/05/09 02:32:12')' at line 1
I'm testing this using single quotes.
Saphira said:Invalid query: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'm testing this using single quotes.', 'Jon', '31/05/09 02:32:12')' at line 1
I tried to post:
I'm testing this using single quotes.
Someone else posted last night after I went to bed, and they managed to post fine, so I'm guessing it has something to do with single quotes. (')
Saphira said:What part of the code are the stripslash parts in? I can double check just to make sure that they're there etc.
Saphira said:Okay, I've looked through the files, and the only file I can find the stripslashes in is news.php. Wouldn't it need to be in add_news.php, being's that's the file that adds news to the database (which the script is having trouble doing?) I downloaded a fresh copy of the zip file, and it's the same in there. Only on news.php