deputy963
Forum Replies Created
-
Forum: Plugins
In reply to: [Replyable - Subscribe to Comments and Reply by Email] 2.2.8 crashing siteNot seeing the update in the dashboard. 2.2.8 is installed, but not activated (fatal error).
Forum: Plugins
In reply to: [EWWW Image Optimizer] Critical error on your site After EWWW plugin updateSame problem here. I even renamed the initial folder and reinstalled from the repo with the same error. I’ll wait for a fix from the author.
Forum: Plugins
In reply to: [LiteSpeed Cache] Images are gone from pages after cache purgeWow, not sure how that was selected, but un-selecting worked. Thank you!
Forum: Plugins
In reply to: [The SEO Framework – Fast, Automated, Effortless.] PHP Warnings in error logI do notice the title is missing the site name. I’ll look into the title fix extension. BTW, where do I find these extensions?
Other than that I wasn’t too worried about the error, except for the 150MB error log that was growing very quickly. Looking forward to the next version!
Forum: Hacks
In reply to: Add shortcodes,text, and htm to a category and its' childrenThanks for all your help (and patience) BC. I’ve tried, and it errors out on the $text variable and I’m sure it has to do with the formatting of the shortcodes/html. There are no single quotes to escape so it has to be incorrectly formatted for PHP (the shortcodes and html).
Thanks for the time and advice. I’ll give WP Net a shot.
Forum: Hacks
In reply to: Add shortcodes,text, and htm to a category and its' childrenBC,
Sorry for the late reply. I was joking, but with my current time restraints maybe posting in the other forum would be best.So…
add_filter('the_content', 'custom_category_text'); $cats = array(1,2,3,4); //cat IDs for which to append content $post_cats = wp_get_post_categories($post->ID); if(in_array($post_cats[0], $cats)) $content .= do_shortcode('some added content with [shortcode]'); return $content;
The added content is something like this…
[hide_from level="subscriber"] <span style="color: #ff0000;"><strong>This content is exclusively for xxxxxx Members.</strong></span> <strong>If you are a Member please <a href="https://www.xxxxxx.com/member-login/" target="_self">Log In</a>.</strong> Not a Member? Please Consider <a href="https://www.xxxxxxx.com" target="_self">becoming one for ONLY $18/yr</a>. Membership supports the site and gives users access to many exclusive resources not available to non-members, as well as substantial discounts on store merchandise. <ul> <li>Exclusive in-depth content ONLY for subscribers!</li> <li>Large color screenshots illustrate the instructions!</li> <li>Email notification of each new post to the Member’s Area!</li> <li>Exclusive discounts on books and other products!</li> </ul> [add_to_cart item="1" ajax="yes" ]
which is where I’m having a big problem as I don’t understand how to format it correctly in PHP so the shortcodes and html work.
Forum: Hacks
In reply to: Add shortcodes,text, and htm to a category and its' childrenThanks for the help so far bcworkz!
Would this still go in the functions.php file as a function?
As I said, my PHP skills are severely lacking – I can sort of follow along…
1. creating an array
2. setting a post_cats variable
3. using an if statement to say if posts_cats does not = 0 and does = one of the categories in cats then display the code.But, the “content” appears complicated to me, at least in PHP terms. There’s 3 shortcodes and html along with inline styling.
Heck, how much to write the code out for me or spell it out in “even an idiot could do it” language? ??
Forum: Hacks
In reply to: Add shortcodes,text, and htm to a category and its' childrenWow, quite a bit more complicated than I though and definitely above my experience, or lack thereof, level. I’m at a loss, with no idea how to proceed.
Maybe I should just copy/paste the content, though having it automated (and changeable in one location) would be awesome!
Forum: Plugins
In reply to: [Contact Form DB] How to alter the information stored in the databseMichael, I did not. In my excitement I completely forgot about changing the code in the mail section. Pretty sad, I know.
Forum: Plugins
In reply to: [Contact Form DB] How to alter the information stored in the databseJust a little update. I created a child theme (I’ll figure this out yet)and added the code above to a new functions.php in the child and it works, but with the same error!
Forum: Plugins
In reply to: [Contact Form DB] How to alter the information stored in the databseThank you Michael. I really appreciate the help!
Added to functions.php and php works, but causes CF7 to throw a Failed to submit error, even though data does show in the DB – without the email I might add. ??
A sample of the actual data would be “WOOD – Dayton|[email protected]” and everything from the pipe to the right is stripped as expected. Would a simpler solution be to just grab the leftmost 4 characters as they are the important ones?
I can sort of follow the code, but this is about all I understand.
Line3/4 is setting variables.
Line5 looks like it’s checking $formName against $fieldname.My goal is to create a new page that will populate a table based on the first 4 characters in the above field, a date field, and a null value in a third field (i.e., display WOOD, for mm/dd/yyyy, where no one has entered their initials). Add a required field for initials and a submit button to add to that database field. If I understood the first thing about PHP I think I would be as simple as a few if-else statements and echo variables in the table cells (yes, I have dreams of grandeur and little knowledge to back them up).
Yeah, still no luck here either!
Content shows in the editor, but visitors to the page see nothing. It doesn’t even show in the html source for the page so I think that eliminates a CSS issue.The only workaround I’ve found is the stop using the excerpts, which is THE reason I liked this plugin.
Anyone?