Thread Starter
do7d
(@do7d)
follow-up:
i have changed the mode from widget to post, and only get the shortcode displayed.
i changed from post to custom, created a template (using the gravity forms php) and it errors out entirely.
i have been communicating with gravity forms, and we tried these workarounds. please advise!
Plugin Author
zoranc
(@zoranc)
hey do7d,
I was working out this issue in a new update. It was related to the way that the plugin was loading in the content.
Now you can use the widget area template and add in your form widget to the tab slide widget area like you did initially and it should work
let me know if you’re still experiencing problems
Thread Starter
do7d
(@do7d)
Warning: include_once(/wp-content/plugins/tab-slide/templates/Widget.php) [function.include-once]: failed to open stream: No such file or directory in /xxx/xxx/public_html/jgg/ken/wp-content/plugins/tab-slide/tab-slide.php on line 359
Warning: include_once() [function.include]: Failed opening ‘/wp-content/plugins/tab-slide/templates/Widget.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /xxx/xxx/public_html/jgg/ken/wp-content/plugins/tab-slide/tab-slide.php on line 359
i even completely uninstalled, then re-installed.
Plugin Author
zoranc
(@zoranc)
For some reason there is a trailing slash in your include path …I’ve pushed out a new update to make sure that the path used is pretreated for this case scenarios
let me know if 1.33 works for you
Thread Starter
do7d
(@do7d)
im sorry, but it still is not working. i do greatly appreciate your help with this, tho. is there anything you can recommend to possibly help troubleshoot on my end?
Plugin Author
zoranc
(@zoranc)
What is the error you are getting this time around?
Thread Starter
do7d
(@do7d)
this displays within the tab:
Warning: include_once(/wp-content/plugins/tab-slide/templates/Widget.php) [function.include-once]: failed to open stream: No such file or directory in /xxx/xxx/public_html/jgg/ken/wp-content/plugins/tab-slide/tab-slide.php on line 359
Warning: include_once() [function.include]: Failed opening ‘/wp-content/plugins/tab-slide/templates/Widget.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /xxx/xxx/public_html/jgg/ken/wp-content/plugins/tab-slide/tab-slide.php on line 359
Plugin Author
zoranc
(@zoranc)
for some reason your configuration is still trying to include the url starting with a slash…
edit your tab-slide.php – scroll all the way to the end and replace this bit of code:
function get_contents() {
global $window_url;
?><div id="tab_slide_include" style="display: none"><?php
if (substr($window_url, 0, 7) == 'http://') {
include_once(substr($window_url, strlen(get_site_url())));
} else {
include_once(rtrim($window_url, "/"));
}
?></div><?php
//ob_get_clean();
}
with this
function get_contents() {
?><div id="tab_slide_include" style="display: none">
<?php include_once("wp-content/plugins/tab-slide/templates/Widget.php"); ?></div><?php
}
this should set the include url to this widget url without the slash..(btw you won’t be able to switch to a different template via the dashboard tab slide settings while this code is in place)
let me know if this worked as it will give me an idea on how to troubleshoot this further
Plugin Author
zoranc
(@zoranc)
ok scratch that last message….I just updated the plugin with the proper code so remove it completely and then reinstall and it should do the trick this time around
Thread Starter
do7d
(@do7d)
Sir, I commend you and your efforts. It works perfectly. Thank you for your work, I am updating my post on gravity forms’ forum as well about this.