SimplePortal

Customization => Custom Coding => Topic started by: amlucent on January 01, 2010, 04:25:52 PM

Title: Adding to "User info" block
Post by: amlucent on January 01, 2010, 04:25:52 PM
Can anyone give me a nudge in the right direction as to what files I need to edit to add something custom to the user info block?

I am trying out this Facebook Connect mod http://sa-mods.ath.cx/battle2/index.php?PHPSESSID=888ee8593542cb7d54c0ca676e1cab69&topic=202.0 and I would like to give users the option of logging in or linking their accounts through facebook on this block.

I am using SMF 2.0 RC2 with SP 2.3.1
Title: Re: Adding to "User info" block
Post by: Nathaniel on January 01, 2010, 09:08:05 PM
Unfortunately I am unfamiliar with that particular mod (I believe its a paid mod, which means I can't download it either).

The code that you will want to edit is within the 'sp_userInfo' function in the 'Sources/PortalBlocks.php' file.
Title: Re: Adding to "User info" block
Post by: amlucent on January 02, 2010, 02:56:43 AM
It's not a paid mod, at least not yet.  After a few individuals stealing the mod and redistributing it and giving him no credit he removed the download link.  I will send it to you via PM.

Thanks it looks like I found it and got it working pretty well.  Another question for you, more of an SMF question than a SP question but I would like to add the same thing to the log on options at index.php?action=login but I dont know what file to edit.
Title: Re: Adding to "User info" block
Post by: Nathaniel on January 02, 2010, 05:34:33 PM
The 'login' and 'login2' functions from the 'Sources/LogInOut.php' file handle user login within SMF.

If you ever want to look up the function and file that handle a particular action, then there is an array/list of them in the main SMF index.php file. (search for $actionArray)
SimplePortal 2.3.8 © 2008-2024, SimplePortal