Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: [COSMETIC MOD] longer input fields in admin  (Read 2048 times)

henrich

  • Sr. Member
  • ****
  • Karma: 23
  • Posts: 381
  • Passion for quality and excellence!
    • My personal blog and portofolio
[COSMETIC MOD] longer input fields in admin
« on: January 31, 2008, 10:43:22 pm »

Hi,

This time i bother you with a cosmetic mod. When building my blog, i realised that in the admin panel for some input fields i need bigger size in width. If we create simply the input class and write a big size for the width rule, then we gonna have a problem, ALL the input fields will be as long as we declared in the input class, even the buttons (at add new article section) adn even if they have a separate class let's say .button.

The solution is to search for every input field and insert a class to them. Now i will show 2 examples:

- for example function form_articles, if i want that the title input field to be longer then i search for it's input:

Quote
echo html_input('text', 'title', 'at', $frm_title, l('title'), 'long', 'onchange="genSEF(this,document.forms[\'post\'].seftitle)"', 'onkeyup="genSEF(this,document.forms[\'post\'].seftitle)"', '', '', '', '', '', '', '');

and i will add the word long to the 6th value. Same action also to the other input fields, just insert the predefined class name into the 6th value place.

- now let's take the seftitle input field:

Quote
echo html_input('text', 'seftitle', 'as', $frm_sef_title, l('sef_title'), 'long', '', '', '', '', '', '', '', '', '');}

On my code i will add this class also for fields like description meta, keywords meta or in function form_categories for fields like category name and so on. I think that based on this 2 examples you can complete your similar tasks, if not then please feel free to post here a question for me and i will explain to you where can be found any desired input field.

Snapshoot:


Example CSS rule:

Quote
.long {
   width : 495px;
}

*GREEN: set the value due to your needs in px, em or %. Good luck! :)
Logged
By(e) Henrich :)
------------------------------
IT related blog

Sven

  • ULTIMATE member
  • ******
  • Karma: 88
  • Posts: 2029
  • Chasing MY bugs!
    • hiseo.fr - rédacteur Web
Re: [COSMETIC MOD] longer input fields in admin
« Reply #1 on: May 12, 2008, 04:19:28 pm »

Howdee Mr henrich?
I was searching in my snews file how I can make those fields longer and I said to myself:
"Hey Mr Inspector, some pal on the forum might have a solution for that".
And this is it!
Thanks a lot henrich.
And one karma+. One! 8)

henrich

  • Sr. Member
  • ****
  • Karma: 23
  • Posts: 381
  • Passion for quality and excellence!
    • My personal blog and portofolio
Re: [COSMETIC MOD] longer input fields in admin
« Reply #2 on: May 12, 2008, 04:31:53 pm »

Thanks,

I'm doing fine, i have a new job, working much more and i have little free time.

Yes, i am using also longer titles so it was important for me to have longer fields.

Have a nice day :)
Logged
By(e) Henrich :)
------------------------------
IT related blog

maxou

  • Jr. Member
  • **
  • Karma: 5
  • Posts: 81
  • Bug's Finder
Re: [COSMETIC MOD] longer input fields in admin
« Reply #3 on: May 12, 2008, 04:33:35 pm »

I was searching in my snews file how I can make those fields longe

Me too. ;D

Thanks Henrich, +1 karma  ;)
Logged
Work on XAMPP.

Sven

  • ULTIMATE member
  • ******
  • Karma: 88
  • Posts: 2029
  • Chasing MY bugs!
    • hiseo.fr - rédacteur Web
Re: [COSMETIC MOD] longer input fields in admin
« Reply #4 on: May 12, 2008, 04:34:30 pm »

Thanks,

I'm doing fine, i have a new job, working much more and i have little free time.
Good! Really nice to hear that.
And don't forget the snoozers. ;)

funlw65

  • Hero Member
  • *****
  • Karma: 96
  • Posts: 771
    • Country Lab
Re: [COSMETIC MOD] longer input fields in admin
« Reply #5 on: May 12, 2008, 10:36:01 pm »

Thank you Henrich, bookmarked this. K+
Logged

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • “I'm a self-made man and worships my creator.”
    • p-ahlqvist.com
Re: [COSMETIC MOD] longer input fields in admin
« Reply #6 on: May 13, 2008, 07:53:23 am »

I like the title ;) Nice doing, Mr Henrich.
Logged
"It's only dead fish that goes with the flow... "
Updated