How to change Accou...
 
Notifications
Clear all

How to change Account Info to eFiction username?

7 Posts
4 Users
0 Reactions
2,604 Views
(@jacynthe)
Posts: 242
Estimable Member
Topic starter
 

I'm working with Kali's superb dotnet skin - modding it to my needs and I was wondering how I would go about changing the default "account info" that appears when you log in to become the user's username. I know you can change that text from the Admin/Page Links except I'm kinda stuck there. Would variables work and it so, what should I input?

Thanks a lot. πŸ™‚


Jacynthe

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

 
Posted : 11/10/2010 5:59 am
(@tammy)
Posts: 2577
Member Moderator
 

No, variables wouldn't work there.  You might be able to use the skin's variables.php to do it, but I how exactly I can't tell you off the top of my head.


 
Posted : 11/10/2010 11:07 am
(@jacynthe)
Posts: 242
Estimable Member
Topic starter
 

I tried using {userpenname} but it only returned {userpenname} instead of the penname so... I'm thinking I'm gonna need to be a hell of a lot more creative with that one... LOL
Thanks Tammy for confirming what I thought.


Jacynthe

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

 
Posted : 11/10/2010 4:10 pm
(@lyndsie)
Posts: 1263
Member Moderator
 

Maybe printing the actual PHP variable for penname in the variables.php? I can't think of what that is off the top of my head though.


 
Posted : 11/10/2010 5:40 pm
(@jacynthe)
Posts: 242
Estimable Member
Topic starter
 

Pretty sure the variable is $penname but I'm so drawing blanks here on how to use that in variables.php

I thought of adding the assign tpl for {userpenname} on index.php but I must have done it wrong because it's not allowing it to show up still. πŸ™


$infoquery = dbquery("SELECT "._PENNAMEFIELD." as penname FROM "._AUTHORTABLE." WHERE "._UIDFIELD." = '$uid' LIMIT 1");
list($penname) = dbrow($infoquery);
$tpl->assign("userpenname", stripslashes($penname));

I thought for sure this would make the {userpenname} tag show but it's still blank as ever. πŸ™


Jacynthe

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

 
Posted : 11/10/2010 6:00 pm
(@izdoodle)
Posts: 101
Estimable Member
 

I've been curious if this could be done as well. I hope you figure it out, because I'd love to do the same on my site.


http://www.twiwrite.net
Where Your Imagination Can Run Free
18+ TwiWrite Fan Fiction Archives.
efiction vs.3.5.2
SQL vs. 5.0.77
PHP vs. 5.2.2
Happily soaking up any and all php, tpl, and html knowledge I can.

 
Posted : 13/11/2010 3:46 pm
(@tammy)
Posts: 2577
Member Moderator
 

I can't see how to do it after all, but that may be because I'm spending so much time working on v4 that I can't switch gears back to v3.  I guess you could edit includes/pagesetup.php to do it universally.

At line 81:


if($link['link_name'] == "register" && isMEMBER) continue;

Change it to read:


if($link['link_name'] == "register" && isMEMBER) continue;
if($link['link_url'] == "user.php") $link['link_text'] = USERPENNAME;

 
Posted : 13/11/2010 7:49 pm
Share: