Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Releases
[REL] Badge Uploader for BrainCMS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Higoka" data-source="post: 456604" data-attributes="member: 83624"><p>Hey,</p><p></p><p>A while ago i made "Badge Uploader" addon for BrainCMS.</p><p>I originally made that for a friend of mine but might be useful for some of you guys.</p><p>Its in german but can easily be translated.</p><p></p><p><strong>How it works</strong></p><p>The idea is simple. Users can create their own badge with for example Photoshop, Gimp, Paint whatever and then upload it to your hotel.</p><p>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.</p><p>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 [ICODE]album1584[/ICODE] and the corresponding flash texts (badge_name_XXX=XXX and badge_desc_XXX=XXX) get placed into your [ICODE]external_flash_override_texts.txt[/ICODE] 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.</p><p></p><p><strong>Screens</strong></p><p>[SPOILER="Badge Uploader"]</p><p>[ATTACH=full]10038[/ATTACH][/SPOILER]</p><p>[SPOILER="Inside the housekeeping"]</p><p>[ATTACH=full]10039[/ATTACH]</p><p>[/SPOILER]</p><p></p><p><strong>IMPORTANT</strong></p><p>Location for <strong>album1584</strong> is: /swfs/c_images/album1584</p><p>Location for <strong>external_flash_override_texts.txt</strong> is: /swfs/gamedata/override/external_flash_override_texts.txt</p><p>They are both hardcoded in different files if you use a different location you need to change it to yours.</p><p>You need to make sure that you have <strong>READ AND WRITE ACCESS</strong> for both otherwise its <strong>not</strong> going to work!</p><p>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.</p><p></p><p><strong>Download</strong></p><p>The entire cms can be found here: <a href="https://github.com/higoka/BrainCMS/tree/badge-upload" target="_blank">https://github.com/higoka/BrainCMS/tree/badge-upload</a></p><p>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.</p><p>If you only need the files i changed download this zip and replace yours with mine: <a href="https://github.com/higoka/BrainCMS/raw/badge-upload/badge-upload.zip" target="_blank">https://github.com/higoka/BrainCMS/raw/badge-upload/badge-upload.zip</a></p><p>Dont forget to import this into your database.</p><p>[CODE=sql]DROP TABLE IF EXISTS `badge_upload`;</p><p>CREATE TABLE `badge_upload` (</p><p> `id` int(11) NOT NULL AUTO_INCREMENT,</p><p> `user_id` int(11) NOT NULL,</p><p> `code` varchar(32) NOT NULL,</p><p> `name` varchar(32) NOT NULL,</p><p> `desc` varchar(128) NOT NULL,</p><p> PRIMARY KEY (`id`)</p><p>) ENGINE=InnoDB DEFAULT CHARSET=latin1;[/CODE]</p><p></p><p>I currently have some spare time to do some addons/projects whatever.</p><p>You can contact me on Discord @ higoka#7120 or here on DevBest PM.</p><p></p><p>EDIT: There is also another addon i made which lets you use emojis in the news comments section: <a href="https://github.com/higoka/smiley-comments" target="_blank">https://github.com/higoka/smiley-comments</a></p></blockquote><p></p>
[QUOTE="Higoka, post: 456604, member: 83624"] 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. [B]How it works[/B] 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 [ICODE]album1584[/ICODE] and the corresponding flash texts (badge_name_XXX=XXX and badge_desc_XXX=XXX) get placed into your [ICODE]external_flash_override_texts.txt[/ICODE] 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. [B]Screens[/B] [SPOILER="Badge Uploader"] [ATTACH=full]10038[/ATTACH][/SPOILER] [SPOILER="Inside the housekeeping"] [ATTACH=full]10039[/ATTACH] [/SPOILER] [B]IMPORTANT[/B] Location for [B]album1584[/B] is: /swfs/c_images/album1584 Location for [B]external_flash_override_texts.txt[/B] 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 [B]READ AND WRITE ACCESS[/B] for both otherwise its [B]not[/B] 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. [B]Download[/B] The entire cms can be found here: [URL]https://github.com/higoka/BrainCMS/tree/badge-upload[/URL] 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: [URL]https://github.com/higoka/BrainCMS/raw/badge-upload/badge-upload.zip[/URL] Dont forget to import this into your database. [CODE=sql]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;[/CODE] I currently have some spare time to do some addons/projects whatever. You can contact me on Discord @ higoka#7120 or here on DevBest PM. EDIT: There is also another addon i made which lets you use emojis in the news comments section: [URL]https://github.com/higoka/smiley-comments[/URL] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
[REL] Badge Uploader for BrainCMS
Top