1
faridelha
allow BBcode in forum name
  • 2007/10/12 14:24

  • faridelha

  • Just popping in

  • Posts: 22

  • Since: 2006/3/7 0


hi all

I would put color on the forum name, but the bbcode dont work for title, only for description.

cbb 3.08
xoops 2.0.16

2
Will_H
Re: allow BBcode in forum name
  • 2007/10/12 15:28

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


have you tried html?

<div style="color: #???;">Blah Blah Forum</div>

3
Will_H
Re: allow BBcode in forum name
  • 2007/10/12 15:32

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


Wait. do you mean the topic title?

yeah thats not a feature yet as far as I know. I thought you just meant the forum header. In which case you could just wrap it in divs, or use css.

4
faridelha
Re: allow BBcode in forum name
  • 2007/10/12 15:37

  • faridelha

  • Just popping in

  • Posts: 22

  • Since: 2006/3/7 0


i try with <div> <<--- dont work
i talk about forum name not topic title.
i want like this exemple

Forum 1 <<-- color red
forum 2 <<-- color green

5
Will_H
Re: allow BBcode in forum name
  • 2007/10/12 16:04

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


oh ya thats in the forum templates.

There are about 6 templates you will have to edit to do it.

First you need to set up your theme folder to make it work.

open your ftp app, or cpanel. and navigate to your theme folder.

create a new folder called "modules"

inside of that create a folder called "newbb"

inside of this folder we will be copying the templates that we are going to be editing.

Please copy the following templates into this folder.

newbb_viewtopic_thread.html
newbb_viewtopic_flat.html
newbb_viewpost_list.html
newbb_viewpost.html
newbb_viewforum.html
newbb_viewall.html

Off the top of my head these are the templates that have the header stuff.

now at the top(or near) of each template you will add those <div> codes around each applicable item.

You really cant miss this stuff. Look for <div class="forum_header">

once you have edited what you want to edit. save all, then clear your templates_c. Refresh, and there ya go.

6
faridelha
Re: allow BBcode in forum name
  • 2007/10/12 16:29

  • faridelha

  • Just popping in

  • Posts: 22

  • Since: 2006/3/7 0


thx for your help but dont work

7
Will_H
Re: allow BBcode in forum name
  • 2007/10/12 17:40

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


alright, you are correct, but only because they are links.

so lets do it this way

open viewtopicflat and look at

<div class="forum_header">
<div><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/index.php"><{$lang_forum_index}></a>....

and change it to:

<div class="forum_header">
<div class="forumtitle1"><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/index.php"><{$lang_forum_index}></a> </div>

Then in your style sheet add

.forumtitle1 a {
color: #??????;
}

.forumtitle1 a:hover {
color: #??????;
}

do this for each one, and you are down town.

I personally tested this so I know this works.

BOL.

8
faridelha
Re: allow BBcode in forum name
  • 2007/10/12 19:04

  • faridelha

  • Just popping in

  • Posts: 22

  • Since: 2006/3/7 0


sorry dont work or i not understand.

can you send me package modified in MP

9
Will_H
Re: allow BBcode in forum name
  • 2007/10/12 23:25

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


I didnt modify my whole package.

I only tested it on a single template.

viewtopic_flat

Remember that different templates control the visual style of different pages in the module.

For example viewtopic_flat is the template that is used if my forums display in flat mode. and only when actually in a topic.

Trust me, you are on the right path, you just have to play with it until you figure out what template corresponds to what page.

Login

Who's Online

122 user(s) are online (82 user(s) are browsing Support Forums)


Members: 0


Guests: 122


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