1
ullone
Not the profile but a blank page only with 2.0.6
  • 2004/3/24 12:15

  • ullone

  • Friend of XOOPS

  • Posts: 49

  • Since: 2003/4/24


I have downloaded a module ( friendfinder) here :
http://www.dancepartner.info/dp/modul ... de=flat&pid=78&forum=2#79

I' have tested in past this module with XOOPS 2.0.3 and it worked good.
I have submitted it in download section because it is intessant for me.

However.

I have installed FrindFinder in a test site that start in the second half (july/agost) of 2004 here :
http://www.eulisse.com/modules/friendfinder/
This site use XOOPS 2.0.6 .

No problem in installation. If i try to submit a profile no problem . All is good.

When i search the profile all is good and the prifile is found. All O.K.

But when i try to click the user profile that i have found i have Not the profile but a blank page. here :

http://www.eulisse.com/modules/friendfinder/view.php?id=1

I do not understand.
For me it is a development problem with XOOPS 2.0.6 .
Boh. ...

2
ullone
Re: Not the profile but a blank page only with 2.0.6
  • 2004/3/24 12:15

  • ullone

  • Friend of XOOPS

  • Posts: 49

  • Since: 2003/4/24


File view.php

http://www.eulisse.com/modules/friendfinder/view.php?id=1
register global on
openbasedir disable
safemode off
php version : 4.2.2

<?php
#################################################################################
# Friend Finder for XOOPS 1.3.x and XOOPS 2.xx Version 3.1 beta #
# #
# Copyright 2003 by eagle81 #
# #
# Manuel Caballero friendfinder@dancepartner.net #
# Module Homepage: http://www.dancepartner.net #
# #
# Please report bugs and new feature request at modcentral.com friendfinder #
# forum or via mail frienfinder@dancepartner.net #
# #
# Copyright for this langfile #
# Lanuage: Language name #
# Name: your name and email #
# Homepage: your Homepage #
# #
# #
# Last modification: 2002-02-22 #
# #
# Initialy this script is based on phpMeet from #
# Jeremy Ross webmaster@phprank.com #
# Script design : PhpMeet Copyright 2002 - #
# Created 15/01/02 Last Modified 15/01/02 #
# Scripts Home http://www.jrscripts.com #
# #
# First XOOPS Versions from: #
# #
# Xoops-RC2 French Version : jokerman@free.fr #
# Web Home : http://www.webetfric.com #
# #
# Xoops-RC2 English Version : webmaster@modscentral.com #
# Web Home : http://www.modscentral.com #
#################################################################################
// ORIGINAL FILE INFO

include("../../mainfile.php");
include(
"../../header.php");
include(
"cache/config.php");
include(
"header.php");
include(
"age.php");
#include(XOOPS_ROOT_PATH."/include/xoopscodes.php");
include(XOOPS_ROOT_PATH."/include/version.php");
$myts =& MyTextSanitizer::getInstance();
$xoopsOption['show_rblock'] =1;

global 
$xoopsDB$xoopsTheme$xoopsConfig$xoopsModule;
global 
$dateformat$autoactive,$anonymusmail$imagesize$heightunit$weightunit;

//Function to see if directfriends is installed
//This function only works with xoops2
if(XOOPS_VERSION=="XOOPS 2.0.6"){
$module_handler =& xoops_gethandler('module');
if (
$module_handler->getCount(new Criteria('dirname''directfriends'))) {
$directfriends=1;
} else{
$directfriends=0;
}
}else{
if (
XoopsModule::moduleExists("directfriends")) {
$directfriends=1;
} else{
$directfriends=0;
}
}

//end of direct friends

OpenTable();
//************************************************************





if (isset($id) || $id != "")
{
// $statistic = $xoopsDB->query("SELECT id,statistic FROM xoops_friendfinder WHERE id = '$id'");
// while (list($id,$statistic) = $xoopsDB->fetchRow($statistic)){
// $newstatistic= $statistic + 1;
// }
/* $updatestatistic= $xoopsDB->query("UPDATE ".$xoopsDB->prefix($xoopsModule->dirname())." set statistic='$newstatistic WHERE id='$id'");
*/
$view $xoopsDB->query("SELECT uid,id,user,active,sex,category,name,email,city,state,country,hobby,partner,height,weight,birth,pic,Description,imgname,imgtime,date, topic,title FROM ".$xoopsDB->prefix($xoopsModule->dirname())."
inner join "
.$xoopsDB->prefix($xoopsModule->dirname()."_state")." on state = cid
inner join "
.$xoopsDB->prefix($xoopsModule->dirname()."_sex")." on sex = sid
inner join "
.$xoopsDB->prefix($xoopsModule->dirname()."_category")." on category = catid
WHERE id = '
$id'");
while (list(
$uid,$id,$user,$active,$sex,$category,$name,$email,$city,$state,$country,$hobby,$partner,$height,$weight,$birth,$pic,$Description,$imgname,$imgtime,$date,$topic,$title) = $xoopsDB->fetchRow($view)) {

// $newstatistic= $statistic + 1;
// $updatestatistic = $xoopsDB->query("UPDATE xoops_friendfinder set statistic='$newstatistic' WHERE id='$id'");


if ( $uid != ) {
$poster = new XoopsUser($uid);
if ( !
$poster->isActive() ) {
$poster 0;
}
} else {
$poster 0;
}
if (
$pic==""){
$picture="/blank.gif";
$imgname="/blank.gif";
$imgtime="";
$gimaxwight=1;

}else{
$picture=$pic;
$imgtime="/".$imgtime."";
}
#############Prepare Data to show################################
$Description $myts->makeTareaData4Show($Description,0,1,1);
$topic $myts->makeTboxData4Show($topic,0,1,1);
$hobby $myts->makeTboxData4Show($hobby,0,1,1);
$user $myts->makeTboxData4Show($user,0,1,1);
$id $myts->makeTboxData4Show($id,0,1,1);
$title $myts->makeTboxData4Show($title,0,1,1);
$weight $myts->makeTboxData4Show($weight,0,1,1);
$height $myts->makeTboxData4Show($height,0,1,1);
#################################################################

echo"
<center>
<img src=images/logo/"
.$logo." width=478 height=74><br>
<br>
</center>
<table align=center width=600 border=0 cellspacing=5><tr>
<tr>
<td width=600 height=19 colspan=2>
<p align=center>"
.$topic."</td>
<td width=200 height=51 rowspan=6> </td>
</tr>
<tr>
<td width=200 colspan=2 height=18> </td>
</tr>
<tr>
<td width=400 colspan=2 height=18>"
._DESCRIPTION."</td>
</tr>
<tr>
<td width=600 colspan=2 height=18>"
.$Description."</td>
</tr>
<tr>
<td width=200 height=3 colspan=2> </td>
</tr>
<tr>
<td width=400 colspan=2 height=18>"
._HOBBY."</td>
</tr>
<tr>
<td width=600 height=23 colspan=2>"
.$hobby."</td>
</tr>
<tr>
<td width=200 height=19 colspan=2> </td>
</tr>
<tr>
<td width150 height=19>"
._UNAME."</td>
<td width=200 height=19>"
.$user."</td>";
if(
$generateimage==1){
echo
"
<td width=200 height=243 rowspan=11><center><img src='generateimg.php?viewwidth="
.$gimaxwight."&pfad=members/uploads".$imgtime."/&bildname=".$imgname."' border=0></center></td>";
}else {
echo
"
<td width=200 height=243 rowspan=11><center><img src="
.$myts->makeTboxData4Show($picture)." border=0></center></td>";
}
echo
" </tr> ";
// <tr>
// <td width=200 height=1>"._TEXTVIEWREALNAME."</td>
// <td width=200 height=1>".$myts->makeTboxData4Show($name)."</td>
// </tr>
echo" <tr>
<td width=200 height=19>"
._TEXTVIEWEMAIL."</td> ";

if((
$anonymusemail==0) AND (!$xoopsUser)){
echo
"<td width=200 height=19>"._TEXTANONYMUSCANTMAIL."</td></tr>";
} else {
echo
"<td width=200 height=19><a href=email.php?id=".$id."> "._TEXTVIEWEMAILSEND." </td></tr>";
}

echo
"<tr>
<td width=200 height=19>State</td>
<td width=200 height=19>"
.$title."</td>
</tr>
<tr>
<td width=200 height=19>"
._TEXTVIEWCITY."</td>
<td width=200 height=19>"
.$myts->makeTboxData4Show($city)."</td>
</tr>
<tr>
<td width=200 height=19>"
._TEXTCATEGORY."</td> ";
$cat_res=$xoopsDB->query("select cattitle, catdescription From ".$xoopsDB->prefix($xoopsModule->dirname()."_category")." WHERE catid='$category'");
list(
$cattitle$catdescription) = $xoopsDB->fetchRow($cat_res);
echo 
"<td><img src=images/cat/".$catdescription." alt='".$cattitle."'></td>
</tr>
<tr>
<td width=200 height=19>"
._PARTNER."</td> ";
$pat_res=$xoopsDB->query("select sextitle, sexdescription From ".$xoopsDB->prefix($xoopsModule->dirname()."_sex")." WHERE sid='$partner'");
list(
$sextitle$sexdescription) = $xoopsDB->fetchRow($pat_res);
echo 
"<td width=200 height=19><img src=images/sex/".$sexdescription." alt='".$sextitle."'></td>
</tr>
<tr>
<td width=200 height=19>"
._TEXTWEIGHT."</td>
<td width=200 height=19>"
.$weight." ".$weightunit."</td>
</tr>
<tr>
<td width=200 height=19>"
._TEXTHEIGHT."</td>
<td width=200 height=19>"
.$height." ".$heightunit."</td>
</tr>
<tr>
<td width=200 height=19>"
._TEXTAGE."</td>
<td width=200 height=19>"
.getage($myts->makeTboxData4Show($birth))."</td>
</tr>
<tr>"
;
if ( 
$poster->isOnline() ) {
echo 
"<td width=200 height=19><img src=images/FF-On.gif width=71 height=18></td>";
} else {
echo 
"<td width=200 height=19><img src=images/FF-Off.gif width=71 height=18></td>";
}

if ( 
$xoopsUser ) {
echo 
"<td width=200 height=19><a href="java script:openWithSelfMain('".XOOPS_URL."/pmlite.php?send2=1&to_userid=".$poster->uid()."','pmlite',435,370);"><img src='".XOOPS_URL."/images/icons/pm.gif' alt='".sprintf(_SENDPMTO,$poster->uname())."' /></a></td></tr>";
echo 
"</tr><tr>";
if ( 
$xoopsUser && $directfriends==1) {
echo 
"<td width=200 height=19><a href=http://www.eulisse.com/modules/ipboard/index.php?s=3307bc67e80f6b704e9ad65d50933cc7&act=Msg&CODE=02&MID=$uid> Add to Rubrica </a></td>";

}
echo
"<td width=200 height=19> </td>
</tr>
</table>"
;
}
}
//$updatestatistic = $xoopsDB->query("UPDATE xoops_friendfinder set statistic='$newstatistic' WHERE id='$id'");
$xoopsDB->close();
} else {
echo 
"<font face=arial size=2>Unfortunatly no ID has been set so you cannot get a profile view!</font>";
}

//include "admin/foot.php";


//************************************************************
CloseTable();
include(
"../../footer.php");

?>

3
Herko
Re: Not the profile but a blank page only with 2.0.6
  • 2004/3/24 13:35

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


The Golden Rule for Blank Pages: Turn on PHP Debug (haven't you read that here somewhere before? I have posted this about 1900 times ).

Go to system admin -> preferences -> general settings, and set Debug Mode to 'php debug'. Then, return to the page that gives a blank, and then you can see what is causing this error.

Herko

4
ullone
Re: Not the profile but a blank page only with 2.0.6
  • 2004/3/26 22:42

  • ullone

  • Friend of XOOPS

  • Posts: 49

  • Since: 2003/4/24


This is not a blank page. The page exist and is visible but the profile is ghost. ...
However. It was an error in compatibility with the module Statistics. This module insert a tag "include" in header. If i cut this tag all is O.K.
In fact FriendFinder have too many bug. ...
http://www.eulisse.com/modules/friendfinder/view.php?id=1
Thank you very much to try to help me and pardon my terrible english. ...

Login

Username:
Password:

Lost Password? Register now!

Who's Online

45 user(s) are online (20 user(s) are browsing Support Forums)


Members: 0


Guests: 45


more...

Donat-O-Meter

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

Latest GitHub Commits