Thread Locked This thread is locked - replies are not allowed.


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 4 - Pages: 1 - Last Post: 4 Sep 21, 17:52 Last Post By: rfm2
rfm2

Posts: 68
Registered: 13-Dec-2007
Saturn - credits line
Posted: 4 Sep 21, 00:09
 
I have always checked the "Exclude credit links" box under the "Pages" tab and used my own version for the credit links under the Code/HTML tab that includes an image count and a "Last updated on" entry in addition to the jAlbum and skin links. The "Fonts/Index Page/Credits" line has always been applied to my "special" credit line version. I just now updated a Saturn album from version 70 to version 71 and the fonts info is no longer applied. Since I use every option on the credits line including a WOFF font, trying to get to the same previous appearance with a line in the CSS code tab is a challenge. Is there a way I could make a change in the Saturn source to get the fonts info to be applied?
JeffTucker

Posts: 8,490
Registered: 31-Jan-2006
Re: Saturn - credits line
Posted: 4 Sep 21, 00:34   in response to: rfm2 in response to: rfm2
 
Yes, this is one of the hazards of "rolling our own!" One of the changes in this version consists of somewhat more selective generation of CSS. For example, why have entries in the CSS file for credits if the user has indicated that he wants to exclude the credits line? The skin, of course, has no idea that you've hijacked the sa-credits class for your own nefarious purposes. ;)

You're correct that generating all of the CSS yourself is messy, especially when you include things like WOFF fonts or Google fonts.

In looking at the way that's being handled right now, I'll probably make some changes in a future release - what I'm doing is too clever by half.

For now, the quick fix is to open the skin directory and edit the common.css file. You'll find this buried deep in it:
<ja:if not test="${excludeBacklinks}">.sa-credits {
	<ja:if test="<%=isWoff && creditsUseFont.equals("WOFF")%>">font-family: "${woffName}", ${fontStack};</ja:if>
	<ja:if test="<%=isGoogleFont && creditsUseFont.equals("Google font")%>">font-family: "${ctGoogleFont}", ${fontStack};</ja:if>
	<ja:if test="<%=isGoogleFont2 && creditsUseFont.equals("Google font 2")%>">font-family: "${ctGoogleFont2}", ${fontStack};</ja:if>
	font-size: ${creditsFontSize}px;
	font-weight: ${creditsFontWeight};
	font-style: ${creditsFontStyle};
	font-variant: ${creditsFontVariant};
	margin: 0px auto 10px;
	text-shadow: ${creditsFontShadowString};
}
.sa-credits a {
	text-decoration: ${creditsLinkDecoration};
}</ja:if>
Just delete the opening and closing "if" statements, so that the skin will always generate the CSS you need. Careful - syntax errors here will cause a crash:
On the first line, delete:
 
<ja:if not test="${excludeBacklinks}">
 
And delete the closer on the last line:
 
</ja:if>
rfm2

Posts: 68
Registered: 13-Dec-2007
Re: Saturn - credits line
Posted: 4 Sep 21, 04:33   in response to: JeffTucker in response to: JeffTucker
 
I'm a little slow in checking the thread after posting my question, but thanks for the very thorough response. I will apply the suggested changes in the source and report back tomorrow.
JeffTucker

Posts: 8,490
Registered: 31-Jan-2006
Re: Saturn - credits line
Posted: 4 Sep 21, 14:04   in response to: rfm2 in response to: rfm2
 
Check your email - I've got an easier fix.
rfm2

Posts: 68
Registered: 13-Dec-2007
Re: Saturn - credits line
Posted: 4 Sep 21, 17:52   in response to: JeffTucker in response to: JeffTucker
 
Pretty slick trick to get Saturn to skip the normal reaction to the unchecked box "Exclude credit links" and use what is entered in the Code/HTML in the UI. Fortunately I had not yet got around to using the changes to the source CSS file, so the "trick" arrived in time.

Thanks for the change.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums