shearamariz
Forum Replies Created
-
same error getting. Any solutions on this?
Forum: Fixing WordPress
In reply to: Images not showingyou have to make sure that your home url is in https. If your images are in the uploads folder then that won’t be a problem.
Forum: Fixing WordPress
In reply to: Images not showingI just forgot to make the database into https.
May I ask how did you sort it out @essentiallyholistic? Thank you.
Forum: Reviews
In reply to: [Strong Testimonials] Gave upWell you should try this plugin again. They have a demo site for the shortcode plugins. Here’s the link: https://demos.wpmission.com/strong-testimonials/examples/all-testimonials/
I really recommend this plugin! Cheers! ??
Forum: Plugins
In reply to: [WordPress Social Login] Send Welcome Emailhi Alex,
Good day!
I have emailed you with the function. I hope you can respond. Thank you so much.
Best regards,
MarizForum: Plugins
In reply to: [bbPress Moderation] Redirect after Creating TopicOkay I made this thing possible by adding this code in the redirect function. Thanks.
Forum: Plugins
In reply to: [bbPress] BBpress Create Topic RedirectThanks Stephen. By the way just want to ask if there is some code in bbpress or function to separate pending posts and publish posts?
It’s just it queries all topics. Do you think this is still under bbpress moderation? or it is now under bbpress codes?
Thanks once again.
Forum: Plugins
In reply to: [bbPress] BBpress Create Topic Redirectthe thing here stephen is that the author has no update anymore. I just want to post it here and someone might give me an idea. Thanks for the response.
Forum: Plugins
In reply to: [WordPress Social Login] redirect_uri_mismatch for Google LoginOh Problem solved!
Forum: Plugins
In reply to: [WordPress Social Login] redirect_uri_mismatch for Google LoginI can’t change the client id in my google api console. May you please elaborate your instructions more @grv007?
Thanks.
Forum: Hacks
In reply to: add user notification in bbpress moderationI haven’t tried this yet but I’ll keep you posted.
I have a new problem that needs to be fix first than this.
Thanks for the help @bcworkz.. ??Forum: Hacks
In reply to: pending topics must be viewable to the author only – bbpress moderation pluginI didn’t get the answer yet but I’ll post it here if ever I got it.
Thank you so much for the help bcworkz. ??Forum: Hacks
In reply to: pending topics must be viewable to the author only – bbpress moderation pluginHi Bcworkz,
Good day!
I have made it! I just got your idea above about the query. Please see my code below:
function posts_where($where = '') { $user_ID = get_current_user_id(); /* * Typical $where is: * * " AND wp_posts.post_parent = 490 AND wp_posts.post_type IN ('topic', 'reply') AND * (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'closed' OR wp_posts.post_author = 1 * AND wp_posts.post_status = 'private' OR wp_posts.post_author = 1 AND wp_posts.post_status = 'hidden') * */ // Real UGLY hack to add 'pending' post statuses to the // list of returned posts. Changes to whitespace are gonna shoot us // in the foot - regex anyone ? // // Might possibly mess up the query for posts without publish status !!!! // // fix to allow DB prefixes global $wpdb; $where = str_ireplace($wpdb->prefix."posts.post_status = 'publish'", "(".$wpdb->prefix."posts.post_status = 'publish' OR ".$wpdb->prefix."posts.post_status = 'pending' AND ".$wpdb->prefix."posts.post_author = ".$user_ID.")", $where); return $where; }
thank you so much for the idea.. ??
Anyways I have found an awkward situation, I just want to make the pending post be viewable to the user profile only not in the topics area of a certain category/forum. I’m debugging it now. I’ll post my code if I got it. I hope you can enlighten me once again.Thank you so much! ??
Forum: Hacks
In reply to: add user notification in bbpress moderationThanks for the response @bcworkz.
I have done it using this line of code:function notify_user($post_id) { if (get_option(self::TD . 'notifies')) { $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES); $blogurl = get_option('home'); $author = wp_get_current_user(); /* Add body of topic/reply to email */ $post = get_post($post_id); $title = $post->post_title; $message = sprintf(__('Your Topic is under moderation in %s: %s', self::TD), $blogname, $blogurl) . "\r\n\r\n"; $message .= $post->post_title . "\r\n" . $post->post_content . "\r\n\r\n"; wp_mail($author->user_email, $blogname, $title, $message); } }
I’ve got it running but my problem here is I can’t edit it’s style or how it supposed to show. thanks once again for the help.