• Content count

  • Joined

  • Last visited

Community Reputation

287 Accomplished


About Sanctuary

  • Rank
  • Birthday 04/08/1997

Profile Information

  • Gender
  • Software
  • Version

Contact Methods

  • Website URL
  • Skype
  • Discord
  • GitHub

Recent Profile Visitors

6,428 profile views
  1. Russian Roulette

    88, les go
  2. forum tab

    I believe this is the 3.x hook you're looking for. However, I should let you know that their tabs are custom made with HTML/CSS/jQuery (and aren't hard to duplicate - I would know, I've done it before ).
  3. Custom jQuery Accordion Tutorial

    Updated - I've updated the OP with better code! Now using less lines of jQuery, and you can now also use multiple accordions throughout your site instead of 1! Here's a screenshot:
  4. Simple jQuery Spoiler

    Updated - I've updated the OP with better code! Less messy, and (if you ignore the comments and blank lines) it now uses almost half as many lines of jQuery!
  5. Custom jQuery Tabs

    Update - I've updated the OP with better code! The previous one was a bit ehh, but this version should be much better (it's also 6 lines shorter). You can also now use it multiple times on a single page! Here's an example screenshot: I also swapped out the sliding effect with a fade effect, since a sliding effect on larger <div>'s may not work as well, but you can adjust that yourselves, if you wish. @Xing - In case you're interested.
  6. Custom jQuery Tabs

    If set up correctly, it could, yep.
  7. How To: Create Custom Discord Commands!

    Whoops, sorry for the late reply. You've probably figured this out by now, but I'll leave this here for others who stumble upon this later on. You create a bot and get its token by going to this page: Once you're on that page, click on "Create Application", fill in the info, and submit it. Once you submit the info, click on this button: Confirm the action and then you're done. After you click that, it'll look something like this: Click on the "click to reveal" button to grab your token, input it in the code, and you're done! One important thing to note is that you can use most of the code in this tutorial, but you'll need to adjust some parts of it. Here's an example code to get you started: const Discord = require("discord.js"); const bot = new Discord.Client(); bot.on("ready", () => { // Once the bot is ready, let us know by logging this message into the console console.log("Bot is connected!"); }); bot.on("message", (msg) => { // If the message that was sent is exactly equal to "!ping"... if (msg.content == "!ping") { // Send a message inside the same channel that say "Pong!""Pong!"); } }); bot.login("YOUR_ACCOUNT_TOKEN_GOES_HERE"); Of course, that's just a very, very basic ping/pong setup you can use to test if your bot is working. You can see the full reference of the documents by going to the Discord.js v9 docs page. Good luck, have fun!
  8. Man oh maaaan, I discovered something so awesome yesterday. If you're on at least a couple Discord servers, you probably know what a bot is and that it can do some pretty cool stuff. But there's also this thing called selfbots, or basically, you are (partially) a bot. It's a bit confusing at first, but let me give you an example: I'm having a conversation on a server, and I want to send a ( ͡° ͜ʖ ͡°) face, but going out of my way to search it, copy, and paste it can get annoying. This is where selfbots come in. With regular bots, if you were to type a bot command such as /lenny, for example, it would trigger the bot command and the bot would send a lenny face. However, with a selfbot, you can make it so that your account sends that message. Before I go any further, I would just like to let you guys know that there are certain rules when it comes to selfbots. Here there are, be sure to read them before reading any furthe Source: But enough of the introduction, let's get down to business. Setting Up The Bot Fortunately, it doesn't cost anything to set up a bot, you can just run it off your own computer if you want to. There are a few limitations with running it off your own computer vs a Virtual Private Server (VPS), but we'll get to that later. 1) You're gonna need something called a "token" in order for your bot to be able to login to your account. To do so, go to the following page: 2) Once you're on that page, you can either right click, click on Inspect Element, or press Ctrl + Shift + i on your keyboard. After that, click on the Console tab and enter the following piece of code in it: localStorage.token It should output a long string of letters and numbers. Copy the output result and paste it somewhere safe (Don't include the " marks at the end or beginning). 3) NOTE: IT IS VITAL THAT YOU DO NOT SHARE THIS WITH ANYBODY. IF SOMEONE GETS A HOLD OF YOUR TOKEN, THEY CAN SEND MESSAGES AND PERFORM MALICIOUS ACTS UNDER YOUR ACCOUNT. KEEP THIS IS MIND AT ALL TIMES. 4) Once you've saved your token somewhere safe, go ahead and create a new folder on your Desktop (or wherever you want) and name it "Discord Bot" (or anything else you want). 5) After that, you'll need to download something called Node.js. You can do so by going to their website and clicking on the v6.5.0 Current button. 6.5.0 may not be the latest version by the time you read this tutorial, but that's alright, just download whatever the latest version is. Downloading the 4.x series won't work though. Once you're finished downloading and installing, move on to the next step. 5.1) If you don't already have a code editor (Notepad++, Sublime Text, Atom, etc.), it is recommended that you get one. Of course, it's not required, you can use the default Notepad program, but it's a mess to do it that way. Here are some links for code editing programs I've used in the past and recommend: Atom - Notepad++ - Sublime Text - I currently use Atom and love it, but I only recently stopped using Notepad++ after 4 years, and I can say that both are great programs. Haven't used Sublime Text much so I can't speak there. 6) Go back to the "Discord Bot" folder you created. Once you're inside that folder, hold Shift and then right-click to open up the right-click menu. On there, you should be able to see an item listed as "Open command window here". Once you click that option, you should see something like this: 7) Once you have that up, type npm and press enter. This will check if everything installed. It should look something like this: If it looks something like that, you're good to move on. 8) Once done checking, you're gonna wanna type npm install discord.js and press enter. It'll take a short while to install, usually more or less around a minute, but you'll know when it's done installing. Note: If you receive some warnings at the end, such as "npm WARN {user} No description", feel free to ignore those, it should still have installed normally. After it's done, you can check if it successfully installed by typing npm list discord.js. If it returns something like -- [email protected], then it installed perfectly and you're almost ready to get your bot up and running! 9) Open up your code editor and make a new file. Inside of that file, copy/paste this: const Discord = require("discord.js"); const bot = new Discord.Client(); bot.on("ready", () => { // Once the bot is ready, let us know by logging this message into the console console.log("Bot is connected!"); }); bot.on("message", (msg) => { // If the person who sent a message was NOT us, ignore it if ( !== bot.user) { return; } // If the message we sent equals "/lenny", ... if (msg.content == "/lenny") { // Wait 0.1 seconds... setTimeout(() => { msg.edit("( ͡° ͜ʖ ͡°)"); // And then edit the message to the actual lenny face }, 100); // 100ms = 0.1s // The reason for waiting for 0.1 seconds *before* editing // is because sometimes Discord glitches and "unedits" the message, andthis can prevent that } }); bot.login("YOUR_ACCOUNT_TOKEN_GOES_HERE"); Remember that token from earlier? Grab it again and copy/paste it to the very bottom line of that code, where YOUR_ACCOUNT_TOKEN_GOES_HERE is. Save the file as selfbot.js, or anything you want to, really. Just make sure to remember it. 10) Once you're done, go back to the command prompt and type node selfbot.js and wait a moment. If everything went well, the console will output "Bot is ready!". If so, you're good to go! If not, go back and re-read some of the steps and make sure you did everything accordingly. 11) Create a new server for yourself and name it whatever you want. When you're in that server, type /lenny and watch the magic happen. You now have your own selfbot set up! Selfbots are amazing because you can add your own custom and secret commands that aren't available by Discord by default and are only accessible by you. F.A.Q I know other languages but I don't know JavaScript - can I use a different language? Yep! There are other Discord API libraries out there for different languages. You can check them out by going to this link: However, do note that this tutorial won't apply to other language libraries. Where will these commands work? Anywhere and everywhere! As mentioned before, this bot is running under your account, so wherever you go, it follows. What are the downsides to running this on my computer as opposed to a Virtual Private Server (VPS)? Running it on your computer means that it relies your computer to be functional, connected to the internet (obviously), and have the command prompt window open at all times. With a VPS, your bot can be up and running 24/7, even with your computer on! So you can use your commands on your phone while in bed or away from home, for example. The only download is that most decent VPS' cost money. Fortunately, I have a solution for you! You can sign up via this referral link and get a free $10 to spend on a VPS, which goes up to 2 months worth! Digital Ocean is the VPS service I use, I would highly recommend it due to its ease of use, reliability, and cheap prices. You can also, of course, Google it yourself to see if you can find a free VPS out there, I'm pretty sure there's a few out there. Hope you guys enjoy!
  9. Yo guys, I just got an e-mail from Digital Ocean with a great coupon/referral deal system. Basically, all you have to do is sign up under this referral link: You'll instantly be granted with a free $10 to your account, which is worth at least 2 months of free VPS hosting! Plus, if you spend an extra $15 on top of that $10, I get a free $25 added to my account, so let's help each other out, right? 2 months on their $5 plan will get you a VPS with: 512MB Memory, 1 Core Processor, 20GB SDD Disk, and 1TB Transfer! If you want to upgrade your package to something higher, here's the pricing table: I'd highly recommend Digital Ocean because it's very easy to use and setup, while also being cheap, reliable, and very fast. Enjoy those 2 free months!
  10. 700+ posts! :D

    1. COCK


      Hey man, I bought the IPB Theme but misplaced it when upgrading my PC, can you provide me with it?

    2. Sanctuary


      Send me a message on Skype so that I can confirm you bought it. Skype ID:

    3. COCK


      ok thank you :P

  11. Fatal Error When Installing App

    Well, I was able to fix this issue by upgrading our 3.4.6 board to 3.4.9. I'm not sure about an actual solution though, because this wouldn't work if you're already on 3.4.9, sooo... But yeah, solved now I guess.
  12. We have a Discord Server!

    CometChat isn't nearly as convenient as Discord. Discord has a program for Windows, OSX, and Linux (?), a website which is nearly identical to their program, and smartphone apps for Androids and iOS devices. In terms of moderation, there's a lot more tools and features that help with that and makes thing simple and clean. It has so much more to offer and is better (and more appealing) than CometChat in pretty much every way. All in all, nice choice. We've been using Discord over at our site for about 4 or 5 months now I believe and it's an amazing app. Very powerful, always being updated, and so many useful features. Still lots of good things to come to, so there's always something to look forward to.
  13. I tried installing an application on my board and I keep getting an error. I wasn't getting this error up until last night, and I'm not sure why this is happening because it was working perfectly fine less than 2 days ago. This is the error message I'm receiving: Fatal error: Class 'skin_global_121' not found in /home/lakevalo/public_html/admin/sources/classes/output/publicOutput.php(3846) : eval()'d code on line 3 I already tried Googling for an answer, but everything I found and tried didn't make a difference. I checked the publicOutput.php file and this is what's around line 3846: protected function _getSkinHooks( $name, $classname, $id ) { /* Hooks: Are we overloading this class? */ $hooksCache = ipsRegistry::cache()->getCache('hooks'); if( isset($hooksCache['skinHooks'][ $name ]) && is_array($hooksCache['skinHooks'][ $name ]) && count($hooksCache['skinHooks'][ $name ]) ) { foreach( $hooksCache['skinHooks'][ $name ] as $classOverloader ) { if( is_file( IPS_HOOKS_PATH . $classOverloader['filename'] ) ) { if( ! class_exists( $classOverloader['className'] ) ) { /* Hooks: Do we have the hook file? */ $thisContents = file_get_contents( IPS_HOOKS_PATH . $classOverloader['filename'] ); $thisContents = str_replace( $name."(~id~)", $classname, $thisContents ); ob_start(); eval( $thisContents ); ob_end_clean(); } if( class_exists( $classOverloader['className'] ) ) { /* Hooks: We have the hook file and the class exists - reset the classname to load */ $classname = $classOverloader['className']; } } } } return $classname; } Line 3846 would be this exact code: $thisContents = str_replace( $name."(~id~)", $classname, $thisContents ); I found a few answers that told me to upgrade or uninstall the Group Color on User Links hook, but I did both and the problem still persisted. If anybody knows why this is happening or has a solution, please let me know. Thank you!
  14. Centering Logo

    float: center; does not exist. I think you're confusing it with text-align: center; which is probably the answer you're looking for in this case. You should post your HTML as well as your CSS so that we have a better idea of what it looks like (or even better: leave a link to your site so we can use inspect element to quickly figure out the answer). As mentioned, try using text-align: center;. However, text-align won't work unless if your HTML element possesses a display property of inline, or inline-block. If you're unsure, add this: display: block; text-align: center; But again, I can't guarantee that'll work since I don't know how your HTML is set up.