Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2012-04-22 16:31:25

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,599
GitHub Twitter

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

#26 2012-04-28 08:45:21

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,599
GitHub Twitter

Re: pat_referrers

v0.4 now available.

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

#27 2012-04-28 14:43:49

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,599
GitHub Twitter

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

#28 2012-04-28 15:04:35

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

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

#29 2012-04-28 15:15:32

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,599
GitHub Twitter

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

#30 2012-04-28 19:44:49

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,599
GitHub Twitter

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

#31 2012-04-29 09:56:05

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

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

#32 2012-04-29 13:00:55

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,599
GitHub Twitter

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

#33 2012-05-01 16:10:24

datorhaexa
Member
From: Düsseldorf, Germany
Registered: 2005-05-23
Posts: 115
Website

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

Board footer

Powered by FluxBB