141
zeroram
Re: Problem with SUB domain
  • 2005/3/20 5:20

  • zeroram

  • Friend of XOOPS

  • Posts: 326

  • Since: 2004/6/30


never mind....... fixed



142
zeroram
Problem with SUB domain
  • 2005/3/20 4:43

  • zeroram

  • Friend of XOOPS

  • Posts: 326

  • Since: 2004/6/30


Well am not new to xoops, but this just got me crazy...

i did a search on this forum to see if my problem was answered before but no luck, so here go....

i install XOOPS 2.06 (when this was the latest one) on the main domain http://www.maindomain.com

now the owner of the site want another site using XOOPS but on the same web hosting account using a subdomain

i did install XOOPS 2.09 on the subdomain http://subdomain.maindomain.com

no problem...

the problem come when i login using http://subdomain.maindomain.com it redirect the user to

http://www.maindomain.com/modules/.... instead of sending the user to http://subdomain.maindomain.com/modules/....

seem to work fine only when i access http://www.maindomain.com/subdomain



for now the only solution i found is by changing
define('XOOPS_URL', 'http://subdomain.maindomain.com');

on the mainfile.php

but, if i do that it only work using subdomain.maindomain.com and http://www.maindomain.com/subdomain stop working

does anybody know how to fix this... Please



143
zeroram
Call to a member function on a non-object in.... search.php on line 141
  • 2004/7/19 22:17

  • zeroram

  • Friend of XOOPS

  • Posts: 326

  • Since: 2004/6/30


Am trying to use the search feature on Xdirectory with the multilanguage hack

but i get this ERROR

Fatal error: Call to a member function on a non-object in /home/username/public_html/search.php on line 141

here is a part of the code

// Hack by marcan : only return results of modules for which user has access permission
$groups = ( $xoopsUser ) ? $xoopsUser -> getGroups() : XOOPS_GROUP_ANONYMOUS;
$gperm_handler = & xoops_gethandler( 'groupperm' );
//End of hack by marcan

$module_handler =& xoops_gethandler('module');
foreach ($mids as $mid) {
$mid = intval($mid);
$module =& $module_handler->get($mid);
if ( $gperm_handler -> checkRight('module_read', $mid, $groups)) {
LINE 141 $results =& $module->search($queries, $andor, 5, 0);
echo "

".$myts->makeTboxData4Show($module->getVar('name'))."

";
$count = count($results);
if (!is_array($results) || $count == 0) {
echo "

"._SR_NOMATCH."

";
} else {
for ($i = 0; $i < $count; $i++) {
if (isset($results[$i]['image']) && $results[$i]['image'] != "") {
echo "".$myts->makeTboxData4Show($module->getVar( ";
} else {
echo "".$myts->makeTboxData4Show($module->getVar( ";
}
echo "".$myts->makeTboxData4Show($results[$i]['title'])."
\n";
echo "";
$results[$i]['uid'] = intval($results[$i]['uid']);
if ( !empty($results[$i]['uid']) ) {
$uname = XoopsUser::getUnameFromId($results[$i]['uid']);
echo "  ".$uname."\n";
}
echo $results[$i]['time'] ? " (". formatTimestamp(intval($results[$i]['time'])).")" : "";
echo "

\n";
}
if ( $count == 5 ) {
$search_url = XOOPS_URL.'/search.php?query='.urlencode(stripslashes(implode(' ', $queries)));
$search_url .= "&mid=$mid&action=showall&andor=$andor";
echo '
'._SR_SHOWALLR.'

';
}
}
}
unset($results);
unset($module);
}
include "include/searchform.php";
$search_form->display();
break;
case "showall":
case 'showallbyuser':
include XOOPS_ROOT_PATH."/header.php";
$module_handler =& xoops_gethandler('module');
$module =& $module_handler->get($mid);
$results =& $module->search($queries, $andor, 20, $start, $uid);
$count = count($results);
if (is_array($results) && $count > 0) {
$next_results =& $module->search($queries, $andor, 1, $start + 20, $uid);
$next_count = count($next_results);
$has_next = false;
if (is_array($next_results) && $next_count == 1) {
$has_next = true;
}
echo "

"._SR_SEARCHRESULTS."

\n";
if ($action == 'showall') {
echo _SR_KEYWORDS.':';
if ($andor != 'exact') {
foreach ($queries as $q) {
echo ' '.htmlspecialchars(stripslashes($q)).'';
}
} else {
echo ' "'.htmlspecialchars(stripslashes($queries[0])).'"';
}
echo '
';




144
zeroram
Web Hosting Module
  • 2004/7/12 21:30

  • zeroram

  • Friend of XOOPS

  • Posts: 326

  • Since: 2004/6/30


I have made it a Search.. and i didnt find any module for this... so this is my suggestion.

a WEB hosting module for xoops, similar maybe like WHautopilot or maybe something more simple like PHPCOIN

http://www.phpcoin.com ( if you get an error page,please try later.. i think they were working on something when i visit)

i think some tools are already in XOOPS like FAQ,NEWS,TUTORIAL,members modules... so integrate all this with a web hosting module will be a good idea...




145
zeroram
Re: Upgrading to 2.0.6 killed my admin access
  • 2004/6/30 1:46

  • zeroram

  • Friend of XOOPS

  • Posts: 326

  • Since: 2004/6/30


i tried same thing , didn workk either...

any idea how to fix this??




TopTop
« 1 ... 12 13 14 (15)



Login

Who's Online

409 user(s) are online (129 user(s) are browsing Support Forums)


Members: 0


Guests: 409


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