[mod request] Skin ...
 
Notifications
Clear all

[mod request] Skin choice in profile for 3.2.1

15 Posts
6 Users
0 Reactions
3,277 Views
(@fanfictionworld)
Posts: 149
Estimable Member
Topic starter
 

now I would like the members Skin Choice to show up in their user Profile now I know that there was this mod for efiction 2.0 done by Lazuli  so im guessing we can do it for efiction 3.2.1 too?


~Spikey~

my site url: http://www.fanfictionworld.org
efic version:3.5.3

 
Posted : 20/05/2007 3:04 am
(@fanfictionworld)
Posts: 149
Estimable Member
Topic starter
 

any takers on anyone telling me how to do this in efiction 3.2.1 ???


~Spikey~

my site url: http://www.fanfictionworld.org
efic version:3.5.3

 
Posted : 21/06/2007 5:31 pm
(@tammy)
Posts: 2577
Member Moderator
 

Write a custom profile field. Leave the "Custom Form Code" blank.  In the "Custom Profile Code" run a query for the user's skin and add it to the skin.  Use the AOL field as an example, but you'll have to write your own query.


 
Posted : 21/06/2007 5:42 pm
(@fanfictionworld)
Posts: 149
Estimable Member
Topic starter
 

ahh thanx Tammy

ive been looking at the aim field as you suggested tho im not sure how to do this yet but ill think it over


~Spikey~

my site url: http://www.fanfictionworld.org
efic version:3.5.3

 
Posted : 21/06/2007 6:18 pm
(@soundspretty)
Posts: 65
Trusted Member
 

I did it a bit different on my site. I didn't want it to be in the same area as the profile fields.

In user/profile.php find:

$tpl->assign("userpenname", $userinfo['penname']." ".$nameinfo);

Below add:

$tpl->assign("userskin", $userinfo[userskin]);

Then in your skins just add {userskin} wherever you want it to show up!


 
Posted : 23/06/2007 10:41 pm
(@fanfictionworld)
Posts: 149
Estimable Member
Topic starter
 

Thanks soundspretty, works perfectly  πŸ˜€


~Spikey~

my site url: http://www.fanfictionworld.org
efic version:3.5.3

 
Posted : 24/06/2007 4:34 pm
(@soundspretty)
Posts: 65
Trusted Member
 

No problem!


 
Posted : 25/06/2007 8:53 pm
(@jacci)
Posts: 503
Honorable Member
 

I got it to work too and it is great, thanks!!!

Nice little tool to see who is using what  hee hee

jacci


why is nothing ever easy?
url: http://www.pretendercentre.com/missingpieces/     
php: 5.2.5  msql: 5.0.45-community
efic version: 3.4.3           latest patches: yes
bridges: none              mods: challenges, displayword, beta-search

 
Posted : 26/06/2007 1:24 am
(@tammy)
Posts: 2577
Member Moderator
 

I suggested a custom profile field because then you wouldn't have to make your changes again each time an update comes out.


 
Posted : 26/06/2007 1:40 pm
(@jacynthe)
Posts: 242
Estimable Member
 

In the "Custom Profile Code" run a query for the user's skin and add it to the skin.  Use the AOL field as an example, but you'll have to write your own query.

What would the query be exactly for the skin? I am seeing what the AOL field is saying but doesn't make much sense to me in how to adapt it to the skin thing.


Jacynthe

Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP:  5.3.3
MySQL: 5.0.91-community

 
Posted : 31/08/2007 9:21 pm
(@tammy)
Posts: 2577
Member Moderator
 

Actually, Soundpretty reminded me you wouldn't need a custom field most likely.  If you're running 3.3 go to Admin->Custom Pages.  If you have tinyMCE enabled, click the toggle to turn it off then enter the following in the textbox.


<?php  $code = '$tpl->assign("userskin", $userinfo["userskin"]);$dynamicfields .= "<div class='authorfields'><span class='label'>Skin:</span> ".$userinfo['userskin']."</div>";'; dbquery("INSERT INTO `fanfiction_codeblocks` (`code_text`, `code_type`, `code_module`) VALUES ( '".escapestring($code)."', 'userprofile', 'skinInProfile');"); ?>

Then Preview the page.  You do not need to save it.  Just preview it once to add it to the database.


 
Posted : 01/09/2007 2:31 am
(@jacynthe)
Posts: 242
Estimable Member
 

That's fantastic! Thanks a lot, I have to remember that thing. πŸ™‚


Jacynthe

Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP:  5.3.3
MySQL: 5.0.91-community

 
Posted : 01/09/2007 11:29 am
(@jacynthe)
Posts: 242
Estimable Member
 

Tammy, is the last code you posted meant to automatically update the userkin when a member decides to use CSSZen say when they were using Elegance before? Or would I need to periodically run that query after I changed the INSERT INTO to UPDATE?


Jacynthe

Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP:  5.3.3
MySQL: 5.0.91-community

 
Posted : 06/09/2007 10:07 am
(@tammy)
Posts: 2577
Member Moderator
 

All this does is add a piece of code to the profile to display the user's current skin.  It does not change the skin at all.


 
Posted : 06/09/2007 2:07 pm
(@glenien)
Posts: 47
Eminent Member
 

Such nifty trick πŸ™‚ And it works perfectly.


 
Posted : 03/11/2007 5:33 pm
Share: