Zen Cart Logo
Forums / General Questions / html text area in admin is too small

html text area in admin is too small

Locked

Views: 1,556

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
11 Nov 2007, 9:40 PM
#1
mediathing avatar

mediathing

Zen Follower

Join Date:
Apr 2005
Location:
London
Posts:
405
Plugin Contributions:
0

html text area in admin is too small

Hi,
Is there a way to increase the number of characters I can input into the html text area on the banner section in admin?
Thanks
Pete

12 Nov 2007, 3:27 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: html text area in admin is too small

The field banners_html_text is a TEXT field and only can hold 65,000 bytes ... :smile:

umm ... er ... what are you putting in that banner that needs to be so huge? :eek:

You can always customize the banners table of your database for larger field type ...

12 Nov 2007, 3:42 PM
#3
mediathing avatar

mediathing

Zen Follower

Join Date:
Apr 2005
Location:
London
Posts:
405
Plugin Contributions:
0

Re: html text area in admin is too small

Hi,
The weight of the info isn't the issue I feel, The text I am putting into the text field is ony 230kb but consists of 1348 lines of text. It's the number of lines that is the issue, When I cut and paste this text into the box and save it, I then view it on the site and though I haven't count them I can see that not all 1348 lines are there.

Does that make sense.
Pete

12 Nov 2007, 4:29 PM
#4
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: html text area in admin is too small

could you not put all the text in a seportate file like banner1.php and then use php include in the banner to bring in the file???

i not used banners my self but im sure thats worth a try.

12 Nov 2007, 4:59 PM
#5
mediathing avatar

mediathing

Zen Follower

Join Date:
Apr 2005
Location:
London
Posts:
405
Plugin Contributions:
0

Re: html text area in admin is too small

kitcorsa:

could you not put all the text in a seportate file like banner1.php and then use php include in the banner to bring in the file???

i not used banners my self but im sure thats worth a try.

That sounds like it would work but I really don't know how to write PHP, I have limited understanding and can alter existing code but not create the code myself. To be honest, I would have thought that the number of lines shouldn't make any difference.
Thanks
Pete

12 Nov 2007, 5:06 PM
#6
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,611
Plugin Contributions:
0

Re: html text area in admin is too small

This is probably a silly question - Why are you using the banner system to include a 1300+ line text page?

12 Nov 2007, 5:28 PM
#7
mediathing avatar

mediathing

Zen Follower

Join Date:
Apr 2005
Location:
London
Posts:
405
Plugin Contributions:
0

Re: html text area in admin is too small

Kim:

This is probably a silly question - Why are you using the banner system to include a 1300+ line text page?

This was the easiest way (I know of) to include a narrow text box at the foot of every page. Most of the info I needed to be showed is showing, so I will most likely make do with what I have. If I stumble across a way of fixing it then I'll do so at a later date.
Thanks
Pete

13 Nov 2007, 1:34 PM
#8
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: html text area in admin is too small

mediathing:

This was the easiest way (I know of) to include a narrow text box at the foot of every page. Most of the info I needed to be showed is showing, so I will most likely make do with what I have. If I stumble across a way of fixing it then I'll do so at a later date.
Thanks
Pete

you want it in the foot of everypage?? do you want it to change randomly??

if not just add a ne div and the text into the footer file above or below the copywrite and style the div in you templeplates style sheet.

copy the tpl_footer file from the template_default/common folder you yourtemple/common

then add the information above or below the copywrite which is on line 61.

all the sections are commented in there just add you text in a div and style it in your style sheet.

<!--bof-text display -->
<div id="foottext">
insert you text here etc etc etc
</div>
<!--eof-text display -->
13 Nov 2007, 1:36 PM
#9
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: html text area in admin is too small

or to use an include file

	<?php include("url to the txt or html or php file"); ?>