Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#289 2007-12-31 15:53:45

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: gbp_permanent_links

I just set the permlink to messy, and modify the page code as you suggest.
All is actually “better” !
Last problem, the second vertical menu, where I lost the list of all articles who belongs to the category1 of the article displayed.

Here is the code : (BTW, how put the code in the forum ? )

<txp:if_category>
<ul>
<txp:article limit=99999 form="listarticles" />
</ul>
<txp:else />
<txp:if_individual_article>
<ul>
<txp:asy_wondertag><txp:article_custom limit="9999" form="listarticles" section="<txp:section />" category="<txp:category1 />" /></txp:asy_wondertag>
</ul>
</txp:if_individual_article>
</txp:if_category>

Last edited by jpdupont (2007-12-31 16:22:07)

Offline

#290 2007-12-31 16:16:23

guiguibonbon
Member
Registered: 2006-02-20
Posts: 296

Re: gbp_permanent_links

Posting tags and code (don’t leave a line after bc..)

I think wondertag can only put one tag inside another tag. You will need to replace the above code with raw php :

<txp:php>
global $pretext;

if ($pretext['c']!="")
      echo article_custom(array('section'=>$pretext['s'], 'category'=>$pretext['c'], 'form'=>'listarticles', 'limit'=>999));

</txp:php>

Offline

#291 2007-12-31 17:51:10

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: gbp_permanent_links

Done, but same problem.
Note : without gbp_permanent_links, code with wondertag works fine.

<txp:if_category>
<ul>
<txp:article limit=99999 form="listarticles" />
</ul>
<txp:else />
<txp:if_individual_article>
<ul>
<txp:php>
global $pretext;
if ($pretext['c']!="")
      echo article_custom(array('section'=>$pretext['s'], 'category'=>$pretext['c'], 'form'=>'listarticles', 'limit'=>999));
</txp:php>
</ul>
</txp:if_individual_article>
</txp:if_category>

Offline

#292 2007-12-31 23:30:02

guiguibonbon
Member
Registered: 2006-02-20
Posts: 296

Re: gbp_permanent_links

no, replace everything, just leave the uls around the php.

Offline

#293 2008-01-01 09:44:17

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: gbp_permanent_links

… Easy with PHP ! I don’t understand why the txp tags don’t give us such an answer …

Wonderful ! guguibobon, thanks for the help and … happy new year !

Offline

#294 2008-01-01 19:13:32

guiguibonbon
Member
Registered: 2006-02-20
Posts: 296

Re: gbp_permanent_links

Greame, one last feature idea : set debug mode (plugin and txp debug) for each permlink. I use this plugin for ajax amongst other things, and it’s often useful to have debugging on for certain pages but not for ajax responses.

If time permits, I’ll start working on that one myself. And on the article status thing.

Offline

#295 2008-01-11 00:16:18

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

Re: gbp_permanent_links

I find myself needing an URL redirection plugin for one very specific purpose: tracking offline campaigns with Google Analytics, as described in the fourth example on this page. I could easily do this with .htaccess, but I’m trying to set it up so that my client can manage the redirections without me. Is it possible to configure gbp_permanent_links to do this, and only this? I’m happy with the Txp-default permlink structure that I’ve already set up.

I’m also a little concerned by the reports that this plugin makes changes to the pretext array. Does it only add items to the array, or does it also alter / remove things?

Thanks in advance for the help. :-)

Offline

#296 2008-01-11 01:00:32

guiguibonbon
Member
Registered: 2006-02-20
Posts: 296

Re: gbp_permanent_links

It changes the pretext only if you ask it to, and in the exact same way textpattern would.

But it won’t if you just set up a redirect.

Offline

#297 2008-01-11 21:24:17

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

Re: gbp_permanent_links

So it is possible to use this for redirects without changing the permlink structure?

Offline

#298 2008-01-11 21:32:16

guiguibonbon
Member
Registered: 2006-02-20
Posts: 296

Re: gbp_permanent_links

It’s a bit of an overkill, but yes.

Offline

#299 2008-01-11 21:55:09

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

Re: gbp_permanent_links

guiguibonbon wrote:

It’s a bit of an overkill, but yes.

I just heard back from the client that he’s edited .htaccess files before, so it looks like a GUI for this might not be necessary. Good to know for future work, though. Thanks. :-)

Offline

#300 2008-01-14 17:11:18

edemay
Member
From: Montréal
Registered: 2005-08-16
Posts: 27
Website

Re: gbp_permanent_links

Hey guys, I’m running into a problem. I’m getting this error at the top of the pages as soon as I turn the plugin on:

Parse error: syntax error, unexpected $end in /home/hippopoc/public_html/textpattern/lib/txplib_misc.php(534) : eval()'d code(623) : runtime-created function on line 1

I tried reinstalling txtpattern to no avail. I have gbp_permanent_links installed along with the library. My guess is the compressed version of gbp_permanent_links that I got here – version 0.11.617 is not happy with something.

And my initial response “it works perfectly” is half true, I only thought the errors on the top of the page were from a sloppy installation, the plugin (redirection, permalinks and all) works fine in itself.

So… what gives? Should we try another version of the compressed plugin? Or the compressed of another plugin version?

Thanks in advance

Last edited by edemay (2008-01-14 17:12:17)

Offline

Board footer

Powered by FluxBB