Jump to content
  • Sign Up

Cookie Monster

Moderator
  • Posts

    1,420
  • Joined

  • Last visited

  • Days Won

    76

Everything posted by Cookie Monster

  1. Wow MoTM. Thanks guys and girls <3 

  2. So when you move you need to do a few things Backup, backup, backup ? Did i say backup yeah i mean it. Have a backup with a hidden backup of a backup thats stored! You can not ever have to much backup. Restore back to the original domain. Copy the files and copy the database to new domain. Change global_conf.php and only change the following a) BoardURL b) DB info (So user etc) Try, if this fails, please try the next step. Download the database to your computer. Open in Notepad++, Atom.io, Visual Coder. Anything except word or notepad (It might be a big file) Do a search and replace for the following yoursub.domain.com replace with yourdomain.com Replace INSERT INTO with REPLACE, or delete the database that is the new one (You have a backup so keep the old and delete the new, then upload your modified version) Check conf_global in step 4. Try the board Let me know if this works. So when you move you need to do a few things Backup, backup, backup ? Did i say backup yeah i mean it. Have a backup with a hidden backup of a backup thats stored! You can not ever have to much backup. Restore back to the original domain. Copy the files and copy the database to new domain. Change global_conf.php and only change the following a) BoardURL b) DB info (So user etc) Try, if this fails, please try the next step. Download the database to your computer. Open in Notepad++, Atom.io, Visual Coder. Anything except word or notepad (It might be a big file) Do a search and replace for the following yoursub.domain.com replace with yourdomain.com Replace INSERT INTO with REPLACE, or delete the database that is the new one (You have a backup so keep the old and delete the new, then upload your modified version) Check conf_global in step 4. Try the board Let me know if this works.
  3. So to do this there is a few important STEPS. Its case sensetive, meaning if lets say Norway is written as Norway (Notice big N) in the Country list then the image name needs to be the exact same. So Norway (Norway.png) not norway.png etc Make sure that there are no spaces etc, if there is spaces in the names etc United Kingdom then the image name is United Kingdom.png (Notice the space between the words) ------------------------------------ So how to do this. With FTP you need to locate your forum folder and upload folder. Create a new folder call it custom or whatever you want Navigate to AdminCP > Members > Profiles | Select to edit the Country Fields you had installed. Find Display Format and paste this code. <img src="httpX://YOURURL/uploads/custom/{content}.png" alt="{title}"></img> Notice the X, YOURURL and CUSTOM these needs to be replaced with the following. X = S if you are using https (So with SSL on this would be https, if no ssl its http) YOURURL your forum url custom = the foldername you created in uploads folder. .png (Change this to whatever the file extention is .jpg .png .gif etc) Make sure ALL IMAGES have the same extention. To explain what the code does, it will take the title of the country in the field, and put that in front of the .png This should give you like this
  4. Care to explain a bit more what you are tying to achieve? Is this ment to be on the forum you execute the script or?
  5. Normally if it is grayed out like that, it could be that you have sub forums in there. If that is the case i would suggest selecting both the sub forums to make it work. Also i do not belive you can setup RSS on a empty forum but don't quote me on it, i just think that there is a function that will check if there is any content there.
  6. I would presume you can google to find them. But you still need to match them all up etc.
  7. Version 1.0.0

    32 downloads

    This is the icons that can be used for this guide
  8. For information I have created a guide with the buttons, Credits to original idea goes to @Luca Munich I just simplified it a bit and added some buttons.
  9. Info boxes with buttons (Warning, Alert, Success, Danger, Info) The orginal topic is located here Though i found out i wanted to make it a simpler way with buttons to sort this then cut and paste code. Let's get started. You need to download this, it only contains some icons to use, but you can use any icons you want. But for this tutorial i made some predefined icons from link below. Navigate to AdmnCP > Customization > Themes > Your Theme > Edit HTML & CSS > CSS > custom.css Please note that if you have multiple themes you need to add it to all themes that you want this working to. Paste in the code below in custom.css /* Simple Alert boxes from Cookie Monster */ .alert { padding: 20px; background-color: #f44336; color: white; opacity: 1; transition: opacity 0.6s; margin-bottom: 15px; width: 75%; text-align: center } .alert.success {background-color: #4CAF50;} .alert.info {background-color: #2196F3;} .alert.warning {background-color: #ff9800;} /* End of Simple Alert boxes by Cookie Monster */ Save Navigate to AdminCP > Customization > Editor > Toolbars Click Add Button > Custom - Now fill it out like this (After each button is filled out click save) Click to reveal each step from Alert, Success, Info, Warning. (Don't skip) Alert That is all the buttons, so now lets make it look a bit better You should have a button called "Add Toolbar", click on this then drag all icons into the new line. You can also change permissions per button by clicking on the button and select Permissions (So only mods and admins can set it) I Hope this guides help people and if it did please use the and give it a GREEN Plus to feed me a cookie.
  10. All i said was that you where missing -moz and -webkit for crossbrowser. Notthing about the icons.
  11. Welcome to Webflake @mr-pimpen Please remember to read our Community Guidelines and enjoy your stay!
  12. So i fiddled a bit with a script that you can do, but you need to create variables to capture the data from the user. <?php $request = new HttpRequest(); $request->setUrl('https://YOURURLTOFORUM/api/core/members'); $request->setMethod(HTTP_METH_POST); $request->setHeaders(array( 'authorization' => 'Basic INSERTAPIKEY', 'content-type' => 'application/x-www-form-urlencoded' )); $request->setContentType('application/x-www-form-urlencoded'); $request->setPostFields(array( 'name' => '$_POST['username']', 'email' => '$_POST['email']', 'password' => '$_POST['password']', 'group' => '3' // This is the usergroup by default set to member remember to check so you don't create loads of admin accounts. )); try { $response = $request->send(); echo $response->getBody(); } catch (HttpException $ex) { echo $ex; } To get your API key. -> AdminCP > System > Rest API > Download the .htaccess file upload to /api folder. Click Continue Generate a key, give access to GET and POST for system and members. (So you can get a responds etc) You can give more security by specifying IP but for this i would not recommend it at least until you know it works. What you need to edit Need to change the URL to your forum. Insert your new APIkey in the autorization but leave BASIC there, so it should say Basic SPACE YOURAPIKEY In the array you need to add the fields you grabbed from your previous post. I tested this on my forum and this was the result
  13. Well sure can pay me for it if you want i won't promise anything but i'm having a test on my own forum board at the moment.
  14. Well what you show me there i belive is XenForo registration. But it seems you can use the same information atleast some of it name,password,email Then you create ajax request to /core/members but remember you need to be authenticated before you do this. Else it will fail, so i would belive it should be in this order. Create auth to api to endpoint /core/hello Grab the registration details that you already showed Create another AJAX responds and post to /core/members with the information in the array. If you post $register_data array to /core/members i belive it will fail as some of the information is not what the API is looking for. Also you are not handling errors or what happends when you get a certain responds, so you need to create an error handler for resp, and reject.
  15. Just to say in your last code, your missing a few things for cross-browser comparability -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px; color: #fff; margin-bottom: 10px; padding: 15px 15px 15px 45px; position: relative; Note the -moz-border-radius and -webkit-border-radius More info about this can be found here
  16. So your trying to register a member with the API. What i read there looks a bit wrong. Even the link etc. Have a read here https://invisionpower.com/developers/rest-api Post members should have something among these lines https://invisionpower.com/developers/rest-api?endpoint=core%2Fmembers%2FPOSTindex But you need to create the API link and authorize first then do the post to register members. From the site itself, creating a authorization would be http://www.example.com/api/core/hello?key={apiKeyHere} Then i would presume you can create an object in javascript or PHP like this. <?php $myObj->name = "UserNameOfUser"; $myObj->email = "[email protected]"; $myObj->password = "$variabe that captures user pasword"; $myObj->group = "4"; // Set the member group as a number for what member to register them as this is an example $myJSON = json_encode($myObj); echo $myJSON; ?> That should create an array to the post it to /core/members
  17. Welcome to Webflake @TheSvensson I would try this AdminCP > System > Search Engine Optimization > Meta Tags > Live Meta Tag Editor > Page Title This will give you the page title for that particular page. Also a great idea for SEO is to fill out other information there if you know of it This would be a good guide to read to understand it if you don't know how the meta tags etc work or impact your site, http://www.hobo-web.co.uk/definitive-guide-to-using-important-meta-tags/ Hope this helps and if you have any questions feel free to ask.
  18. The question(s) in this support topic have been answered and the topic author has resolved their issue. This topic is now closed. If you have other questions, please open a new topic.
  19. Or if you want to try this, its a FREE course. Take a few hours and give it a go. I done it before when i started out its great help https://www.sololearn.com/Course/PHP/
  20. Then I do suggest that you don't tinker and tamper with it unless you want to break things I do have some suggestions. Read and understand IF / ELSE / ELSEIF Read and understand Loops / for each / do / do while etc. Don't tamper with code you don't know what does unless you want to break it. Set things back as how it was before it was broken, so its possible to find out WHY its not working, take this scenario 100 000 users uses has a IPS forum, and it works (else it would been out for a quick fix as that is a major flaw in a forum) You don't know what code you been tampered with, in what way you tampered with it, nor do you know or understand WHERE the code goes, considering it starts from the top and goes down moving code might not be the best. Feed me a Sorry to sound harsh, but if you keep tampering with code when we (as in me and others) are trying to assist it makes our job 50 times harder. As we don't know what you have changed. so IF you change things make some comments of what has changed or comment OUT the old code so you can easy revert back. To make a comment you do this <?php echo 'This is a test'; // This is a one-line c++ style comment /* This is a multi line comment yet another line of comment */ echo 'This is yet another test'; echo 'One Final Test'; # This is a one-line shell-style comment ?>
  21. Does your topic have any content if so you can try AdminCP > System > Support > Somthing isn't working This should clear bad cache etc and fix any issues. See if that helps.
  22. Well if its INSTALLED already you should have conf_global.php if its not installed or used before then disregard what i said.
  23. Well if you renamed it and the IPS is installed you need to edit conf_global.php aswell so it reflects the changes @droidman
  24. Hi there @Dane what are you trying to achieve ?
×
×
  • Create New...