TinyPortal

Development => Support => Topic started by: gfxindia on September 20, 2006, 01:54:51 PM

Title: Few Questions
Post by: gfxindia on September 20, 2006, 01:54:51 PM
I have a few questions.
That is , i wanna know if these are possible.

QUESTION #1 :

One thing i dont like here is the font in which block titles, category titles are displayed.
I want to use an Art Font for Block titles.
I will make them as images. And for each Block, when creating i'll enter the image name in the block title.

And i will change : -
' ,$block['title'], '
to this
<img src="' . $settings['images_url'] . '/' ,$block['title'], '">

Will that make the image appear as Block Title.

QUESTION #2 : -
I dont want the menu to be displayed in Frontpage, Profile, PM, Memberlist and few other pages.
I want it to display only when viewing BoardIndex, MessageIndex and when reading messages.

Is this possible ?
Please let me know the code.

QUESTION #3 : -
How to have diff header images for diff parts of the Site.
Like for PM, Downloads etc...

Like in this site.


Question 2 & 3 can be easily achieved through IF-ELSE statements.
I just want to know the right way.


These will decide if i'll use TP for my site templora.com


Thank You
Title: Re: Few Questions
Post by: eldacar on September 21, 2006, 08:31:08 AM
Quote

QUESTION #1 :

One thing i dont like here is the font in which block titles, category titles are displayed.
I want to use an Art Font for Block titles.
I will make them as images. And for each Block, when creating i'll enter the image name in the block title.

And i will change : -
Code:

' ,$block['title'], '

to this
Code:

<img src="' . $settings['images_url'] . '/' ,$block['title'], '">


Will that make the image appear as Block Title.
No no no! That will probably screw things up and is terrible html too. Instead what you'd want to do is edit the blocks code to add an ID, and then use css text replacement.
Title: Re: Few Questions
Post by: gfxindia on September 21, 2006, 01:03:21 PM
why would that screw up thinngs ?

the text entered for block title appears as an URL.

its just a string. i can use the string anyway i like.
right ?

or i'll enter full image url in the place of block title
and change to

<img src="' ,$block['title'], '">


Will that work.

CSS wouldn't work since i wanna use art fonts

Title: Re: Few Questions
Post by: gfxindia on September 21, 2006, 01:58:32 PM
a bump.
Title: Re: Few Questions
Post by: eldacar on September 21, 2006, 02:05:04 PM
Learn CSS and use it properly. Use CSS to do image text replacement.
Title: Re: Few Questions
Post by: gfxindia on September 21, 2006, 02:08:21 PM
How can that be done ?

BTW, What i told cant be done ? Why ?
Title: Re: Few Questions
Post by: eldacar on September 21, 2006, 02:14:56 PM
It can be done, but it's silly, and in accessible.
Change the blocks code to add id="block#" to each block title. Change the title to be wrapped in a span.
Then in your css do something like

#block13 span {
display: none;}
#block13 {
background: url('yourpic.png');}
Title: Re: Few Questions
Post by: gfxindia on September 21, 2006, 02:18:14 PM
so what i said could be done ?
I think it is better isn't it ? coz i dont want to code very block in to CSS
i just give the image while making the block.
Title: Re: Few Questions
Post by: eldacar on September 21, 2006, 02:19:47 PM
What happens for screen readers? What happens in other themese?
And why would you want to refer to a block by a url??
Title: Re: Few Questions
Post by: gfxindia on September 21, 2006, 02:22:20 PM
Quote from: eldÊÅ'kaː on September 21, 2006, 02:19:47 PM
What happens for screen readers?
what do you mean by that ? i dont understand.

i wouldn't use any other theme. i'll make only this theme.

i am referring to an image's URL.
so instead of text, the image will be displayed a block title.
Title: Re: Few Questions
Post by: eldacar on September 21, 2006, 03:07:56 PM
Screenreaders can be used for blind users of the internet. They don't use images oobviously.
Title: Re: Few Questions
Post by: gfxindia on September 22, 2006, 03:53:52 PM
BUMP FOR QUESTION 2