Uploading images through dashboard page - concrete5

I have add some dashboard pages to my conrete5 install. One of pages has a form that needs allows the user to upload an image. Are there any libraries for uploaded images of shall I do it in native PHP? I found this in the documentation but I don't think its what I want.
I thought I'd ask before I started and to see if anyone else has done anything like this before

I would recommend making use of the built-in Asset Library helper. This will add a field to your form that allows the user to access all of the images in your site's File Manager, and upload a new image if necessary. Here's the relevant page in the concrete5 documentation.
Let's say you wanted to add a field to your form called "photo". Here's an example of what you would add to the part of your dashboard page's view where the form is rendered:
$al = Loader::helper(‘concrete/asset_library’);
$al->image('photo', 'photo', 'Select a photo', $photo);
In this case, $photo is used to represent the currently-selected image, if known.

Related

Customize content and export in a PDF

i have something planned and i don't really know how and what kind of technologies i can use for it.
I want to create a website where I can use a CMS system or manually create a template. I make this template available to the user and he can change or edit content in it. For example, if I define a div that takes 20% of the page. Then the user can color the whole thing with a color code. Or if I define an H1, then the user can insert a title there. At the end he can export the whole thing as PDF.
Or
I create a contact form with many fields. The customer can fill in everything, e. g. address, telephone number . . . he sends this form and I define internally where the fields have to be positioned in a PDF. And especially how the whole thing should look like (CSS). Is that possible?
Is there such a thing already? A plugin for any CMS system like wordpress?
I don't think that the first option will work.
You will need a form that the user will fill in.
You can use WordPress and a form builder plugin, such as Contact Form 7.
Now, regarding the exporting into PDF...do you have any programming knowledge?
If you can work with PHP, then you can use DomPDF library to export all data into a PDF file.
You can also see a similar thread here Exporting form results from Contact form 7 to PDF (fPDF)
If you don't have any PHP knowledge then you will have to google and see if there is a plugin that does what you want. You may have to use a different form builder depending on that plugin.

How to create a user input form with WordPress?

I'm completely new to the whole WordPress scene so I kind of don't know the "WordPress way" of doing the desired task:
Create a form where a user would fill in some details (such as name, surname, upload a video or post a youtube iframe link)
Submit it, once it's done - an admin must verify that everything has been filled out correctly and after that the video can be seen on the website.
Should I write a plugin of some sort that would do that or how does it happen?
Thank you.
The Gravity Forms plugin allows you to do exactly what you're looking to do. With it, you can set up a form that creates a post and sets it to be 'Pending Review' in WordPress. This tutorial contains everything you need to know about what you'll need to do.
If you want to create a Custom Post Type (ie. 'User Page') to better separate user submissions, you'll need to employ this special add-on (as mentioned in the tutorial above).

WordPress: Web Form with Image/File Submission

First of all, I am absolutely new to WP.
I am hoping to build a site using WP and figured out how to manage every thing except one feature. The feature that is required is to be able to submit a form with files (images in particular) by a non member.
For example, you should be able to visit the site and fill a form and submit your image along it.
Is it possible to upload files as above? How is this achievable?
Thanks in advance.
If you are not a wordpress coder , I would sugest you use a plugin for that .
Some options :
http://wordpress.org/extend/plugins/user-submitted-posts/
http://wordpress.org/extend/plugins/tdo-mini-forms/
http://wordpress.org/extend/plugins/quick-post-widget/
http://www.gravityforms.com/category/features/
and many more ..
read also this tutorial : http://wp.tutsplus.com/tutorials/allow-users-to-submit-images-your-site/ - it is not for VISITORS but for registered users - but it might help you to understand what is needed to be done .
I would use the Contact Form 7 plugin to do this, as it's extremely easy.
In the plugin settings you'll be able to choose what parts of the form you'd like to include, adding a way to upload is one of those options. You can even limit the type of file that is being used as well the max file size.
Once you create a form in the settings, you just use its shortcode to add it to your Wordpress page.
Yes you can upload file, but it is not a Wordpress specific solution, unless you want to use a plugin. You can code html/php as per usual to achieve it:
http://www.w3schools.com/php/php_file_upload.asp
To embed it on a page, you can create a Page in Wordpress, and assign it a custom page template that you create with the upload form:
http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates

Drupal 7: Adding a 'Add New Listing' (Create Content) Link on Local Tasks Menu

I am working on making user pages for a certain type of user who can add/edit/delete content on my Drupal site. I've figured out how to use Views to create a 'Manage Listings' tab which appears on the user's profile, now I need to make another Local Task tab (or any kind of link) that allows the user to add new content.
I tried just adding a header to the view using basic markup text that contains:
Add New Listing
But because the link is displayed from the 'users/admin/' page, the link ends up bringing them to 'users/admin/node/add/' which doesn't exists (obviously). How can I create a create content link without messing up the path?
Below is a visual for help:
Please excuse the fact that this is a very simple question - this is my first attempt at building a Drupal site.
use /node/add instead because then it is relative to url instead.

Wordpress Custom Content Types

After long research, no answer or hints about this question seems to be available.
I want to have multiple image custom content types. But how to add them with jQuery? I want an option that add dynamically multiple image custom content types when you are in the user interface to add new content.
You have the custom content type in front of you: My
You want add a new one
You give it a description, and want to add an image
Here comes my question: You add an image and you click a button to add another image input field (in the backend)
I hope you can help me with this.
Edit: To be more specific, where, in which file do I implement the jQuery functionality to dynamically add more image upload fields. I have no clue where to implement it.
Are you referring to the back-end user (using wp-admin) or a front-end user (using your actual wordpress ite)?
You can use gravity forms ( http://www.gravityforms.com/ ) in combination with this plugin http://wordpress.org/extend/plugins/gravity-forms-custom-post-types/ to create a front-end form that will allow a user to create a new taxonomy term as well as submit an image.
On the backend there is a great plugin to create duplicate fields which would allow you to do what you're describing as "You add an image and you click a button to add another image input field (in the backend)"...It's called magic fields http://magicfields.org/
What about http://podsframework.org/ its nice framework for handaling custom content type.

Resources