close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

archive menu playing up

Thread began 8/01/2013 12:34 pm by Jamie | Last modified 8/07/2013 2:57 pm by Ray Borduin | 2443 views | 12 replies |

Jamie

archive menu playing up

Hey Jason

Have got an archive menu that is playing up... details in the PM

Thanks for your help

Jamie

Sign in to reply to this post

Jason ByrnesWebAssist

Originally Said By: Jamie
  Hey Jason

Have got an archive menu that is playing up... details in the PM

Thanks for your help

Jamie  
Sign in to reply to this post

Jamie

thanks Jason... refreshingly honest as always :D

I will save some pennies to get that fixed then! lol

Cheers again

Jamie

Sign in to reply to this post

Jason ByrnesWebAssist

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

Sign in to reply to this post

Jamie

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]
Sign in to reply to this post

Ray BorduinWebAssist

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.

Sign in to reply to this post
Did this help? Tips are appreciated...

Jamie

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

Sign in to reply to this post

Ray BorduinWebAssist

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.

Sign in to reply to this post
Did this help? Tips are appreciated...

Jamie

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

Sign in to reply to this post

Ray BorduinWebAssist

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.

Sign in to reply to this post
Did this help? Tips are appreciated...
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...