1
isaacbg
Xdirectory problem
  • 2004/1/10 12:43

  • isaacbg

  • Just popping in

  • Posts: 4

  • Since: 2003/9/9 2


Hi:

I use XOOPS 2.502 and I've just installed Xdirectory, it's great but when someone submit a business and I go to the submited section there is no option to approve the submitted information, it just appear the information submitted by my users but I can't approve it, there is no button to approve the information.

Someone knows about it?

Thanks for your time

2
builderb
Re: Xdirectory problem
  • 2004/1/10 17:06

  • builderb

  • Not too shy to talk

  • Posts: 137

  • Since: 2003/8/4 2


can you post the code from /admin/index.php between the following lines:
@ line#86 function listNewLinks()
to
@ line#190 xoops_cp_footer();

This is the section that deals with approving new links.

-Builderb

3
isaacbg
Re: Xdirectory problem
  • 2004/1/10 17:25

  • isaacbg

  • Just popping in

  • Posts: 4

  • Since: 2003/9/9 2


First of all thanks for your interest:

I copy the code:
Quote:

function listNewLinks()
{
global $xoopsDB, $xoopsConfig, $myts, $eh, $mytree;
// List links waiting for validation
$linkimg_array = XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH."/modules/xdirectory/images/shots/");
$result = $xoopsDB->query("select lid, cid, title, address, address2, city, state, zip, country, phone, fax, email, url, logourl, submitter, premium from ".$xoopsDB->prefix("xdir_links")." where status=0 order by date DESC");
$numrows = $xoopsDB->getRowsNum($result);
xoops_cp_header();
echo "

"._MD_WEBLINKSCONF."

";
echo""
."
";
echo "

"._MD_LINKSWAITING." ($numrows)


";
if ( $numrows > 0 ) {
while(list($lid, $cid, $title, $address, $address2, $city, $state, $zip, $country, $phone, $fax, $email, $url, $logourl, $submitterid, $premium) = $xoopsDB->fetchRow($result)) {
$result2 = $xoopsDB->query("select description from ".$xoopsDB->prefix("xdir_text")." where lid=$lid");
list($description) = $xoopsDB->fetchRow($result2);
$title = $myts->makeTboxData4Edit($title);
$address = $myts->makeTboxData4Edit($address);
$address2 = $myts->makeTboxData4Edit($address2);
$city = $myts->makeTboxData4Edit($city);
$state = $myts->makeTboxData4Edit($state);
$zip = $myts->makeTboxData4Edit($zip);
$country = $myts->makeTboxData4Edit($country);
$phone = $myts->makeTboxData4Edit($phone);
$fax = $myts->makeTboxData4Edit($fax);
$email = $myts->makeTboxData4Edit($email);
$url = $myts->makeTboxData4Edit($url);
// $url = urldecode($url);
$logourl = $myts->makeTboxData4Edit($logourl);
// $logourl = urldecode($logourl);
$description = $myts->makeTareaData4Edit($description);
$submitter = XoopsUser::getUnameFromId($submitterid);
echo "\n";
echo "";
echo "\n";
echo "";
echo "\n";
echo "
"._MD_SUBMITTER."\n";
echo "$submitter";
echo "
"._MD_SITETITLE."";
echo "";
echo "
"._MD_BUSADDRESS."";
echo "";
echo "
"._MD_BUSADDRESS2."";
echo "";
echo "
"._MD_BUSCITY."";
echo "";
echo "
"._MD_BUSSTATE."";
echo "";
echo "
"._MD_BUSZIP."";
echo "";
echo "
"._MD_BUSCOUNTRY."";
echo "";
echo "
"._MD_BUSPHONE."";
echo "";
echo "
"._MD_BUSFAX."";
echo "";
echo "
"._MD_BUSEMAIL."";
echo "";
echo "
"._MD_SITEURL."";
echo "";
echo " [ "._MD_VISIT." ]";
echo "
"._MD_CATEGORYC."";
$mytree->makeMySelBox("title", "title", $cid);
echo "
"._MD_DESCRIPTIONC."\n";
echo "\n";

Let me know if that doesn't work.

-Builderb

P.S I'm getting the new module ready to release this weekend.

5
isaacbg
Re: Xdirectory problem
  • 2004/1/11 11:31

  • isaacbg

  • Just popping in

  • Posts: 4

  • Since: 2003/9/9 2


Gotcha, it worked!!!!!

Thanks a lot!!!

Login

Who's Online

808 user(s) are online (82 user(s) are browsing Support Forums)


Members: 0


Guests: 808


more...

Donat-O-Meter

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

Latest GitHub Commits