Jump to content

Iframes or something else?


Tyrone
 Share

Recommended Posts

Hello everyone, 

 

I am in the process of working on a Supernatural fandom website and I wanted some advice on the coding needed for a layout I have in mind. 

 

For the species page I would like a set of buttons on the left hand side. It would be one button for each species. So on my board this would be a button for

 

• Creatures

• Civilians 

• Demons

• Ghosts

• Humans

• Psychics

• Witches

 

The rest of the page would contain information on the species I want to read about, which would be loaded by pressing the button for that species. For example if I pressed the Demon button the right hand side would show the information about demons, if I clicked on the Ghosts button the right hand side would switch to info about ghosts. 

 

Am I right in thinking this would require the use of iframes? Or is there a simpler/more elegant piece of coding for this? 

Link to comment
Share on other sites

  • Replies 10
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Thanks! I’ll look into that 😄

Link to comment
Share on other sites

If this is the site on Vesta, tabs are built into it via jQuery and Bootstrap, by the way. It's the easiest way to do tabs on Vesta. 

nusignature.png nusignature.png

I am the darkness, always watching, always listening, ALWAYS THERE.
(If you're interested in Plain of Ice, message me, it's private. Bleach site, non-canon.)

Link to comment
Share on other sites

Ooh thanks @Arceus! I’ll do some googling to figure out how to make use of that 😄 

Link to comment
Share on other sites

Just look at the profile templates. It tells you exactly how to do it. 😄

nusignature.png nusignature.png

I am the darkness, always watching, always listening, ALWAYS THERE.
(If you're interested in Plain of Ice, message me, it's private. Bleach site, non-canon.)

Link to comment
Share on other sites

Do you mean profile.templates.php? Sorry I’m dumb. 

Link to comment
Share on other sites

That's probably gonna be the easiest one to pick it out from. It's also in characters.template.php, but that one also has several other templates in them. You'll want the template_display() function. Div class profile_tabs is how to set up the tab navigation. At the moment they're styled to be horizontal, if you want them vertical you'll need to style them differently. Div class tab-content is how the content area containers work.

nusignature.png nusignature.png

I am the darkness, always watching, always listening, ALWAYS THERE.
(If you're interested in Plain of Ice, message me, it's private. Bleach site, non-canon.)

Link to comment
Share on other sites

Thanks so much for all the help @Arceus

 

I’ll get to trying that this evening after work!

Link to comment
Share on other sites

Hi Archeus, I can't seem to find the profile_tabs div? I've been able to find template_display() function and and tab-content but not probile_tabs?

Link to comment
Share on other sites

I managed to figure it out and used flexboxes to style the tab page how I wanted it. 🙂 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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

Important Information

By using this site, you agree to our Terms of Use, Guidelines and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.