wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[ljcom] r10794: LJSUP-8713

Committer: wisest-owl
LJSUP-8713

U   branches/fotki/htdocs/error-page.bml
U   branches/fotki/htdocs/error-page.bml.text
Modified: branches/fotki/htdocs/error-page.bml
===================================================================
--- branches/fotki/htdocs/error-page.bml	2011-08-04 04:20:11 UTC (rev 10793)
+++ branches/fotki/htdocs/error-page.bml	2011-08-04 06:27:09 UTC (rev 10794)
@@ -17,6 +17,7 @@
 ## forfriends   => only for friends
 ## custom       => custom friends
 ## private      => private (just me)
+## private_photo => private photo (just me)
 ## members      => only for community members
 
 BML::set_language_scope('/error-page.bml');
@@ -124,6 +125,16 @@
     push @links, LJ::Lang::ml('.errorpage.expunged.link.faq', { aopts => "href='$LJ::SITEROOT/support/faqbrowse.bml?faqid=16'" });
     push @links, LJ::Lang::ml('.errorpage.not_found.link.site_map',  { aopts => "href='$LJ::SITEROOT/site/'" });
     $ad_html = LJ::get_ads( { location => 'error_page.expunged', journalu => $remote } );
+} elsif ($error_type =~ /private_photo/) {
+    $frank_img = "/frank-private.png";
+    $title = LJ::Lang::ml('.errorpage.private_photo.title');
+    $description = LJ::Lang::ml('.errorpage.private_photo.description', { username => $user } );
+    $user = LJ::load_user ($user);
+    push @links, LJ::Lang::ml('.errorpage.photo_catalog', { aopts => "href='".$user->journal_base."/pics/catalog'" } ) if $user && $user->statusvis eq 'V';
+    push @links, LJ::Lang::ml('.errorpage.link.go_home',   { aopts => "href='$LJ::SITEROOT'" });
+    push @links, LJ::Lang::ml('.errorpage.private.link.faq', { aopts => "href='$LJ::SITEROOT/support/faqbrowse.bml?faqid=24'" });
+    push @links, LJ::Lang::ml('.errorpage.not_found.link.site_map',  { aopts => "href='$LJ::SITEROOT/site/'" });
+    $ad_html = LJ::get_ads( { location => 'error_page.private', journalu => $remote } );
 } elsif ($error_type =~ /forfriends|custom|private|members/) {
     $frank_img = "/frank-private.png";
     $title = LJ::Lang::ml('.errorpage.private.title');

Modified: branches/fotki/htdocs/error-page.bml.text
===================================================================
--- branches/fotki/htdocs/error-page.bml.text	2011-08-04 04:20:11 UTC (rev 10793)
+++ branches/fotki/htdocs/error-page.bml.text	2011-08-04 06:27:09 UTC (rev 10794)
@@ -44,12 +44,18 @@
 
 .errorpage.private.description=You have ho access to this entry.
 
+.errorpage.private_photo.description=You have no access to this photo.
+
 .errorpage.private.link.faq=<a [[aopts]]>Learn about Security entries</a>
 
 .errorpage.private.link.lastentries=<a [[aopts]]>Read resent entries</a>
 
+.errorpage.photo_catalog=<a [[aopts]]>View more photos</a>
+
 .errorpage.private.title=Access is closed!
 
+.errorpage.private_photo.title=Access is closed!
+
 .errorpage.recent_entries=<a [[aopts]]>Recent Entries</a> of this journal
 
 .errorpage.suspended.description.alien=This journal has been suspended, all posts of this journal are not available for reading. For confidentiality reasons we can not discuss the reasons for which the account was frozen, with someone else other than the account holder.

Tags: bml, ljcom, text, wisest-owl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments