valarcher
Forum Replies Created
-
Forum: Plugins
In reply to: [IvyCat AJAX Testimonials] No longer works with WP 5.6thank you! That works 🙂
Forum: Plugins
In reply to: [IvyCat AJAX Testimonials] No longer works with WP 5.6Thank you! Please can you post here when you’ve upgraded to 5.6 so I get email notification? and can then apply your fix to my site
Nope, this is the new error msg:
Warning: include(C:/wamp/www/wp-content/themes/1green/1cde/insertphp01.php): failed to open stream: No such file or directory in C:\wamp\wwwgn\wp-content\plugins\insert-php\insert_php.php(48) : eval()’d code on line 2
This is insertphp01.php
<div class=”quote”>Need some guidance? Download right now: Top Ten Tips for Optimum Health on a Raw Plant Diet — by famous raw vegan nutritionists.</div>css:
.quote {font:italic bold 1.05em/1.5 “Lucida Sans”,Verdana,sans-serif; color:green; margin:20px 60px}ah well, Will, let’s just give up at this point! I need to move on… gosh I didn’t think you’d notice my little contribution 🙂 Thank you for insert_here!
thank you! I inserted it into functions.php ’cause I figure it may be speedier than using a plugin :
Meanwhile for insert_php I tried creating a php.ini in root with this one line (as per my web host tech support’s advice):
allow_url_include = On
and now when I test this:
[insert_php] include(“http://greensmoothie.com/wp-content/themes/1green/1cde/insertphp01.php”); [/insert_php]
I get this error message:
Parse error: syntax error, unexpected ‘:’ in C:\wamp\wwwgn\wp-content\plugins\insert-php\insert_php.php(48) : eval()’d code on line 1
I no longer need insert_php but I thought I’d pass the error message on 🙂
Hi Will – insert_here works beautifully, thank you! I’ll paypal a donation. It’s not huge (I live in Africa) but my philosophy is anything is better than nothing!
Could I just copy the contents of “insert_here.php” into my functions.php file so I know it will never break? I’m scared if you ever stop updating it, then I’ll be in big trouble down the road because I’m adding it twice over inside every single post!
As it stands now, will it work with all future updates of wp?
The readme.txt says it must be a “publicly-accessible URL” but my /1cde folder is a 403 but it’s working anyway!
I really appreciate your help, many thanks – Val
Hi Will –
> It looks like the PHP configuration doesn’t have URL include wrappers enabled
thank you! I’ll ask tech support if they can do that because I don’t have a php.ini in my root
I tried these two:
[insert_php]
echo file_get_contents_(“http://greensmoothie.com/wp-content/themes/1green/1cde/insertphp01.php”);
[/insert_php][insert_php]
echo include(“http://greensmoothie.com/wp-content/themes/1green/1cde/insertphp01.php”);
[/insert_php]and get a single error message:
Parse error: syntax error, unexpected ‘:’ in /home/eatsprou/public_html/wp-content/plugins/insert-php/insert_php.php(48) : eval()’d code on line 2
What I’d really love to do is use shortcodes, but the plugin everyone recommends – Global Content Blocks plug-in – is no longer available.
I’m looking at these pages:
http://www.wpbeginner.com/wp-tutorials/how-to-add-a-shortcode-in-wordpress/
http://pastie.org/9454401
http://www.problogdesign.com/wordpress/working-with-wordpress-shortcodes/but don’t know enough about php to write the function that will display the contents of “insertphp01.php” when I enter [shortcode-name] into the post.
Do you perhaps know how to do this?
thanks million, Val
Forum: Plugins
In reply to: [IvyCat AJAX Testimonials] Updating ajax on localhostIs there a way to stop the page from bouncing up & down below the testimonial? I’m guessing it’s because each testimonial is a different length? Or maybe it jumps every time it refreshes? I find that I lose my reading place in the paragraphs below ajax testimonials because the screen jumps up & down – thank you!
Forum: Plugins
In reply to: [IvyCat AJAX Testimonials] Integrating Ajax into non-wordpress pageHi Eric – thank you! Yes your link is the way to get any wordpress plugin to work on a non-wordpress page. Tracy at http://www.worldoweb.co.uk/ also showed me the same way. So I have Ajax testimonials working now perfectly on my non-wordpress pages.
In your non-wordpress page’s html, this must be before doctype:
<?php require ‘../wp-blog-header.php’;?>This must be last before </head>:
<?php wp_head(); ?><!–enables js+css to load for wp plugins–>And this must be last before </body>
<?php wp_footer(); ?><!–enables js+css to load for wp plugins–>The loop isn’t required.
thanks! – Val
Forum: Plugins
In reply to: [IvyCat AJAX Testimonials] Integrating Ajax into non-wordpress pageHere’s a draft wordpress page where I DO have the plugin working (scroll down to very end of page and you’ll see rotating testimonials):
But most of my site is not in wordpress. This is the format of most of my site:
http://greensmoothie.com/1cde/1mst-test.php
It’s under that bottom subscribe form in the “Stay Up To Date” area that I’m trying to get the testimonials to rotate, same as they do on the dev. page.
thank you! – Val
Forum: Plugins
In reply to: [IvyCat AJAX Testimonials] Integrating Ajax into non-wordpress pageI’ve tried this:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> [ic_do_testimonials quantity='30' speed='6000' fade_in='600' fade_out='700' group='writing'] <?php endwhile; endif; ?>but that fails to display anything. So I tried this:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php echo do_shortcode("[ic_do_testimonials quantity='3' speed='6000' fade_in='600' fade_out='700' group='writing']"); ?> <?php endwhile; endif; ?>and it also displays a blank.
Do you perhaps have any idea how I can use your wordpress plugin on a non-wordpress page? This page also makes it sound easy:
http://www.worldoweb.co.uk/2012/display-your-wordpress-recent-posts-on-a-static-page
thank you! – Val
Forum: Plugins
In reply to: [IvyCat AJAX Testimonials] Script ConflictHi Eric – Paul solved it. Apparently wordpress uses jQuery and not $ so when he changed the hamburger function js, the testimonials worked!
Read from this post on, you’ll enjoy the solution:
http://community.sitepoint.com/t/need-help-with-superfish-mobile-responsive-menu/193723/48
all the best, Val
Forum: Plugins
In reply to: [IvyCat AJAX Testimonials] Script ConflictThe dev page is here – http://dev.greensmoothie.com/ – although you’ll see I’ve de-activated ic_do_testimonials so the menu will work. Paul at sitepoint says “I don’t know if this is the issue but you seem to be using 2 versions of jquery. One at the top and one at the bottom. Only use one version otherwise you will get conflicts.” So I’m just waiting to hear from him which one I can delete!
Forum: Plugins
In reply to: [IvyCat AJAX Testimonials] Script ConflictHi Eric – good to hear from you 🙂 There’s 6 of them in the html, last before </body> e.g.
</div><!–wrapper–>
<script src=”1nav/jquery.js”> etc as per above
</script>
<?php wp_footer(); ?>
</body>
</html>No they’re not a plugin. Ivycat’s testimonials is the only plugin I’ve activated.
For ivycat, I’ve got this in the html template:
<?php echo do_shortcode(“[ic_do_testimonials quantity=’30’ speed=’6000′ fade_in=’600′ fade_out=’700′ group=’writing’]”); ?>
Can you perhaps see a solution? I didn’t understand that Function Reference/wp enqueue script, but I’m guessing it doesn’t apply to me because I’m just doing my scripts in the html?
thanks for your kind help, Val
Forum: Plugins
In reply to: [IvyCat AJAX Testimonials] Testimonials Stopped RotatingP.S. the fact that it was the aewber subscribe form also explains why my testimonials stopped rotating on localhost too – because I had the form locally too, calling up the same js on the aweber server that my website does. It’s the javascript on the aweber server that’s such a mess and is fouling things up for everyone else.
Forum: Plugins
In reply to: [IvyCat AJAX Testimonials] Testimonials Stopped RotatingHi Patrick –
>another plugin has a bug that fouls up the script loading process for the rest of the plugins
that was the problem. I never changed anything. I don’t have any other plugins, except Akismet. But aweber recently changed their js script behind their subscribe form. When I disabled that js, the testimonials worked fine again.
It took me hours to troubleshoot a way around aweber’s junk. That mail service is getting worse and worse! I wouldn’t recommend them to anyone. Eventually I had to create multiple copies of the same subscribe box, a different one for each area of the page where it appears, and switch to using aweber’s longer js script, and now my ajax testimonials are working again.
So it was aweber that was stopping testimonials from loading.