Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2015-11-11 17:02:23

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

Re: jdw_if_ajax: serve and hide content

Well done michael. Let’s paste that here too for safe keeping:

# Name: jdw_if_ajax v0.1 
# Type: Client side plugin
# Helper tags for TXP + AJAX
# Author: Jan De Wilde
# URL: http://www.jandewilde.com/
# Recommended load order: 5

# .....................................................................
# This is a plugin for Textpattern - http://textpattern.com/
# To install: textpattern > admin > plugins
# Paste the following text into the 'Install plugin' box:
# .....................................................................

YToxMTp7czo0OiJuYW1lIjtzOjExOiJqZHdfaWZfYWpheCI7czo2OiJhdXRob3IiO3M6MTI6
IkphbiBEZSBXaWxkZSI7czoxMDoiYXV0aG9yX3VyaSI7czoyNjoiaHR0cDovL3d3dy5qYW5k
ZXdpbGRlLmNvbS8iO3M6NzoidmVyc2lvbiI7czozOiIwLjEiO3M6MTE6ImRlc2NyaXB0aW9u
IjtzOjI2OiJIZWxwZXIgdGFncyBmb3IgVFhQICsgQUpBWCI7czo0OiJoZWxwIjtzOjExNDQ6
Igk8aDEgY2xhc3M9InRpdGxlIHRhZyI+amR3X2lmX2FqYXg8L2gxPgoKCTxoMiBjbGFzcz0i
c2VjdGlvbiI+Q3JlZGl0PC9oMj4KCgk8cD5UaGlzIHBsdWdpbiBpcyBiYXNlZCB1cG9uIGR1
Yl9pZl9hamF4IChubyBsb25nZXIgYXZhaWxhYmxlKSBieSBKYW1pZSBXaWxraW5zb24uPGJy
IC8+Ckhvd2V2ZXI6IFRoaXMgcGx1Z2luIGhhcyBhIG5ldyB0YWc6IDxzcGFuIGNsYXNzPSJ0
YWciPmpkd19pZl9ub3RfYWpheDwvc3Bhbj4uPGJyIC8+Ckl0IHVzZXMgdGhlIHgtcmVxdWVz
dGVkLXdpdGggaGVhZGVyIHRvIGRlbGl2ZXIgZGlmZmVyZW50IGNvbnRlbnQgdG8gQWpheCBj
YWxscy48L3A+CgoJPGgyIGNs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AqKiogRU5EIFBMVUdJTiBD
U1MgKioqIC0tPgoiO3M6NDoiY29kZSI7czo0NDA6Ii8qIG9yZ2luYWxseSBkdWJfaWZfYWph
eCAqLw0KDQpmdW5jdGlvbiBqZHdfaWZfYWpheCgkYXR0cywgJHRoaW5nKQ0Kew0KCSRpc19h
amF4ID0gaXNzZXQoJF9TRVJWRVJbJ0hUVFBfWF9SRVFVRVNURURfV0lUSCddKSAmJiAkX1NF
UlZFUiBbJ0hUVFBfWF9SRVFVRVNURURfV0lUSCddICA9PSAnWE1MSHR0cFJlcXVlc3QnOw0K
CXJldHVybiBwYXJzZSggRXZhbEVsc2UoJHRoaW5nLCAkaXNfYWpheCkgKTsNCn0NCg0KZnVu
Y3Rpb24gamR3X2lmX25vdF9hamF4KCRhdHRzLCAkdGhpbmcpDQp7DQoJJGlzX25vdF9hamF4
ID0gIWlzc2V0KCRfU0VSVkVSWydIVFRQX1hfUkVRVUVTVEVEX1dJVEgnXSkgfHwgJF9TRVJW
RVIgWydIVFRQX1hfUkVRVUVTVEVEX1dJVEgnXSAgPT0gJyc7DQoJcmV0dXJuIHBhcnNlKCBF
dmFsRWxzZSgkdGhpbmcsICRpc19ub3RfYWpheCkgKTsNCn0NCg0KIjtzOjQ6InR5cGUiO3M6
MToiMCI7czo1OiJmbGFncyI7czoxOiIwIjtzOjU6Im9yZGVyIjtzOjE6IjUiO3M6MzoibWQ1
IjtzOjMyOiI4MjM1YWFmODM0MTQ4ZDBjOGI0MTc2OWMzZGM3NmJjMSI7fQ==

TXP Builders – finely-crafted code, design and txp

Offline

#14 2015-11-11 17:14:04

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: jdw_if_ajax: serve and hide content

jakob wrote #296547:

Well done michael. Let’s paste that here too for safe keeping:

Excellent Idea that we all should do more. I have gotten paranoid, though, about saving things to Github after I had to recreate a plugin due to the textdrive demise.

Offline

#15 2015-11-11 17:23:18

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

Re: jdw_if_ajax: serve and hide content

jakob wrote #296547:

Well done michael. Let’s paste that here too for safe keeping:

Linked it from the front page of the threat too.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#16 2015-11-12 08:03:50

dorka
Member
Registered: 2012-10-04
Posts: 90

Re: jdw_if_ajax: serve and hide content

Thank you guys, you’re wonderfull!

P.S. Textpattern is really good CMS, the more I work with it the more i apprecciate its logic, simplicity and the freedom it offers. But what makes me love it, is its supportive and helpfull comunity! I love you, guys!!! :o)

Offline

Board footer

Powered by FluxBB