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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,021
  • Total Topics: 21,332
  • Online today: 744
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 219
  • Total: 219

Hyper Link a Block Title

Started by tragidy, November 12, 2008, 11:16:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tragidy

As the topic states ' Hyperlink a Block Title '

Is it possible to have the title of a block be linked to another part of the website.

es; gallery block's title is Gallery and when a user clicks the title it brings them to the gallery

I ran a search and never found any answer so I guess this is the best place to post it.

IchBin

There is no option for that in TinyPortal. If you want, you can turn off the title and frame, then make it look like a block using custom code. A little bit tougher, but its the only way I can think of to do it.

G6Cad

If you use Thurnoks random gallery image he have posted in the block and codesnippets board, you have the link to the gallery by clicking the image/s shown there

ed_m2

#3
made a suggestion on this the other week:
http://www.tinyportal.net/index.php?topic=26738.0

i have this on a recent posts block where i wanted the block title to link to the forum index..
it's a php box.. now set no frame or title starting with the following code to make the code render as a block with title & frame:

echo '
<div class="tborder tp_leftblock_frame" style="margin-bottom: 4px;">
<h3 class="catbg3 tp_leftblock_title" style="margin: 0pt; padding: 5px; font-size: 1em;">
<span class="header">
<a href="index.php?action=Forum">Forum</a>
</span>
</h3>
<div id="block34" class="windowbg tp_leftblock_body" style="padding: 4px;">


and obviously 2 /divs after your code.

edited to add.. thats a block frame/header in a theme based on the default theme.. if you have some more funky theme it may be different, those tage i literally cut & pasted from viewing the page source, so you should be able to do the same.

This website is proudly hosted on Crocweb Cloud Website Hosting.