Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: pat_referrers
Yiannis,
Container tag is’nt difficult, sub domains checker is more disfficult. I’ll provide a new version tomorow with container feature.
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: pat_referrers
redirect
attribute can be omitted (Thanks Colak).
external
attribute added (v0.3): accepts external Url redirection (Thanks Ralitza).
status
attribute added. If sets a “301 Moved Permanently” is send. Useful to tell search engine bots that the TXP section must never more to be indexed.
Help text updated.
Next (very difficult) challenge: subdomain sniffing.
Check, test, comment or hate :D
WP version available soon ;)
Last edited by Pat64 (2012-04-28 09:01:35)
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: pat_referrers
@Ralitza
@Colak
Just for you: v.05 available
Supports domain and sub domain names ;)
Check, test, comment, love or hate :D
Last edited by Pat64 (2012-04-28 15:16:09)
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: pat_referrers
hey Patrick, You did it!
Unfortunately I get
Parse error: syntax error, unexpected ')', expecting ';' in /home/xxx/xxx/textpattern/lib/txplib_misc.php(653) : eval()'d code on line 42
The above errors were caused by the plugin:pat_referrers
The code I am using
<txp:variable name="refpage" value='<txp:pat_referrers list="http://sub.domain.com" />' />
<txp:if_variable name="refpage" value="" />
<txp:rvm_css format="link" />
<!--[if IE]>
<txp:rvm_css n="ie" format="link" />
<![endif]-->
<!--[if IE 7]><link rel="stylesheet" href="<txp:rvm_css name="ie7"/>" type="text/css" media="screen" /><![endif]-->
<txp:else />
<txp:pro_mobile>
<link rel="stylesheet" media="handheld, only screen and (max-device-width: 480px)" href="/css/small_screen.css" />
<link rel="stylesheet" media="handheld, only screen and (min-device-width: 768px)" href="/css/default.css" />
<link rel="stylesheet" media="only screen and (-webkit-min-device-pixel-ratio: 2)" type="text/css" href="/css/small_screen.css" />
<txp:else />
<txp:rvm_css format="link" />
<!--[if IE]>
<txp:rvm_css n="ie" format="link" />
<![endif]-->
<!--[if IE 7]><link rel="stylesheet" href="<txp:rvm_css name="ie7"/>" type="text/css" media="screen" /><![endif]-->
</txp:pro_mobile>
</txp:if_variable>
> Edited to add: The error above appears on all pages, regardless of the template on the front end of the site on ‘live’ mode.
Last edited by colak (2012-04-28 15:07:02)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: pat_referrers
Sorry Colak. Corrected. Re-upload
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: pat_referrers
… And finaly v0.6.alpha
A very experimental version where the plugin can be used as a single or a container tag.
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: pat_referrers
Hi Patrick,
Using the code above prevents the page from parsing after <txp:pro_mobile>
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: pat_referrers
Try using pat_referrers after pro_mobile.
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: pat_referrers
Oops. I’ve missed the developments here. I shall test this again as soon as I find a bit of time. Thanks!
Offline