andrewf12
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Catch Flames] Make Mobile Navigation Menu Auto-CollapsedOMG! OMG! OMG! OMG!
You got it! It worked! OMG! lol. I hope this message doesn’t get treated as spam. Wow, I’m so happy. I’ve browsed the web like no tomorrow for solutions that were non-developer friendly and spoke to the theme developer (who’s really great with support), and when they said it required a lot of work and needed a customizer and pretty much that was it, I was like, “No…!!!”
Thank you so, so much!
What did you mean by JS relies heavily on the same class names being used for this menu?
Also, I left the default options turned on: Linking type = in the HTML document; Where on page = Header; and Where in site = In Frontend. Do you have any recommendations about whether I should change any for better performance or security (definitely more concerned about security)?
Thanks again! ??
Forum: Themes and Templates
In reply to: [Catch Flames] Make Mobile Navigation Menu Auto-CollapsedOh, it’s the least I can do. lol. Thanks for helping! ??
Forum: Themes and Templates
In reply to: [Catch Flames] Make Mobile Navigation Menu Auto-CollapsedHey, Andrew!
Thanks for quickly reply. I really appreciate it. I downloaded the Simple Custom CSS and JS by Diana Burduja in that link and I copied and pasted the last code into the ‘Add JS Code’ section. I titled it ‘Mobile Nav Menu Collapse.’
There are three options in the settings when adding a new JS (Linking type, Where on page, and Where in site) and I tried all the possible combinations in there I believe, but the sub-menu items won’t collapse ??
Here’s an image to show what it looks like: https://snag.gy/MtOBs.jpg
Store BCD and Store XYZ just won’t hide in its parent menu ‘Electronics.’
I’m sorry to trouble you, and you’ve been really helpful. If there is anymore information I can provide, I’d be more than happy to. Thanks again!
Forum: Themes and Templates
In reply to: [Catch Flames] Make Mobile Navigation Menu Auto-CollapsedDoes anyone maybe have any ideas to further enhance the code the other Andrew came up with by chance? ??
Thanks, everyone!
Forum: Hacks
In reply to: [Plugin: WP Customer Reviews] Auto-Approve Reviews, Require LoginHaha, thanks for your super awesome and detailed replies. I still couldn’t get it to work on my part, but I think there is a conflict with another plugin I have because it does make a few changes to the default layout and stuff.
I’m only using the shortcode for WP Customer Reviews and am pasting it in a column on the body of the page, so there’s probably a few things that just aren’t making this plugin compatible and user-friendly.
I’ll see if I can do away without some of the plugins or find alternatives so that WPCR can work with those available functions you helped derived. Those are pretty important to me.
Guess it’s back to getting my hands dirty. Thanks so much for your help, bcworkz! I really appreciate it! ??
Forum: Plugins
In reply to: [Max Mega Menu] Mobile sub-menus not collapsedYeah, the navigation menu on the mobile version of the website that’s on the top left of the page. I was hoping I could find a plugin that would enable this option. I spoke with the theme developer who said they couldn’t do it and that it was beyond the scope of their work. ??
Thanks for the info! I really appreciate it.
Forum: Plugins
In reply to: [Comments - wpDiscuz] Username breaks into second lineOh, yes! That screenshot just made me realize how obvious the fix was. Thank you so much! ??
Forum: Plugins
In reply to: [Comments - wpDiscuz] Username breaks into second lineOh, I see. That explains why I didn’t see the tab for Most Voted. Is there a way to keep the pagination only because it matches the review section I have. Is it easy though to make Page 1 the default page as opposed to Page 2 or the highest page number? Just curious in case I decided to keep the WP pagination settings.
Thanks a bunch! I really appreciate your help. 5-star rating for you. lol.
Forum: Hacks
In reply to: [Plugin: WP Customer Reviews] Auto-Approve Reviews, Require LoginHey, bcworkz!
I tried creating a file in my domain name’s folder called: testing789.php and then pasted the code above in the code section. I then tried pulling it up by going to: https://www.domain.com/testing789.php. I got a 404 error. I’m evidently doing something wrong here.
I tried changing ‘pending’ to ‘published,’ but no luck. I get the pop-up window saying review will be submitted for approval and I got to manually approve in the Comments section. I tried inserting the if user is logged in statement, but still looks like the default settings work.
Sorry for the trouble.
Forum: Plugins
In reply to: [Comments - wpDiscuz] Username breaks into second lineOh! It’s probably because I deleted those accounts and was testing. That makes sense. Sorry about the confusion.
Is there a way to make Page 1 the default page because my WordPress settings are to display newest comments first?
A big thanks for all your help!
Forum: Plugins
In reply to: [Comments - wpDiscuz] Username breaks into second lineHey!
Thanks for getting back to me quickly. I put in the code in the Customer CSS code area in wpDiscuz Settings and what happened was the username doesn’t appear anymore in the comment section. I’m not sure of this matters, but my comment section is in a 40% width column.
Here’s a direct link to a page that will be like most pages: https://www.goo.gl/hCTcpD
The username splits into two lines when I shrink the browser to a mid-size screen or so.
Thanks again! ??
Forum: Plugins
In reply to: [Comments - wpDiscuz] Username breaks into second lineHere’s the site url: https://goo.gl/49Mbeo
I think you have to play with contracting the page to see how the username splits up if that makes sense.
Thanks again!!
Forum: Hacks
In reply to: [Plugin: WP Customer Reviews] Auto-Approve Reviews, Require LoginThanks for your detailed reply, bcworkz!
I was able to edit the php.ini file and change the default America/Denver to America/Toronto. I saved the file, closed it, and tested the timestamp for the review on both my laptop and phone. No luck. ?? Is there maybe a delay or is this php.ini file initiated right away? I do remember I had to make a change to this file once before and that was to change the email address template the server was using to send out emails, but the change took place immediately when I tested it. [Update: I noticed in phpMyAdmin that when the review comes in, under “post_date_gmt,” it has no date or time. It shows as
0000-00-00 00:00:00
. I looked up GMT and it’s the same time as WordPress’s default UTC? I don’t know if that helps at all, but I thought I’d just share that, too. Thanks again!]And this phpMyAdmin is pretty cool. I’ve never seen this or accessed this before. (Thanks for the tip about safeguarding access to this part of the database.)
When a review is approved:
This is what I see under post_status:publish
This is what I see under post_name:anonymous-01182016-0935
This is what I see under post_type:wpcr3_review
When a review is pending:
This is what I see under post_status:pending
This is what I see under post_name: (there’s nothing. It’s just blank.)
This is what I see under post_type:wpcr3_review
I see a lot of the meta_key’s showing up for both the pending post and the published post I created. Should I be looking for a meta_key that only shows up for one and not the other?
These are the meta_key’s I see:wpcr3_review_post wpcr3_review_email wpcr3_review_ip wpcr3_review_name wpcr3_review_rating
These meta_key’s don’t show up for both the newly created pending post and published post:
wpcr3_format wpcr3_enable
(next to wpcr3_format in the column labelled ‘meta_value’ is ‘business,’ which is probably the type of review I’m using [business as opposed to product])
Thanks again for your trying to help. Let me know if I can provide you with any more information. It’s the least I could do.
Forum: Hacks
In reply to: [Plugin: WP Customer Reviews] Auto-Approve Reviews, Require LoginHey bcworkz,
I’m surprised you remember what’s happened. I saw the forum topics page and you were involved in a bunch of postings. lol.
Yes, the two boxes in ‘Before a comment appears’ are unchecked and the ‘Users must be registered and logged in to comment’ is checked. I’ve tested test for the comment section on a page, and it works perfectly well.
The plugin developer explicitly states on his site that all reviews get sent in for moderation, which is probably good for most companies. It just doesn’t work for the business model I’ve constructed. I want to assure transparency, and moderation before approval kind of goes against it.
I really appreciate your taking the time to help out. Thanks again, bcworkz!
P.S. I previously found a couple of codes for requiring user login, but the plugin developer revamped his/her code a few months ago and I can’t find the same line descriptions that these codes reference:
In the wp-customer-reviews.php file, go to line number 1045. You’ll find, IF ($THIS->OPTIONS['GOTO_SHOW_BUTTON'] == 1) { JUST BEFORE THIS LINE, WRITE THIS CONDITIONAL STATEMENT, IF (IS_USER_LOGGED_IN()) { THEN GO TO LINE 1087 AND AFTER THIS LINE, $OUT4 .= ‘<DIV CLASS=”WPCR_CLEAR WPCR_PB5″></DIV>’; ADD THIS ELSE STATEMENT AND FIN<code></code>ALLY CLOSE THE CONDITIONAL IF STATEMENT. } ELSE { $OUT .= ‘<H2 STYLE=”COLOR: #C77405″>PLEASE LOGIN TO POST A REVIEW</H2>’; };
here’s another version apparently of the same function:
Find line 1026 and you will see "$req_js .= "</script>\n";", directly under that but above "if ($this->options['goto_show_button'] == 1) {", you need to begin by adding "if ( is_user_logged_in() ) {" so that it should read as follows: $req_js .= "</script>\n"; if ( is_user_logged_in() ) { if ($this->options['goto_show_button'] == 1) { Then at the bottom of the function, just below this line at approx. line #1072 "$out4 .= '<div class="wpcr_clear wpcr_pb5"></div>';", you need to add the following: } else { $out .= 'Please login to post a review...'; }; Which is directly above this line: "return $out . $out2 . $out3 . $out4;" So the bottom of the function should read as follows: $out4 .= '<div class="wpcr_clear wpcr_pb5"></div>'; } else { $out .= 'Please login to post a review...'; }; return $out . $out2 . $out3 . $out4; }
Forum: Hacks
In reply to: [WP Customer Reviews] Change default timezoneGood idea! I’ve posted something before about auto-approving reviews and requiring user login in that section and I never got a response ??
But I checked the WP Customer Review site and it says that they do not offer individual customizations, so I guess the time zone question would be okay to ask there, but I should move the question that has no response to this section.
Sorry about that. Still learning the ropes, lol. Thanks!