the skindir doesn't work?? hmmmm.... *ponders* It may be because since it's an extra_header file that has no efiction coding in it.... it doesn't know what the heck skindir is supposed to be...
I noticed that, but I didn't think much of it. I changed the css addresses. Of it would be best to copy that and put it at the bottom of your current extra header should you have one. I found that placing it after the
?>
works.
Oh that reminds me, the current code has no php in it, so a variable might not work. Hmm.
My extra header for the dark2 skin which I think I finished.
<?
// 1.) If the current page is a user page, insert user.css into the header.
if ($current =="viewuser" || $current =="editbio" || $current =="newaccount" || $current=="user" || $current =="members" || $current=="authors" || $current =="manfavs" || $current=="stats") {
echo "<link rel="stylesheet" type="text/css" href=""skins/dark2/user.css"" />";
}
// 2.) If the current page is a page where story info is displayed, insert story.css into the header.
if ($current =="viewstory" || $current =="categories" || $current =="recent" || $current =="series" || $current =="challenges" || $current =="featured" || $current =="tens" || $current =="titles" || $current =="stories" || $current =="searchresults"|| $current =="browse" || $current =="tensresults" || $current =="favst") {
echo "<link rel="stylesheet" type="text/css" href=""skins/dark2/story.css"" />";
}
// 3.) If the current page is the index, view reviews, or news pages, insert main.css into the header.
if ($current =="home" || $current=="news" || $current =="reviews" || $current =="revres" || $current =="viewreviews") {
echo "<link rel="stylesheet" type="text/css" href=""skins/dark2/main.css"" />";
}
// 4.) Finally, if the page is an admin area page, insert all available css files into the header.
// (Note: We don't bother calling story.css here because it's already imported into user.css)
if ($current =="adminarea") {
echo "<link rel="stylesheet" type="text/css" href=""skins/dark2/main.css"" />
<link rel="stylesheet" type="text/css" href=""skins/dark2/user.css"" />
<link rel="stylesheet" type="text/css" href=""skins/dark2/admin.css"" />";}
?>
<script type="text/javascript" src=""tabber.js"></script>"
<link rel="stylesheet" href=""skins/dark2/tabber.css"" TYPE="text/css" MEDIA="screen">
<script type="text/javascript">
/* Optional: Temporarily hide the "tabber" class so it does not "flash"
on the page as plain HTML. After tabber runs, the class is changed
to "tabberlive" and it will appear. */
document.write('<style type="text/css">.tabber{display:none;}</style>');
</script>
I am rebuilding efiction! Join us on irc! #efiction at
For the extra_header.php problem, why not just put this:
@import url("tabber.css");
In the style.css? :S
archive:
site:
Available for skin/mod commission! 🙂
Use $skindir in php files and {skindir} in .tpl files. In extra_header.php you need to use $skindir.
oh coolness! I didn't think of that| 😮
Jacynthe
Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP: 5.3.3
MySQL: 5.0.91-community
Apparently I am missing some fields like under Misc. I have no messengers at all, so odd.
Replacing the items in Misc. with {authorfields} worked pretty well as an alternative. Still dunno why the individual ones didn't work.
I am rebuilding efiction! Join us on irc! #efiction at
Because your codes for the various messengers either wasn't good... or has uppercases in it.... you may want to check that and change if either the name on the skin or change your messengers name in the admin panel for profile info.
Jacynthe
Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP: 5.3.3
MySQL: 5.0.91-community
I made no changes to the profile.tpl you provided actually when I tested it. {aol} {yahoo} {msn} were listed like that until I updated it to {authorfields}. Currently {userskin} and {lastlog} are blank still. Additionally I uploaded the Library skin which is unmodified entirely and has same issues. If it is out of date, i can reupload it.
I am rebuilding efiction! Join us on irc! #efiction at
As I said.... go to your admin panel..... click on Profile Information... select the field for msn, etc.... each and every one of them and check to see if the name of the field is in uppercase or lowercase. I had mine in lowercase so it works.. if yours is uppercase... it won't work.
what I gave as template is an example and should not necessarily be used as is unless you installed those modifications. If you haven't, simply remove those parts.
Jacynthe
Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP: 5.3.3
MySQL: 5.0.91-community
mm that was it, sorry about that. I was thinking it was a compatibility issue, but I was loss as to where. I think I might stick with {authorfields} for the misc part. I will be editing this as a whole at some point, currently just getting it working. Huh, i changed a couple, didn't work.
Parse error: syntax error, unexpected T_STRING in /home/**/itanshi/fanforge.net/user/profile.php(73) : eval()'d code on line 1
Parse error: syntax error, unexpected T_STRING in /home/**/itanshi/fanforge.net/user/profile.php(73) : eval()'d code on line 1
Parse error: syntax error, unexpected T_STRING in /home/*****/itanshi/fanforge.net/user/profile.php(73) : eval()'d code on line 1
my day is not lucky it seems. I think its on about a line i changed with this module hmm. Didn't do this before.
if(!defined("_CHARSET")) exit( );
include("user/contact.php");
// Build the user's profile information
$tpl->newBlock("profile");
$result2 = dbquery("SELECT *, UNIX_TIMESTAMP(date) as date FROM "._AUTHORTABLE." LEFT JOIN ".TABLEPREFIX."fanfiction_authorprefs as ap ON ap.uid = "._UIDFIELD." WHERE "._UIDFIELD." = '$uid' LIMIT 1");
$userinfo = dbassoc($result2);
$nameinfo = "";
if($userinfo['email'])
$contactinfo .= " [<a href=""viewuser.php?action=contact&uid=".$userinfo['uid'"]."">"._CONTACT."</a>]";
if(!empty($favorites) && isMEMBER && $userinfo['uid'] != USERUID) {
$fav = dbquery("SELECT * FROM ".TABLEPREFIX."fanfiction_favorites WHERE uid = '".USERUID."' AND type = 'AU' AND item = '".$userinfo['uid']."'");
if(dbnumrows($fav) == 0) $favinfo .= " [<a href=""user.php?uid=USERUID&action=favau&author=".$userinfo['uid'"]."">"._ADDAUTHOR2FAVES."</a>]";
}
$tpl->assign("add2fav", $favinfo);
$tpl->assign("userpenname", $userinfo['penname']." ".$nameinfo);
$tpl->assign("membersince", date("$dateformat", $userinfo['date']));
if($userinfo['realname'])
$tpl->assign("realname", $userinfo['realname']);
if($userinfo['bio']) {
$bio = nl2br($userinfo['bio']);
$tpl->assign("bio", stripslashes($bio));
}
if($userinfo['image'])
$tpl->assign("image", "<img src=""".$userinfo['image'"]."" border="1" vspace="2">");
else $tpl->assign("image", "<img src=""$skindir/images/unlined_noimg.gif"" border="1" vspace=2">");$tpl->assign("userlevel", isset($userinfo['level']) && $userinfo['level'] > 0 && $userinfo['level'] < 4 ? _ADMINISTRATOR.(isADMIN ? " - ".$userinfo['level'] : "") : _MEMBER);
/* Dynamic authorinfo fields */
$result2 = dbquery("SELECT * FROM ".TABLEPREFIX."fanfiction_authorinfo WHERE uid = '$uid'");
$dynamicfields = "";
while($field = dbassoc($result2)) {
if($field['info'] == "") continue;
$fieldinfo = dbassoc(dbquery("SELECT * FROM ".TABLEPREFIX."fanfiction_authorfields WHERE field_id = '".$field['field']."' LIMIT 1"));
if($fieldinfo) {
$thisfield = "";
if($fieldinfo['field_on'] == 0) continue;
if($fieldinfo['field_type'] == 1) { $thisfield = format_link($field['info']);
}
if($fieldinfo['field_type'] == 4) {
$thisfield = preg_replace("@{info}@", $field['info'], $fieldinfo['field_options']);
$thisfield = format_link($thisfield);
}
if($fieldinfo['field_type'] == 2 || $fieldinfo['field_type'] == 6) {
$thisfield = stripslashes($field['info']);
}
if($fieldinfo['field_type'] == 3) {
$thisfield = $field['info'];
}
else eval($fieldinfo['field_code_out']);
$tpl->assign($fieldinfo['field_name'], $thisfield);
$dynamicfields .= "<div class='authorfields'><span class='label'>".$fieldinfo['field_title'].":</span> ".$thisfield."</div>";
}
}
$codequery = dbquery("SELECT * FROM ".TABLEPREFIX."fanfiction_codeblocks WHERE code_type = 'userprofile'");
while($code = dbassoc($codequery)) {
eval($code['code_text']);
}
if(!empty($dynamicfields)) $tpl->assign("authorfields", $dynamicfields);
/* End dynamic fields */
$tpl->assign("reportthis", "[<a href="""._BASEDIR."contact.php?action=report&url=viewuser.php?uid=".$uid."">"._REPORTTHIS."</a>"]");
$adminopts = "";
if(isADMIN && uLEVEL < 3) {
$adminopts .= "<div class="adminoptions"><span class='label'>"._ADMINOPTIONS.":</span> ".(isset($userinfo['validated']) && $userinfo['validated'] ? "[<a href=""admin.php?action=members&revoke=$uid"" class="vuadmin">"._REVOKEVAL."</a>] " : "[<a href=""admin.php?action=members&validate=$uid"" class="vuadmin">"._VALIDATE."</a>] ")."[<a href=""user.php?action=editbio&uid=$uid"" class="vuadmin">"._EDIT."</a>] [<a href=""admin.php?action=members&delete=$uid"" class="vuadmin">"._DELETE."</a>]";
$adminopts .= " [<a href=""admin.php?action=members&".($userinfo['level'"] < 0 ? "unlock=".$userinfo['uid']."" class="vuadmin">"._UNLOCKMEM : "lock=".$userinfo['uid']."" class="vuadmin">"._LOCKMEM)."</a>]";
$adminopts .= " [<a href=""admin.php?action=admins&".(isset($userinfo['level'"]) && $userinfo['level'] > 0 ? "revoke=$uid" class="vuadmin">"._REVOKEADMIN."</a>] [<a href=""admin.php?action=admins&do=edit&uid=$uid"" class="vuadmin">"._EDITADMIN : "do=new&uid=$uid" class="vuadmin">"._MAKEADMIN)."</a>]</div>";
$tpl->assign("adminoptions", $adminopts);
}
$tpl->gotoBlock("_ROOT");
I am rebuilding efiction! Join us on irc! #efiction at
Can't see anything wrong in profile.php so far at a glance.
Jacynthe
Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP: 5.3.3
MySQL: 5.0.91-community
Just noticed that error only appears on my profile.
I am rebuilding efiction! Join us on irc! #efiction at
I'm thinking it may be a code output for one of the field you filed. Cause I didn't fill anything up and I have no error.... so I'm guessing one of the output code may cause a divergence somewhere?
Edit: Yup, that's it. I just added my info for MSN and it added me one of the line of error. So I'm sure ICQ, AOL and Yahoo return the same error.... cause if you look, the MSN field returns nothing but the error appeared (on my profile on your site).
Jacynthe
Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP: 5.3.3
MySQL: 5.0.91-community
Huh, so what's the fix then? Put them to defaults? I belive i set them back. Didn't fix it so always possible I didn't.
AOL
AIM
$output .= "<div><label for=AOL'>".$field['field_title'].":</label><INPUT type='text' class='textbox' name='af_".$field['field_name']."' maxlength='40' value='".(!empty($user['af_'.$field['field_id']]) ? $user['af_'.$field['field_id']] : "")."' size='20'></div>";
$thisfield = "<img src="" http://big.oscar.aol.com/".$field ['info'"]."?on_url=$url/images/aim.gif&off_url=$url/images/aim.gif"> <a href=""aim:goim?{AOL}ScreenName=".$field['info'"]."">".format_email($field['info'])."</a>";
MSN
MSN IM
$output .= "<div><label for='AOL'>".$field['field_title'].":</label><INPUT type='text' class='textbox' name='af_".$field['field_name']."' maxlength='40' value='".(!empty($user['af_'.$field['field_id']]) ? $user['af_'.$field['field_id']] : "")."' size='20'></div>";
$thisfield = "<img src=""images/msntalk.gif"" alt=""._MSN.""> ".format_email($field['info']);
Yahoo
Yahoo IM
$output .= "<div><label for='AOL'>".$field['field_title'].":</label><INPUT type='text' class='textbox' name='af_".$field['field_name']."' maxlength='40' value='".(!empty($user['af_'.$field['field_id']]) ? $user['af_'.$field['field_id']] : "")."' size='20'></div>";
$thisfield = "<a href="" http://edit.yahoo.com/config/send_webmesg?.target=".$field ['info'"]."&.src="pg"><img" border='0' src="" http://opi.yahoo.com/online?u=".$field ['info'"]."&m=g&t=1"> ".format_email($field['info'])."</a>";
I am rebuilding efiction! Join us on irc! #efiction at
AOL
AIM$output .= "<div><label for=AOL'>".$field['field_title'].":</label><INPUT type='text' class='textbox' name='af_".$field['field_name']."' maxlength='40' value='".(!empty($user['af_'.$field['field_id']]) ? $user['af_'.$field['field_id']] : "")."' size='20'></div>";$thisfield = "<img src="" http://big.oscar.aol.com/".$field ['info'"]."?on_url=$url/images/aim.gif&off_url=$url/images/aim.gif"> <a href=""aim:goim?{AOL}ScreenName=".$field['info'"]."">".format_email($field['info'])."</a>";
aol
AIM
$output .= "<div><label for='AOL'>".$field['field_title'].":</label><INPUT type='text' class='textbox' name='af_".$field['field_name']."' maxlength='40' value='".(!empty($user['af_'.$field['field_id']]) ? $user['af_'.$field['field_id']] : "")."' size='20'></div>";
$thisfield = "<img src="'images/aim.gif'>" <a href="'aim:goim?{aol}ScreenName=".$field['info'"]."'>".format_email($field['info'])."</a>";
MSN
MSN IM$output .= "<div><label for='AOL'>".$field['field_title'].":</label><INPUT type='text' class='textbox' name='af_".$field['field_name']."' maxlength='40' value='".(!empty($user['af_'.$field['field_id']]) ? $user['af_'.$field['field_id']] : "")."' size='20'></div>";$thisfield = "<img src=""images/msntalk.gif"" alt=""._MSN.""> ".format_email($field['info']);
msn
MSN
$output .= "<div><label for='MSN'>".$field['field_title'].":</label><INPUT type='text' class='textbox' name='af_".$field['field_name']."' maxlength='40' value='".(!empty($user['af_'.$field['field_id']]) ? $user['af_'.$field['field_id']] : "")."' size='20'></div>";
$thisfield = "<img src="'images/msntalk.gif'>" ".format_email($field['info']);
Yahoo
Yahoo IM$output .= "<div><label for='AOL'>".$field['field_title'].":</label><INPUT type='text' class='textbox' name='af_".$field['field_name']."' maxlength='40' value='".(!empty($user['af_'.$field['field_id']]) ? $user['af_'.$field['field_id']] : "")."' size='20'></div>";$thisfield = "<a href="" http://edit.yahoo.com/config/send_webmesg?.target=".$field ['info'"]."&.src="pg"><img" border='0' src="" http://opi.yahoo.com/online?u=".$field ['info'"]."&m=g&t=1"> ".format_email($field['info'])."</a>";
yahoo
Yahoo
$output .= "<div><label for='Yahoo'>".$field['field_title'].":</label><INPUT type='text' class='textbox' name='af_".$field['field_name']."' maxlength='40' value='".(!empty($user['af_'.$field['field_id']]) ? $user['af_'.$field['field_id']] : "")."' size='20'></div>";
$thisfield = "<img border='0' src="'images/yim.gif'>" <a href="' http://edit.yahoo.com/config/send_webmesg?.target=".$field ['info'"]."&.src="pg'>" ".format_email($field['info'])."</a>";
icq
ICQ
$output .= "<div><label for='ICQ'>".$field['field_title'].":</label><INPUT type='text' class='textbox' name='af_".$field['field_name']."' maxlength='40' value='".(!empty($user['af_'.$field['field_id']]) ? $user['af_'.$field['field_id']] : "")."' size='20'></div>";
$thisfield = "<img src="'images/icq.gif'>" ".$field['info'];
Jacynthe
Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP: 5.3.3
MySQL: 5.0.91-community
Ah, that fixed it, thanks so much 😀
I am rebuilding efiction! Join us on irc! #efiction at