Jump to content

FluxCP Registration Addon via Facebook


JayPee

Recommended Posts


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  11/11/12
  • Last Seen:  

Thanks - VicThor

@Jayzy

Error in recording the facebook account in the database. Kindly inform the administrator about this error.

this addons was setting for renewal cp

edit this file for pre-re cp : facebook/modules/facebook/create.php

inline : INSERT INTO {$loginDB}.login (userid, user_pass, email, sex, group_id, birthdate)

Change to : INSERT INTO {$loginDB}.login (userid, user_pass, email, sex, level, birthdate)

just change group_id to level. ;)

hope it works.

Edited by mandeewa
Link to comment
Share on other sites

  • 4 months later...

  • Group:  Members
  • Topic Count:  118
  • Topics Per Day:  0.03
  • Content Count:  1942
  • Reputation:   197
  • Joined:  01/08/12
  • Last Seen:  

thanks it works now.

Edited by Brynner
Link to comment
Share on other sites

  • 3 years later...

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   1
  • Joined:  06/21/17
  • Last Seen:  

Hi JayPee,

 

I have successfully installed your addon, however I'm having problems with it, while testing the registration it redirects me to my facebook account page which is normal and accepted the requirements,

however after hitting the Continue, It loads slowly and stopped with an error page "Too Many Redirects" can you help me with this?

 

my create.php code below:

<?php if (!empty($error)): ?>
	<p class="red" style="font-weight: bold"><?php echo htmlspecialchars($error) ?></p>
<?php endif ?>
<center>
	  <div id="fb-root"></div>
	  <script>
        window.fbAsyncInit = function() {
          FB.init({
            appId      : '***************',
            status     : true, 
            cookie     : true,
            xfbml      : true,
            oauth      : true,
          });
        };
        (function(d){
           var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
           js = d.createElement('script'); js.id = id; js.async = true;
           js.src = "//connect.facebook.net/en_US/all.js";
           d.getElementsByTagName('head')[0].appendChild(js);
         }(document));
      </script>
      <div 
        class="fb-registration" 
        data-fields="[
			{'name':'name'},
			{'name':'username', 'description':'Enter Username', 'type':'text'}, 
			{'name':'email'},
			{'name':'password'},
			{'name':'birthday'},
			{'name':'gender'},
			{'name':'captcha','description':'Enter Security Code'},
			<?php if (count($serverNames) === 1): ?>
				{'name':'server','description':'Server','type':'select','options':{<?php echo "'".$session->loginAthenaGroup->serverName."':'".$session->loginAthenaGroup->serverName."',"; ?>}},				
			<?php endif ?>	  
			<?php if (count($serverNames) > 1): ?>
				{'name':'server','description':'Server','type':'select','options':{<?php foreach ($serverNames as $serverName): echo "'".$serverNames."':'".$serverNames."',"; endforeach ?>}},
			<?php endif ?>
			
		  ]" 
		  data-redirect-uri="ragnarokphilippines.ml/?module=account&action=create&fb_return=return">
      </div>
</div>
</center>

 

Link to comment
Share on other sites

×
×
  • Create New...