The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.18 (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
Userspice 4.3 with added DB driven gallery and event calendar options.
#1
As promised here my added functions. Don't really know where to leave it but I would like some opinions or advice. Smile

https://github.com/Jamezsss/userspice

I added gallery options that create pages, uploads images and writes the locations and such to the DB.
The event calendar was designed to let people register on your Userspice website and let them register for events with one click. The event calendar does not create pages yet. It is DB driven to check if user has registered for one or multiple of the events or not. Also I added and option to create DB content blocks to make articles, blogs etc. Still have to create them manually in the DB and php file but will make an fwrite function for blogs and articles etc.


I will describe what dependencies it uses and how it works on Github next week so it is easier to understand what is added and how it works.


I am a starter and didn't have schooling for this so any comments or help on security, cleaner way to do the same etc... are appreciated.

Should I post the DB structure here with some examples?

I have setup a test version online for people who are interested to see. Just poke me.


WYSIWYG Editor for content blocks
http://puu.sh/z68mq/13b2d2ead9.png


Upcomming events with 1 click registration option.
http://puu.sh/z68qe/4729c8ce9d.png
http://puu.sh/z68rU/a0ea9ae123.png
http://puu.sh/z68t1/250bee0c02.png
  Reply
#2
Hi Jamezs,

If you have a scrubbed dump (doesn't have your hashes or personal info it) it would be great to share!

Can't wait to test this,
Brandin.
  Reply
#3
What you guys use to share sql files? Smile

It is made on a clean install so no private or personal info exists yet. I implemented these functions in my excisting websites like https://vulpine.events

Clean install with excisting functions so far:
https://test.userspice.cf/
  Reply
#4
I would just upload it to hastebin.com Smile You can also just publish it to the git as sample.sql or something.
  Reply
#5
It's in Github now Smile

test.sql
  Reply
#6
This is awesome! thanks so much for sharing!
  Reply
#7
On index.php I had issues with
Code:
require_once $_SERVER['DOCUMENT_ROOT'] . '/users/init.php';
I think
Code:
require_once 'users/init.php';
is the way to go there
  Reply
#8
Please note that some things broke. I need to fix the upload script on created gallery pages itself. I'll keep you guys posted on fixes and added functions. There will be an Event page per agenda item as well soon.
  Reply
#9
And yes we used it in index.php just to avoid confusion and break things. We needed to change it for putting indexes and other pages and filer in new folders. It works just fine but I agree that the Userspice way is sufficient for the index.php
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)