Search found 22 matches

by natmanu
Tue Jul 11, 2006 12:45 pm
Forum: General discussions
Topic: XHTML Validation & phpMyFAQ
Replies: 6
Views: 11752

Cheers Matteo,

That's good to know. I'm currently using the srt_repace() function whilst pharsing the RSS feed.

Cheers
Guess you are still enjoying your World Cup victory :-)
Nat
by natmanu
Sat Jul 08, 2006 5:22 pm
Forum: General discussions
Topic: XHTML Validation & phpMyFAQ
Replies: 6
Views: 11752

Silly me!
I was searching the forum using the wrong keywords, xhml intead of mod_rewrite!!!!!!!!!!!!!!!!!!

Thanks that's sorted now.

Once modwrite is activated in the admin control panel and .htaccess, will it also affect the output of the rss feeds? If not then that's where the unencoded ...
by natmanu
Sat Jul 08, 2006 3:44 pm
Forum: General discussions
Topic: XHTML Validation & phpMyFAQ
Replies: 6
Views: 11752

XHTML Validation & phpMyFAQ

I've been trying to validate my XHTML pages using the W3 (http://validator.w3.org)

Because I'm using phpMyFAQ feeds output on my pages and using it for the whole FAQ section most of my URL look like this:

http://www.uvolunteer.org/faqs/index.php?action=artikel&cat=1&id=15&artlang=en

this URL will ...
by natmanu
Fri Jun 16, 2006 8:14 am
Forum: General discussions
Topic: Determine category number within index template (index.tpl)
Replies: 9
Views: 17043

Cheers, all's fine now
Nat
by natmanu
Thu Jun 15, 2006 8:25 pm
Forum: General discussions
Topic: Determine category number within index template (index.tpl)
Replies: 9
Views: 17043

hi,

The conditon you wrote outputs nothing! I've modified it to contain an else conditon to test it and it always evaluates false although cat is get. you test it here, click on the right nav to see results:
www.uvolunteer.org/faqs

<?php
if (isset($_GET['cat']) && is_int($_GET['cat'])) {
switch ...
by natmanu
Thu Jun 15, 2006 7:46 pm
Forum: General discussions
Topic: Determine category number within index template (index.tpl)
Replies: 9
Views: 17043

ok i get it, if cat is not set then it will produce an error.

What about the include path issue?, see above.

Cheers
Nat
by natmanu
Thu Jun 15, 2006 7:34 pm
Forum: General discussions
Topic: Determine category number within index template (index.tpl)
Replies: 9
Views: 17043

Hi,

I've managed to get the script to work but it now displays error when it branches to the default case statement. see:
http://www.uvolunteer.org/faqs/index.php

It seems to work when cat = a number !

2. I'm also having problem with include files inserted into index.tpl
What is the path to the ...
by natmanu
Thu Jun 15, 2006 5:21 pm
Forum: General discussions
Topic: Determine category number within index template (index.tpl)
Replies: 9
Views: 17043

Determine category number within index template (index.tpl)

Back with another one...

Hi, I'm trying to change the banner/header depending on which category you are in. I'm using Apache2Triad dev server on XP dev box.

On my local server I could get the cat number from the url by doing this:

<?php

switch ($_GET['cat'])
{
case 1:
print "<img src ...
by natmanu
Sun Jun 11, 2006 5:35 pm
Forum: General discussions
Topic: how to do: top ten articles per catergory
Replies: 26
Views: 53558

Thank you for all your work on MY TOP10 FUNCTION

I noticed the amendment ($PMF_LANG["msgTopTen"]) you made but still don't understand what exactly is happening in the function! But I know all is working great. So at last we have it working as imagined

You can probably tell by now that I'm not a ...
by natmanu
Sun Jun 11, 2006 4:06 pm
Forum: General discussions
Topic: how to do: top ten articles per catergory
Replies: 26
Views: 53558

Hello,
I've made that amendment and all is fine now.

The only thing left to do is to tackle the header problem on the combined top 10 pages. if you notice the header disappears on:
http://www.uvolunteer.org/faqs/index.php

As i mentioned before, i think it is because initially the header was in the ...
by natmanu
Fri Jun 09, 2006 4:19 pm
Forum: General discussions
Topic: how to do: top ten articles per catergory
Replies: 26
Views: 53558

When you thought all was well

All was going well and THEN :-(

just a small hitch :-)
1. There are two funny error at the top of the page that i don't quite know what they are.
http://uvolunteer.org/faqs/index.php

2. the last bit to do on the top10 is to fix the headers. The headers for the comined top10 used to be in the ...
by natmanu
Fri Jun 09, 2006 8:15 am
Forum: General discussions
Topic: how to do: top ten articles per catergory
Replies: 26
Views: 53558

Morning,

Thanks for the new snippet. It does the job perfect.
I even managed to ammend it so that it will work on the 'sitemap' and 'show all' pages.

The only problem left to fix is the rss problem but I think that will be easier. It's just that at the mo i have a problem with my PHP include_path ...
by natmanu
Thu Jun 08, 2006 11:19 pm
Forum: General discussions
Topic: how to do: top ten articles per catergory
Replies: 26
Views: 53558

THE RSS FEED

Hi Agian,

last one for tonight:-)

I tried runing the parser php file from the browser directly: It runs fine until I add the ending '&cat=2' then it bombs. I get this warning
--
Warning: MagpieRSS: Failed to fetch http://www.uvolunteer.org/faqs/feed/topten/rss.php&cat=3 (HTTP Response: HTTP/1.1 ...
by natmanu
Thu Jun 08, 2006 10:56 pm
Forum: General discussions
Topic: how to do: top ten articles per catergory
Replies: 26
Views: 53558

Hi,

1. so far so good the only bug left in it is that when on the index page:
http://localhost/faqs/index.php?
&
ask/contact pages
http://localhost/faqs/index.php?action=ask

the top 10 is : cat1 then followed by cat 2 etc. I would like it on these pages (general pages 'not general cat, which is 1 ...
by natmanu
Thu Jun 08, 2006 8:29 pm
Forum: General discussions
Topic: how to do: top ten articles per catergory
Replies: 26
Views: 53558

Hi Matteo,

Sorry I’ve been out of circulation for a while; Thanks for the work you’ve done for me.

1.
The category top ten is working but not quite as intended :-) When on the faq index I want it to show a mix of all the categories in the top ten without separating them by headers, (top 10 ...