Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Is it possible to create a user sumbmitted photo gallery like this?
ragdoll
✭
I'd like to create a forum for my photography site. I really like this one http://www.fotonordest.com/forum/paesaggi-naturali/ as an example.
I like that in the list of discussions a thumbnail of the photo is shown. Also, the layout for single discussions is really pleasant, with the big image at the top.
Do you think something like this can be achieved in vanilla with a plugin and some css or would it require a lot of work?
Tagged:
0
Answers
For wordpress we use this -
`function catch_that_image() {
global $post, $posts;
$first_img = '';
ob_start();
ob_end_clean();
$output = preg_match_all('/<img.+src=\'"[\'"].*>/i', $post->post_content, $matches);
$first_img = $matches[1][0];
if(empty($first_img)) {
$first_img = "/path/to/default.png";
}
return $first_img;
}`
I think its easy to replicate at vanilla
There was an error rendering this rich post.
What you are asking for can definitely be done in Vanilla, although I'm not aware of any plugin doing it, at the moment.
My shop | About Me
This is the code you use to get the thumbnail and show it next to the poster's name, right?
@ragdoll we use this code to get the image. Then it depends on you whether you want to display it.
There was an error rendering this rich post.
check out http://coppermine-gallery.net , I have been testing gallery apps and this one is very cool, very easy to style . I am trying to figure out how to integrate it to vanilla. ATM I have it stand alone but linked and styled to match a forum.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
thanks, I think it would be better if it was integrated with the forum, too much hassle otherwise.
yea I understand, I am making a bridge to be able to integrate a gallery app into Vanilla. If I am successful I will post the methods.
A Gallery app involves much more than a simple plugin could deliver. The key here is to make a something to integrate users database and login so it works as one.
It can be done for other forums and I am confident it can be made for this one.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Great, hope you manage to do it.