archive menu playing up
Hey Jason
Have got an archive menu that is playing up... details in the PM
Thanks for your help
Jamie
Hey Jason
Have got an archive menu that is playing up... details in the PM
Thanks for your help
Jamie
thanks Jason... refreshingly honest as always :D
I will save some pennies to get that fixed then! lol
Cheers again
Jamie
just a thought, it may or may not help -
make sure your mod rewrite rules include the QSA flag
QSA = Querystring Append
http://httpd.apache.org/docs/current/rewrite/flags.html
Thanks for the added info - unfortunately it does have the QSA flag already and obviously not working even with it :(
RewriteRule ^blog-article/(.*)$ article.php?perm=$1 [NC,L,QSA,T=application/x-httpd-php]
What is the code you are using for the next link? Maybe I can spot how to update the link for it to work properly.
thanks Ray, the code for the menu I am using is:
<div id="blogarchive" style="padding:20px 0; height:auto; ">
<div style="margin:0 0 12px 10px; padding:50px 0 0 0;">
<?php do { ?>
<div style="line-height:100%;font: 14px Arial, Helvetica, sans-serif;color:#fff; margin:0 20px;"><a href="blog-archive.php?BlogMonth=<?php echo $row_BlogMenuRS['ContentMonth']; ?>&BlogYear=<?php echo $row_BlogMenuRS['ContentYear']; ?>"> <?php echo $row_BlogMenuRS['contDate']; ?> (<?php echo $row_BlogMenuRS['cc']; ?>)<br/>
</a></div>
<?php } while ($row_BlogMenuRS = mysql_fetch_assoc($BlogMenuRS)); ?>
<div style="margin-right:20px;"><table border="0" align="right" style="font-size:14px;color:#fff;">
<tr>
<td><?php if ($pageNum_BlogMenuRS > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_BlogMenuRS=%d%s", $currentPage, 0, $queryString_BlogMenuRS); ?>"><<</a>
<?php } // Show if not first page ?></td>
<td><?php if ($pageNum_BlogMenuRS > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_BlogMenuRS=%d%s", $currentPage, max(0, $pageNum_BlogMenuRS - 1), $queryString_BlogMenuRS); ?>"><</a> previous page(s)
<?php } // Show if not first page ?></td>
<td> <?php if ($pageNum_BlogMenuRS < $totalPages_BlogMenuRS) { // Show if not last page ?>next page(s)
<a href="<?php printf("%s?pageNum_BlogMenuRS=%d%s", $currentPage, min($totalPages_BlogMenuRS, $pageNum_BlogMenuRS + 1), $queryString_BlogMenuRS); ?>">></a>
<?php } // Show if not last page ?></td>
<td><?php if ($pageNum_BlogMenuRS < $totalPages_BlogMenuRS) { // Show if not last page ?>
<a href="<?php printf("%s?pageNum_BlogMenuRS=%d%s", $currentPage, $totalPages_BlogMenuRS, $queryString_BlogMenuRS); ?>">>></a>
<?php } // Show if not last page ?></td>
</tr>
</table></div>
</div>
</div>
Any help gratefully received!
Jamie
Try finding this on the page:
$currentPage = $_SERVER["PHP_SELF"];
and update it to this:
$currentPage = $_SERVER['REQUEST_URI'];
I think that might do the trick.
cheers Ray
Sort of worked on the blog results page.. you can click next but it wont go back on the archive menu
On the blog archive page it didn't work at all
and on the blog article page there wasn't any reference to $currentPage = $_SERVER["PHP_SELF"]; so had nothing to change and that still not working obviously
Cheers
Jamie
I'm pretty sure there must be a place where you have $_SERVER["PHP_SELF"] that needs to be updated to $_SERVER["REQUEST_URI"]
You would have to investigate the code where the link is being built and go from there. Shoot me an IM in skype and I'll help you debug it.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.