Jump to content

Field for VNDB Profile Link in Fuwanovel Profile


Recommended Posts

Language?

Like a lot of these boards, it's a marriage between HTML and CSS. I posted the userinfopane code on the previous page (My link) which specifically codes for the custom profile fields. I thought my logic -- explained there -- was enough to delete the rows.

Thanks for your help, guys! If we don't find a fix, I'll just label each row something like: "VN: VNDB" and "Anime: MAL" so it doesn't look so naked.

Link to comment
Share on other sites

Kludge....

I didn't like that solution, either, but it was the only thing I could think of. It doesn't work, though, so... yeah. Thus a call for help :(

but what about concatenating the different special fields first instead?

I know what 'concatenating' means in normal English, but not in progrogrammer talk. What do you have in mind?

Hope I understood what you were trying to say. Thanks for the help, Zakamutt!

Link to comment
Share on other sites

I meant my proposed solution was a kludge, actually.

Thing I was suggesting is to grab each special link you want to include and combine them into one variable, then just put it once and stuffs. Concatenating is adding something to an end of another thing, usually in the context of strings (aka "lol" + "wat" = "lolwat").

I'll note that I have like no CSS experience at all and the whole variable syntax and everything is pretty foreign to my C-style eyes, was kinda hard to read but is probably standard for html, css etc. Can't guarantee that I understood anything.

Link to comment
Share on other sites

If you have the links in their own group then you can do something like this:

<if test="authorcfields:|:$author['custom_fields'] != """>

			<foreach loop="customFieldsOuter:$author['custom_fields'] as $group => $data">

				<foreach loop="customFields:$author['custom_fields'][ $group ] as $field">

					<if test="$field != ''">

                                                    <php>

                                                          $this->single = '';

                                                          if($group == 'links')

                                                              $this->inline .= $field;

                                                          else

                                                              $this->single = $field;

                                                    </php>

                                                    <if test="$this->single != ''">

                                                         <li>{$this->single}</li>

                                                    </if>

                                              </if>

					</if>

				 </foreach>

			</foreach>

                   <if test="$this->inline != ''">

                      <center>{$this->inline}</center>

                   </if>

		</if>
And have the custom fields look something like this:
<span style="padding:5px"><a href="http://www.vndb.org/u{content}/list">VNDB</a></span>

Then it should look like this:

ZAOojYf.png

Link to comment
Share on other sites

  • 3 weeks later...

Sorry to resurrect the dead here, but I wanted to gauge how y'all feel about the VNDB and MAL fields. Do you like it as-is, or would you like field titles so it doesn't appear so naked?

Ex:

Visual Novels: VNDB

Anime: MAL

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...