Account Status: Paid
Actions: No Subject Link Permanent Link
Theme: Flexible Squares
We are looking to add a permanent link to the comments bar because the no subject link will remain even when there is a subject.
1. If you have never created a Custom Layer you want to go to
Your Layers. If you have you will want to skip down to 8.
2. Scroll down to the Create Layout-Specific Layer portion.
3. You are going to want to pick the type as theme and the layout as Flexible Squares.
4. Click Create.
5. Above the Create Layer section you should now have the them named (none). We are going to edit this theme layer.
6. In this layer you should see the below:
7. See how I've put My Theme in the name line. You can change it to anything you want. Be sure to keep " ";
8. Now we want to add this coding:
function print_entry(Page p, Entry e, Color bgcolor, Color fgcolor)
{
"""
""";
$e->print_linkbar();
# Userpic
var string userpic = "";
if ($*show_entry_userpic)
{
if ($p.view == "friends" or $p.view == "entry" or $p.view == "reply")
{
if (defined $e.userpic)
{
$userpic = $userpic + """
if ($e.poster.username != $e.journal.username)
{
$userpic = $userpic + " in $e.journal.name";
}
$userpic = $userpic + "\">";
}
}
elseif ($p.journal_type == "C" and $p.view == "recent")
{
if (defined $e.userpic)
{
$userpic = $userpic + """
""";
}
}
else
{
if (defined $e.userpic)
{
$userpic = $userpic + """
""";
}
}
}
print """
""";
if (($p.view == "recent" and $p.journal_type != "C" ) or $p.view == "day")
{
print """$userpic""";
}
else
{
if ($p.view == "recent" and $p.journal_type == "C" )
{
"""
""";
}
else
{
"""
""";
}
print """$userpic""";
# Poster
if ($p.view == "friends" or $p.view == "entry" or $p.view == "reply")
{
var UserLite linkto;
$linkto = $e.poster;
#print "$e.poster.username";
"""
base_url() + "\">";
"$linkto.username";
}
elseif ($p.journal_type == "C" and $p.view == "recent")
{
var UserLite linkto;
$linkto = $e.poster;
#print "$e.poster.username";
"""
base_url() + "\">";
"$linkto.username";
}
if (($p.view == "friends" or $p.view == "entry" or $p.view == "reply") and $e.poster.username != $e.journal.username)
{
var UserLite linkto;
$linkto = $e.journal;
"""
[
base_url() + "\">";
"$linkto.username]";
}
if ($p.view == "recent" and $p.journal_type == "C")
{
print "
";
}
if ($p.view != "recent" and $p.view != "day")
{
print """
""";
}
}
# Date, time, subject
var string time = "";
$time = $time + """ @ """;
$time = $time + $e.time->time_format("short");
var string date = "";
$date = $date + $e.time->date_format("long_day");
"""
""";
print $e.time->date_format("%Ý%% %%month%% %%yyyy%%");
"$time
";
"""
""";
if ($e.security != "")
{
$e.security_icon->print();
}
if ($p.view != "entry") {
print $e->formatted_subject({"class"=>"subj-link"});" ";
}
else { print "$e.subject "; }
"""
""";
"""
""";
$e->print_text();
print "
";
# Currents
var string currents ="";
$e->print_metadata();
# Comments
"""
""";
}
9. Click on Save & Compile at the top.
10. The box at the bottom should tell you "Compiled with no errors."
11. Go to your journal and test the comment link. You should now have it.
"""link | """;
if ($p.view != "entry" or $p.view != "reply")
{
$e.comments->print();
}
elseif ($e.comments.enabled)
{
$e.comments->print_postlink();
}
else
{
" ";
}
"""