TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 606
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 232
  • Total: 233
  • @rjen

Linking to a block?

Started by Hopeless_Noob, November 27, 2005, 05:50:56 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hopeless_Noob

Hey folks.  I have a center block that shows up only to guests (its an "about us" section)   I would also like to make this available via a link on the top (next to calendar but before logout) to all who would like to see it.

What would be the easiest way to do this?   How would I add an additional button along the top and link it to an html block?  Should I just create an additional html block identical to the first so as not to mess with permissions?  Should I make an article and link back to that?

If this isn't clear then let me know and I'll try to rephrase.  Thanks!!!!  :)

resurgence

just put it in an article that doesn't show up on the front page. just like bloc's button generator page here.

Hopeless_Noob

Oh cool! Easy!

Do you know how I would create the button for it along the top?

bloc

It depends on the theme..but you need to look at template_menu() function and copy one of the button code bits there to your own.

Hopeless_Noob

Its oxygen.  I'll look for that code, thanks Bloc :)

Hopeless_Noob

#5
OK, so....

I wanted it to be after forum and before help.  so I found the line of code for forum and copied it, then altered it, but now I'm facing an odd problem.

I altered the code and expected there just to be a new button, as if it was dynamic or something.  But Now I just have this gaping space between Forum and Help, though if I click on the space the link works.

Do I need to create an "ABOUT US" button??


Here's the code:

<div id="bbabout"  '.$mycode.'><a href="', $scripturl, '?page=4"><img src="' . $settings['images_url'] . '/blank.gif" alt="about us" style="margin: 0px; width: 74px; height: 24px;" border="0" /></a></div>

I made up bbabout, do i have to define that somewhere?

IchBin

You define the bbabout in your class just like the other buttons are defined. :)

Hopeless_Noob

I thought I just did that. Doh!    :buck2:   ;)

IchBin

Yes, but in the style.css file. :)

Hopeless_Noob

#9
Thanks Ich,  I found that and populated it with the forum.gif for now...


Does anyone know the best way to make a new button?  Any suggested freeware?

This website is proudly hosted on Crocweb Cloud Website Hosting.