How to upload an extra image on new discussion and use as featured image of discussion? - vanilla-forums

For a project I'm developing with Vanilla forum, I want to have option to allow user to add featured image in Vanilla forum post. I want this featured image to be displayed on homepage along with all the posts that are displayed by default (without any featured image).
As I'm relatively new to Vanilla forum development, I'm unable to figure out:
How do I provide user the option to upload featured image with each post at the time of posting new? I've tried using file upload plugin, but this inserts image in "gdn_media" database table having no connection with discussion ID.
How to customize select query of Vanilla forum to retrieve additional field, if I had to get featured image say from media table or a custom-made table of mine?

Related

Profile image gallery provided by database

I'm currently working on profile images for my registered users.
As of now my users can upload their own images to use and of course there's a default image, incase users don't upload a picture.
By the way, I'm using the Paperclip gem.
I've been trying to do so that my users can choose to select an image from a list of images, provided by the website/database.
This website: https://satwcomic.com/ has exactly what I'm looking for.
Example from the website.
I've been trying to find a solution for this for the past month, but without luck. any hints on how i could successfully achieve such feature with or without paperclip?
I'm hoping to get pushed in the right direction.
Please do keep in mind, I'm still learning Ruby on Rails as a student and any help will be appriciated.

Rails adding images to a Post

I have a Rails app for blog posts.
Each Post has a title and the blog_text. I want to be able to add images to the blog post as well while i'm creating the blog post. What's the correct way to do this?? Would I just create another migration to add blog_photos so the post has_many blog_photos??
Or should i install a good markdown editor for the blog_text??
It depends on how the images are to be used. Here are two scenarios:
The images are meant to be inside the blog text and added by the user. For this scenario I would use ckeditor (https://github.com/galetahub/ckeditor). This will give the user a WYSIWYG editor and allow them to upload images into the blog text (CKEditor will create two models for attachments).
The images are specific header/icon images for a specific purpose and not contained in the blog text. In this scenario I would use either paperclip (https://github.com/thoughtbot/paperclip) or carrierwave(https://github.com/carrierwaveuploader/carrierwave) and depending on the specific use case would add the image directly to the post model or create a separate model BlogAttachment (if you need a one to many relationship).

image media and custom post type in wordpress

I am looking for some help / thoughts. I am building a travel site for a client who will continue to add content to the site when it is finished. At the moment there are 600+ images, just in one region, when the site is up and running there will be over 20 region's, and so a lot of images. Is there a way to section the images so that when the client wants images from the USA, that is all they see in the "Insert Media" window. I am using Custom Post Types for the sections. Does anyone have any thoughts and advice.
I would hope there is a plugin to achieve this, as to be honest I do not want to mess around with any core files in PHP.
Thanks
John
For your issue, you can separate images in post.
For example, Create one post USA and upload all USA region related images into it and there is one option in media to view all images from post.you can create multiple post for multiple region.
And Even you can fetch all images from single post too in wordpress.
Hope this helps.

is there a way to display author image in joomla article

I'm currently designing a website for a client and the client is requesting to display the author picture and name on every article. I searched but, can't find an option to do that.
Is there a way to display the author picture on each article?
There are a number of extensions that will let you integrate with Gravatar and other services.
In terms of the Joomla core, you can already link an author to a contact page with an image (when the author is the linked user) and you could write a plugin to pull the image from the contact record since you already have the record id. You could also store the image location as part of the user profile and write a plugin for that.

Wordpress - thumbnail images to articles on direct links (without upload img)

By the articles of wordpress you can upload images from computer (featured image), but how to set up so that I can specify the full url to image from any other sources? To receive a user posts a picture, not only from my site, but also any other CDN?
English is not my native language, sorry for semantic errors.
Do you mean this feature? (the From URL tab from the Add Media window)

Resources