xoops forums

Forum Index


Board index » All Posts (pwalter)




pwalter

Just popping in
Posted on: 2006/6/30 5:39
pwalter
pwalter (Show more)
Just popping in
Posts: 10
Since: 2004/1/26
#1

Re: creating custom objects in a xoops session

Well, I thought my problem was fixed, but it isn't. My code goes something as follows:
.......
$myobj = '';
if (!empty($_SESSION['mydata']))
{
$serobj = $_SESSION['mydata'];
if(!empty($serobj))
{
$myobj = unserialize($serobj);
}

if (!is_object($myobj))
{
$myobj = '';
unset($_SESSION['mydata']);
}
}
......
......
if (!is_object($myobj))
{
$myobj = new myobjclass($arg);
}
......
if (is_object($myobj))
{
$_SESSION['mydata'] = serialize($myobj);
}
......

The object serializes properly at the bottom of the code. The problem is that the second time I execute the code, I expect $_SESSION['mydata'] to have the serialized object in it at the top of the code block, but it doesn't. What am I doing wrong?

Peter


pwalter

Just popping in
Posted on: 2006/6/29 13:59
pwalter
pwalter (Show more)
Just popping in
Posts: 10
Since: 2004/1/26
#2

Re: creating custom objects in a xoops session

McNaz,

I am not quite sure I completely understood your explanation - but I used serialize() and unserialize() successfully to fix the problem.

Many thanks.

Peter


pwalter

Just popping in
Posted on: 2006/6/29 3:46
pwalter
pwalter (Show more)
Just popping in
Posts: 10
Since: 2004/1/26
#3

creating custom objects in a xoops session

All,

I *did* search before I posted and couldn't find the answer. If I missed something, I apologize.

I have tried to store / retrieve an custom object in $_SESSION, but on retrieving the object, it does not work properly. Inspecting the object with print_r() shows that it is a "__PHP_Incomplete_Class Object". The class is defined before retrieving the object. Research indicates that to get my code to work properly, the class has to be defined before session_start() is executed in include/common.php, but it is not obvious to me how to do that without modifying either mainfile.php or common.php. Could someone point me to the correct way I should be doing this?

Peter


pwalter

Just popping in
Posted on: 2005/6/13 21:52
pwalter
pwalter (Show more)
Just popping in
Posts: 10
Since: 2004/1/26
#4

Re: [PAID WORK] New xoops 2.x module request

Herko,

Thank you for your response and clarification. I have emailed / pm'ed several of the persons you mentioned, and I hope for a response soon.

Peter


pwalter

Just popping in
Posted on: 2005/6/12 5:15
pwalter
pwalter (Show more)
Just popping in
Posts: 10
Since: 2004/1/26
#5

[PAID WORK] New xoops 2.x module request

I am an application programmer, a relative newbie to xoops/php, and I probably only rate a 3 (out of ten) in terms of my understanding of the internals of xoops, and my php programming capabilities. I need particular XOOPS functionality for a project I am working on, similar to functionality I have in another development environment, but I have not found any published module that addresses all my needs. I am willing to finance the development of the module I need, subject to the module being released to the general community as an available module for xoops, under the standard license. The financing can be to the XOOPS coder directly, to xoops.org as a contribution, or a combination of both. I am looking for a *very* experienced developer to do this project, which must be compatible with (but not require) smarty templates, and XOOPS 2.1.1 and above.

The basics of the module have to do with generating "wizard"-like html screens in an application, for use mainly with handheld devices that support html display on small screens, although support for standard monitors is also required; the generated screens have to support dynamically generated css, a set of standard DHTML functions using javascript to communicate in an event-oriented fashion with php scripts on the back-end, manipulation of a MySQL data table associated with the application, and so on. A complete functional description will be available to experienced developers who wish to quote on this project.

The nearest XOOPS module I have found to what I am looking for is
No-Ah (http://dev.xoops.org/modules/xfmod/project/?xdb), but the paradigm it uses does not quite meet my needs. A useful class that partially met my needs is found at http://www.phpclasses.org/browse/package/2251.html, but I am looking for a comprehensive solution that will reduce my XOOPS coding efforts in the future.

If anyone is interested, feel free to PM me or to reply to this post. Let me know how experienced you are in XOOPS 2.x module development - I do not think this project is suitable for newbies, at least not for me!


pwalter

Just popping in
Posted on: 2004/2/28 4:44
pwalter
pwalter (Show more)
Just popping in
Posts: 10
Since: 2004/1/26
#6

modifying a module template file

I would like to make a minor change to the xoopsgallery_index.html file located in modules/xoopsgallery/templates directory. Modifying the file directly does not work - smarty (re)generates the old file (as inspected in the templates_c directory). Under Administration/System Admin/Preferences/General Settings, I checked "Yes" for the "Update module template ..." setting and placed the modified file under themes/mytheme/templates as instructed, but I still cannot get the changes recognized. What am I doing wrong?


pwalter

Just popping in
Posted on: 2004/1/27 18:01
pwalter
pwalter (Show more)
Just popping in
Posts: 10
Since: 2004/1/26
#7

Re: Modifying Module Blocks Administration details

kahumbu,
Thank you very much for responding. However, if you can not modify the attributes of blocks assigned to a particular group here, then why are the "side", "weight", and "visible" attributes settable, with a "submit" button? What purpose is intended here?


pwalter

Just popping in
Posted on: 2004/1/26 17:14
pwalter
pwalter (Show more)
Just popping in
Posts: 10
Since: 2004/1/26
#8

Modifying Module Blocks Administration details

I am a newbie to xoops. I am having a curious problem with Blocks Administration - whenever I try to change the details for a particular Group (webmasters, registered users, etc), then hit the "submit" button, it changes the details for ALL groups!. I tried this with both IE 6.0 and NS 7.1. Perhaps I do not understand the screen. What am I doing wrong?



TopTop