[REL] Badge Uploader for BrainCMS

Results 1 to 9 of 9
  1. #1
    Member Tafelglotzer is offline
    MemberRank
    Jan 2017 Join Date
    76Posts

    [REL] Badge Uploader for BrainCMS

    Hey,

    A while ago i made "Badge Uploader" addon for BrainCMS.
    I originally made that for a friend of mine but might be useful for some of you guys.
    Its in german but can easily be translated.

    How it works
    The idea is simple. Users can create their own badge with for example Photoshop, Gimp, Paint whatever and then upload it to your hotel.
    They need to enter a name and description for their badge. They also need to enter a badge_code and the badge image. There are some rules, for example 40x40 pixels size and GIF format.
    After that the staffs can either approve or deny the badge inside the housekeeping. If they approve it, then the badge gets placed into your album1584 and the corresponding flash texts (badge_name_XXX=XXX and badge_desc_XXX=XXX) get placed into your external_flash_override_texts.txt at the very bottom of the file. Then the user receives the badge in their inventory. (it gets inserted into users_badges in the db). If the staff deny the badge it simply gets removed and the user doesnt receive their badge.

    Screens
    Spoiler:



    Spoiler:





    IMPORTANT
    Location for album1584 is: /swfs/c_images/album1584
    Location for external_flash_override_texts.txt is: /swfs/gamedata/override/external_flash_override_texts.txt
    They are both hardcoded in different files if you use a different location you need to change it to yours.
    You need to make sure that you have READ AND WRITE ACCESS for both otherwise its not going to work!
    If you have improvements or other ideas you want to see let me know. Also let me know if you want that i implement this into another cms, i dont know what cms is currently the most used one but back when i created this BrainCMS was the most used one.


    Download
    The entire cms can be found here: https://github.com/higoka/BrainCMS/tree/badge-upload
    Its basically just a fork and i dont know if this is the latest version of BrainCMS or not but i couldnt find any working download link besides this git repo.
    If you only need the files i changed download this zip and replace yours with mine: https://github.com/higoka/BrainCMS/r...dge-upload.zip
    Dont forget to import this into your database.
    Code:
    DROP TABLE IF EXISTS `badge_upload`;CREATE TABLE `badge_upload` (
      `id` int(11) NOT NULL AUTO_INCREMENT,
      `user_id` int(11) NOT NULL,
      `code` varchar(32) NOT NULL,
      `name` varchar(32) NOT NULL,
      `desc` varchar(128) NOT NULL,
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;


    I currently have some spare time to do some addons/projects whatever.
    You can contact me on Discord @ higoka#7120


    EDIT: There is also another addon i made which lets you use emojis in the news comments section: https://github.com/higoka/smiley-comments
    Last edited by Tafelglotzer; 15-02-20 at 11:03 PM.


  2. #2
    Alpha Member Emily is offline
    MemberRank
    Oct 2012 Join Date
    The NetherlandsLocation
    2,408Posts

    Re: [REL] Badge Uploader for BrainCMS

    Screens don't work. Keep in mind, you can't use attachments from a certain rival forum as images here

  3. #3
    Member Tafelglotzer is offline
    MemberRank
    Jan 2017 Join Date
    76Posts

    Re: [REL] Badge Uploader for BrainCMS

    thanks for the info i changed it

  4. #4
    [REL] Badge Uploader for BrainCMS[REL] Badge Uploader for BrainCMS pel is offline
    MemberRank
    Jan 2012 Join Date
    Munich, GermanyLocation
    384Posts

    Re: [REL] Badge Uploader for BrainCMS

    Nice, getting some 2013 vibes code quality wise here. Would've thought people actually improved by 2020.
    Thanks for sharing nonetheless

  5. #5
    Member Tafelglotzer is offline
    MemberRank
    Jan 2017 Join Date
    76Posts

    Re: [REL] Badge Uploader for BrainCMS

    yes the code of braincms is terrible

  6. #6
    Live Ocottish Sverlord Joopie is online now
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,767Posts

    Re: [REL] Badge Uploader for BrainCMS

    Quote Originally Posted by pel View Post
    Nice, getting some 2013 vibes code quality wise here. Would've thought people actually improved by 2020.
    Thanks for sharing nonetheless
    Keep in mind that people come and go. 2013 peeps might already left this scene anyway.

  7. #7
    Proficient Member harbihotel is offline
    MemberRank
    Jul 2008 Join Date
    PortugalLocation
    194Posts

    Re: [REL] Badge Uploader for BrainCMS

    Can't access this.

  8. #8
    Member Tafelglotzer is offline
    MemberRank
    Jan 2017 Join Date
    76Posts

    Re: [REL] Badge Uploader for BrainCMS

    Quote Originally Posted by harbihotel View Post
    Can't access this.
    Should be working again

  9. #9
    Proficient Member harbihotel is offline
    MemberRank
    Jul 2008 Join Date
    PortugalLocation
    194Posts

    Re: [REL] Badge Uploader for BrainCMS

    Quote Originally Posted by Tafelglotzer View Post
    Should be working again
    Thanks a lot, already in use. ;)



Advertisement