The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Images,Videos,Music uploading
#1
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
  Reply
#2
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?
  Reply
#3
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.
  Reply
#4
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.ph.../README.md
  Reply
#5
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
  Reply
#6
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.
  Reply
#7
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?
  Reply
#8
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.
  Reply
#9
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();
  Reply
#10
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.
  Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)