I think that you are misunderstood about the original idea. You are going to a opposite direction. The way vrijvlinder works was on the right path. She just having difficulty removing the white space or placeholder. I believe the plugin that you made can be the key to solve this issue. You might need to do some modifications. hgtonight you are great and you can make it.
@digihub said:
I think that you are misunderstood about the original idea. You are going to a opposite direction. The way vrijvlinder works was on the right path. She just having difficulty removing the white space or placeholder. I believe the plugin that you made can be the key to solve this issue. You might need to do some modifications. hgtonight you are great and you can make it.
What do you mean by white space and placeholder? @vrijvlinder is the resident CSS wrangler.
@vrijvlinder said:
oh ok I see what you mean a place where there is no image , that is easy add a background to the images and the one without image should just show the background.
here I added your avatar to the background, works well.
yes peregrine is a magician pluginista !
Please see the conversation.. It's hard for me to explain in detail since I am a newbie. I am not as good as you in programming but I understand the concept and structure.
I had problem accessing Vanilla sometimes for the past 2 weeks especially through Firefox. I had checked my network and no problem visiting other sites.
It is working now. I am really appreciate your patience and support.
I just realized that there is a gap between the images (pic 1) . I am trying to make this images list as an independent column which is not supposed to be affected by the discussions on the right column. Also, there are some white spaces squeeze the discussion titles to the left (pic 2). Any idea?
The gap is caused by there being no image in the discussion it is next to. So you want a list of images from the discussions without caring if they match the discussions' position?
This is really a moving target situation. I need you to explain, in excruciatingdetail, what it is you are trying to achieve.
@digihub said:
I was trying to create a layout for the images listing on the left of each category page. It works but lack of script for the images. If possible I would like to show different images with titles that base on main categories and sub categories. Can anyone tell me about this? Your help is greatly appreciated.
I basically needed a simple image script - yes, a list of images from the discussions without caring if they match the discussions' position. I would like to show different images with titles that base on main categories and sub categories. Hope this is clear for you.
Answers
IndexPhotos.css is overriding the styles. Try disabling that plugin. Or make the style selectors more specific.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Disabled. Please take a look.
This is working as intended. You will have to modify the CSS to arrange it as you want. Something like
looks decent on your site.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
I think that you are misunderstood about the original idea. You are going to a opposite direction. The way vrijvlinder works was on the right path. She just having difficulty removing the white space or placeholder. I believe the plugin that you made can be the key to solve this issue. You might need to do some modifications. hgtonight you are great and you can make it.
I just re-enable the IndexPhotos and disable the Category Images so you can see the original page.
What do you mean by white space and placeholder? @vrijvlinder is the resident CSS wrangler.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Please see the conversation.. It's hard for me to explain in detail since I am a newbie. I am not as good as you in programming but I understand the concept and structure.
I would put a placeholder image at the plugin level.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Where should I put this code?
In your IndexPhotos plugin php file.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
I have replaced this
protected function DisplayPhoto($Sender) { $body = $Sender->EventArguments['Discussion']->Body; preg_match('#\<img(.+?)src=(.+?)\>#s', $body, $matches); $image = "src=" . $matches[2]; echo '<img class="ProfilePhotoSmall"' . $image . '>'; }
with
protected function DisplayPhoto($Sender) { $ImageSrc = '/applications/dashboard/design/images/pixel.png'; $body = $Sender->EventArguments['Discussion']->Body; preg_match('#\<img(.+?)src=(.+?)\>#s', $body, $matches); $image = $matches[2]; if ($image) { $ImageSrc = $image; } echo '<img class="ProfilePhotoSmall"' . $ImageSrc. ' />'; }
then all images have disappeared.
I receive fatal error message if I add the code on the bottom
snip
You copy/pasted the wrong file. Can you paste the details of the fatal error please?
I had problem accessing Vanilla sometimes for the past 2 weeks especially through Firefox. I had checked my network and no problem visiting other sites.
Well.. may be I was wrong so I copy/pasted this code on the bottom of class.indexphotos.plugin.php and now nothing has changed.
You need to replace the DisplayPhoto function with what I suggested.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
I just look through this thread and I don't see how to replace the DisplayPhoto function. Do you mean disable IndexPhotos or CategoryImages?
@digihub In
/plugins/IndexPhoto/class.indexphotos.plugin.php
delete everything. Paste in the following code:Enable IndexPhotos and disable CategoryImages. I have tested this as working on 2.0.18.8.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
It is working now. I am really appreciate your patience and support.
I just realized that there is a gap between the images (pic 1) . I am trying to make this images list as an independent column which is not supposed to be affected by the discussions on the right column. Also, there are some white spaces squeeze the discussion titles to the left (pic 2). Any idea?
The gap is caused by there being no image in the discussion it is next to. So you want a list of images from the discussions without caring if they match the discussions' position?
This is really a moving target situation. I need you to explain, in excruciating detail, what it is you are trying to achieve.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
I basically needed a simple image script - yes, a list of images from the discussions without caring if they match the discussions' position. I would like to show different images with titles that base on main categories and sub categories. Hope this is clear for you.