• Resolved strongbox

    (@strongbox)


    It looks like there is a path issue in the PHP coding function that creates the urls to include the javascript and css files. I manually called the JS and CSS and the form displays correctly, but will not submit reviews to the database.

    I think the issue is here:

    function getpluginurl() {
            return trailingslashit(plugins_url(basename(dirname(__FILE__))));
        }
    
    	function getplugindir() {
    		return trailingslashit(WP_PLUGIN_DIR.'/'.str_replace(basename( __FILE__),"",plugin_basename(__FILE__)));
    	}

    Lines from 986 in the wp-customer-reviews/wp-customer-reviews.php file.

    I would really like to use this on our site https://www.rhombuspizza.com

    https://www.ads-software.com/extend/plugins/wp-customer-reviews/

Viewing 15 replies - 1 through 15 (of 26 total)
  • Thread Starter strongbox

    (@strongbox)

    The page is:

    https://www.rhombuspizza.com/reviews

    Again, I have manually called the JS and the CSS, however I think what is happening is that maybe the file structure of Thesis might be causing issues with how the function is creating the urls to call scripts as well as the path to posting to the DB for info entered into the form.

    If I submit the form, no info is posted.

    Thanks!

    Plugin Author Aaron Queen

    (@bompus)

    Thank you for reporting this. We will check into it today.

    Thread Starter strongbox

    (@strongbox)

    Sweet man! Thesis is used by many online marketers such as myself and this is worth a donation for sure.

    Plugin Author Aaron Queen

    (@bompus)

    For right now.. try putting the JS file “hack” into the header instead of the footer. This is what is causing the JS validation to go wacky. I’ll check on the underlying problem though.

    Without the “hack”, does it not include the JS/CSS at all? If it does include it, could you let me know which URL it is trying to include the plugins CSS/JS from so I can see what it may be?

    We have many users using Thesis without a problem, so I’m curious as to what it could be.

    Thread Starter strongbox

    (@strongbox)

    I moved the JS into the head using a custom function hook into the Head. Still is not posting to the DB when a review is added. Without the hack I don’t see the JS or the CSS at all.

    I have removed the hack for the CSS, and it is not being called into the theme at all now.

    Thread Starter strongbox

    (@strongbox)

    I have embedded the CSS into the thesis custom.css file with an include.

    Plugin Author Aaron Queen

    (@bompus)

    2.0.9 is using a different method for:

    1. including scripts
    2. including styles
    3. submitting the post

    I know for a fact that submitting a post and including styles should work. We are trying to only include the script file on the page that it is needed, which is what is causing the problem. It appears that your version of Thesis (or another plugin) was not wanting to fire the action “get_header” , which is where 2.0.8 was trying to process all 3 of the above.

    2.0.9 should hit the servers in a few minutes. Please let me know if this fixes the issue, and you can remove your custom hooks/hacks and just let it work as it should!

    Thanks,
    Aaron

    Plugin Author Aaron Queen

    (@bompus)

    Did this solve the problem. Please try 2.1.1 and let me know if everything is perfect.

    Thanks.
    Aaron

    Thread Starter strongbox

    (@strongbox)

    With 2.1.1 the javascript and the css are being called correctly now, when I try a review it says that I did not provide a correct web address even though I am not requiring one to be submitted, only allowing for the option of submitting one. The form will not submit unless I add a web address. If I remove it from the displayed fields it works correctly.

    Also, POST information is not being returned to the form when a user is given an error message. You might want to pass that info into a variable so that it can be posted back to the form so that users don’t have to reenter everything again.

    Plugin Author Aaron Queen

    (@bompus)

    The POST information should be filled in via jQuery if it fails. I will check into both issues and put out another version with both working as they should.

    Good to hear CSS and JS are working correctly on 2.1.1 – The other issues may actually be non-theme related bugs, so thanks for reporting them.

    Plugin Author Aaron Queen

    (@bompus)

    2.1.2 is out and fixes the server-side email validation. Regarding the POST information.. it’s not a big issue since the Javascript validation should correctly stop the from from being posted if all is working correctly. With the server-side validation fixed for email address, a legitimate user should never receive an error message.

    Also made a couple other fixes, additions.. Check the changelog.

    ksteele36

    (@ksteele36)

    Hi Guys, – (sry bompus) but I too am having the same issue as strongbox:

    “With 2.1.1 the javascript and the css are being called correctly now, when I try a review it says that I did not provide a correct web address even though I am not requiring one to be submitted, only allowing for the option of submitting one. The form will not submit unless I add a web address. If I remove it from the displayed fields it works correctly.”

    This is a fresh install of Version 2.1.1 & I am running WP 3.1 on Apache server version unknown but I do remember having to update it recently (my best guess is version 5, but don’t know if there was a subversion after that) The template/theme I am using is “Picture Perfect 1.3.3 by Wayne Connor”

    Hope this helps

    Plugin Author Aaron Queen

    (@bompus)

    Try 2.1.2 and see if the problem is solved.

    ksteele36

    (@ksteele36)

    Wow, nice response time there bompus! I did as strongbox recommended and removed the web address option and it tested / worked just fine. (https://studiobportraiture.com/studio-b-reviews/) I will follow up with you tomorrow as I have had about all I can take for this day… and have a bad case of programmers butt.
    I did want to inquire about or if I may, make a recommendation for some kind of spammers ip ban to be built in…. don’t know what that involves but you guys have a nice module here and I would love to see this project float to the top.
    Thanks for doing what you do, “K”

    Plugin Author Aaron Queen

    (@bompus)

    We will add the IP ban to the todo list. There are actually quite a few automated spambot protections built in (some very clever methods actually), but of course those would not stop a true human spammer. I don’t know what they would benefit from spamming anyway, since everything must be approved manually — I guess they would still try.

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘[Plugin: WP Customer Reviews] Paths not correct when using Thesis theme’ is closed to new replies.