21
dheltzel
Re: Module File for Not Found!
  • 2004/11/9 13:26

  • dheltzel

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/1/8 1


Are you putting the modules exactly one directory below the modules dir? Like this:

html/modules/agendax

(there html is the main dir of Xoops)

Also, renaming the module directories is not a good idea, as some have hard-coded directory names, like $XOOPS_ROOT/modules/agendax/myfile.php, so renaming or moving the dir would make that break.

If that's not it, can you give an example of the error message you get about the missing files?

Dennis



22
dheltzel
Re: sql for a module
  • 2004/11/5 15:51

  • dheltzel

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/1/8 1


What you are looking for is a subselect, which works in Oracle and (I think) in MySQL 4.x, but not in older version of MySQL. For this reason, I do not recommend trying to do it that way.

Instead, you should first make the count query and store the count in a PHP variable, then use that var in your query against the events table. This has the nice side effect of dealing with the case where there are no records by returning 0.

This is far less complicated that the subselect and works everywhere.

Dennis



23
dheltzel
Re: Skype
  • 2004/11/5 15:44

  • dheltzel

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/1/8 1


Quote:

Herko Coomans wrote:
My Skype ID is herko_xoops.org

What's yours?

Mine is dheltzel.
I'm sending you a contact request via Skype right now.

Dennis



24
dheltzel
Re: agendax date selector not working
  • 2004/11/1 13:24

  • dheltzel

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/1/8 1


Are you sure you have JavaScript turned on in your browser?
I haven't encountered that behavior in Firefox/Mozilla or IE, what browser and version are you using?

Dennis



25
dheltzel
Re: How do you remove the "Preferences" menu in admin.
  • 2004/10/31 19:53

  • dheltzel

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/1/8 1


Quote:

phillipd wrote:
After creating an "Admin" script for my module I note there is always a "Preferences" menu item when I "mouse over" the module icon. How do I remove this? I only have one menuitem in my menu.php. Where does the other item come from?

Thanks

Doug P

It's there because you have at least 1 config item defined in your module's xoops_version.php. The config items are managed automatically, and the preferences page is created by XOOPS to allow the admin to edit the preferences.

Dennis



26
dheltzel
Re:Why isn't smarty used in admin scripts
  • 2004/10/31 13:53

  • dheltzel

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/1/8 1


Quote:

phillipd wrote:
1) Why is it anymore awkward than just writing a module? What am I missing here?

2) What "support" was required that wasn't there previously.

3) Are there any restrictions I should know about?

4) Do you know of any other modules with admin scripts, that use smarty as the prevalent way to generate admin forms, I can use for educating myself?

Gratefully

Doug P

1) I don't consider it awkward at all. It's just like using Smarty in other pages, except you might need to adjust the path used to include files. This is pretty easy to debug (error message like "cannot find file X").

2) Maybe he means that more of the system module pages will be using Smarty out of the box. All but the system module will be removed from 2.1 and maintained separately.

3) Nope. Just remember you are in the admin dir one level down.

4) I "borrowed" my first modules code from Agenda-X and then stripped out all the un-needed code, so my modules all use Smarty in the admin pages, but you won't get much more than you would from Agenda-X.

I heartily encourage you to use Smarty everywhere. It works and obviously is easier to maintain. The fact that Smart was not used in the system module might be part of the reason that not much updating has been done there. The code is hard to understand because of all the embedded HTML. If they "Smartify" it for 2.1, that would be a huge benefit.

Dennis



27
dheltzel
Re: Agenda-X Recurring Events in Block
  • 2004/10/27 13:14

  • dheltzel

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/1/8 1


Quote:

Ruddle wrote:
Is the a way to have each recurring date show up as a seperate line in the blocks as it does elsewhere on the calendar?

We post weekly rehearsal dates and it kind of defeats the purpose of a front page content block if all that shows up is the single entry.

I wish there was a way to do this easily and efficiently. As it stands, the code to implement this would create a huge performance problem.

I have a similar situation, where I need to post regular events. The recurring events feature was designed to only handle events that are 1 or more months apart (i.e. only 1 per month).

I plan to implement a page in Agenda-X where you can rapidly enter a large number of regular events. This would have you enter the title/desc/contact stuff, then have a list of dates for the events and insert them all with a single click. It's not exactly what you want, but has some other advantages, like easily selecting a slightly different date for weeks with a holiday conflict. Since they are regular, not recurring events, you could edit the detail of each event independently after entry.

Dennis



28
dheltzel
Re: Latest AgendaX: Changing the main image
  • 2004/10/26 18:07

  • dheltzel

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/1/8 1


Quote:

Tandy wrote:
How does one change picture now?

Go into the block administration and click the edit link for the minical block.

Dennis



29
dheltzel
Re:Different start modules for member/anonymous
  • 2004/10/25 12:09

  • dheltzel

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/1/8 1


Which module do you want to use?
The module need to have (or be hacked to have) the ability to show different content depending on the users group permissions. This isn't terribly hard to do, but I think the authors of whatever module might consider it beyond the intended scope of the module. On the other hand, if you make the changes yourself you could certainly gain the functionality you want. Isn't open source great?

Dennis



30
dheltzel
Re:Plone vs. Xoops
  • 2004/10/22 22:56

  • dheltzel

  • Not too shy to talk

  • Posts: 164

  • Since: 2003/1/8 1


Quote:

amayer wrote:

Thanks for the info on Plone. Groups *do* matter to me. Is that really true about lack of groups in Plone? That amazes me!

Andy

Well, that's not accurate anymore. As of Plone 2.0, which was released last spring, Plone has very good support for groups of users. The "roles" that another poster described as groups (Manager,Owner,Reviewer,etc) are not intended to be anything like a group.

I use Plone at work for a company intranet and XOOPS for personal hacking to make community oriented sites. I am more "capable" with Xoops, but have done some fairly serious hacking in Plone, including authoring some howto's on plone.org. I consider the 2 to be completely different in focus and capability. I could never get XOOPS to work as smoothly as Plone for our company intranet. For one thing, the groups capability is so good it ties into our Active Directory group structure and I can grant role-based access to folders for groups that our NT admins maintain. That's extra work I don't have to do, just hook it up and forget it.

OTOH, XOOPS is so much easier to work with if you want to really customize things and don't mind coding (which I enjoy). I have written several XOOPS modules and plan to write more. I have no desire to write a Plone "product", it's just too complex. Stuff breaks that I have no idea how to fix. With Plone, I must depend much more on the kindness of the Python/zope wizards, with XOOPS I can figure it out myself.

Dennis




TopTop
« 1 2 (3) 4 5 6 ... 13 »



Login

Who's Online

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


Members: 0


Guests: 270


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