Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
themadhacker
Worker
Worker



Joined: May 30, 2006
Posts: 100

PostPosted: Sat Jun 03, 2006 6:30 pm Reply with quote

Just exactly as the subject reads.

What file do you edit to change the field size of the Page Text field?

I thought it would be in modules/Content/admin/index.php file but I didnt see it or overlooked it.

Thanks!
 
View user's profile Send private message
gregexp
The Mouse Is Extension Of Arm



Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol

PostPosted: Sat Jun 03, 2006 6:55 pm Reply with quote

well this is actually a theme issue...themes ussually have a style.css and in those ull find the text size used on a site as a general rule..to be honest i wouldnt attempt to make a font size any different then the theme makes it as if u use css script ull create an error on ur page

I do believe u cant create a class in css then define the text as it has a class and depending on the class of the text the text will show the size defined in the style.css of ur theme...this is definitley a question jaded would be more qualified to answer as my experience with themes is limited to using a theme as a template and not making one from scratch...hope this leads to the answer ur looking for.

_________________
For those who stand shall NEVER fall and those who fall shall RISE once more!! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
jaded
Theme Guru



Joined: Nov 01, 2003
Posts: 1006

PostPosted: Sat Jun 03, 2006 7:48 pm Reply with quote

He is correct.

The theme is normally what controls the size of font displayed on a nuke site. This is in part to keep things uniform and prevent distortion.

You could as dark said add a special class called lets say

contentmodule

in your style.css in your theme.

Then you could theoreticly open up the module and attempt to name a class for the data that is output.

If you could take a screen shot for me. Use arrows and show me exactly what part you want changed and how you would like it different then it is. I could take a look at the module for you and see how to best help you do it.

_________________
Themes BB Skins [ Only registered users can see links on this board! Get registered or login! ]
Graphic Tees [ Only registered users can see links on this board! Get registered or login! ]
Paranormal Tees [ Only registered users can see links on this board! Get registered or login! ]
Ghost Stories & More [ Only registered users can see links on this board! Get registered or login! ] 
View user's profile Send private message Visit poster's website
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sun Jun 04, 2006 12:10 am Reply with quote

themadhacker, are you really looking at changing the physical length of the field or max characters, or how it "looks"?

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
gregexp







PostPosted: Sun Jun 04, 2006 4:06 am Reply with quote

good point i completley overlooked that way of reading it.

a more descriptive detail on what exactly u want would really help.
 
jaded







PostPosted: Sun Jun 04, 2006 5:33 am Reply with quote

lol, as did I. I guess we will find out when he posts back. The later would be much simpler to do.
 
themadhacker







PostPosted: Sun Jun 04, 2006 9:09 am Reply with quote

montego wrote:
themadhacker, are you really looking at changing the physical length of the field or max characters, or how it "looks"?


yes...not how it looks...but how many characters it will hold.

I didnt think my post was misleading...I didnt mention anything about font size...I plainly stated "field size"....meaning the size of the text field...LOL

Right now I am not sure how much I can put in there...but with HTML and my content its not nearly enough. Id like to at least quadruple or even make it unlimited.

Anyway....sorry for the confusion guys/gals?

Thanks for your quick responses
 
gregexp







PostPosted: Sun Jun 04, 2006 10:04 am Reply with quote

u did state that...but we are always operating under the assumption that the person asking the question has little to no knowledge about what they are asking...this is not an insult in anyway...its just that assumptions can cause problems...even mishaps and misunderstanding...and to assume that some has the knowledge to correectly address their problem would mean that every1 thought alike and then we could make 10 posts one time...and every1 using the search function would make it so that no1 had to post anything else... Laughing

sorry for the misunderstanding

ok now with that outta the way...which text feild are u trying to expand?
 
themadhacker







PostPosted: Sun Jun 04, 2006 10:10 am Reply with quote

darklord wrote:
u did state that...but we are always operating under the assumption that the person asking the question has little to no knowledge about what they are asking...this is not an insult in anyway...its just that assumptions can cause problems...even mishaps and misunderstanding...and to assume that some has the knowledge to correectly address their problem would mean that every1 thought alike and then we could make 10 posts one time...and every1 using the search function would make it so that no1 had to post anything else... Laughing

sorry for the misunderstanding

ok now with that outta the way...which text feild are u trying to expand?


I didnt take any offense...I hope none was recieved by my response.

And I do know how support can be. I am a systems admin where most all of my users have very little computer knowledge...so I sometimes find myself over simplifying an explanation or asking alot of questions up front before I answer a question.

Moving on....

Its the Page Text field. The Header and Footer Field I dont really care about the input field size. Its the "Page Text" that when I copy over an HTML page and submit the content....doesnt have enough characters by default to hold the entire HTML code. So I would like to be able to manually make it at least 4x larger if not just put like a 10meg limit.

Again..thanks for the quick response. Very Happy
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Sun Jun 04, 2006 11:38 am Reply with quote

Actually, this might not be quite as simple as creating a larger text box to type the code into.
Do not forget that the data has to be stored in the database and that some fields may well be restricted as to the amount of characters that the field can hold.

Do you have any idea of the number of charcters you might wish to us?
 
View user's profile Send private message Send e-mail
gregexp







PostPosted: Sun Jun 04, 2006 11:44 am Reply with quote

ive got the same question guardian has...but to be honest...ur question is throwing red flags up for me so badly....its almost as i the ideas i have as to what u mean are security risks ..but frankly i have a lot of ideas as to what u mean...all as risky as the last...can u link us to something....post what u want to put into ur footer text?
 
themadhacker







PostPosted: Sun Jun 04, 2006 12:06 pm Reply with quote

All I want to do is enable that field to hold more data than it currently allows. Unless that is a bad idea.

I dont know how others are using their "content" modules but I just want to make mine an archive. So of course I would create categories and within those categories I could have an archive of the same thing for different years.

For instance if I have a category called Parts Lists I could then create my content to have Parts List 2003, Parts List 2004, Parts List 2005, Parts List 2006, and so on each year I update the archive.

The Parts List would be created in MS Word or Excel or whatever. Then I could use Dreamweaver to save the document as a web page and then I would manually strip all of the head and body code out and paste the rest of the code into the Page Text field.

I really dont carea about the header and footer fields because I would probably just be redundant and type the name of the document in both places. For example Header Field = "Parts List 2006" and Footer Field = "Parts List 2006"

So ultimately what I have found out is that when I create the page, the code created is too large to fit completely inside the Page Text field. How large does this need to be? I dont know because each categories pages will always be different from one another...so some will be large and some not so large.

I know I could cut alot of characters out of the code if I hand created the content in HTML. But some of these documents have several tables and images its just way easier to let Dreamweaver do it...as bloated as the code is.

If I have to hand code each of these documents...then I will have to just forget about using the content module and think of something else. Otherwise the content module is the easiest way I see to have an archive of word documents transferred to HTML.

Does this make things any more clear now?

PS...I dont care about the physical size of the text box....All I do is copy/paste the code from Dreamweaver into it...so the size on screen doesnt mean a thing to me.

Thanks! Very Happy

PS....just FYI the text area shown on screen does allow me to copy the entire code to it. Its just when I submit and go and look at the content...it didnt recieve it all to display. Then when I go back in and edit it...I can see that it didnt accept the whole code
 
Guardian2003







PostPosted: Sun Jun 04, 2006 4:40 pm Reply with quote

The fact that you can paste the entire text but it doesnt get saved would indicate that that the 'text' attribute of the two fields maxed out.
I think Word has a character counter built in (you can usually see it in the files properties) so it will be interesting to see how many characters you are trying to save (yes I know this can vary depending on your Price List data).

As an alternative, you might want to make your Price List as downloads or break them up into smaller sizes by utilising more categories.
 
themadhacker







PostPosted: Sun Jun 04, 2006 5:17 pm Reply with quote

Guardian2003 wrote:
The fact that you can paste the entire text but it doesnt get saved would indicate that that the 'text' attribute of the two fields maxed out.
I think Word has a character counter built in (you can usually see it in the files properties) so it will be interesting to see how many characters you are trying to save (yes I know this can vary depending on your Price List data).


I dont understand what you mean by

Quote:
attribute of the two fields maxed out


The "Page Text" field is only one field...not two.

Anyway I found a Semi-Fix for this. I used the MS Word cleanup tool in Dreamweaver to remove a bunch of the redundant or blank content in the HTML file. So far 2 of the files I have experimented with now fit in the content "Page Text" field.

However I still would like to be able to increase the input size in case I have a need to input more than is currently allowed.

Very Happy
 
Guardian2003







PostPosted: Sun Jun 04, 2006 5:53 pm Reply with quote

You said that all the data you were 'pasting' into the 'Page Text' box was ok but that it did not all appear on the page when saved.
A little background info for you...
phpNuke utilises a database (mySQL) to store a lot of data.
This database consists of a number of 'tables' and within those 'tables' are a number of 'fields'.
As I'm sure you can appreciate, the data that can be stored in each 'field' is not unlimited. Therefore it is possible that some in-built limit in mySQL is being reached for that field 'type' or 'attribute' - the attribute in this case is 'text'.
That is what I was refering to when I wrote 'maxed out' - the maximum number of allowed characters had been reached so it saved what it could and discarded the rest.
 
themadhacker







PostPosted: Sun Jun 04, 2006 6:27 pm Reply with quote

Guardian2003 wrote:
You said that all the data you were 'pasting' into the 'Page Text' box was ok but that it did not all appear on the page when saved.
A little background info for you...
phpNuke utilises a database (mySQL) to store a lot of data.
This database consists of a number of 'tables' and within those 'tables' are a number of 'fields'.
As I'm sure you can appreciate, the data that can be stored in each 'field' is not unlimited. Therefore it is possible that some in-built limit in mySQL is being reached for that field 'type' or 'attribute' - the attribute in this case is 'text'.
That is what I was refering to when I wrote 'maxed out' - the maximum number of allowed characters had been reached so it saved what it could and discarded the rest.


I am well aware of how phpNuke stores its content in MySQL. What I did not know is that MySQL was limiting the input and not a variable in the phpNuke code itself. I actually thought that phpNuke had a line of code that restricted the limit of characters input for a field. Like you can customize on the password field of the registration form. If this is in fact governed by the database then its a moot point. I will just have to figure out what that "max size" is and make sure anything I create for content doesnt exceed that.

I guess all of this confusion could of been avoided if I knew that first hand. Sorry I made this so confusing and/or wasted anyones time with this.

Thanks
 
Guardian2003







PostPosted: Sun Jun 04, 2006 7:03 pm Reply with quote

Hey, no problem.
Don't worry about it - and you certainly didn't waste anyones time.
There may be character length restrictions in place but if that was the case with your particular problem, you should not have ben able to paste the code in and that is what made me think it was something else causing the problem.

I did have a look at the mySQL website to see exactly what the character or size restriction was but couldn't find anything specific.
 
themadhacker







PostPosted: Sun Jun 04, 2006 8:35 pm Reply with quote

Thanks for your efforts....I do appreciate it.

I will still be looking into it myself and post here anything I find out, unless someone posts that information in this thread first.

Again, thanks! Very Happy
 
gregexp







PostPosted: Sun Jun 04, 2006 10:14 pm Reply with quote

all i can think of is was it set to varchar?
varchar has a max input of 255 characters...from the sound of it...he was already able to put far more then 255 characters in the text box....if not go into phpmyadmin and change the attributes to TEXT

as far as i know...text has no limits on how much u can put into it
 
themadhacker







PostPosted: Mon Jun 05, 2006 6:17 am Reply with quote

I dont know what it was set to because all of this time...well until recently I was thinking it was controlled by a php file.

I will definately have a look at the table and see if its varchar. Thanks alot! Very Happy
 
jaded







PostPosted: Mon Jun 05, 2006 6:19 am Reply with quote

I had t change this to "long text" in the db to get it to allow enough text for some clients.
 
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6433

PostPosted: Mon Jun 05, 2006 11:27 am Reply with quote

In addition to the field size in the database, you may also want to enlarge the textarea rows and cols settings to have a bigger space to work with.

_________________
I search, therefore I exist...
nukeSEO - nukeFEED - nukePIE - nukeSPAM - nukeWYSIWYG
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©