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
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.
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
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.
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
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.
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;