The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/printthread.php(287) : eval()'d code 2 errorHandler->error
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



UserSpice
Images,Videos,Music uploading - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Miscellaneous (https://userspice.com/forums/forumdisplay.php?fid=28)
+--- Forum: Off-topic Discussions (https://userspice.com/forums/forumdisplay.php?fid=10)
+--- Thread: Images,Videos,Music uploading (/showthread.php?tid=205)

Pages: 1 2


Images,Videos,Music uploading - Mekaboo - 08-17-2016

Hello US and thank you for all of your help! Have another question: Im trying to add thumbnails,music, and videos onto my profile page for my members. Do any of you know what php code is used for those? Once again THANK YOU to the great folks on here Smile
Mekaboo


Images,Videos,Music uploading - mudmin - 08-18-2016

Are you trying to allow your users to upload music/videos or are you trying to let them add youtube videos? Can you give me a little bit more idea what you're trying to do?


Images,Videos,Music uploading - Mekaboo - 08-18-2016

I want them to upload videos and audio through their computer (jpeg/png). I don't want to them to have to embed Youtube or Vimeo. I want folks to upload those as well as images onto their editprofile page so it can show on the basic profile page.


Images,Videos,Music uploading - mudmin - 08-18-2016

First thing to understand is that letting users upload files to your site poses an whole extra set of security risks. That said, I haven't allowed people to do videos, but this is what I've used for photos. It's another class you can drop in your classes folder and takes care of all the resizing and stuff like that. It's pretty slick. It will even enhance photos if you want it to...

https://github.com/verot/class.upload.php/blob/master/README.md


Images,Videos,Music uploading - Mekaboo - 08-18-2016

Being that this is my first foray into web building and my first project Im going to keep it simple and just do pics. Over time I would like to add more but Im going to just have images for now. Im definitely going to check the link out and and see about incorporating it into my edit file. I appreciate all of your help with this Smile

Mekaboo


Images,Videos,Music uploading - mudmin - 08-19-2016

Ok. Here's what I did for a different project using userspice. I had a system for teachers and students and wanted them to be able to upload photos of their students... This is the form...
http://pastebin.com/caHD7dmy

This is the upload.php that processes the photo
http://pastebin.com/KMXysq83

Note that this was userspice 4.0, so some of the paths for includes may be wrong.



Images,Videos,Music uploading - Mekaboo - 08-19-2016

I like the one you created. Actually class.upload.php seems quite easy and I can't wait to implement it!!
Before I let you go I have another question Smile how is one suppose to deactivate their account if they wanted to?


Images,Videos,Music uploading - mudmin - 08-19-2016

I hope it works out for you.

Are you talking about deactivating one of the users on userspice? I've struggled with that because it is sort of about intention. If you are trying to stop them from using your site, they will just create a new account.

But, if you want to deactivate a user...

go to the admin panel
click manage users
click a user
At the bottom change blocked from No to Yes

They will get a message saying that they have been banned. You can also go in the database in the users table and change permissions from 1 to 0 and that will do the same thing.


Images,Videos,Music uploading - mudmin - 08-19-2016

I should also add that if you want to change the error message, it is in us_helpers.php lines 371-373....

Code:
if($user->data()->permissions==0){
Code:
bold('<br><br><br>Sorry. You have been banned. If you feel this is an error, please contact the administrator.');
Code:
die();



Images,Videos,Music uploading - Mekaboo - 08-19-2016

Thank ya but what I meant is when a member no longer wants to be member and wants to delete their account? They no longer want to be a member of the website.