1
novlang1984
Googlmaps and Xoops form

hello

I use Googlemaps with Xoops 2.5.1 and I would like to replace Xoops textarea form by the simpliest textarea (I mean a simple field to enter my descriptions, without Xoops buttons on the top and smilies on the bottom).

I've found this part of code (admin/index.php)
echo ""._MD_DESCRIPTIONC."";
    echo 
"";    
    
xoopsCodeTarea("html",60,8);
    
xoopsSmilies("html");
        echo 
"n";


Is there something simple replace XoopsForm ?

Tx in advance :)

2
zyspec
Re: Googlmaps and Xoops form
  • 2011/9/1 16:12

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


You should be able to try something like this....

XoopsFormTextArea('Description''html''Enter your description here'$rows 8$cols 60)

3
novlang1984
Re: Googlmaps and Xoops form

Thanks a lot, but debug mode says :
Call to undefined function XoopsFormTextArea() in D:wampwwwmodulesgooglemapsadminindex.php on line 360


4
zyspec
Re: Googlmaps and Xoops form
  • 2011/9/1 22:54

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Where can I find a copy of the module? More than likely you'll just need to include the correct file at the beginning of this file...

5
Mamba
Re: Googlmaps and Xoops form
  • 2011/9/2 0:21

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


The version 0.83 is here
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

6
zyspec
Re: Googlmaps and Xoops form
  • 2011/9/2 3:11

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


The easiest way is to just add
include_once
XOOPS_ROOT_PATH.'/class/xoopsformloader.php';

after the following lines (around line 33):
include_once XOOPS_ROOT_PATH.'/class/xoopstree.php';
include_once 
XOOPS_ROOT_PATH."/class/xoopslists.php";
include_once 
XOOPS_ROOT_PATH."/include/xoopscodes.php";
include_once 
XOOPS_ROOT_PATH.'/class/module.errorhandler.php';

7
novlang1984
Re: Googlmaps and Xoops form

hello

Thanks again :)

But same Error message
Fatal errorCall to undefined function XoopsFormTextArea() in D:wampwwwmodulesgooglemapsadminindex.php on line 361

(line 361 is : XoopsFormTextArea('Description', 'html', 'Enter your description here', $rows = 8, $cols = 60);)

8
zyspec
Re: Googlmaps and Xoops form
  • 2011/9/2 23:45

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Sorry... I've been going just a little too fast...

Inside ./admin/index.php. First insert
include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';


around line 33.

Then around line 368 change:
echo "";
xoopsCodeTarea("description",60,8);
xoopsSmilies("description");
echo 
"n";


to:
echo "";
$tarea = new XoopsFormTextArea('Description''description''Enter your description here'860);
echo 
$tarea->render();
echo 
"n";


You'll need to something similar in the modPoint() function around line 550.

Sorry for the confusion. By the way, I did load the module this time and actually try the changes and they appear to work.

9
novlang1984
Re: Googlmaps and Xoops form

Great ! Thank again, that works

Login

Who's Online

196 user(s) are online (91 user(s) are browsing Support Forums)


Members: 0


Guests: 196


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits