close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

blog archive

Thread began 8/03/2012 9:31 am by JamieEff | Last modified 8/08/2012 2:08 am by JamieEff | 1844 views | 6 replies |

JamieEff

blog archive

Hi guys

I have set up a simple blog with an archive 'function' here - www.test-computer.com

When you first see it its all fine.

The list of blog articles on the left with pagination as there are 4 'articles' and a repeat region of 3. And on the right hand side is the box which contains the archive months for the blog.

Now, if you click on one of the archive months, lets say August 2012, you go through and see all one of the articles for that mont. Still all fine...

The problem occurs when you go back to the original list page (ie click on back to blog list) and only the article(s) from the month you were in are shown in the list when it should be all of them from all months....

Not sure what I have done wrong to get it doing that but your thoughts, as ever, gratefully received.

Thanks and all the best

Jamie

Sign in to reply to this post

Jason ByrnesWebAssist

I need copies of the pages in question in order to tell what may be wrong.

Sign in to reply to this post

JamieEff

Here you go Jason

Thanks

Jamie

Attached Files
blog-archive.zip
Sign in to reply to this post

Jason ByrnesWebAssist

You're link doesn't seam to work anymore? I can no longer see the page? did you fix the problem?

Sign in to reply to this post

JamieEff

oh, i dont know what happened there but have re-uploaded it so shoul dbe active again:

index.php

Thanks

Jamie

Sign in to reply to this post

Jason ByrnesWebAssist

the problem is that the on the index page, the recordset is set to filter based on session variables that get set on the other pages.

when you first visit the page it displays fine because the session don't exist.

on the index page, you should unset the session if the exist at line 1:

php:
<?php

if(isset($_SESSION["passedYear"])) unset($_SESSION["passedYear"]);
if(isset(
$_SESSION["passedMonth"])) unset($_SESSION["passedMonth"]);
?>
Sign in to reply to this post

JamieEff

Ah of course - many thanks Jason.

I have used the following to achieve just that:

php:
<?php

if (isset($_GET["ArchiveMonth"]))  {
    
$_SESSION["passedMonth"] = $_GET["ArchiveMonth"];
} else {
    if(isset(
$_SESSION["passedMonth"])) unset($_SESSION["passedMonth"]);
}
if (isset(
$_GET["ArchiveYear"]))  {
    
$_SESSION["passedYear"] = $_GET["ArchiveYear"];
} else {
    if(isset(
$_SESSION["passedYear"])) unset($_SESSION["passedYear"]);
}
?>



Thanks again

Jamie

Sign in to reply to this post

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...