1
jorge
Smarty variables lost when cache module is on: xoops_pagetitle, xoops_meta_description, ...
  • 2008/9/5 10:29

  • jorge

  • Just popping in

  • Posts: 23

  • Since: 2004/5/17


Hello to all!

I've 2.017 XOOPS version installed. I've been using it since 4 years and all runs fantastic except of one thing:

When I put the cache of some module "on", all variables that I store for the main smarty template disappears.

For example:
$xoopsTpl->assign('xoops_pagetitle', 'Assigned_Title');
$xoopsTpl->assign('xoops_meta_description', 'some_description');
$xoopsTpl->assign('xoops_module_header', 'Some_meta_data');

¿Is this a general problem or only mine?

Thanks in advance,
Jorge



2
jorge
Re: Newbb2 problems Unable to edit forum for permissions
  • 2008/8/22 9:58

  • jorge

  • Just popping in

  • Posts: 23

  • Since: 2004/5/17


If you don't want to update all the module to:
https://xoops.org/modules/repository/singlefile.php?cid=20&lid=1643

You can update only the 'formselectuser.php' file to:
require_once XOOPS_ROOT_PATH . "/class/xoopsform/formselect.php";

class NewbbFormSelectUser extends XoopsFormSelect
{
function NewbbFormSelectUser($caption, $name, $start = 0, $limit = 200, $value = null, $include_anon = false, $size = 10, $multiple = true)
{
$this->XoopsFormSelect($caption, $name, $value, $size, $multiple);

$criteria = new CriteriaCompo();
$criteria->setSort('uname');
$criteria->setOrder('ASC');
$criteria->setLimit($limit);
$criteria->setStart($start);

$member_handler = &xoops_gethandler('member');
if ($include_anon) {
global $xoopsConfig;
$this->addOption(0, $xoopsConfig['anonymous']);
}
$this->addOptionArray($member_handler->getUserList($criteria));
}
}

Regards!



3
jorge
Session Expiration --> Post not accepted
  • 2008/3/10 19:53

  • jorge

  • Just popping in

  • Posts: 23

  • Since: 2004/5/17


Hello to all,

I've a 2.0.13 version XOOPS site with NewBB2 module.

I've adjusted the session time to 15 min, so users have 15 min to write a post in the forum.


I would like to eliminate this limitation but I don't like to extend the session time because I want to use the online block.

Is there any way to do it by making little modifications into the code?

Thanks in advance!

Jorge



4
jorge
Re: Controlling members out of XOOPS
  • 2008/1/16 15:59

  • jorge

  • Just popping in

  • Posts: 23

  • Since: 2004/5/17


Congratulations for your work nachenko,

I've test your web and it's Ok, but I can't access to the xoopsUser object.

Are you sure you only include mainfile and header? Do you make something else?

Best regards!
Jorge



5
jorge
Re: Controlling members out of XOOPS
  • 2008/1/16 11:03

  • jorge

  • Just popping in

  • Posts: 23

  • Since: 2004/5/17


Thanks for your help nachenko,


I've write:

include "XXX/mainfile.php";
include "XXX/header.php";

if ($xoopsUser) {echo "Sí";} else {echo "No";};


The response is always "No".

What can I prove?



6
jorge
Controlling members out of XOOPS
  • 2008/1/16 10:11

  • jorge

  • Just popping in

  • Posts: 23

  • Since: 2004/5/17


I have a XOOPS based site (2.0.13 version) and I would like to continue controlling the members in another part of the site.

The new code is written in PHP as well. I've been trying thinks like that:

include "XXX/mainfile.php";
include "XXX/include/common.php";
$uid = $xoopsUser->getVar('uid');


What collection of functions do I have to call to take control of the user session in XOOPS?

Kind regards, thanks in advance,

Jorge



7
jorge
Re: System login hacked
  • 2007/9/22 23:04

  • jorge

  • Just popping in

  • Posts: 23

  • Since: 2004/5/17


Ohhh Trabis,

thank's a lot!!, thank's!!!!!


I've repaired session table and all is running normally.

Jorge



8
jorge
System login hacked
  • 2007/9/22 20:42

  • jorge

  • Just popping in

  • Posts: 23

  • Since: 2004/5/17


Hello to all,

I have a 2.07 version XOOPS site.

My site has been running with no problems during two years, but yesterday the system did not let me to log in.

Now, no user can log in, the site is walking alone.

I know I have to update the system to the last version, but first I have tried to change all files with a security copy and the problem continues. I can't log in to the system, and I need to enter in order update it.

What can I do?

Thanks in advanve, sorry and for my english,

Jorge



9
jorge
Re: Error loading mimetypes definition
  • 2007/4/12 9:40

  • jorge

  • Just popping in

  • Posts: 23

  • Since: 2004/5/17


Hello Tom,

thanks for you answer.

I have a replication of my site and I have already made the upgrade in it to 2.0.16, but the problem persists.

I realice that this is not a bug o XOOPS, maybe some file is corrupted or I have done something that affects that system.

If someone have a clue about this problem, It will be very helpful for me.

Thanks,
Jorge P



10
jorge
Error loading mimetypes definition
  • 2007/4/12 9:10

  • jorge

  • Just popping in

  • Posts: 23

  • Since: 2004/5/17


Hello,

I've problems with upload avatars system.

All my site runs very well instead of this point.

I have applied the patch 2.0.9.2 to 2.0.9.3 and the problem was corrected for a few days. Now I have the same problem again, and I don't know what to do. I'm really confused, because It was running ok at the beginings.

The system response is:

Errors Returned While Uploading
Error loading mimetypes definition

Thans in advance,
Jorge P




TopTop
(1) 2 3 »



Login

Who's Online

181 user(s) are online (130 user(s) are browsing Support Forums)


Members: 0


Guests: 181


more...

Donat-O-Meter

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

Latest GitHub Commits