Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter rockwell08

    (@rockwell08)

    I see that they’ve updated the NextGEN Gallery plugin a couple of times. The first update fixed NextGEN Plus. I was able to enable it and roll my galleries back to the Plus features that they had been using previously.

    I hope that this fixed it for everybody else on this thread as well. I’m going to mark this particular thread as resolved. I’m sorry if anybody else is having the same problem, but theirs is not yet resolved.

    Thread Starter rockwell08

    (@rockwell08)

    I ended up writing my own plugin to bind a user to their own category. When a user signs up, I just created a category for that user, then when that users posts, i just make sure that the post gets assigned to that user’s category.

    Thread Starter rockwell08

    (@rockwell08)

    I’ll check out Adminimize, it sounds like it’ll do the trick. I ended up using Flutter to create custom write panels, and hiding what I didn’t want users to see, then hijacking the navigation to hide the post options that I didn’t want users to access in the first place.

    Thread Starter rockwell08

    (@rockwell08)

    Nobody has any ideas on how to do this? Disallowing users access to certain modules, and loading defaults for users would be a very powerful way to allow users to only post to a particular category…

    I’ve looked into TDO mini forms, which is an awesome plugin, but I just don’t think it’s robust enough for what I’m trying to do. I would like users to be able to use the media tools available in the post publishing interface that WordPress provides…

    Thanks again!

    Thread Starter rockwell08

    (@rockwell08)

    Web11, I just installed it and ran with it. It doesn’t do anything administratively, but it does restrict which categories a user can post to, just not what categories a user can see. I’m also using TDO mini forms, and everytime a user posted from the form, it posted to a specified category (in my case, I created a category for each user upon account creation). It ended up not being exactly what I needed, so I’ve extended TDO Mini forms a little more to get what I need.

    Probably not exactly what you were looking for, but I hope it gives you some direction…

    Thread Starter rockwell08

    (@rockwell08)

    I’ve been playing some more with this, and it appears it does work, it just doesn’t display properly in the control panel, since the new update to the admin interface with the modules and everything.

    It looks like only the display needs to be updated…

    Thanks!

    Thread Starter rockwell08

    (@rockwell08)

    Ok, I got it, it was much easier than I anticipated it to be. I hope this helps somebody else along their way…

    The add_action(‘user_register’, ‘jarredsUserCategory);

    link calls a function that I’ve written, named jarredsUserCategory. The user_register hook returns a $user_id variable to be used, it’s just not passed in the typical manner that variables are passed between functions (as far as how you know it’s being passed). You still use it exactly the same in your own function.

    So, for example, the jarredsUserCategory plugin file may look like:

    function jarredsUserCategory($user_id) {
    echo($user_id);
    }

    add_action ( ‘user_register’, ‘jarredsUserCategory’ );

    So there it is, it’s much more simple than I had anticipated it to be. WordPress continues to make me happy…

    The function that you create can be anything you like, I’m going to try to use it to create categories for each individual user that signs up. Now actually naming the category properly so it’s display name makes sense and looks right, and actually getting the user to only post to that category are completely different things, but 1 thing at a time, right?

    Thanks again!

    Thread Starter rockwell08

    (@rockwell08)

    Thank you for the reply. While I’m not new to PHP, I am new to writing plugins for WordPress, so I have what is probably a very simple question…

    I am using the following line to add functionality to the user_register hook…

    add_action ( ‘user_register’, ‘jarredsUserCategory’ );

    and I have a jarredsUserCategory function that I will use to do this. I’ve run a simple javascript alert that works, so I know that it’s being fired. The thing I can’t figure out is how to get the newly created user’s ID. I will be creating the categories based on the user ID, so if I can get that, then I’m fairly certain I can create new categories in the database with no problem. I’m just not sure where to grab that ID from in my function call.

    Again, thanks in advance for any help…

    Thanks,
    Jarred

    Thread Starter rockwell08

    (@rockwell08)

    And props to thedeadone for a total kick@ss plugin…

    Thread Starter rockwell08

    (@rockwell08)

    Excellent! Thank you very much Ivovic! I didn’t realize that the custom fields in tdomf were adding the meta information to the postdata field! This means I can query the postdata table, pull back the value I’m looking for, and get the associated post!

    WordPress is Brilliant!

    Thanks for taking 10 seconds to make the most simple response that helped me to see what I needed to find! It’s very appreciated…

    Thread Starter rockwell08

    (@rockwell08)

    Sorry, the site I’m working on is https://www.visitwise.com

    Thread Starter rockwell08

    (@rockwell08)

    I’ve decided to go ahead and let the form the user fills out just send me an email alert. I’ll do it by hand for now.

    Thread Starter rockwell08

    (@rockwell08)

    I have a feeling this is going to be a conversation with myself, oh well, at least it’ll be documented…

    I have found the following using the example of entering “Montgomery” into the “Alabama” category:

    1. WP enters the location into the database – (insert into wp_terms (name, slug) values(‘Montgomery’, ‘montgomery’)

    2. WP enters the new term into the taxonomy table – (insert into wp_term_taxonomy (term_id, taxonomy, description, parent, count) values (‘486’, ‘category’, ”, ‘184’, ‘1’)

    3. I have created a default post that is assigned to each new entry. I’m only doing this so that I don’t get a 404 error page when a user clicks on a category without any posts. I also have to do this becuase even though I have “show empty categories” turned on, the empty categories are not shown. It looks like a category is considered empty if there are no posts in it, even if there are subcategories in it. At any rate, WP seems to be assigning the post to the category. When I go to the post, either in the admin view or visit the post as a subscriber, I see “Montgomery” listed as one of the categories it is posted to – (insert into wp_term_relationships (object_id, term_taxonomy_id) values (’42’, ‘481’)

    4. After this, I go to a page that updates the WP-dTree Cache. More on this in number 6…

    5. What I’m not seeing happen though, is the newly created category show up under its parent on the Manage -> Categories page. Even though the SQL statement is executed successfully, the category doesn’t actually show up until I associate another post with it. To do this I’m using TDO Mini-forms. Once I associate a post with this category, it shows up as a subcategory of Alabama, as it should.

    6. Another interesting point is that once a category has a sub category, other sub-categories show up as expected. I only have a problem with the first sub-category I enter. So, for example, if I go through the whole thing and insert “Montgomery” as a subcategory of Alabama, using the TDO Mini-Forms method described above, the next time I insert a new category into Alabama, say, Tuscaloosa, Tuscaloosa will show up, right after I refresh the WP-dTree cache.

    So, the problem is that on the first time I attempt to create a sub-category of a category, the newly created sub-category is not recognized as a sub-category until a post is associated with it, even though I have associated a post with it, and have correctly placed it into the taxonomy.

    Am I missing a step in registering the new subcategory with the associated parent category?

    Please? Anybody?

    Thread Starter rockwell08

    (@rockwell08)

    Getting there…

    I’m using the latest version of wp-dtree, and in the description of the plugin it states that the plugin employs a cache system, and only updates the navigation when a post is published or saved…

    So my question is this then – how do I clear the cache in the wp-dtree plugin? I tried running the wp_dtree_update_cache() function, to no avail…

    Thanks, again…

    Thread Starter rockwell08

    (@rockwell08)

    Sorry, by the way, my site is https://www.visitwise.com

Viewing 15 replies - 1 through 15 (of 18 total)