Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-11-2008, 01:17 AM
styleforum styleforum is offline
 
Join Date: Jun 2005
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Bigger edit boxes by default in Admin CP scripts?

I find it annoying that all the edit boxes start out tiny when I go to edit things in the Admin CP. I can increase the size (with the 'Increase Size' Javascript link), but the next time I use the same thing, they are small again.

Is there any way to change all those places that the "increase size" appears so that the box stretches to fit the frame by default? Looking at code in a 50 char wide by 12 row box is ridiculous.

Thanks.
Reply With Quote
  #2  
Old 04-11-2008, 02:14 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sure you can, but you have to actually edit the file. For instance, in the faq page, you will find this code for the textarea:
PHP Code:
 print_textarea_row($vbphrase['text'], 'deftext'$faqphrase["$defaultlang"]['text'], 10'70" style="width:100%'); 
If you look at the function print_textarea_row (in adminfunctions.php), you will see that the 10 is the number of rows and the 70 is the number of columns. So, you can change the 70 to something larger, like 150 or so.
Reply With Quote
  #3  
Old 05-07-2008, 03:11 PM
MikQuattro MikQuattro is offline
 
Join Date: Jul 2003
Location: UK
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a solution for v3.7? I've tried changing the values in the adminfunction.php file with no effect. I just want to make the textarea larger by default when I'm editing templates.
Reply With Quote
  #4  
Old 05-07-2008, 03:20 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I only gave one example from the adminfunction.php file. There are several places you would need to change that line depending on whilh textarea you want to make larger. Every textarea is called from a separate line.
Reply With Quote
  #5  
Old 05-07-2008, 04:17 PM
MikQuattro MikQuattro is offline
 
Join Date: Jul 2003
Location: UK
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the speedy reply...

That bit of code you posted isn't even in the adminfunctions.php file, the only thing close is this:
PHP Code:
function print_textarea_row($title$name$value ''$rows 4$cols 40$htmlise true$doeditbutton true$direction ''$textareaclass false
That's why I assumed that the code had changed for v3.7. I tried editing that, with no effect. I also looked for similar code in adminfunctions_template.php file as well as others, but I'm having a hard time tracking down the values I need.

All I'm trying to do is make the default size of the textarea in the template editor larger. I'm assuming that is going to be one piece of code because whenever you open a template to edit, it's always the same, regardless of the template.

When you do a View Source of the page, you get this for the textarea:
Code:
<div id="ctrl_template"><textarea name="template" id="ta_template_2" class="code" rows="22" cols="75" style="width:100%" wrap="virtual" dir="ltr" tabindex="1">
The problem is, I've search in loads of files for "ctrl_template", "template", "ta_template_2", etc, and I haven't come up with anything.

Anyway, sorry for the confusion, I hope that explains it a bit better.......TBH, I think I confused myself even more.....LOL
Reply With Quote
  #6  
Old 05-07-2008, 06:00 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just reread what I originally wrote. When I wrote about the adminfuction.php file, I was telling the user to take a look at the *function* in that file to see the parameters. The line I quoted is found in whatever page is calling the textarea which you will have to determine by whichever textarea you are trying to change the size of.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:24 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06486 seconds
  • Memory Usage 2,217KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete