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
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
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.
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
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!
Thanks soundspretty, works perfectly π
~Spikey~
my site url: http://www.fanfictionworld.org
efic version:3.5.3
No problem!
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
I suggested a custom profile field because then you wouldn't have to make your changes again each time an update comes out.
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
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.
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
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
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.
Such nifty trick π And it works perfectly.