Forum Activity for @gcuezy

alt=
@gcuezy
04/03/14 07:48:26PM
23 posts

Building a module from scratch-ish - 500 error


Jamroom Developers

...and by "not on my dev machine" I mean I'm on a borrowed laptop while mine's being repaired so I'm working almost completely via ftp.
alt=
@gcuezy
04/03/14 07:45:24PM
23 posts

Building a module from scratch-ish - 500 error


Jamroom Developers

So I've created a module with an index, include, schema, and quota php's. Index just has 1 view function with 1 form field (and a jrCore_page_display()). Include has the meta info, form designer support, quota support, and search fields - returns true. Quota returns true. Schema creates a single datastore. (also have a language file but don't think that matters).

I've managed to get a base set of files for my module and it appears in the admin under the proper section (Score!). When I click it I get a 500 server error.

Do I need a specific tpl (doesn't seem that way) or have I screwed something up somewhere?

I know it's tough without seeing the code, any idea off the top of your head why a 500 error would occur?

I don't have my dev machine so it's hard to search through functions but I assumed the jrCore_page_display took all the jrCore_form_create()s I called and puts it into an admin template.

I'm getting the 500 on the /admin/mod-name/info AND on the /mod-name/create (create is the only view I have).
updated by @gcuezy: 05/04/14 11:22:21PM
alt=
@gcuezy
04/03/14 06:10:03PM
23 posts

Soft Launch / Beta Test my new site please.


Off Topic

I like, where do you get all your data (if I may ask)? Manual input?

As far as the site, you may want to look into a responsive solution for your ads. The giant google banner, for example, extends past the viewport when shrunken to mobile size (not sure if there's built in mobile detection or not).
alt=
@gcuezy
04/03/14 06:07:45PM
23 posts

Planning out this module... (?)


Jamroom Developers

Appreciate all the help so far, I might just move ahead with that in mind for now.

Part of what I left out is that I'd like to have parent categories. Still having trouble wrapping my mind around how this might work, practically...

Category 1
|- Sub Cat a
|- Sub Cat b
Category 2
|- Sub Cat c
|- Sub Cat d

Where Post 1 might be a part of Cat 1, Sub Cat b, and Sub Cat d.
alt=
@gcuezy
04/03/14 05:19:40PM
23 posts

Paid for the Jamroom udemy course, then got really sad :(


Off Topic

@brian You're awesome! I appreciate it.
alt=
@gcuezy
04/03/14 10:47:23AM
23 posts

Paid for the Jamroom udemy course, then got really sad :(


Off Topic

Just went through the course, it was pretty good. Sad because I didn't realise I could've directed that $29 to the $29 vip backstage quota on jamroom.net and gotten that content anyway. Would be awesome if that was more apparent. I've bought the course, any way I can get some backstage love on jamroom.net?

Forgive me for posting here if it's in the wrong place. No forum seemed right and all the support links on the site are now internal blockades.
updated by @gcuezy: 05/04/14 02:26:41AM
alt=
@gcuezy
04/03/14 10:42:18AM
23 posts

Planning out this module... (?)


Jamroom Developers

Would I be able to make those persist across the different items still?
Not sure I understand exactly how the current select-or-add works.

These categories work more like persistent tags. Here's an example of what the form for adding items looks like in my mind -

Item URL: ______
Item Name: ________
Item Category(s): _[News],_[Inspiration],_[Favorites]_
(+ Add new category)

Where name/url are text fields and category is a multi-select.

The current setup where you select one or add a new one is nice, but I need the option for them to be selected together.
alt=
@gcuezy
04/03/14 10:31:29AM
23 posts

Custom module form on any page?


Jamroom Developers

Thanks! Can this be done on a per-module basis?
alt=
@gcuezy
04/03/14 10:29:37AM
23 posts

Planning out this module... (?)


Jamroom Developers

Thanks, the problem with that would be that I need the option to have multiple categories per 1 item.

I'd prefer they're also editable on their own too.

So should this be two modules that interact based on events or something?
updated by @gcuezy: 04/03/14 10:29:47AM
alt=
@gcuezy
04/03/14 10:24:21AM
23 posts

Planning out this module... (?)


Jamroom Developers

I'm creating a custom module for a random site idea I have (partially to get back into jamroom so we can relaunch our old site that's in limbo).

The plan is to have items that can be created (think page/post/etc but way simpler) and also to have categories that they can be in.

These categories and items need to live in separate data-stores and be related. The item may be in multiple categories and categories, although modifiable from the item form, should be able to be modified separately. The items, when they're being created, need to run a php script from the form via ajax before the form is submitted. Does this php file live on it's own in the module folder or is it a part of the index.php?

Can this realistically be one module with different views? How would I populate the "categories" multi select of the items using the categories data store... smarty templates and hidden fields?

I am a text-book overthinker and just finished the udemy Jamroom course so feel free to give what little advice you can and tell me to just start trying. I'm still a little fuzzy on the optimal structure of these things.
updated by @gcuezy: 05/04/14 11:22:28PM
  2