dominicscaife
Forum Replies Created
-
Forum: Plugins
In reply to: [YAK for WordPress] [Plugin: YAK for WordPress] Teething Troubles with YAKI don’t giveup easily…
So I noticed part of the problem.
The buttons on the product page ([yak_product_page]) don’t work, and that’s where I’d been checking mostly.
But the buttons on the actual page do work.
e.g.
https://hotel-kungfu.com/2011/products/awesome-amplifier/Only problem once I’ve added it to my cart, click on the proceed to checkout link in my sidebar, and my cart empties itself and proceeds to tell me to choose something to buy.
Aargh.
Forum: Plugins
In reply to: [YAK for WordPress] [Plugin: YAK for WordPress] Teething Troubles with YAKThanks for the pointers…
So this is what I tried.
1. Disabling all plugins.
2. Checking my .htaccess. It’s standard WordPresss .htaccess.# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
3. Changing permalinks to default WordPress permalinks option. Same.
4. New WordPress install, no plugins installed, install Yak. Same problem. See here: https://website-design-studio.net/finallinkA/?page_id=8So all I have installed is YAK and it still don’t work!
5. Same host… maybe it’s a host thing… Dreamhost has a option to remove www. from domains which use.. perhaps this is causing the problem. Turned it off.. Also turned off “mod-security” whilst i’m here incase that was it. Same results.
I really love the elegance of the concept of using posts/pages as products in your solution Jason.
But this feels almost like a first date with a beautiful girl, it’s gone well, you drop her off at her door, she’s whispering nice things in your ear, giving you a peck on the cheek then saying good night.
Just frustrating.
So I’m struggling here… how would you start investigating such a redirect problem Jason?
Forum: Plugins
In reply to: [YAK for WordPress] [Plugin: YAK for WordPress] Teething Troubles with YAKThanks Jason. Very helpful. I completely overlooked the fact I need a unique ip address to do https. Woops!
So for now I turn off the SSL feature.
Then the problem is “Error 404 – Not Found” when I click the buy button.
If I change
Yak General > “Redirect on buy” > Empty
to
Yak General > “Redirect on buy” > Checkout.It works again – but I want the item just added to the cart, not take one to a seperate cart page.
Any suggestion?
Forum: Plugins
In reply to: [YAK for WordPress] [Plugin: YAK for WordPress] Teething Troubles with YAKFurther to my first post… switching off ssl AND ensuring “Redirect on buy” to checkout page fixed the problem.
Yak General > Use SSL checkout > No Check mark
Yak General > “Redirect on buy” > Empty <–Breaks againBut any recommendations on how to use SSL aand no redirect?
Forum: Plugins
In reply to: [YAK for WordPress] [Plugin: YAK for WordPress] Teething Troubles with YAKDear Jason,
A few questions about tweaking your plugin.
I want to use YAK to build a list of services needed by the website visitor. Analagous to building a shopping list but quite a few text changes would be needed to give to copy a different feeling.
I would like to do the following:
1. Change the buy button text
2. Adjust the widget to show all items in the cart.
3. Edit the text within the widget and checkout page.Can you advise on best practice to make these changes?
Forum: Plugins
In reply to: [Plugin: PhotoContest Plugin] Sorry, You have already uploaded one photoThe one you referred to here:
So, what I ended up doing was changing the code again as per the post. But the problem was still happening.
So I just wanted to get the competition working – I wanted to change the number of entries allowed to many – but no function to edit this and I didn’t feel like like changing the database tables directly
So… I ended up using an ugly hack:
$total_nr = (int) $wpdb->get_var( $wpdb->prepare( “SELECT count(img_id) as total_nr from “.$wpdb->prefix.”photocontest WHERE wp_uid = %d and visibile=1 and contest_id = %d”, $current_user->ID, $photo_contest_id) );
$total_nr = -9999;Let’s hope my competition doesn’t implode on itself ??
Forum: Plugins
In reply to: [Plugin: PhotoContest Plugin] Sorry, You have already uploaded one photoFrank – strangely I just checked thisand the change I made had reverted to the old version.
Now there is the chance that my host restored some old backups…
…but is there any other way that you can send plugin updates and you neglected to make the change you describe above in the core code?
Odd.
Cheers,
Dominic
Forum: Plugins
In reply to: [Plugin: PhotoContest Plugin] Sorry, You have already uploaded one photoThanks Frank, those pointers saved me a ton of time.
Forum: Plugins
In reply to: [Plugin: PhotoContest Plugin] Sorry, You have already uploaded one photoChanged the code as per your post above and was able to add another entry so it looks like that did the trick!
Brilliant Frank! Thank you so much for your fast response.
My next task is to refine the text for usability reasons – I think the current text after clicking “Enter the competition” can be improved to ensure the next step is very clear.
e.g.
Change
———————————————————-
Post photos | Recently added | Most views | Top ratedPHOTOTABLE
———————————————————-
to
———————————————————-
Enter competition – Upload your photo now! (Bold, large font)View Current Entries:
Recently added | Most views | Top ratedPHOTOTABLE
———————————————————-I’m hoping this is a simple job with the templating functionality – will report back if I have issues!
Forum: Plugins
In reply to: [Plugin: PhotoContest Plugin] Sorry, You have already uploaded one photoOk my mistake, I see the visibile variable is already declared so it isn’t a mistake after all.
Forum: Plugins
In reply to: [Plugin: PhotoContest Plugin] Sorry, You have already uploaded one photoOk my mistake, I see the visibile variable is already declared so it isn’t a mistake after all.
Forum: Plugins
In reply to: [Plugin: PhotoContest Plugin] Sorry, You have already uploaded one photoYes Frank, you are correct in the role for uploading is set to None.
I am on a really slow connection right now, and am trying to implement your fix but it’s slow going. will let you know how it goes when I have results.
I did notice the above code had a possible typo
$total_nr = 0; if (isset($current_user->ID)) { $total_nr = (int) $wpdb->get_var( $wpdb->prepare( "SELECT count(img_id) as total_nr from ".$wpdb->prefix."photocontest WHERE wp_uid = %d and visibile=1 and contest_id = %d", $current_user->ID, $photo_contest_id) ); }
visibile should be visible right?
Forum: Plugins
In reply to: [Plugin: PhotoContest Plugin] Sorry, You have already uploaded one photoHi,
First off, congrats on a great plugin.
Second, the issue posted above seems to have resurfaced.
You can view the problem in the wild here:
https://www.thepassagesamui.com/blog/wp-content/plugins/wp-photocontest/play.php?post_id=25
https://www.thepassagesamui.com/blog/test/
I first set the max photos to 1 … after uploading 1 photo noone could add anymore. Ok – maybe i made a mistake or it just occurs when max is 1.
So I created another competition and tried with 3 max (it’s supposed to be per user right? It is actually limiting the total photos allowed by EVERY user!)
Then uploaded 3 entries into the competition and the same problem occurred.
Any suggestions on a quick fix to the php?
Cheers,
Dominic