jepsiba
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Jkreativ Lite] Problem with the translationSame thing happened to me! Impossible to load the mo file!
Thank you Ofer!
That’s exactly what I was talking about ??Hello kiminotsuki,
Thank you for your help.
Actually, I already tried to add the code between the file name and extension, the thing is, the image is already inside a php line of code, and to insert another php line you have to change the code and I don’t know how to do that.Also, it is still not clear to me what it means to include the global script in the php file; where should I put it? Where the document starts right before everything else?
Thank you very much again for your help.Jepsiba
Hello Ofer, thank you for your answer.
What I would like to do exactly, is add the $my_transposh_plugin variable in this line of code, the image I want to apply it to being nothumb.jpg.
<?php if(has_post_thumbnail()) { //the_post_thumbnail();?> <img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo get_image_path($post->ID); ?>&h=90&w=255&zc=1" alt="<?php the_title(); ?>"> <?php } else { echo '<img src="'.get_bloginfo("template_url").'/images/nothumb.jpg" alt="No Thumbnail"/>'; }?>
Also, how do you do when the image is called from the css file? In this case, the image is inside an href with a class. The image being bk_readmore.png.
<a href="<?php the_permalink() ?>" class="readMore">Read More</a>
#featuredPosts .item .readMore { display:block; width:46px; height:46px; position:absolute; left:370px; top:365px; text-indent:-9999px; background:url(images/bk_readmore.png) 0 -46px no-repeat;
Thank you
Hi,
I’m trying to get the script to work on my theme. I tried all the solutions above, but the images don’t load.Actually, the images on my theme are hard coded and inside php code.
ex:<?php if(has_post_thumbnail()) { //the_post_thumbnail();?> <img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo get_image_path($post->ID); ?>&h=90&w=255&zc=1" alt="<?php the_title(); ?>"> <?php } else { echo '<img src="'.get_bloginfo("template_url").'/images/nothumb.jpg" alt="No Thumbnail"/>'; }?>
So when I add another php code inside that, it goes nuts. How should I implement it? The image I want to “translate” is nothumb.jpg
And also:
After I added the global script to all my php files the original code worked perfectly.
How exactly do you add the “global” script and what do you mean by “all my php files”?