Images not Working

January 2013 WordPress Theme
GK User
Thu Jan 31, 2013 1:03 pm
This theme looks so difficult to configure! Have you got any "How to get Started Guide"?

Also, The images are now working in the News Slideshow and News show pro widgets. They simply return a error for me.
User avatar
Junior Boarder

GK User
Thu Jan 31, 2013 4:26 pm
Hi,

Please just install the Quickstart package which will reproduce the demo content for your page.

If you have a problems with images at the News Slideshow and News Show Pro widgets, please check the cache directories inside the gavern directory at the template catalog - changing permissions for these directories should helps.
User avatar
Administrator

GK User
Thu Jan 31, 2013 7:09 pm
I will try looking at it. Thank you.

One more thing - Why am i getting this below post?
"
wdfb_og_type:
wdfb_og_title:
wdfb_og_images:
a:1:{i:0;s:0:"";}
wdfb_og_custom_name:
a:1:{i:0;s:0:"";}
wdfb_og_custom_value:
a:1:{i:0;s:0:"";}
wdfb_og_description:"
User avatar
Junior Boarder

GK User
Thu Jan 31, 2013 9:18 pm
That's are the custom post fields used by one of your extensions. You can disable totally the displaying of custom post fields under the post or specify which custom post fileds won't be displayed (by name) - all in the advanced theme settings.
User avatar
Administrator

GK User
Sat Feb 02, 2013 12:22 pm
I have tried deactivating all the plugins and found out they are not the using those custom fields! Can you please let me know which extensions (plugins) are using those custom fields? And what those custom fields help in the theme?
User avatar
Junior Boarder

GK User
Sat Feb 02, 2013 1:43 pm
I think that faster than investingating what plugin can it be will be just open the theme settings ->Advanced -> "Hidden Custom Post Fields" -> fill it with the following value:

Code: Select all
wdfb_og_type,wdfb_og_title,wdfb_og_images,wdfb_og_custom_name,wdfb_og_custom_value,wdfb_og_description


then these fields should disappear.
User avatar
Administrator

GK User
Sun Feb 03, 2013 2:01 am
Okay. Thank you.

But I haven't been able to display images till now. If I try adding widgets that use images such as Gavick News pro or others, Some error like this appears.

"Warning: stripos() expects parameter 1 to be string, object given in ..../wp-content/themes/News/gavern/widgets.nsp.php on line 919

Catchable fatal error: Object of class WP_Error could not be converted to string in ..../wp-content/themes/News/gavern/widgets.nsp.php on line 920"


My permissions for the cache folders inside Gavern are 755.

Please advice. Thank you.
User avatar
Junior Boarder

GK User
Mon Feb 04, 2013 8:11 am
Please send me the FTP and back-end access to your website using the PM message.
User avatar
Administrator

GK User
Mon Feb 04, 2013 7:34 pm
Your problem was caused by fact that you're using not standard media directory what caused problems with the creating thumbnails. I've updated both widgets (NSP and Slideshow) and now it should works fine.
User avatar
Administrator

GK User
Sat Mar 02, 2013 9:57 pm
Almost having the same problem. On my main page the path of my images are have both usual url+relative localpath. so it is impossible to show the images of the main page. can u please have a look urgently ? http://www.habergazetesi.com
User avatar
Fresh Boarder

GK User
Sun Mar 03, 2013 12:09 am
HI,

Please try to replace the gavern/widgets.nps.php file with the attached code: https://dl.dropbox.com/u/301910/widgets.nsp.php
User avatar
Administrator

GK User
Sun Mar 03, 2013 4:51 pm
Hi again,
unfortunatelly didnt resolve the problem. Now site is showing just this:
Fatal error: Call to undefined function gavern_file_uri() in C:\inetpub\vhosts\HaberGazetesi.com\httpdocs\wp-content\themes\News\gavern\widgets.nsp.php on line 47

dziudek wrote:HI,

Please try to replace the gavern/widgets.nps.php file with the attached code: https://dl.dropbox.com/u/301910/widgets.nsp.php
User avatar
Fresh Boarder

GK User
Sun Mar 03, 2013 7:56 pm
Oh, sorry - I forgot that this file have applied the newest changes which are not compatible with older version of the theme - please replace in the mentioned file line:

Code: Select all
wp_register_script( 'gk-nsp', gavern_file_uri('js/widgets/nsp.js'), array('jquery'));


to:

Code: Select all
wp_register_script( 'gk-nsp', get_template_directory_uri() . '/js/widgets/nsp.js', array('jquery'));


it should helps with the fatal error problem :)
User avatar
Administrator

GK User
Mon Mar 04, 2013 12:35 am
hi dziudek,

bad news. ok not any more fatal error problem but this time "An error occured during creating the thumbnail." problem. And still no pics on main page. Can u help me please ?
theme site: habergazetesi.com
regards.
User avatar
Fresh Boarder

GK User
Mon Mar 04, 2013 8:26 am
In this case, please send me an back-end and FTP access to your website.
User avatar
Administrator

GK User
Mon Mar 04, 2013 11:44 am
@trione - I've fixed your problem both in the NSP and Slideshow widgets, but it seems that problem was connected with your server configuration - there was some mess with slashes, but after few tries I've fixed it :)

I recommend to don't update these files - widgets.nsp.php and widgets.slideshow.php if you will install some themes updates in the future :)
User avatar
Administrator

GK User
Mon Mar 04, 2013 3:04 pm
Thanks for your interest dziudek.. working now :)
User avatar
Fresh Boarder

GK User
Fri Mar 08, 2013 1:17 pm
Hi again,

i have one more site: www.sporsondakika.com and i have the same issuue. What to do fix it manually ?
User avatar
Fresh Boarder

GK User
Fri Mar 08, 2013 1:25 pm
Please just copy the gavern/widgets.nsp.php file from the working instance :)
User avatar
Administrator

GK User
Wed Mar 20, 2013 12:13 am
I have updated the them and the images aren't working again.Somewhere above you said you have changed few things manually. What do I need to do now?
User avatar
Junior Boarder

GK User
Wed Mar 20, 2013 9:56 am
@sociler - are you using the GK NSP widget code from the latest version of the theme?
User avatar
Administrator

GK User
Thu Mar 21, 2013 4:13 am
I see I need to change the widgets as well. OK that Works fine. Thank you.

Also is it possible to include an Advertisement code under the left side bar (below posts information section such as tags, category, author info)? How will I be able to that that? Will appreciate much if you could help.
User avatar
Junior Boarder

GK User
Thu Mar 21, 2013 7:49 am
Please open file gavern/helpers/helpers.layout.php and find function gk_post_meta_sidebar - it generates the sidebar - I recommend to put your advertisement code inside the aside element.
User avatar
Administrator

GK User
Thu Mar 21, 2013 1:19 pm
I dind't find that function in that file. Could you please tell me where exactly do I insert the code? Would really appreciate if you could modify the file with sample AD code and let me download it.Thanks.
User avatar
Junior Boarder

GK User
Thu Mar 21, 2013 5:15 pm
Could you paste me here your advertisement code? Then I'll send you a complete file :) BTW please also specify which version of the theme are you using.
User avatar
Administrator

GK User
Fri Mar 22, 2013 4:35 pm
Hello dziudek,
Thank you for seeking to help. This is the Advertisement code (160*600) required under the left side bar (below posts information section such as tags, category, author info).

Code: Select all
<script type="text/javascript"><!--
google_ad_client = "ca-pub-8768093297288661";
/* Nepal FM Post Side */
google_ad_slot = "9786215929";
google_ad_width = 160;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


Also, I asked you last time but again if possible, Can you also insert two advertisements of (300 x 250) sizes ALONGSIDE on the top of SINGLE POSTS. I want the advertisement on single post pages instead of featured images.

Here are the two codes for that advertisements.

Code: Select all
<script type="text/javascript"><!--
google_ad_client = "ca-pub-8768093297288661";
/* Nepal FM Above Post Left */
google_ad_slot = "6693148728";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


Code: Select all
<script type="text/javascript"><!--
google_ad_client = "ca-pub-8768093297288661";
/* Nepal FM Above Post Right */
google_ad_slot = "2123348320";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


Thank you again for your help. Really appreciate it.
User avatar
Junior Boarder

GK User
Sat Mar 23, 2013 8:26 am
Hi,

Please download the attached archive, back-up your original files and then replace files with the attached ones - it should helps :)
User avatar
Administrator

GK User
Mon Jul 22, 2013 3:08 pm
dziudek wrote:Hi,

Please download the attached archive, back-up your original files and then replace files with the attached ones - it should helps :)


Hello dziudek,

Because the theme has now been updated, using this same code is preventing me to use the latest features such as - "showing the featured image and not showing it and many others."

Can you please help me once more?

I would be really glad if you could help me modify the code in featured image area so that
half of the area shows the above (300 x 250) advertisement and half of the area shows the featured image both alongside.

Thank you for the great updates in the theme.
User avatar
Junior Boarder

GK User
Tue Jul 23, 2013 8:07 am
Hi @sociler,

Please download the attachment (files come from the newest theme version with your advertisements modifications added), and replace your files with the attached ones - don't forget about backup.
User avatar
Moderator


cron