1
pwalter
Re: creating custom objects in a xoops session
  • 2006/6/30 5:39

  • pwalter

  • Just popping in

  • Posts: 10

  • Since: 2004/1/26


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



2
pwalter
Re: creating custom objects in a xoops session
  • 2006/6/29 13:59

  • pwalter

  • Just popping in

  • Posts: 10

  • Since: 2004/1/26


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



3
pwalter
creating custom objects in a xoops session
  • 2006/6/29 3:46

  • pwalter

  • Just popping in

  • Posts: 10

  • Since: 2004/1/26


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



4
pwalter
Re: [PAID WORK] New xoops 2.x module request
  • 2005/6/13 21:52

  • pwalter

  • Just popping in

  • Posts: 10

  • Since: 2004/1/26


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



5
pwalter
[PAID WORK] New xoops 2.x module request
  • 2005/6/12 5:15

  • pwalter

  • Just popping in

  • Posts: 10

  • Since: 2004/1/26


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 athttp://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!



6
pwalter
modifying a module template file
  • 2004/2/28 4:44

  • pwalter

  • Just popping in

  • Posts: 10

  • Since: 2004/1/26


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?



7
pwalter
Re: Modifying Module Blocks Administration details
  • 2004/1/27 18:01

  • pwalter

  • Just popping in

  • Posts: 10

  • Since: 2004/1/26


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?



8
pwalter
Modifying Module Blocks Administration details
  • 2004/1/26 17:14

  • pwalter

  • Just popping in

  • Posts: 10

  • Since: 2004/1/26


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



Login

Who's Online

169 user(s) are online (59 user(s) are browsing Support Forums)


Members: 0


Guests: 169


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