Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2007-09-15 23:09:54

markusfalk
Member
Registered: 2007-08-16
Posts: 57
Website

Re: asy_wondertag (tags-in-tags/tags as attributes)

Did you geht the client area to work? I wanted to use this after login to output individual content for clients.

<txp:asy_wondertag>
<txp:article_custom allowoverride=“0” category=”<txp:ign_logged_user form=“current_user”/>” pgonly=“0” />
</txp:asy_wondertag>

???

detailed information


I sometimes destructively reverse engineer my own work and the only help is this forum.

visit me at visiongraphix

Offline

#32 2007-09-15 23:22:45

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: asy_wondertag (tags-in-tags/tags as attributes)

Yeah, my client section works nicely.

Looks like your’s should work too.

The only security issue is with files, where a client could just start plugging in numbers and download othe clients files… But this could happen anyway.

Offline

#33 2007-09-15 23:46:09

markusfalk
Member
Registered: 2007-08-16
Posts: 57
Website

Re: asy_wondertag (tags-in-tags/tags as attributes)

is there another way to output content sensitive to users ?


I sometimes destructively reverse engineer my own work and the only help is this forum.

visit me at visiongraphix

Offline

#34 2007-09-16 03:07:46

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

Re: asy_wondertag (tags-in-tags/tags as attributes)

mrdale wrote:

The only security issue is with files, where a client could just start plugging in numbers and download othe clients files… But this could happen anyway.

Doesn’t 4.0.5 alleviate this problem by adding actual filenames to the download URIs, or do the old number-only links still work?

Offline

#35 2007-09-16 08:52:49

markusfalk
Member
Registered: 2007-08-16
Posts: 57
Website

Re: asy_wondertag (tags-in-tags/tags as attributes)

@mrdale

<txp:asy_wondertag>
<txp:if_category name=”<txp:ign_user_name display=“name” />”>
</txp:wondertag>
<txp:any_tag_here_including_an_output_form_tag />
</txp:if_category>

the way I understand that you used this to create your client login … don’t you have to add more lines into your template for each client?


I sometimes destructively reverse engineer my own work and the only help is this forum.

visit me at visiongraphix

Offline

#36 2007-09-16 17:45:23

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: asy_wondertag (tags-in-tags/tags as attributes)

>markus

Short answer: Just use your article form to compare the login name to the article category name and present the article on true and a “rejection” message on failure.

I don’t have time right now, (hella busy) but when things settle down for me, I’ll do a full walk-through of my client section. If there’s enough interest I could be persuaded to package it all up in a hgc_templates install, allowing you to import the whole client section with an upload and a few clicks.

Offline

#37 2007-09-17 08:32:41

markusfalk
Member
Registered: 2007-08-16
Posts: 57
Website

Re: asy_wondertag (tags-in-tags/tags as attributes)

@mrdale

thanks for you help. I’ll keep trying. I appreciate your effort but I would rather have a full walk-through than a template so that I can fully understand how it works by doing it myself. Of course there might be others interested in this template ;-)


I sometimes destructively reverse engineer my own work and the only help is this forum.

visit me at visiongraphix

Offline

#38 2007-09-17 10:50:50

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: asy_wondertag (tags-in-tags/tags as attributes)

mrdale: either a full walkthrough and/or templates of your client section would be great! personally i’ve never been able to get the whole community-oriented plugin package of ign_password_protect, mem_self_register, etc etc to ever work on where i host my pages (but i’ve tested them on different servers and they work without a hitch? no idea). i hate netfirms.

Last edited by iblastoff (2007-09-17 10:56:44)

Offline

#39 2007-09-26 17:57:37

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

Re: asy_wondertag (tags-in-tags/tags as attributes)

I forgot to mention this earlier, but I recently finished work on a site that used this plugin together with chs_if_urlvar. The combination allowed me to give forms a kind of “memory.” I also used it to display articles with different page templates, URLs, and content without having to duplicate the same article in different sections. Thanks for this great tool. I’m still discovering new ways to use it on every project.

Offline

#40 2007-10-02 20:34:18

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: asy_wondertag (tags-in-tags/tags as attributes)

Anything changed in 4.0.5 and the lastest SVN?

I’m trying the plugin with a simple <txp:asy_wondertag><txp:article_custom status="4" time="past" sort="Posted desc" limit="2" form="some form" category="a cat" section="<txp:section />" /></asy_wondertag> as shown in the help, and TXP returns me all kind of unpleasantness :

textpattern/lib/txplib_misc.php:606 trigger_error()
textpattern/lib/txplib_misc.php(535) : eval()'d code:11 lAtts()
textpattern/publish.php:982 asy_wondertag()
processTags()
textpattern/publish.php:941 preg_replace_callback()
textpattern/lib/txplib_misc.php:1388 parse()
textpattern/publish/taghandlers.php:242 parse_form()
textpattern/publish.php:982 output_form()
processTags()
textpattern/publish.php:941 preg_replace_callback()

Last edited by Jeremie (2007-10-02 20:34:37)

Offline

#41 2007-10-02 21:08:20

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: asy_wondertag (tags-in-tags/tags as attributes)

Could it be a typo error?

</asy_wondertag>


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#42 2007-10-02 21:21:05

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: asy_wondertag (tags-in-tags/tags as attributes)

Ok, I do need a new brain…

Thanks Julián.

Offline

#43 2007-10-27 16:15:47

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

Re: asy_wondertag (tags-in-tags/tags as attributes)

Awesome plugin! I was able to use this with <txp:upm_image /> in the image_name attribute like so: <txp:upm_image image_name="<txp:custom_field name="before_pic" />" /> I have three article images for a certain type of article, and I want a more complex output than just a list, so I’m storing the three image names in custom fields.
Thanks for writing this solution!

Offline

#44 2008-09-02 03:03:20

andrea
Member
From: la la land
Registered: 2004-02-24
Posts: 62
Website

Re: asy_wondertag (tags-in-tags/tags as attributes)

just another thanks for a super-handy plugin!

;) andrea

Offline

#45 2008-10-04 02:53:45

alanfluff
Member
From: Ottawa, Canada
Registered: 2008-09-15
Posts: 222
Website

Re: asy_wondertag (tags-in-tags/tags as attributes)

Hurrah! Thanks SO much for the plugin – solved a problem very neatly :)


At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A

Offline

Board footer

Powered by FluxBB