Jump to content

SamCheets

Apprentice
  • Posts

    33
  • Joined

  • Last visited

  • Days Won

    1

SamCheets last won the day on October 20 2021

SamCheets had the most liked content!

1 Follower

Profile Information

  • Language
    English
  • Software
    IPS4
  • Version
    4.4

Contact Methods

Recent Profile Visitors

464 profile views

SamCheets's Achievements

Apprentice

Apprentice (3/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post
  • Collaborator Rare

Recent Badges

8

Reputation

  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.
×
×
  • Create New...