feature in sub dir
-
Hello every body
I have 2 subdirectory and testing to be able show the inserted photos in the features story, but they are shows only in the main site. And it is not strange because when I uploade a picture in the mysite.com it saves in content/uploads but in the other cases they save in content/blogs.dir/1/files etc. How can I do to show pictures in my subdirectory. Please help me
Best Regards
-
hi!
Have anybody an idea to solv this problem?
Please help
And it is not strange because when I uploade a picture in the mysite.com it saves in content/uploads but in the other cases they save in content/blogs.dir/1/files etc.
Default behaviour.
The main blog will save its pic in the uploads directory, the extra sub-blogs will use numbered folders under the blogs.dir directory.
But you have given enough details or even links that we can visit to try and help. π
my site is borderlessnews.com and one of the sub is borderlessnews.com/danish
sorry, and my theme is comfy plus
hello Andrea
I am waiting to help, Please help
I’m guessing the theme is using the timthumb script to generate the thumbnails. If so, then the call to that in the theme itself will need to be fixed.
sorry
what are you mean with the call in….? I am not good in php, what and where must I write+
best regards
Then you’ll need to ask the theme designer. π
Thanks I have send 15e e mail to deluxe theme which I have bough my theme, but they never answer.
Thank you very much
We talked about it a few months ago:
http://mu.ww.wp.xz.cn/forums/topic/15800
Not sure if this is the same issue but it was using an out of date function call.
MR Andrea
I wonder if I send you the codes of my theme and timthumb you can help me please. I have send meny e-mail to deluxe but they do not answer.
Best Regards
I found my problem !! I didn’t understand correctly the word above it means before
I didn’t put at the correct place the code in wp-config.php
It seems working .. Thanks for all your helps..
@everst – it’s Mrs Andrea, thanks. π
Sorry, can’t help.
Mrs Andrea
As you wrote my theme use timthumb and I have been trying to modify it with the codes you showed me, without any result!!!
In my theme(comfy) I have builtin-function which has two codes aboat thumb as folow.can you please tell me which one must be change and how?
Best Regards
creating thumbnails
********************************************************************/
function show_thumb($w,$h,$zc,$cropfrom,$q) {global $post;
preg_match_all(‘/\< *[img][^\>]*src *= *[\”\’]{0,1}([^\”\’\ >]*)/’,get_the_content(),$matches);
$thumb = get_post_meta($post->ID, ‘thumb’, true);if ($thumb) {
print ‘<img src=”‘.get_bloginfo(‘template_directory’).’/thumbs/timthumb.php?src=’.$thumb.’&w=’.$w.’&h=’.$h.’&zc=’.$zc.’&cropfrom=’.$cropfrom.’&q=’.$q.'” alt=”‘.str_replace(‘&’, ‘&’, $post->post_title).'” title=”‘.str_replace(‘&’, ‘&’, $post->post_title).'” />‘;
} elseif (count($matches[1]) > 0) {
print ‘<img src=”‘.get_bloginfo(‘template_directory’).’/thumbs/timthumb.php?src=’.$matches[1][0].’&w=’.$w.’&h=’.$h.’&zc=’.$zc.’&cropfrom=’.$cropfrom.’&q=’.$q.'” alt=”‘.str_replace(‘&’, ‘&’, $post->post_title).'” title=”‘.str_replac’&’, ‘&’, $post->post_title).'” />‘;
} else {
// no custom key, no images, show nothing
}}
/********************************************************************
creating thumbnails (no permalink to story, image only)
********************************************************************/
function show_thumb_only($w,$h,$zc,$cropfrom,$q) {global $post;
preg_match_all(‘/\< *[img][^\>]*src *= *[\”\’]{0,1}([^\”\’\ >]*)/’,get_the_content(),$matches);
$thumb = get_post_meta($post->ID, ‘thumb’, true);if ($thumb) {
print ‘<img src=”‘.get_bloginfo(‘template_directory’).’/thumbs/timthumb.php?src=’.$thumb.’&w=’.$w.’&h=’.$h.’&zc=’.$zc.’&cropfrom=’.$cropfrom.’&q=’.$q.'” alt=”‘.str_replace(‘&’, ‘&’, $post->post_title).'” title=”‘.str_replace(‘&’, ‘&’, $post->post_title).'” />’;
} elseif (count($matches[1]) > 0) {
print ‘<img src=”‘.get_bloginfo(‘template_directory’).’/thumbs/timthumb.php?src=’.$matches[1][0].’&w=’.$w.’&h=’.$h.’&zc=’.$zc.’&cropfrom=’.$cropfrom.’&q=’.$q.'” alt=”‘.str_replace(‘&’, ‘&’, $post->post_title).'” title=”‘.str_replace(‘&’, ‘&’, $post->post_title).'” />’;
} else {
// no custom key, no images, show nothing
}}
The topic ‘feature in sub dir’ is closed to new replies.