1
MIchaelMcA
Re: $xoops_isadmin, $xoops_isuser, but $xoops_?
  • 2007/6/8 8:37

  • MIchaelMcA

  • Just popping in

  • Posts: 13

  • Since: 2005/5/1 1


I'm sure that's probably just a syntax error - have you sorted it out yet?

leostotch - that was great! well done. This or something similar definitley needs to be in the XOOPS core



2
MIchaelMcA
Set notifcation permission based on group membership
  • 2007/1/21 16:25

  • MIchaelMcA

  • Just popping in

  • Posts: 13

  • Since: 2005/5/1 1


Hi there,

Is there a way to control the visibility of a notification option based on a persons group membership in XOOPS version 2.0.13?

This is useful when, for example, you would like webmasters to have the option of being notified when a news item has been submitted awaiting approval, but would like to not allow any other users of the website to be able to recieve the notifcation.

Many thanks for the answers,
Michael



3
MIchaelMcA
Re: Extended Profiles in 2.2.3
  • 2006/1/26 13:11

  • MIchaelMcA

  • Just popping in

  • Posts: 13

  • Since: 2005/5/1 1


Rather than renaming the extCal class, and therefore having to edit every instantiation of it, it might be easier to check if the class is defined already before calling it. It seems pretty safe to me, and thefore should work whenever that ExtCal '(re)definition' is called throughout the site.

Near the beginning of /modules/extcal/class/PersistableObjectHandler.php add the following if statement.

change
Quote:

* @copyright copyright (c) 2000-2004 XOOPS.org
* @package Kernel
*/

class XoopsPersistableObjectHandler extends XoopsObjectHandler {

/**#@+
* Information about the class, the handler is managing


to
Quote:

* @copyright copyright (c) 2000-2004 XOOPS.org
* @package Kernel
*/
if(!class_exists('XoopsPersistableObjectHandler'))
{
class XoopsPersistableObjectHandler extends XoopsObjectHandler {

/**#@+
* Information about the class, the handler is managing
.

And you need to close the if statement with a '}'at the end of the file as well, i.e.

Change
Quote:

return $rows > 0 ? $rows : true;
}
return false;
}
}
?>


to
Quote:

return $rows > 0 ? $rows : true;
}
return false;
}
}
}
?>



4
MIchaelMcA
Re: error trying to clone a block
  • 2005/12/20 20:49

  • MIchaelMcA

  • Just popping in

  • Posts: 13

  • Since: 2005/5/1 1


Here's a solution, not quite an answer: I can fix it, but I don't know what the problem was.

I was having the same problem. I had all the correct files in place and references were correct etc. so after triple checking everything, I decided that I would copy files for a block from the news module along with it's template and xoops_version.php entry to the respective directories of the module where i wanted to create the new block.

Then, slowly, one by one I changed each of the variables in xoops_version.php to point to the files, and say the corrent words for my new module - un-installing and re-installing the module each time I made a change. I thought like this, I would be able to pin point the problem, but I couldn't! but it works!! so who cares?!

Well, it is bugging me actually, but I'll get over it one day.

Hope that helps someone!

Michael



5
MIchaelMcA
Formatting problem - XoopsFormDateTime - maybe Javascript related
  • 2005/11/19 22:36

  • MIchaelMcA

  • Just popping in

  • Posts: 13

  • Since: 2005/5/1 1


I've been having a problem using the XoopsFormDateTime and XoopsFormTextDateSelect in a form on a module I'm building. As soon as I put it into a form, the theme becomes slighly corrupted - a white border appears at the edge of the browser, a large border appears around the table and the menu looks wrong. Compare thishttp://www.thirdsectordesign.org/xoops_problem/right.jpg with thishttp://www.thirdsectordesign.org/xoops_problem/wrong.jpg

The code I'm using to general the form is

Quote:
$org_search_list_form = new XoopsSimpleForm(_MD_NIGIDB_ORG_SEARCH_CRIT, 'org_search_list_form', 'org_search_list.php', 'GET');
$org_search_list_form->addElement(new XoopsFormTextDateSelect('caption', 'datetime', 15, 0));
$org_search_list_form->assign($xoopsTpl);


And my template looks like this (excuse the uninentionally rendered html)
Quote:

<table class="outer">
<form name="<{$org_search_list_form.name}>" method="<{$org_search_list_form.method}>" action="<{$org_search_list_form.action}>">
<{foreach item=element from=$org_search_list_form.elements}>
<{if $element.hidden != true}>
<tr><td class="head"><{$element.caption}></td><td class="<{cycle values="even,odd"}>"><{$element.body}></td></tr>
<{else}> <{$element.body}>
<{/if}>
<{/foreach}>
</form>
</table>


I've noticed that the problem disappears when I copy the source code of the displayed page into a new html document and delete the Javascript at the top.

I'd be really grateful to know what I am doing wrong and / or why this is happening. I'm running XOOPS 2.0.13 on a localhost.

Thanks,
Michael

PS. I'll be releasing the module - a database for voluntary sector infrastructure organisations - when it is presentable, as it a limited number of people should find it useful.



6
MIchaelMcA
Dynamically retreive module directory name
  • 2005/11/13 9:21

  • MIchaelMcA

  • Just popping in

  • Posts: 13

  • Since: 2005/5/1 1


Hi there,

Can you tell me how to dynamically retreive the current module's directory in code on a module page? $xoopsModule->getvar('dirname ') isn't working for me.

I want to retrieve it like this to save me work if I decide to rename the modules directory name duiring or after development.

I can't see any examples in other modules that do this, which suprised me. It made me think that maybe it's not a good idea to do it. Either that or I'm not looking hard enough . If it isn't a good idea, I wonder if you could tell me why?

I'm using XOOPS 2.0.13

Thanks a lot!

Michael



7
MIchaelMcA
Support for mailing list management
  • 2005/9/6 23:06

  • MIchaelMcA

  • Just popping in

  • Posts: 13

  • Since: 2005/5/1 1


Hi there,

I want to use XOOPS to develop a portal with support for management of mailing lists. Crucially, I want users to be able to send emails to mailing lists by addressing an email to a mailing list email direct from their email clients - pretty much a standard mailing list management function.

My initial thoughts use a seperate mailing list manager and develop a module that allows administration of this MLM from XOOPS.

Does that sound like a good way to go about it? If so, any suggestions on a MLM to use - of course I need one that can be administrered from a PHP script. Or am I missing a trick? Is this idea a bit 'pie-in-the-sky'? Can you think of a better solution.

Thanks for the help.
Michael



8
MIchaelMcA
Partners for developing modules
  • 2005/6/30 15:30

  • MIchaelMcA

  • Just popping in

  • Posts: 13

  • Since: 2005/5/1 1


Hello again,

I’ve just finished a proposal for development of a XOOPs portal for the local charity I work at. The portal will be a website for the general public and for members of the charity, and also act as an intranet and database for staff at the organisation.

Much of the portal will be developed using existing XOOPs modules, but some specific functionality (mostly centred around the internal database) will be ported from an existing PHP and MySQL solution I developed in house, and thus will require a little work.

Pressures of time mean I’m interested in developing modules in partnership with others. A small amount of funding attached to this work, and the results would be happily contributed to the XOOPs project. After a relatively quick search inside and outside the XOOPs site, I couldn’t find any developers offering their services in this way. Which makes me think that perhaps XOOPers don’t work like this. Am I right?

Given the above, how would you suggest I moved forward? Does it sound sensible? Where should I find partners? And what are anyone’s previous experiences?

Many thanks for your insights,
Michael



9
MIchaelMcA
Re: Developing custom CRM system for XOOPS
  • 2005/6/6 16:20

  • MIchaelMcA

  • Just popping in

  • Posts: 13

  • Since: 2005/5/1 1


OK, very helpful, thanks a lot for these. I'll post my first usable version



10
MIchaelMcA
Best module to explore code
  • 2005/6/6 16:18

  • MIchaelMcA

  • Just popping in

  • Posts: 13

  • Since: 2005/5/1 1


Can anyone give me directions around exploring the XOOPs code? Specifically, I want to create a new module, and I was wondering if you had any recommendations for a module I should look at first.
Thanks a lot,
Michael




TopTop
(1) 2 »



Login

Who's Online

120 user(s) are online (66 user(s) are browsing Support Forums)


Members: 0


Guests: 120


more...

Donat-O-Meter

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

Latest GitHub Commits