canadabri
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] Language code in new pageahh nevermind.. I had missed the tickbox in the URL mod settings…
Another useful feature would be sub-projects. I know you already have categories – but using a parent project to group together several sub-projects is also a nice feature to have.
I have used your contact page to send you info.
Actually… I have disabled all my plugins on my test site… only upstream is active.
Lots of things don’t work. I am trying to add a bug to a project, and the calendar does not work. I cannot add the bug – it wont let me. Still a problem with the mouseovers. Also things like Quick Edit of a page does not open up when clicked.
When I disable Upstream, the normal functions work again. This is with no plugins enabled other than upstream too. Maybe a javascript conflict?
Thanks Ruben,
One of the “other” systems does have a nomination capability. Any nominations on that system are manageable from the admin interface, where the nomination can be reviewed, and awarded by clicking. Just another thought.
About your suggestion – would the form have the ability to pull the achievements into a list that are admin awarded? Is there a shortcode for that?
Unfortunately, I cannot – this is on an Intranet site with no connection to the internet. But if you have an email where I can send a screenshot, I can do that.
I have an edited screenshot to send, but I don’t see an option here for attaching it to my reply. Can I send it to you another way?
This might be a bug in the latest version of UM User Tags?
Forum: Plugins
In reply to: [Postie] Comments overridedisregard… just noticed ‘comment_status’
$post[‘comment_status’]=’0′ seems to work.
$post[‘ping_status’]=’0′ does not disallow pingbacks though. What are the valid values for these two switches?Forum: Plugins
In reply to: [Postie] If this in subject, then post in that category?I got it… not sure why it makes a difference but changing $FromSMTP to $value made the script do exactly what I wanted it to do.
Forum: Plugins
In reply to: [Postie] If this in subject, then post in that category?I think I am just not getting the $strFromEmail populated properly. Not sure why.
I have tested by moving this line around:
$post['post_category'][0] = $HealthCheckSubjectArray[$topic][1]; //set default category
When I have it as shown in my code above, the incoming email does not get categorized at all. It just gets left in “Uncategorized”, which is the default category.
When I place the line right after:
foreach ($HealthCheckSenders as $FromSMTP) {
the incoming email does get placed in the category I specified for the subject in the array.Forum: Plugins
In reply to: [Postie] If this in subject, then post in that category?I actually am trying to use the debugging methods, but I am not getting anything.
I created the ‘test_emails’ folder, but I am not getting any content in there.When I put:
ErrorEcho()
DebugEcho()
DebugDump()in my function, it seems to stop it from working… when I take them out, the email gets processed, but not correctly.
Here is where I am at so far:
add_filter('postie_post_before', 'auto_categorize_post', 10, 2); ?function auto_categorize_post($post, $headers) { $HealthCheckSenders = array( "[email protected]", "[email protected]" ); // Category Name ID // ------------- --- // Test 40 // Parent 41 // SubCategory 42 $HealthCheckSubjectArray = array( array("Subject 1",40,41), array("Subject 2",40,41), array("Subject 3",40,42) ); $strFromEmail=$headers['from']['mailbox']."@".$headers['from']['host'] foreach ($HealthCheckSenders as $FromSMTP) { if (stristr($strFromEmail, $FromSMTP)) { for ($topic=0; $topic<count($HealthCheckSubjectArray); $topic++) { if (stristr($post['post_title'], $HealthCheckSubjectArray[$topic][0])) { $post['post_category'][0] = $HealthCheckSubjectArray[$topic][1]; //set default category $post['post_category'][] = $HealthCheckSubjectArray[$topic][2]; //add category } else { $post = null; //don't post } } } } return $post; }
I have tested the php routine here but running this in a DOS window that echos a line, and the loops go though the HealthCheckSenders and outputs a subject for each. The loops seem to work in DOS. However I seem to be not getting past the
if (stristr($strFromEmail, $FromSMTP)) {
part so the categorizing does not fire in this script.Forum: Plugins
In reply to: [Max Mega Menu] sub menus and wpForo menu bar searchAs a tip, rather than look at the menu z-index, inspect the z-index of the search icon and see if you can reduce it so that it goes below the menu.
This worked, I used developer mode to look at page. They had their z-index set to 10 (not sure why). I reduced it one at a time until it disappeared, and updated their css file with the new value. Works perfectly now.
Thanks!
Forum: Plugins
In reply to: [Postie] If this in subject, then post in that category?I am making some progress, but still not getting something.
How do you pull the sender’s smtp from the $headers array?
I see from the documentation that to use headers, you need this:
add_filter('postie_post_before', 'my_postie_post_before', 10, 2); function my_postie_post_before($post, $headers) {
what does the 10,2 mean in the add_filter line?
would I get the from smtp in this manner?
$strFromSMTP=$headers['from']['mailbox']."@".$headers['from']['host']
- This reply was modified 6 years, 1 month ago by canadabri.
Forum: Plugins
In reply to: [Postie] If this in subject, then post in that category?When setting categories in this method (using filterPostie.php), I assume you must use the numeric ID for the category?
I used a simplified version of setting the category to test, and I noticed that my post went into my category (using ID #), but it also went into the Default Category that Postie is configured to use (for now, Uncategorized). How would you specify to not use the default category?