Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
ethana
Hangin' Around



Joined: Jan 05, 2006
Posts: 32
Location: Phoenix, AZ

PostPosted: Wed Feb 08, 2006 1:00 pm Reply with quote

Hello, i have a small issue on my 7.8 install, no patches..i know...i know Wink. I know there has been previous post on textareas but i have not seen one that completely fits my problem. The issue is that i will use the standard editor that comes with nuke for textareas and for some reason it will make the inner typable box way smaller than the outter box. So now ive got inches of grey space and tiny space to actually type in. Previous post seem to deal wih the opposite problem. I like the tinymce editor (sp?) b/c of its extra tools and would like to solve this problem...here is an example:

Code:
echo "Content:</td></tr><tr><td colspan=2><textarea rows=15 columns=70 name=content></textarea>";


Image

Thanks for the help.

_________________
"Who the h*ll does the QA team think they are telling me im not meeting requirements?!?"

Last edited by ethana on Sat Feb 25, 2006 11:03 pm; edited 1 time in total 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Wed Feb 08, 2006 3:09 pm Reply with quote

well if the code you posted is for real then its obvious that it is that small.
change it to..
</td></tr><tr><td colspan=2><textarea rows=15 columns=70 name=content cols="65"></textarea>
 
View user's profile Send private message
ethana







PostPosted: Wed Feb 08, 2006 5:02 pm Reply with quote

Bah, i cant say how man times in the years ive put columns instead of cols...thanks.
 
hitwalker







PostPosted: Wed Feb 08, 2006 5:04 pm Reply with quote

no prob...
 
ethana







PostPosted: Sat Feb 25, 2006 6:53 pm Reply with quote

Alright, dragging this up again because its the same result but not the same cause (as in using columns instead of cols)...check out the following:

Right-click view source:


Code:
<table width="100%" border="0" cellspacing="0" cellpadding="5">

  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="1">
        <tr>
          <td bgcolor="#A9B8C2"><table width="100%" border="0" cellspacing="0" cellpadding="1">
              <tr>
                <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="4">
                          <tr>
                            <td>
<div id='show_full_product' style="display: block;"><br><a href="javascript: expandCollapse('display_full_product', 'show_full_product');"><u>- New Normal Product -</u></a></div>

<div id='display_full_product' style="display: none;"><a href="javascript: expandCollapse('display_full_product', 'show_full_product');"><u>- Hide New Product Form -</u></a><br>

<table border=0 width="100%"><form name=full_product enctype="multipart/form-data" action="admin.php?op=xxxxxx" method="Post">
<tr><td>Product ID:</td><td><input type=text name="product_id" value=''></td></tr>
<input type=hidden name="db_id" value="">
<tr><td>Product Name:</td><td><input type=text name="product_name" value=''></td></tr>
<tr><td>Product Category:</td><td><select name="category_id">
   <option value='1' >Kits & Sets
   <option value='2' >Just Wikki Stix
   <option value='3' >Party Fun
   <option value='4' >Educational
   <option value='5' >Religious
   <option value='6' >Holiday - Seasonal
   <option value='7' >Books</select></td></tr>
<tr><td>Product Title:</td><td><input type=text name="product_title" value=''></td></tr>
<tr><td>Product Price:</td><td><input type=text name="product_price" value=''></td></tr>

<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="200000">
<tr><td>Product Image (Big):</td><td><input type="file" name="product_image_big" value='' size=30></td></tr>
<tr><td>Product Image (Small):</td><td><input type="file" name="product_image_small" value='' size=30></td></tr><tr><td>Product Qty:</td><td><input type=text name="product_qty" value=""></td></tr>
<tr><td>Case Qty:</td><td><input type=text name="case_qty" value=''></td></tr>
<tr><td>Case Price:</td><td><input type=text name="case_price" value=''></td></tr>
<tr><td valign=top>Product Description:</td><td><textarea rows="30" cols="80" name="product_desc"></textarea></td></tr>
<input type=hidden name=action value="add"><input type=hidden name=product_type value="normal_product">
<tr><td><input type=submit value="Add New Product" name="new_product"></td></tr>
</form>
</table>
</div>
</td></tr>
</td></tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>



I apologize for the lack of readability, i tried to put some appropiate carriage returns.

PHP Code:

Code:
   echo "<div id='show_full_product' style=\"display: block;\">";

      echo "<br><a href=\"javascript: expandCollapse('display_full_product', 'show_full_product');\"><u>- New Normal Product -</u></a>";
      echo "</div>";
      echo "<div id='display_full_product' style=\"display: none;\">";
      echo "<a href=\"javascript: expandCollapse('display_full_product', 'show_full_product');\"><u>- Hide New Product Form -</u></a><br>";
      echo "<table border=0 width=\"100%\">";
      echo "<form name=full_product enctype=\"multipart/form-data\" action=\"admin.php?op=wikki_confirm_product\" method=\"Post\">";         
         echo "<tr><td>Product ID:</td><td><input type=text name=\"product_id\" value='".$data_set['product_id']."'></td></tr>";
         echo "<input type=hidden name=\"db_id\" value=\"$db_id\">";
         echo "<tr><td>Product Name:</td><td><input type=text name=\"product_name\" value='".$data_set['product_name']."'></td></tr>";
         echo "<tr><td>Product Category:</td><td><select name=\"category_id\">";
            while ($row = $db->sql_fetchrow($result)) {
               $selected = "";
               if ($row['category_id'] == $data_set['category_id']) {
                  $selected = "SELECTED";
               }
               echo "<option value='".$row['category_id']."' $selected>".$row['category_title']."";
            }
         echo "</select></td></tr>";
         echo "<tr><td>Product Title:</td><td><input type=text name=\"product_title\" value='".$data_set['product_title']."'></td></tr>";
         echo "<tr><td>Product Price:</td><td><input type=text name=\"product_price\" value='".$data_set['price']."'></td></tr>";
         echo "<INPUT TYPE=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"200000\">";
         echo "<tr><td>Product Image (Big):</td><td><input type=\"file\" name=\"product_image_big\" value='' size=30>";
         if ($db_id) {
               echo "&nbsp;&nbsp;<a href='modules/Wikki_Product_Catalog/product_images/".$data_set['product_image_big']."' target='_new'>click for image</a></td></tr>";
         }
         else {
            echo "</td></tr>";
         }
         echo "<tr><td>Product Image (Small):</td><td><input type=\"file\" name=\"product_image_small\" value='' size=30>";
            if ($db_id) {
               echo "&nbsp;&nbsp;<a href='modules/Wikki_Product_Catalog/product_images/".$data_set['product_image_small']."' target='_new'>click for image</a></td></tr>";
            }
         else {
            echo "</td></tr>";
         }
         echo "<tr><td>Product Qty:</td><td><input type=text name=\"product_qty\" value=\"$product_qty\"></td></tr>";
         echo "<tr><td>Case Qty:</td><td><input type=text name=\"case_qty\" value='".$data_set['case_qty']."'></td></tr>";
         echo "<tr><td>Case Price:</td><td><input type=text name=\"case_price\" value='".$data_set['case_price']."'></td></tr>";
         
         echo "<tr><td valign=top>Product Description:</td><td><textarea rows=\"30\" cols=\"80\" name=\"product_desc\">".$data_set['product_desc']."</textarea></td></tr>";
         
         echo "<input type=hidden name=action value=\"$action\">";
         echo "<input type=hidden name=product_type value=\"normal_product\">";
         echo "<tr><td><input type=submit value=\"$submit\" name=\"new_product\"></td></tr>";
         echo "</form>";
         echo "</table>";
         echo "</div>";
   echo "</td></tr>";


And the end result is the same thing as i posted earlier in date. Any ideas? Thanks.
 
hitwalker







PostPosted: Sat Feb 25, 2006 6:56 pm Reply with quote

so what about the area?
you want it bigger ,smaller,????
 
hitwalker







PostPosted: Sat Feb 25, 2006 7:10 pm Reply with quote

ok...im out off time...
so i went ahead a bit...
backup your files...

And look closely !
This isnt the full code you posted so just replace it in yours where needed its smaller and better...

Code:
<table border=0 width="100%"><form name=full_product enctype="multipart/form-data" action="admin.php?op=xxxxxx" method="Post">

<tr><td width="179">Product ID:</td><td><input type=text name="product_id" value=''></td></tr>
<input type=hidden name="db_id" value="">
<tr><td width="179">Product Name:</td><td><input type=text name="product_name" value=''></td></tr>
<tr><td width="179">Product Category:</td><td><select name="category_id">
   <option value='1' >Kits & Sets
   <option value='2' >Just Wikki Stix
   <option value='3' >Party Fun
   <option value='4' >Educational
   <option value='5' >Religious
   <option value='6' >Holiday - Seasonal
   <option value='7' >Books</select></td></tr>
<tr><td width="179">Product Title:</td><td><input type=text name="product_title" value=''></td></tr>
<tr><td width="179">Product Price:</td><td><input type=text name="product_price" value=''></td></tr>

<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="200000">
<tr><td width="179">Product Image (Big):</td><td><input type="file" name="product_image_big" value='' size=30></td></tr>
<tr><td width="179">Product Image (Small):</td><td><input type="file" name="product_image_small" value='' size=30></td></tr><tr>
<td width="179">Product Qty:</td><td><input type=text name="product_qty" value=""></td></tr>
<tr><td width="179">Case Qty:</td><td><input type=text name="case_qty" value=''></td></tr>
<tr><td width="179">Case Price:</td><td><input type=text name="case_price" value=''></td></tr>
<tr><td valign=top width="179">Product Description:</td><td>
   <textarea rows="10" cols="45" name="product_desc"></textarea></td></tr>
<input type=hidden name=action value="add"><input type=hidden name=product_type value="normal_product">
<tr><td width="179"><input type=submit value="Add New Product" name="new_product"></td></tr>
</form>
</table>
</div>
</td></tr>
</td></tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
 
ethana







PostPosted: Sat Feb 25, 2006 11:13 pm Reply with quote

I apologize, i forgot i killed the domain for the image i posted previously. Its back up...the grey space is the problem, not the size. Before i was putting "columns" rather than "cols" but now it doesnt matter. The code i posted is how i have it in php and what the source looks like when outputted to html. When i take the same <textarea....></textarea> and i move outside the whole table and form to be by iteself it works fine...not sure as also randomly some of the button images for the editor functions dont show...heres a new image:

Image


As you can see, too much grey area and button images are randomly missing. Ive looked at the form and table code and i must be missing something as to why its doing this. Anyone else?
 
hitwalker







PostPosted: Sun Feb 26, 2006 6:15 am Reply with quote

well buttons randomly missing etc...doesnt mean a design flaw.
this sounds like there's more wrong....
hard to tell without seeing the real thing...
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

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 ©