Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Do you customise the admin area for your clients?
Anybody? I thought it would be relatively easy for a coder to add an admin tab function to Sencer’s plugin per my question in this post above
Sencer has yet to reply to my request :)
Mary, I tried a bagilliion ways to comment out the txp_article.php bits. What things should I be aware of when doing that? What parts are the hidden fields?
Thank you mucho everyone,
Matthew
Last edited by ma_smith (2005-11-29 03:43:39)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
#14 2005-11-29 05:02:34
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Do you customise the admin area for your clients?
Like input type="hidden"...
and so on. Most, if not all are generated by the function hInput.
Last edited by Mary (2005-11-29 05:04:05)
Offline
Re: Do you customise the admin area for your clients?
Mary,
I put out a plugin request for this instead.
This is an example of what I have done:
<code>
// form override
/* ($allow_form_override)
? graf(gTxt(‘override_default_form’).br.
form_pop($override_form).popHelp(‘override_form’))
: ‘’,*/
</code>
When doing this, the form is removed, but the article will not publish.
The only one I had success with was:
<code>
// keywords
graf(gTxt(‘keywords’).popHelp(‘keywords’).br.
/*’<textarea name=“Keywords” style=“width:100px;height:80px” rows=“1” cols=“1”>’.*/
$Keywords.’</textarea>’),
</code>
and even then, it was only the textarea and not the “keyword” phrase or its popup help.
I think this must just be a basic misunderstanding of PHP.
Starting at the beginning is always hard.
So, for now I have released it to the plugins forum, likely get lost into oblivion :)
But, hey, they are worse things, we could have a overthrown government and election campaigns over christmas! :)
Cheers,
Matthew
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
#16 2005-11-29 18:06:46
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Do you customise the admin area for your clients?
You might be better off just applying CSS to hide those elements. i.e:
// keywords
graf(gTxt('keywords').popHelp('keywords').br.
'<textarea name="Keywords" style="display:none;width:100px;height:80px" rows="1" cols="1">'.
$Keywords.'</textarea>'),
Offline
Re: Do you customise the admin area for your clients?
Mary,
Cool, that’s plausible.
What about with these code bits though?
I’m not familiar with how to add styling to what seems to be a totally php based string?
Where would one add dispaly:none; to these elements?
<code>
// textile toggles
graf(gTxt(‘use_textile’).br.
tag(gTxt(‘article’).br.pref_text(‘textile_body’,$textile_body)
,‘label’).
br.
tag(gTxt(‘excerpt’).br.pref_text(‘textile_excerpt’,$textile_excerpt)
,‘label’)),
// form override
($allow_form_override)
? graf(gTxt(‘override_default_form’).br.
form_pop($override_form).popHelp(‘override_form’))
: ‘’,
</code>
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
#18 2005-12-01 03:11:12
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Do you customise the admin area for your clients?
Replace that with this:
// textile toggles
graf(gTxt('use_textile').br.
tag(gTxt('article').br.pref_text('textile_body',$textile_body)
,'label').
br.
tag(gTxt('excerpt').br.pref_text('textile_excerpt',$textile_excerpt)
,'label'), 'display: none;'),
// form override
($allow_form_override)
?graf(gTxt('override_default_form').br.
form_pop($override_form).popHelp('override_form'), 'display: none;')
:'',
Offline
Re: Do you customise the admin area for your clients?
Thanks Mary,
That’ll get me learnin fer awhile :p
oops, it doesn’t work.
Let’s not worry about it.
Not worth your time, better spent on more important txp things :)
Matthew
Last edited by ma_smith (2005-12-01 03:23:39)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline