Jump to content

Recommended Posts

Posted (edited)

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
  • 4 months later...
  • 3 years later...
Posted

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>

 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...