1
bumpeboy
Add image under newbb forum title
  • 2009/11/7 5:22

  • bumpeboy

  • Friend of XOOPS

  • Posts: 170

  • Since: 2008/10/4


Hi,

Does anyone has an idea how i can add a certain image under a specific forum title.

example.

I have (viewforum.php?forum=2)
under that forum title i would like to have the American flag.

(viewforum.php?forum=3)
under this forum title i would like to have the Spanish flag.

Is that possible and how?

2
ghia
Re: Add image under newbb forum title
  • 2009/11/7 8:19

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Did you try the [img] tag in the description?

3
bumpeboy
Re: Add image under newbb forum title
  • 2009/11/7 13:13

  • bumpeboy

  • Friend of XOOPS

  • Posts: 170

  • Since: 2008/10/4


Quote:

ghia wrote:
Did you try the [img] tag in the description?


Yes i tried but that does not work, its only for the post title and not forum title.

4
ghia
Re: Add image under newbb forum title
  • 2009/11/7 14:33

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Then you need to add it in the template to display the forum (/modules/newbb/templates/newbb_viewforum.html).
I see <{$forum_id}> is available as variable, so you can select your image with it.

5
bumpeboy
Re: Add image under newbb forum title
  • 2009/11/7 15:46

  • bumpeboy

  • Friend of XOOPS

  • Posts: 170

  • Since: 2008/10/4


Quote:

ghia wrote:
<{$forum_id}>
appears more than 10 ten times on that file alone, so which one exactly do i have to edit and where do i put the forum ID?


6
ghia
Re: Add image under newbb forum title
  • 2009/11/7 19:38

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


The tag is not to be modified. It is to be used to construct an image URL that is different for each forum. That's what you asked for, no? You place the image on the place you like in the template.

7
bumpeboy
Re: Add image under newbb forum title
  • 2009/11/7 19:46

  • bumpeboy

  • Friend of XOOPS

  • Posts: 170

  • Since: 2008/10/4


I still dont get it,

http://www.mydomain.tld/football.jpg is the image i want to show on
modules/newbb/viewforum.php?forum=2 titled is FOOTBALL

and http://www.mydomain.tld/boxing.jpg is the image i want to show on
modules/newbb/viewforum.php?forum=3 titled BOXING

Can you please give me the exact codes that i have to edit.

Thanks

8
ghia
Re: Add image under newbb forum title
  • 2009/11/7 20:55

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


<{if $forum_id == 2}>
 <
img src="http://www.mydomain.tld/football.jpg" alt="football" />
<{/if}>
<{if 
$forum_id == 3}>
 <
img src="http://www.mydomain.tld/boxing.jpg" alt="boxing" />
<{/if}>


9
bumpeboy
Re: Add image under newbb forum title
  • 2009/11/8 16:48

  • bumpeboy

  • Friend of XOOPS

  • Posts: 170

  • Since: 2008/10/4


Quote:

ghia wrote:
<{if $forum_id == 2}>
 <
img src="http://www.mydomain.tld/football.jpg" alt="football" />
<{/if}>
<{if 
$forum_id == 3}>
 <
img src="http://www.mydomain.tld/boxing.jpg" alt="boxing" />
<{/if}>



Thanks ghia, it worked 100% perfect, i appreciate that. Is there a way i can apply the same technique on the subforums and posts?

10
ghia
Re: Add image under newbb forum title
  • 2009/11/8 17:40

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Find the right template and try to add it in a similar way.

Login

Who's Online

392 user(s) are online (297 user(s) are browsing Support Forums)


Members: 0


Guests: 392


more...

Donat-O-Meter

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

Latest GitHub Commits