Community Forum

If you have questions about my software, chances are this forum has the answers.

You'll need to register before you can post on the forum to ask your question or to answer another one. A reply will be posted to each and every question that is asked so there is no need to double post or bump your post. I do my best to answer promptly but in some cases it may take a day or two. If you bump your post, it may be removed. Bear with me and I`ll get your question answered quickly.

Here are a few tips to help you to get your questions answered more rapidly.

IMPORTANT: Posts in English only. I don't have a translator and I'll be unable to understand your message properly and will probably delete it.
SEARCH: Use the search option to see if your question has been answered on the forum before now or if there is an answer in the documentation of your software.
PRIORITY SUPPORT: If you have purchased a commercial version of any software, using the contact option at the licence centre ensures a faster response.
AUTO DELETION: Accounts older than 5 days, with no posts or topics, are automatically deleted. Only register if you are thinking of posting.
LINKS: Any links posted are not clickable and must be copied / pasted into your browser address bar.

You are not logged in.

#1 musashi79uk 21-03-2018 20:02:49

How can add an extra admin page?
I have a working php script in a file called upload.php that is in the admin directory. It's nothing special, just a basic script to upload an image to the website that can be called for creating an image link when you create a journal or page etc. The script file is in the admin folder but I've got it to upload the images to an image folder that's not in the admin folder so that's working fine.
I'm trying to put that script into a page that blends in with the admin area and has a link on the left hand menu underneath the Add Journal link or something.
A friend who will be uploading journals will want to use images in them but he wouldn't have a clue about using FTP software and I wouldn't feel comfortable giving him FTP access. His wife won't even give him the remote at home. So an Image Upload page is the safest way to go for me.

Thanks

Carl

#2 msworld 22-03-2018 16:30:38

Hi Carl,

1. Duplicate the 'admin/control/modules/backup.php' file and call it 'upload.php'.
2. The template file should be called 'upload.php' too.
3. Add menu option in 'control/arrays.php'
4. Give user permissions to upload page in their settings.

That should be all. smile

#3 musashi79uk 22-03-2018 18:45:43

Sorted. It took a while but I got there. It won't use the template after it has uploaded a file though but I can live with that for now.

#4 msworld 24-03-2018 07:01:02

It should do providing the target url is the same. smile

Probably best to use some kind of upload API, so the user never leaves the page?

Board footer

Maian Script World - Free PHP Software for Personal or Business Use.
© 2003-2018 Maian Script World & David Ian Bennett.

2Checkout.com is an authorized reseller of goods and services provided by Maian Script World

Free PHP Software / Responsive PHP Scripts / Lightweight PHP Software / White Label PHP Software