- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 83 guest(s) and 1 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Adding new options, some work, some don't. [ ]
Author
Message
sarahk
Nuke Soldier
Joined: Dec 01, 2003
Posts: 29
Location: Auckland, New Zealand
Posted:
Mon Aug 09, 2004 4:51 pm
I've just put googletap onto a site (much easier than last time I did it, well done on the improvements) and I'm having a problem with some custom code.
They've add a printer friendly view button which I have working and now I'm trying to get the pagination for the printer version working.
So this url has been fed through the generate_pagination function and come out as
modules.php?name=Forums&file=viewtopic&printertopic=1&t=1621&postdays=0&postorder=asc&start=0
In my GT_header file (I made it an include rather than adding header, safer) I have added to $urlin
Code:
"'(?<!/)modules.php\?name=Forums&file=viewtopic&printertopic=1&t=([0-9]+)&postdays=([0-9]+)&postorder=asc&start=([0-9]+)'",
and to $urlout
Code:
"forumprint-t\\1-\\2-s\\3.html",
but when I view the page, say: http://www.propertytalk.co.nz/forumprint-t1621-15-0.html the links for page 1 or previous are
http://www.propertytalk.co.nz/modules.php?name=Forums&file=viewtopic&printertopic=1&t=1621&postdays=0&postorder=asc&start=0
which works but given that GoogleTap is in there the url should be tapped too.
Just to see what pagination spits out I did a var_dump(strrev($pagination)) and got
Quote:
"b/<2>b< ,>a/<1>0=trats;pma&csa=redrotsop;pma&0=syadtsop;pma&1261=t;pma&1=cipotretnirp&cipotweiv=elif&smuroF=eman?php.seludom "=ferh a<;psbn&;psbn&>a/<suoiverP>"0=trats;pma&csa=redrotsop;pma&0=syadtsop;pma&1261=t;pma&1=cipotretnirp&cipotweiv=elif&smuroF=eman?php.seludom"=ferh a< egap otoG"
and this tells me that I have the code right, ie & and & all in the right place.
Can anyone see where I've gone wrong?
Sarah
_________________ Sarah King
Property Management Software
Property in NZ
Auckland Tennis
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum