[pmwiki-users] New recipe: Fox
Jiri Hladůvka / OBUTEX
admin at obutex.com
Tue Dec 19 05:46:41 CST 2006
How can be used $FoxCountInc and $FoxCountDec ?
If I understand well then $FoxPostCount has a value=8 if there was 10
posts and 2 were deleted,
and the $FoxCount has a value=10.
What happens with $FoxPostCount when action=foxinit ?
Jiri
Hans napsal(a):
> Monday, December 18, 2006, 6:07:29 PM, Jiri wrote:
>
>
>> What about to set and update some page-variable FoxLastPostNr and not to
>> count the posts ?
>>
>
> I changed fox.php so it keeps a record of posts posted as 'foxcount' in
> the page file (not the page text), increasing by one at each post.
> I also added an action=foxinit which resets this number to zero.
> You need auth 'attr' to be able to use it.
>
> So now the page variables $FoxCount, $FoxCountInc and $FoxCountDec
> increase one for each post, and will not go down when posts are
> deleted. Posts also get their unique anchor name with this number.
> If you need to know the exact number of posts, page variable
> $FoxPostCount still counts the posts.
>
> This change should give opportunities to link to or include individual
> posts, without fear of duplicated anchor names.
>
>
> Hans
>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
> __________ Informace od NOD32 1927 (20061219) __________
>
> Tato zprava byla proverena antivirovym systemem NOD32.
> http://www.nod32.cz
>
>
>
>
--
OBUTEX s.r.o
Ing.Jiří Hladůvka
Zlatovská 22
911 01 Trenčín
tel.: +421 (0)32 6587000
mailto:admin at obutex.com
http://www.obutex.com
More information about the pmwiki-users
mailing list