1
trspice
How can I use HTML in block titles?
  • 2008/2/29 5:51

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


I want more control over block titles individually instead of the CSS. Does anyone know how to hack the core files to allow HTML in block titles?
There's nothing but science....
The Reggae Album

2
trspice
Re: How can I use HTML in block titles?
  • 2008/3/4 23:45

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


So does anyone know how to do this?
There's nothing but science....
The Reggae Album

3
trspice
Re: How can I use HTML in block titles?
  • 2008/3/5 3:42

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


This would be such a really useful hack. HELP! When is the Dev site coming back online?
There's nothing but science....
The Reggae Album

4
trspice
Re: How can I use HTML in block titles?
  • 2008/3/6 4:10

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


Have all the experts gone to another forum? All that in fighting did that. Well are there any other php experts around who can give some ideas on this? I think it will benefit everyone using Xoops.
There's nothing but science....
The Reggae Album

5
trspice
Re: How can I use HTML in block titles?
  • 2008/3/9 23:13

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


Maybe this is not fully understood. I want to wrap HTML tags around the title when creating a content block like <b>The Title</b>. This is so I can have different title formats instead of the monotonous one created by the stylesheet.
There's nothing but science....
The Reggae Album

6
trspice
Re: How can I use HTML in block titles?
  • 2008/3/11 2:29

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


...so I went over to xoopsinfo.com to find some help on this matter and apparently they have shut the door to the public. What's up with that?
There's nothing but science....
The Reggae Album

7
trspice
Re: How can I use HTML in block titles?
  • 2008/3/11 2:30

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


...but seriously though, I really need to make this work. Who is the PHP specialist here.
There's nothing but science....
The Reggae Album

8
stefan88
Re: How can I use HTML in block titles?
  • 2008/3/11 6:26

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Hi,

not shure about the php, but it is not very good idea - you will have to hack code each time you upgrade...

but why not try smarty

Try in your theme to replace

<{$block.title}>


with

Quote:
<{$block.title|replace:"&*lt;":"<"|replace:"&*gt;":">"}>


REMOVE THE RED * FROM THE CODE

and see if it will work.

..

9
trspice
Re: How can I use HTML in block titles?
  • 2008/3/11 7:18

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


stefan88 thanks for the response. I tried the method you proposed but the tags show in the title with no effect.

I don't know how to use smarty to make this work. Can you suggest the method?
There's nothing but science....
The Reggae Album

10
stefan88
Re: How can I use HTML in block titles?
  • 2008/3/11 7:21

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Hi,

I did tested this on 2.0.13.2. What is your version?

Some tips: if your theme is like default, you may need to change more html files like theme_blockleft.html and so on

Did you cleared the templates cashe? (Delete all files except index.html from templates_c folder)
..

Login

Who's Online

209 user(s) are online (144 user(s) are browsing Support Forums)


Members: 0


Guests: 209


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits