Comic Fury Webcomic Hosting - Question - Variables for Comic Avatars?

You are not logged in. Log in, Register, More info
Forum > Layouts, HTML, CSS & Javascript > Question - Variables for Comic Avatars?
Pages: [1]

"Question - Variables for Comic Avatars?", 9th Jan 2019, 2:40 AM #1
Snarkclaw

User avatar
Posts: 136
Registration date: 9th Oct 2014
Location: MO, USA
Question: Do comic avatars have variables?

[v:banner] is the URL of the comic's ComicFury banner.
[v:l.avatar] is the avatar of the author of a comment or the author of a blog post, depending upon context.

Is there one for the comic's avatar? (Just trying to learn the different ComicFury variables.)

Thanks! :-)
_______________________
image image
9th Jan 2019, 2:42 AM #2
Kyo
🐊
User avatar
Posts: 18170
Registration date: 6th Jul 2008
Location: Germany
yes, I actually added it only recently

it's [v:webcomicavatar]
_______________________
hello
9th Jan 2019, 2:47 AM #3
Snarkclaw

User avatar
Posts: 136
Registration date: 9th Oct 2014
Location: MO, USA
Kyo:it's [v:webcomicavatar]

Handy to know; thanks! :-)
_______________________
image image
"Question - Variables And Conditionals in CSS?", 11th Jan 2019, 5:44 PM #4
Snarkclaw

User avatar
Posts: 136
Registration date: 9th Oct 2014
Location: MO, USA
Question Again!

Can the CSS portion of custom layouts interpret variables and conditionals, or can only the HTML portion of the custom layouts do that?

For example, would this work in CSS?

[c:banner] width: 50%; [/]
[c:!banner] width: 100%; [/]


Or would it need to be done via HTML instead?

[c:banner] <... style="width: 50%;" ...> [/]
[c:!banner] <... style="width: 100%;" ...> [/]


Thanks in advance! :-)
_______________________
image image
12th Jan 2019, 3:08 PM #5
Xenocartographer
has a sweet tooth
User avatar
Posts: 3699
Registration date: 13th Oct 2010
Location: Champlain College, Burlington, VT
Yup, it can!!
_______________________
image
12th Jan 2019, 3:29 PM #6
Snarkclaw

User avatar
Posts: 136
Registration date: 9th Oct 2014
Location: MO, USA
Great to know; thank you!

I realize now that, when I tested it myself and wasn't getting anything, I had my conditional statement wrong. Oops!
_______________________
image image
"Question - Variables on Overview Page, Archive Page, Search Page", 4th Feb 2019, 4:35 PM #7
Snarkclaw

User avatar
Posts: 136
Registration date: 9th Oct 2014
Location: MO, USA
Hi! I just want to check that certain variables do not work on certain pages. If I am wrong or if there is a page-specific variable that does the same job, then please tell me! :-)

These comic-related variables do work on the Comic Page, but not on Overview:

[v:chapterdescription]
[v:comicdescription]

Related Question: Is there a Latest Comic variable for the description, like there is [v:latestcomicimage] for the latest comic's image HTML and [v:latestcomictitle] for the latest comic's title? I tried [v:latestcomicdescription], but that did not work.

This blog-related variable does work on the Blog Page, but not on Overview:

[v:blogarchivelink]

Custom variables do work on the Comic Page and Overview, but do not work with the Comic Archive loop or with the Comic Search loop.

[v:custom.userdefinedvariable] or [v:l.custom.userdefinedvariable]

Again, please let me know whether I am wrong on any of these. Thank you for your help! :-)
_______________________
image image
4th Feb 2019, 5:15 PM #8
Xenocartographer
has a sweet tooth
User avatar
Posts: 3699
Registration date: 13th Oct 2010
Location: Champlain College, Burlington, VT
I can confirm that custom variables don't work on the archive (or, well, anywhere other than the comic page itself), because Kyo told me.
_______________________
image
5th Feb 2019, 12:14 AM #9
Kyo
🐊
User avatar
Posts: 18170
Registration date: 6th Jul 2008
Location: Germany
Snarkclaw:
[v:chapterdescription]
[v:comicdescription]
[v:latestcomicdescription]


currently not on the overview, I can add them to the overview, if you need them.

This blog-related variable does work on the Blog Page, but not on Overview:

[v:blogarchivelink]


the reason this is a variable on the blog page is that it will actually take you back to the page the blog you are viewing is on. On the overview, that would just be the first page, so you can just use "/blog/" or "/blogarchive/" instead. I suppose I could add it just for consistency's sake though

Custom variables do work on the Comic Page and Overview, but do not work with the Comic Archive loop or with the Comic Search loop.

[v:custom.userdefinedvariable] or [v:l.custom.userdefinedvariable]


yes, this is true (what xeno said isn't quite correct as they also work on the overview page, as you pointed out). They probably will be added to the loops, or at the very least the archive loop at some point, I'll have to do some thinking how to best go on about that with the way things work internally
_______________________
hello
5th Feb 2019, 2:12 AM #10
Xenocartographer
has a sweet tooth
User avatar
Posts: 3699
Registration date: 13th Oct 2010
Location: Champlain College, Burlington, VT
Wait, how does that work? I must be missing something if custom variables make sense outside of a loop.
_______________________
image
5th Feb 2019, 3:05 AM #11
Kyo
🐊
User avatar
Posts: 18170
Registration date: 6th Jul 2008
Location: Germany
what I'm saying is that on the overview page, you can access the custom variables for the most recent comic

e: alright, I added the vars. For the comic description, I named it [v:latestcomicdescription] for consistency (although I should probably change/duplicate that var with a different name in the long run, since it's now called "Mouseover Text" on the upload form)
_______________________
hello
"Wow, Thank You!", 5th Feb 2019, 2:04 PM #12
Snarkclaw

User avatar
Posts: 136
Registration date: 9th Oct 2014
Location: MO, USA
Kyo:currently not on the overview, I can add them to the overview, if you need them.

I was going to say, "Yes please, if it is not too much trouble," but you already added them, so I guess it was not too much trouble! :-)


Re: [v:blogarchivelink]

Kyo:the reason this is a variable on the blog page is that it will actually take you back to the page the blog you are viewing is on. On the overview, that would just be the first page, so you can just use "/blog/" or "/blogarchive/" instead. I suppose I could add it just for consistency's sake though

I had been using "/blog/" and had wondered why there was a specific variable for the link. I did not realize it did that. That is really cool!


Re: Custom Variables

Kyo:They probably will be added to the loops, or at the very least the archive loop at some point, I'll have to do some thinking how to best go on about that with the way things work internally

Good to know, thank you.


And wow, thank you yet again for all the work you do on ComicFury. Really, this is amazing! :-)

I wish I had started hosting my comics here years ago, rather than adapted blogging services to do a hack-job version of what you do much more elegantly here.
_______________________
image image
"Question - Variable Representing Comic's Number Within Its Chapter?", 15th Feb 2019, 9:51 PM #13
Snarkclaw

User avatar
Posts: 136
Registration date: 9th Oct 2014
Location: MO, USA
Hello, I have yet another weird question about ComicFury variables. I hope these do not get too annoying!

Assuming I describe it clearly enough, this one should just be a simple "Yes" or "No" question. :-)

Is there a variable that represents a comic's number within a chapter? "1" for the first page, "2" for the second page, etc.?

I know that, on the Comic Archive page, within the Archive Loop, [v:l.number] shows the comic number in the comic archive as a whole. Is there a variable that just numbers the comics within their own chapters?

Thanks in advance for your answer! :-)
_______________________
image image
15th Feb 2019, 10:38 PM #14
Kyo
🐊
User avatar
Posts: 18170
Registration date: 6th Jul 2008
Location: Germany
not currently
_______________________
hello
16th Feb 2019, 12:21 AM #15
Snarkclaw

User avatar
Posts: 136
Registration date: 9th Oct 2014
Location: MO, USA
That is what I thought. Thank you for clarifying! :-)
_______________________
image image
"Question: Author Notes on Overview Page?", 6 days ago, 5:30 PM #16
Snarkclaw

User avatar
Posts: 136
Registration date: 9th Oct 2014
Location: MO, USA
Since it has been almost four months since my last "I was poking a stick at the code and..." question...

This is (hopefully) another simple "Yes" or "No" question (though I guess "Yes" yields the second question of "What is it?").

The list variable for author notes -- [l:authornotes] -- works on the Comic Page. Is there some variation that works on the Overview Page?

i.e.
[v:comicimage] --> [v:latestcomicimage]
[v:comictitle] --> [v:latestcomictitle]
[v:comicdescription] --> [v:latestcomicdescription]
[l:authornotes] --> ???

Thanks in advance for your help! :-)
_______________________
image image
5 days ago, 4:47 PM #17
Xenocartographer
has a sweet tooth
User avatar
Posts: 3699
Registration date: 13th Oct 2010
Location: Champlain College, Burlington, VT
Only Kyo can answer definitively, but I don't think there are.
_______________________
image
5 days ago, 5:54 PM #18
Snarkclaw

User avatar
Posts: 136
Registration date: 9th Oct 2014
Location: MO, USA
I do not think so, either, but wanted to check for sure. :-)
_______________________
image image
4 days ago, 1:06 PM #19
Kyo
🐊
User avatar
Posts: 18170
Registration date: 6th Jul 2008
Location: Germany
Oh, I tabbed into this thread at some point but then forgot to respond, sorry. This does not currently exist
_______________________
hello
4 days ago, 1:43 PM #20
Snarkclaw

User avatar
Posts: 136
Registration date: 9th Oct 2014
Location: MO, USA
That is what I thought; thank you for confirming! :-)
_______________________
image image
Forum > Layouts, HTML, CSS & Javascript > Question - Variables for Comic Avatars?
Pages: [1]