Archivatory Updates #004 | User profiles with photo, bio, and user selected playlist.

in #utopian-io6 years ago (edited)

archivatory-update-004.png

Repository

https://github.com/jrswab/archivatory

Bug Fixes

Ugly delete button on Chrome

Chrome rendered a button under the image that was used initially to let the user know they could delete a file from the Archivatory server.

What was the solution?

Changed the button to match the Bootstrap styling on the rest of the site.
Archivatory Delete Button Update


New Features

User Profiles:

Archivatory User Profiles

User profiles sit at /u/[username]. This location is for logged in users and visitors. To help save time on future changes to the user profile pages these directories have an index.php file that only has one line, `include profile.php ?>. This file pulls the username from the URI and builds the profile page based off the rest of the profiles.php file.

archivatoryProfileTemplate.png

Profile Bios:

The user bio is entered into a box on the users' settings page and when saved executes the execs/bio.php file to save the bio to the user database.
Archivatory Bios

User Playlist:

By request, we now have a playlist where the user may tell the database if the uploaded file's name and IPFS link should display on the users' profile. Playlists where implemented by adding a new column to the user database where their files information lives. This column will only ever be a 1 or a 0. The MySql script that PHP runs finds all files marked as 1 and output them in HTML format. (All newly uploaded files and files uploaded before the switch are marked 0 by default.

archivatoryPlaylistCode.png

Archivatory-add-to-playlist.png

Login Landing Page Checks For User Profile:

For me to not have to go back to already existing accounts and create the profile, I chose to have the landing page after login check for the users' directory. If that directory does not exist, then it creates it and if it does exist nothing happens.

archivatoryProfileCheck.png

Changed top.html to top.php to have auto directories

To have links working across directories while holding a single file for the menu bar, I needed to have the header find the HTML base directory. I solved this by changing mainTop.html to mainTop.php. This change gave the file the ability to source the base directory with the following.

mainTop.php
Now all the needs to happen is the addition of echo $dir; ?> before all the links in the menu to have the links resolve no matter where the current file resides.

GitHub Account

https://github.com/jrswab

Sort:  

Thank you for your contribution. Is the limit of 25 MB is set by IPFS only, or it is restricted from the front end?

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

That 25MB is only on the front end of this site. Logged in users are capped at 250MB per file but IPFS has no limit. The reason I limit the upload is due to the amount of space the server has at the moment.

Great work JR. I hope to be putting a lot more time into this project, so much progress. So little time!!

Hey @jrswab
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Congratulations @jrswab! You have completed the following achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:
SteemitBoard World Cup Contest - Croatia vs England


Participate in the SteemitBoard World Cup Contest!
Collect World Cup badges and win free SBD
Support the Gold Sponsors of the contest: @good-karma and @lukestokes


Do you like SteemitBoard's project? Then Vote for its witness and get one more award!

Coin Marketplace

STEEM 0.35
TRX 0.12
JST 0.040
BTC 70797.92
ETH 3553.00
USDT 1.00
SBD 4.76