Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2005-11-23 00:32:57
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Common "How Do I?" questions
A new FAQ item. I won’t post the contents here, since I expect it will change regularly.
Alex
Offline
Re: Common "How Do I?" questions
Cool, zem! Thanks!
I have learned some new tricks.
First, I think this post will fit better as an sticky post in the “How do I…?” forum category, dont you think that?
And finally, sorry, but I have to insist you to take a look at this feature request. :D
Offline
Re: Common "How Do I?" questions
Yes I also think a sticky in “How do I…” would be good for this.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: Common "How Do I?" questions
First, I think this post will fit better as an sticky post in the “How do I…?” forum category, dont you think that?
Oh! I forgot that I have the power to move threads between forums!
But I also have forgotten that I cant make a thread sticky in the “How Do I…?” forum.
Please, administrators! fix my error and make this thread sticky.
Offline
Re: Common "How Do I?" questions
And so it came to be…
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#6 2006-08-10 18:12:39
- 1ukaz
- Archived Plugin Author

- From: Buenos Aires, Argentina
- Registered: 2006-05-05
- Posts: 17
Re: Common "How Do I?" questions
I have a question on development; sorry if this is not the place to do it but i’m on a hurry…..
How do you do the extract(lAtts.... etc, etc when you need a parameter of the tag to be an array?
If one of the Developers could help me please??
Thanx to you all
Offline
#7 2006-08-10 18:35:15
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Common "How Do I?" questions
extract(lAtts(array(
'my_array_att' => array(),
), $atts));
No way special. You just set it up with whatever you want the default value to be. :)
Offline
#8 2006-08-11 13:31:30
- 1ukaz
- Archived Plugin Author

- From: Buenos Aires, Argentina
- Registered: 2006-05-05
- Posts: 17
Re: Common "How Do I?" questions
- calling the tag from the template :
<txp:my_plugin my_array_att="1,2,3...N" />
- and in php
<pre>
<code>
if (!empty($my_array_att)) do something;
else do other thing;
</code>
</pre>
That’s my issue; any ideas or suggestions; … please?
Thanx Mary in advance
Offline
#9 2006-08-11 17:57:28
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Common "How Do I?" questions
Make use of explode().
Offline
#10 2006-08-22 12:37:09
- 1ukaz
- Archived Plugin Author

- From: Buenos Aires, Argentina
- Registered: 2006-05-05
- Posts: 17
Re: Common "How Do I?" questions
OK ! Mary thank you very much !! Ups !! Don’t believe I didn’t see it
Thanx again; sos grosa sabelo ;-)
Last edited by 1ukaz (2006-08-22 14:22:12)
Offline
#11 2006-11-08 09:22:29
- nvictor
- Member
- Registered: 2005-03-25
- Posts: 22
Re: Common "How Do I?" questions
Zem, thanks you a lot for posting this.
Offline
#12 2006-12-07 06:52:53
- teaj
- New Member
- Registered: 2006-12-07
- Posts: 2
Re: Common "How Do I?" questions
I installed textpattern in the root and all was well. I recently moved the index.php file and textpattern folder to /blog with no avail. Any help on moving installation to a subdirectory would be awesome. Thanks.
-teaj
Offline