1
albania
Character number at Xdirectory Category titles
  • 2004/6/14 23:42

  • albania

  • Just popping in

  • Posts: 23

  • Since: 2004/6/5 1


Any one to help how to change the length of category titles on add main category form in xdirectory.
This needed to use with multilinguage modul, I want more then 100 caracteres to describe catedory in albanian and english

Pls any one to help?

2
albania
Re: Character number at Xdirectory Category titles
  • 2004/6/15 7:53

  • albania

  • Just popping in

  • Posts: 23

  • Since: 2004/6/5 1


I Changed the line 202 in /admin/index.php of xdirectory
Quote:

// Add a New Main Category
xoops_cp_header();
$linkimg_array = XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH."/modules/xdirectory/images/shots/");
echo "<h4>"._MD_WEBLINKSCONF."</h4>";
echo "<table width='100%' border='0' cellspacing='1' class='outer'>"
."<tr class=\"odd\"><td>";
echo "<form method=post action=index.php>\n";
echo "<h4>"._MD_ADDMAIN."</h4><br />"._MD_TITLEC."<input type=text name=title size=100 maxlength=150><br />";
echo ""._MD_IMGURL."<br /><input type=\"text\" name=\"imgurl\" size=\"100\" maxlength=\"150\" value=\"http://\"><br /><br />";
echo "<input type=hidden name=cid value=0>\n";
echo "<input type=hidden name=op value=addCat>";
echo "<input type=submit value="._MD_ADD."><br /></form>";
echo"</td></tr></table>";
echo "<br />";


the line 202

from
Quote:

echo "<h4>"._MD_ADDMAIN."</h4><br />"._MD_TITLEC."<input type=text name=title size=30 maxlength=50><br />";

to
Quote:

echo "<h4>"._MD_ADDMAIN."</h4><br />"._MD_TITLEC."<input type=text name=title size=100 maxlength=150><br />";


Now can write at about 90 characteres but when it is posted I see tha t are posted only 50 characters so my category title is like this
Quote:

[sq]Kompjuterat & Int


Any Idea what i have to change now?

3
albania
Re: Character number at Xdirectory Category titles
  • 2004/6/15 9:56

  • albania

  • Just popping in

  • Posts: 23

  • Since: 2004/6/5 1


I fixed it by myself using phpmyadmin
I chamged the field definition in the database table manually from varchar(50) to varchar(150). Is this ok?