1
McDonald
WF-Links 1.03 : category menu sorted in submit form on visitors side
  • 2005/9/7 20:00

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


To get the same category menu in the submit form at the visitors side as at the admin side do as follows:

Open in a editor: /wflinks/submit.php

replace line 223-225:

Quote:
$cat_select = new XoopsFormSelect( _MD_WFL_CATEGORYC, 'cid', $cid );
$cat_select -> addOptionArray( $submitcats );
$sform -> addElement( $cat_select );


with,

Quote:
ob_start();
$mytree -> makeMySelBox( 'title', 'title', $cid, 0 );
$sform -> addElement( new XoopsFormLabel( _MD_WFL_CATEGORYC, ob_get_contents() ) );
ob_end_clean();



EDIT:
See also thread on WF-Projects website: http://www.wf-projects.com/modules/newbb/viewtopic.php?topic_id=3&start=20

Login

Who's Online

515 user(s) are online (376 user(s) are browsing Support Forums)


Members: 0


Guests: 515


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