51
ccrstudioweb
Re: OK a tough one, personally i quit (user.php and blank page)

Quote:
snow77
I suffer the same symptom in one of the sites I have, I can see everybody elses user page except mine that just goes blank.


I, as admin, can see mine and all others. But other people as visitant, user or even moderator can't.
My Google Maps API3 and Xoops integration (Cool!):
http://www.esterecomendo.com.br/portal/



52
ccrstudioweb
Re: OK a tough one, personally i quit (user.php and blank page)

When debugging on, I get:

Fatal error: Cannot redeclare class Category in /home/maispira/www/modules/newbb/class/category.php on line 62



This is the entire class of the file:
class Category extends XoopsObject {
var $db;
var $table;
var $groups_cat_access;

function Category()
{
$this->db = &Database::getInstance();
$this->table = $this->db->prefix("bb_categories");
$this->initVar('cat_id', XOBJ_DTYPE_INT);
$this->initVar('pid', XOBJ_DTYPE_INT, 0);
$this->initVar('cat_title', XOBJ_DTYPE_TXTBOX);
$this->initVar('cat_image', XOBJ_DTYPE_TXTBOX);
$this->initVar('cat_description', XOBJ_DTYPE_TXTAREA);
$this->initVar('cat_order', XOBJ_DTYPE_INT);
$this->initVar('cat_state', XOBJ_DTYPE_INT);
$this->initVar('cat_url', XOBJ_DTYPE_URL);
$this->initVar('cat_showdescript', XOBJ_DTYPE_INT);
}

function imgLink()
{
global $xoopsModule;

$ret = "<a href='" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/index.php?cat=" . $this->getVar('cat_id') . "'>" . "<img src='" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/images/topics/" . $this->getVar('cat_image') . "' alt='" . $this->getVar('cat_title') . "' /></a>";
return $ret;
}

function textLink()
{
global $xoopsModule;

$ret = "<a href='" . XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/index.php?cat=" . $this->getVar('cat_id') . "'>" . $this->getVar('cat_title') . "</a>";
return $ret;
} //THIS IS LINE 62
} //THIS IS LINE 63




Really I've noticed that it beguns after installing the newbb
My Google Maps API3 and Xoops integration (Cool!):
http://www.esterecomendo.com.br/portal/



53
ccrstudioweb
Re: OK a tough one, personally i quit (user.php and blank page)

Hi XOOPS users!!!

I have the blank pages as well, but in my case is a little diferent.
When a user posts a article, photo or so on, it will appear a link to the poster's profile as well. But when other user or a visitant clicks on this link the page
http://www.XXXXX.com/userinfo.php?uid=1 (or other #) appears blank.

1- getting out blank spaces on mainfile didi't work.
2- <a href="<{$xoops_url}>/userinfo.php?uid=<{$xoops_userid}>"><{$block.lang_youraccount}></a> from sabahan didn't work


But I have a tip: When I log in as admin, I can see all the userinfos. Other user groups or visitants have the userinfo in a blank page...

Is it some kind of permission to access the userinfos???

Any help is welcome!!!!!!
Thanks!!!!
My Google Maps API3 and Xoops integration (Cool!):
http://www.esterecomendo.com.br/portal/



54
ccrstudioweb
Re: Stop FOREACH looping using BREAK (PHP)

JCDunnart and Dave_L: I have no words... Thanks!
My Google Maps API3 and Xoops integration (Cool!):
http://www.esterecomendo.com.br/portal/



55
ccrstudioweb
Re: Stop FOREACH looping using BREAK (PHP)

Hi, First I'm newbe on PHP, second this popunupblog is a very complex module and I could see that the variables used in the template above is used in other templates, if I chang it, it may inflict on changes in other template files.

Is it really neccessary to get the result wanted?
Is it possible to have the result wanted by changing only the html tamplete above?

I thought about BREAK, but I cant't understand -the template has the FOREACH comand, but when I add BREAK comand, there are error-. Is it possible that the PHP file restrict some comandas on template?

JCDunnart I read the manual, but if this were the only solution, I'll have a big job...

Thanks!!
My Google Maps API3 and Xoops integration (Cool!):
http://www.esterecomendo.com.br/portal/



56
ccrstudioweb
Re: Stop FOREACH looping using BREAK (PHP)

I'd tried and received the following:
This page cannot be displayed due to an internal error.

You can provide the following information to the administrators of this site to help them solve the problem:

Error: Smarty error: [in db:popnupblog_block_1.html line 20]: syntax error: unrecognized tag 'break' (Smarty_Compiler.class.php, line 580)


I'd tried to erease the foreach as well and it works: It showed only one loop, but it was showed the first post, but I want to be shown the last one
My Google Maps API3 and Xoops integration (Cool!):
http://www.esterecomendo.com.br/portal/



57
ccrstudioweb
Stop FOREACH looping using BREAK (PHP)

Hi,
The popunpoblog module block shows topics on a block by usage of a FOREACH. But I want the block to show only the first topic. To do so I need to stop the FOREACH loop using the BREAK comand. '

I read how to use it on PHP Files, but not in HTML files as it:



<{foreach item=blog_user from=$block.popnupblog}>
<table class="outer" cellspacing="0" cellpadding="5" width="100%">
<tr bgcolor="#f4f4f4">
<td bgcolor="#f4f4f4">
<font color="#999999"><strong><{$blog_user.last_update_s}></strong>
<{$blog_user.title}></font><br>
<font color="#000000" size="3" face="Verdana, Arial, Helvetica, sans-serif"><strong><{$blog_user.last_title}></strong></font>
</td>
<td>&nbsp; </td><td>&nbsp; </td>
</tr>
<td colspan=4>
<{$blog_user.last_text|replace:"img":"img hspace='5'"}>
</td>
</tr><tr>
<td align="right"><{$blog_user.commentuname}> </TD>
<td colspan=3><{$blog_user.comment}></TD>
</tr>
<{/foreach}>


I thank any help!!
My Google Maps API3 and Xoops integration (Cool!):
http://www.esterecomendo.com.br/portal/



58
ccrstudioweb
Re: Problem with 2.0.16 after upgrade

It's is happening to me as well. The server is writting corrupted file's names on template_c. I contacted xoops.br and my server help desk. But I have a target -The DB tables must be written is utf or latin?

Look:
http://www.maispira.com/vejaisto/
(written in portuguese) - The DB uses UTF but the tables' collation is in LATIN. Mustn't both of them be written in a same collation mode?

Thanks!
My Google Maps API3 and Xoops integration (Cool!):
http://www.esterecomendo.com.br/portal/



59
ccrstudioweb
Re: Only variable references should be returned by reference in .../textsanitizer.php on line 96

Thank you moderator.
My Google Maps API3 and Xoops integration (Cool!):
http://www.esterecomendo.com.br/portal/



60
ccrstudioweb
Only variable references should be returned by reference in .../textsanitizer.php on line 96

Hi Geeks!

I've been installing XOOPS on my site and at starting, on third instalation screen it apearred:

Notice: Only variable references should be returned by reference in /home/domainname/www/dinamic/install/class/textsanitizer.php on line 96

I tried to chang the CHMDO file status but the message's still there....

Has someone ever seen such error? Help me. I want to solve this problem before going on because I do know that if I don't fix it, will appear strongest erros....
My Google Maps API3 and Xoops integration (Cool!):
http://www.esterecomendo.com.br/portal/




TopTop
« 1 ... 3 4 5 (6)



Login

Who's Online

182 user(s) are online (95 user(s) are browsing Support Forums)


Members: 0


Guests: 182


more...

Donat-O-Meter

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

Latest GitHub Commits