Sigrotor + Coding Help + Mini Project

Permabanned
Joined
9 Aug 2008
Posts
35,708
Hello,

I am seeing an increase of people requiring sigs to be hosted somewhere for this forum. I am looking for potential coders who would like to be part of a small project to get this back up and running for the forum.

The person who owns http://sigrotor.com/ is no longer and doesn't look like it's been maintained any more.

I believe it was someone named Inquisitor aka Will Vousden but nobody including myself can contact them to get this site up and running again.

Is there any coders on here who would like to be a part of a project to get a brand new sigrotor website up and running?

I can't code to the level of what has been done on here but I can help where possible!

The below link is where anyone on here could contribute to it so please so so if you understand; (HTML5, CSS3, Javascript, jQuery, PHP, MySQL)


Live Site

! Max 10 sig upload limit
! limits for the forum (400 x 75 + file size limit)


Completed and Tested
> Login to MySQL Server (email, username, password [database, live] )
> File upload with folder creation (/signature)
> Moved to primary domain for further testing
> New site URL live!
> Link/URL to signature path (/signature/$username)
> Max allowed 10 + size limits check
> Updated site favicons
> Forgot password reset link
> Better control panel style

To be completed..
> More to come

Thanks!
 
Last edited:
Is Sigrotor back up and active again?
Just noticed the copyright notice year.

No it's not up as such it fails on the back end stuff. The person who made it made a post saying that it's due to the PHP version back in 2016 when it went down last time. The person is no longer active or maintaining the website or contactable.

and you know what's worse is that domain looks like it's on auto-renew as well as it's been renewed since last year.

@Bouton Aide, what language have you gone with?
Have you got a repo going for the project?

I have gone with PHP/SQL and it's not on Github. It uses sessions and authentication via sql. I could release the code though I suppose but I would love it to get something working for OcUK members, saves me having to upload them manually.

So if anyone would like to help (credits will be onsite)
 
Last edited:
Procedural PHP or are building it off a framework?

Definitely get a repo going as i'm sure there's a few of us (myself included, albeit a little rusty at PHP) that will be happy to commit code to the project and/or help wherever we can :)

That would be perfect! Let me get it up on a repo on GitHub in the next hour. I took that code from another repo and modified it to make it work.

My coding skills are very rusty and can only modify code once it's been done. Not good from starting from scratch!

I have modified the first post where the repo will be...

Thanks!
 
I have just checked: SignAvatar

It appears that what you do is host the images on somewhere like imgur and then paste the url into a box, save it and it gives you a url in your control panel.

What sigrotor did was you could upload the images directly and then get the url again inside a control panel.

I think I have the first part sorted, I just need the control panel coded where people could "upload" and grab a url.

I think it's nearly there! :)
 
Well done Bouts, I was coding some python to work with an API today and was tough going, it was nested dictionaries with a list after about three deep. Head melted, if I meet anyone called Jason I will have to refrain myself! :o

I never touched Python! Well it looks like I have managed to do a triple authenticate! To log in now you must know the users forum username AND their email address AND their password! :)

I'm happy with my progress. Once logged in it spits out the 3 sessions. Still working out how to create a session ID folder and how to upload to that session ID folder and get a link some how!
 
Who ever is DeltaEchoSierra I have updated the code on the main site to test it out. It creates the folders, except the images don't load at present due to it been under /sigrotor . If it was under a sub domain or primary domain it would work perfect.

> Users are created fine in the database (email, username and password)
> Mysql login working fine
> Images are uploaded into the username folder under /signatures
> Image displayed is broken upon upload.

Code is great! I can understand now how it's done. :)

EDIT 1: I have moved the files to primary domain, the sigs now loads in the user control panel.

Edit2: Been having a think.... if we could copy over an index.php (this is already created) file from another location on the server to the username created folder that would get the link working, then we just need to spit the url back out in the control panel page for the users to copy.

Edit3: Then we just need to make the control panel a bit more friendly and I would say it’s ready to use!

Great work so far! :D
 
Last edited:
Will do a PR once i get chance to test some bits. But it's worth mentioning that what i'm submitting is ropey at best :D and whilst it "works", i'm not entirely sure how well it'll stand up with load plus i suspect it's open to abuse (to some degree).

We can just see how it goes and see how it handles things. I don't think it will be too bad initially.

Not much more to do to get it to a working site. I noticed you got the url link working!

I tested the 10 sig limit and that works too. Error on upload on 11th image.

Good stuff!
 
@visibleman

it looks like in the URL we get a ? before the users name, checked the code not sure where that's coming from.

EDIT: never mind fixed it. :)


We could do a file copy once an image has been uploaded with but would need to do a check if exist statement first;

copy('foo/test.php', 'bar/test.php');
 
Last edited:
It's nice the way it works. I have tested it and it functions even with spaces.

My UI work is pants but I do know someone who might be able to help with UI CSS! He does the UserStyles, which I also host on GitHub and maintain with few others.

@wiiija :D

We literally need one more thing and that's to copy the file into the folder that does the URL rendering and it's a working site!

I can't believe how fast you managed to code this. I'm going to mention the contributors somewhere as well.
 
In which case expand the if statement (line 77) and add a copy() function, after the directory is created, to copy across the script - after that, i think you're all good to go :)

Worth pointing out that I would add caching control headers if you're binary reading the image as i suspect a browser will attempt to cache it and you might not end up with the signature "rotating". Oh and the content-type needs to be updated to gif rather than jpeg.

Edit - GDPR; true true, i think you're right but it's worth mentioning that PII is stored either way (which you've done, so no biggie).

When your available would you mind doing part A and B for me on GitHub? I don't know where to start with that part. Thanks :p

Oh and the content-type needs to be updated to gif rather than jpeg.

Yeh I noticed this it's corrected now. :)

Good work! Credits where due to you sir - hats off!
 
Back
Top Bottom