Hi,
I have been enjoying my new blog. It has been working perfectly till now. I have reached post number 17. A new page was supposed to be created at 15 posts but this is not happening. All posts are on one page. The "next page" link shows up in preview mode but not in the actual weblog. Any ideas on how to fix?
http://plsurvey.com
Archive not working
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Archive not working
Which template do you use? Did you modify it?
Which SQL database do you use?
Switch to the 'default' template to quickly test if your blog shows 15 entries in that mode. Then please report back.
Which SQL database do you use?
Switch to the 'default' template to quickly test if your blog shows 15 entries in that mode. Then please report back.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
PHP Version 4.3.4
Mysql Version 4.0.18-standard
Yes, I modified the Newspaper template so as to be imbedded in my html page. I copied the layout.php file from the newspaper directory and pasted it inside a table in the html. I moved the php header to the top of the page and renamed the html file to a php extension. That appeared to work but I have clearly screwed something up. Serendipity has been installed to my root web directory.
The default template works perfectly.
I really need to be able to keep an embedded template. Any help in fixing this will be much appreciated. I am not php savvy. Thank you.
Mysql Version 4.0.18-standard
Yes, I modified the Newspaper template so as to be imbedded in my html page. I copied the layout.php file from the newspaper directory and pasted it inside a table in the html. I moved the php header to the top of the page and renamed the html file to a php extension. That appeared to work but I have clearly screwed something up. Serendipity has been installed to my root web directory.
The default template works perfectly.
I really need to be able to keep an embedded template. Any help in fixing this will be much appreciated. I am not php savvy. Thank you.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi Ned!
If the default template works, there is most probably something wrong with your copy + paste, maybe you left out some pieces, or changed to order of PHP calls, so that one variable is not available later on.
Post the source of your template, and I'll look at it - apart from that, you may want to look at our Technical Documentation and the 'embed' option described therein in our Wiki on www.s9y.org.
Regards,
Garvin.
If the default template works, there is most probably something wrong with your copy + paste, maybe you left out some pieces, or changed to order of PHP calls, so that one variable is not available later on.
Post the source of your template, and I'll look at it - apart from that, you may want to look at our Technical Documentation and the 'embed' option described therein in our Wiki on www.s9y.org.
Regards,
Garvin.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Here is the code. Thank you for your help.
Code: Select all
<?php
##########################################################################
# serendipity - another blogger... #
##########################################################################
# #
# (c) 2003 Jannis Hermanns <J@hacked.it> #
# Kristian Köhntopp fucked it up #
# http://www.jannis.to/programming/serendipity.html #
# #
##########################################################################
$OPENSHADOW = '<table cellspacing="0" width="100%" cellpadding="0" style="padding:0px">
<tr>
<td valign="top" align="left" style="padding:10px;border-top:1px solid #cdcdcd; border-left: 1px solid #cdcdcd;">
';
$CLOSESHADOW = '</td>
<td style="width:8px; background-image:url('.$serendipity['baseURL'].'/templates/newspaper/img/shadowr.png);" valign="top"><img src="'.$serendipity['baseURL'].'/templates/newspaper/img/shadowt.png" border="0" hspace="0" vspace="0" alt="neu" /></td>
</tr>
<tr>
<td style="height:10px; background-image:url('.$serendipity['baseURL'].'/templates/newspaper/img/shadowb.png);"><img src="'.$serendipity['baseURL'].'/templates/newspaper/img/shadowbl.png" border="0" hspace="0" vspace="0" alt="new" /></td>
<td style="height:10px; width:8px;"><img src="'.$serendipity['baseURL'].'/templates/newspaper/img/shadowbr.png" border="0" hspace="0" vspace="0" alt="neu" /></td>
</tr>
</table>
';
?>
<html>
<head>
<title>Professional Land Systems - Tennessee Land Surveyors</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../../style.css" rel="stylesheet" type="text/css">
<meta name="keywords" content="Professional Land Systems,Land Surveying,Surveying,Surveyors,Tennessee,GPS,TN,Professional Surveyor,Ned Ferguson,Alta Surveys,ALTA/ACSM,Knoxville">
</head>
<body>
<div align="center">
<table width="100%" border="0" align="center" cellpadding="5" cellspacing="5">
<tr>
<td height="622" valign="top"> <div align="left">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" valign="top"><div align="left">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="701"><a href="http://plsurvey.com/"><img src="../../images/header.gif" alt="PLS , a Tennessee Surveying Company" width="701" height="166" border="0"></a></td>
<td width="53%">
<h5 align="right"><img src="../../images/CityView%20PIC.jpg" alt="Ned Ferguson, Surveyor" width="113" height="166" border="0"></h5></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td width="150" valign="top">
<table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="166" valign="top"> <table width="150" border="0" cellpadding="3">
<tr>
<td width="156"><font color="#000000" size="4" face="Verdana, Arial, Helvetica, sans-serif"><strong>Services</strong></font></td>
</tr>
<tr>
<td><a href="../../req.htm">Request Free Quote</a></td>
</tr>
<tr>
<td><a href="../../ALTA.htm">ALTA/ACSM Land Title Surveys</a></td>
</tr>
<tr>
<td><a href="../../construction.htm">Construction Staking</a></td>
</tr>
<tr>
<td><a href="../../gps.htm">GPS Control</a></td>
</tr>
<tr>
<td><a href="../../cad.htm">CAD Department</a></td>
</tr>
<tr>
<td><font color="#000000" size="4" face="Verdana, Arial, Helvetica, sans-serif"><strong>The
Company</strong></font></td>
</tr>
<tr>
<td><a href="../../aboutpls.htm">About PLS</a></td>
</tr>
<tr>
<td><a href="http://www.cityviewonline.com/linked%20pages/spotlightpls.html">CityView
Profile</a></td>
</tr>
<tr>
<td><font color="#000000" size="4" face="Verdana, Arial, Helvetica, sans-serif"><strong>Community</strong></font></td>
</tr>
<tr>
<td><a href="../../surveyinghistory.html">History of
Surveying</a></td>
</tr>
<tr>
<td height="25"><a href="../../famoussurveyors.html">Famous
Surveyors</a></td>
</tr>
<tr>
<td><a href="../gateway.html">Knoxville Surveyor Gateway</a></td>
</tr>
</table>
<table width="150" border="0" cellspacing="5" cellpadding="5">
<tr>
<td><form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<div align="center">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="ned@plsurvey.com">
<input type="hidden" name="item_name" value="Land Surveying Services">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="image" src="../../images/ppslv2.gif" width="88" height="33" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<br>
<a href="http://www.nfib.com"><img src="../../images/MemberBGPlaqueSmall.gif" alt="National Federation of Indepedent Businesses" width="120" height="75" border="0"></a>
<br>
<img src="../../images/bbblogo.gif" alt="BBB member" width="100" height="99">
</div>
</form></td>
</tr>
</table>
<p>&</p></td>
</tr>
</table></td>
<td width="100%" valign="top">
<table width="100%" cellspacing="4" border="0">
<tr>
<td colspan="3" width="100%" class="serendipityBanner"> <div id="serendipity_banner">
<h1><a class="homelink1" href="<?php echo $serendipity['file:///C|/Web%20Sites/PLS%20new/baseURL']; ?>"><?php echo htmlspecialchars($serendipity['blogTitle']); ?></a></h1>
<h2>
<?php
$sub = isset($serendipity['blogSubTitle']) ? $serendipity['blogSubTitle'] : $serendipity['blogDescription'];
if (strlen($sub)) {
?>
<h2><a class="homelink2" href="<?php echo $serendipity['file:///C|/Web%20Sites/PLS%20new/baseURL']; ?>"><?php echo $sub ?></a></h2>
<?php
}
?>
</h2>
</div></td>
</tr>
<tr>
<td width="150" valign="top" align="left" class="serendipitySideBar">
<?php
serendipity_plugin_api::generate_plugins('left', 'span');
// serendipity_plugin_api::generate_plugins('right', 'span');
?>
</td>
<td width="100%" valign="top" align="left" class="serendipityContent">
<?=$OPENSHADOW?>
<?php
if (!isset($serendipity['GET']['range']) || !is_numeric($serendipity['GET']['range'])) {
$serendipity["GET"]["range"] = date("Ymd");
}
// The main area
switch ($serendipity["GET"]["action"]) {
// User wants to read the diary
case "read":
if (isset($serendipity['GET']['id'])) {
serendipity_printEntries(array(serendipity_fetchEntry("id", $serendipity['GET']['id'])), 1);
} else {
serendipity_printEntries(serendipity_fetchEntries($serendipity["GET"]["range"]));
}
break;
// User searches
case "search":
$r = serendipity_searchEntries($serendipity["GET"]["searchTerm"]);
if ( strlen($serendipity["GET"]["searchTerm"]) <= 3 ) {
echo SEARCH_TOO_SHORT;
break;
}
if ($r === true) {
echo sprintf(NO_ENTRIES_BLAHBLAH, $serendipity['GET']['searchTerm']);
break;
}
echo sprintf(YOUR_SEARCH_RETURNED_BLAHBLAH, $serendipity["GET"]["searchTerm"], count($r));
serendipity_printEntries($r);
break;
// Show the archive
case "archives":
serendipity_printArchives();
break;
// Welcome screen or whatever
default:
serendipity_printEntries(serendipity_fetchEntries(null, true, $serendipity['fetchLimit'] ));
}
?>
<?=$CLOSESHADOW?>
</td>
<td valign="top" align="left" class="serendipitySideBar">
<?php
// serendipity_plugin_api::generate_plugins('left', 'span');
serendipity_plugin_api::generate_plugins('right', 'span');
?>
</td>
</tr>
</table></td>
</tr>
</table>
</div>
<p align="left">&</p></td>
</tr>
</table>
</div>
<p align="center">&</p>
</body>
</html>-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi Ned!
This line:
Is responsible for it 
No, honestly: Once a variable was modified in an earlier serendipity version which broke things if you didn't follow Kristian's patch completely.
This line:
Is what causes errors. Replace $serendipity['fetchLimit'] with '15' and you will be happy.
Regards,
Garvin.
This line:
Code: Select all
# Kristian Köhntopp fucked it up #
No, honestly: Once a variable was modified in an earlier serendipity version which broke things if you didn't follow Kristian's patch completely.
This line:
Code: Select all
// Welcome screen or whatever
default:
serendipity_printEntries(serendipity_fetchEntries(null, true, $serendipity['fetchLimit'] ));
Regards,
Garvin.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/