Jump to content

SamCheets

Apprentice
  • Posts

    33
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by SamCheets

  1. https://invisioncommunity.com/files/file/9486-chinese-language-for-invision-community/ Can anyone add this into downloads?
  2. $users_in = (\IPS\Db::i()->select('*', 'nexus_invoices', 'i_member',$member_id )); foreach ($users_in as $user_in) { //example usage of it //echo $user_in['ps_id'] } also, using first-> without checking it will give internal server error. If you only want to get first query the way you should use is: $user_in = (\IPS\Db::i()->select('*', 'nexus_invoices', 'i_member',$member_id )); if (count($user_in) > 0) { $user_in = $user_in->first(); } Also, forgot to mention, you should put your where statement in array. array('i_member=?', $member_id')
  3. Yea, I know cause I gave instruction as like that
  4. I don't think different versions of IPboard will change anything. Feel free to try.
  5. Cuz you’re using it wrong. Check the post again.
  6. tested it in 4.5, works without any issues. You probably messed up something.
  7. Why you’re trying to bypass a security check lol https://portswigger.net/web-security/csrf Anyway, add this under class public static $csrfProtected = TRUE; Also, the reason why you’re getting this error due ips 4.5.x’s new csrf check. So if you’re trying to add 4.4.x application, you might need to update more things besides of csrf. https://invisioncommunity.com/developers/docs/invision-community-46/deprecated-methods-r190/
  8. Also, you might want to check /system/Login/Handler/Standard/Standard.php public function authenticateUsernamePassword( \IPS\Login $login, $usernameOrEmail, $password ) { ... }
  9. /applications/core/modules/front/system/login.php don’t forget to call init.php into your external php(talking about require once) also, add permission check using member class. otherwise, if your users can access while you’re working on it, something maybe can go wrong
  10. I didn’t even understand what are you trying to achieve. If you’re making login system for your C++ application and if you’re thinking that you can’t authenticate your users with invision, and that’s why you’re using xenforo’s auth and same reason why you’re trying to connect those using oauth2, well you don’t have to do that. you can just grab some codes from invision’s core (front module) application, and create php file, call init.php and send request from your c++ application for logging in. you can even add some checks like user agent.
  11. I don't know what language you're speaking but if you're meaning that adding this is corrupting members card, well it's not. Because it's not changing anything. It just sets nickname in ?app=core&module=members&controller=profile&do=manage Maybe it's related with invision version, I'm currently on 4.4, but in theory, this code can't break anything (as you can see in the screenshot, it's works for me.)
  12. Recently, I coded something for my website that puts verify symbol next to our staff team. In order to make it: 1)Go to /applications/core/modules/front/members/profile.php in your file manager. 2)Add the code under: public function execute() { /* Load Member */ $this->member = \IPS\Member::load( \IPS\Request::i()->id ); Code: if ($this->member->inGroup(4,6)) { $this->member->name = $this->member->name . " ✓"; } Basically, this code is checking if visited profile's group is 4 or 6 (For me, 4 = Administrator, 6 = Moderators) and if it's, it's adding verification symbol next to username.
  13. Yea, it's like we've enabled oauth but you shouldn't use it because it's not safe.
  14. $member = \IPS\Member::loggedIn(); $password = \IPS\Db::i()->select( 'members_pass_hash', 'core_members', array( 'member_id=?', $member->member_id ) )->first(); if ($password == NULL) { $notification = ' <div data-controller="core.global.core.notificationList" class="cNotificationList"> <div class="ipsAreaBackground_light ipsPhotoPanel ipsPhotoPanel_small ipsPhotoPanel_notPhone cAcpNotificationBanner cAcpNotificationBanner_warning"> <i class="fa fa-warning cAcpNotificationBanner_mainIcon ipsPos_left ipsResponsive_hidePhone"></i> <div> <h2 class="ipsType_sectionHead">Oops... No Password!</h2> <div class="ipsType_richText ipsType_normal"> <div class="ipsType_richText ipsType_normal"> <p> It looks like you don\'t have a password. You probably log in automatically using one of the social networks.</br> Create your password to be able to log in to ' . \IPS\Settings::i()->board_name . ' in case of losing access to the social networking site. New password will be sent to your e-mail. </p> </div></div> </div> <ul class="ipsList_inline ipsSpacer_top"> <li> <a href="/settings/password/" class="ipsButton ipsButton_small ipsButton_veryLight">Create Password</a> </li> </ul> </div> </div></br> '; } 1)Go to your file manager. 2)/applications/core/modules/front/system 3)Click settings.php, then click edit. 4)Add the code under public function manage() { 5)Find this \IPS\Output::i()->output .= $this->_wrapOutputInTemplate( $area, $output ); Change it with this \IPS\Output::i()->output .= $notification . $this->_wrapOutputInTemplate( $area, $output ); I don't know how to use those notifications directly from api. So used their css to use it again. Also, maybe there is a plugin for this, you could check downloads section for that.
  15. found it by searching "footer". don't know where it is locating exactly.
  16. Then how people can switch to dark / light? That's why they put copyright in this js. If you want to remove it, just decode and delete the copyright then encode, replace in original XML, ta da!! Well, for me adding extra CSS or editing JS has same simplicity. We both know that CodeBite can easily patch this method with overwriting font-size in JS with an update.
  17. As far I know, sending notifications is working with Tasks. What is your task method? If it's run with traffic, change it to use cron and set it up.
  18. I think you have to enable curl in php.inis https://faq.miniorange.com/knowledgebase/enable-phpcurl-extension/
  19. I don't think it's not related with IPB 4.6 Make sure you followed all of these steps correctly.
  20. lol, this can easily patch. they are adding this text with javascript so just edit xml file...
  21. Version 1.5.1

    80 downloads

    Application allows you to sell game keys either through external APIs or directly uploaded to the database. Functionalities: Creating a category tree Ability to create additional fields assigned to a category Ability to create game makers Ability to create platforms where games work Ability to comment on games Ability to add game reviews only after purchasing a particular game Possibility to set a promotional price for the game Allow multiple products to be purchased at the same time Reactions in game view Ability to connect game with club Advanced promotion module Countdown in pre-order game Discount codes Advanced search Ability to assign additional fields for all categories automatically Normal categories have been changed to categories with permissions Wish list Ability to selection of payment methods REST API Promoting company profiles (FB, Twitter, Our pick) Recommended comments Message in game view Answer to reviews List of owned games Game importer from API Free games Games with the author's approve "Empty" games (eg profile for an old game) License type: file (ability to upload and download files) Commerce (IP.Nexus) is required for right working. More screens: https://www.ipsbeyond.pl/gallery/album/82-sd-game-keys-store/ More information about versions: https://www.ipsbeyond.pl/release-notes/sd-game-store/ More info: https://www.ipsbeyond.pl/clubs/4-sd-game-keys-store/ You must add at least one product to the database so that there is no error on the home page No copyright footer
×
×
  • Create New...