1
Cozzie
Trying to add avatars to viewforum.php
  • 2008/7/3 10:30

  • Cozzie

  • Not too shy to talk

  • Posts: 133

  • Since: 2007/7/13


Hi there

I'm trying but failing to add the users avatar to the viewforum.php page (newbb). This is the page that lists the threads in a particular category of the forum.

It lists the poster name (last_poster) but doesn't display their avatar

Can anyone please help me??????

I've made a similar change to a newbb block but can't make it work here. Its driving me a liitle mad!

I figured I need to assign the function in inlcudes/function.php but the workings of newbb have got me stumped

Please help!!

2
Cozzie
Re: Trying to add avatars to viewforum.php
  • 2008/7/7 8:29

  • Cozzie

  • Not too shy to talk

  • Posts: 133

  • Since: 2007/7/13


Can anyone help me on this?

Thanks a lot

3
Cozzie
Re: Trying to add avatars to viewforum.php
  • 2008/7/12 1:58

  • Cozzie

  • Not too shy to talk

  • Posts: 133

  • Since: 2007/7/13


Bump!

4
ghia
Re: Trying to add avatars to viewforum.php
  • 2008/7/12 9:21

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Do you mean on a page like this or this? (Specify URL if not).
That is standard not provided.
If you want it to show, you must probably add it to the template and in php looking it up an adding it to the template var. Example in viewtopic.

5
Cozzie
Re: Trying to add avatars to viewforum.php
  • 2008/7/14 2:43

  • Cozzie

  • Not too shy to talk

  • Posts: 133

  • Since: 2007/7/13


Hi Ghia

Its the:

modules/newbb/viewforum.php?forum=14

I am trying to add the avatars to

The problem is I just can't find where to add the php function. I've searched through pretty much every php file but can't find where the php functions for viewforum (or viewtopic) are being called.

Do you have any idea?

Thanks a lot!!!

6
Anonymous
Re: Trying to add avatars to viewforum.php
  • 2008/7/14 11:19

  • Anonymous

  • Posts: 0

  • Since:


hi,

I think you need to add code to one of the HTML template files rather than one of the .php files.

Search through viewforum.php to see which .html files it calls and compare the template's code to one of the other templates where the avatar is displayed.

Sorry - I'm at work at the moment but if you get no joy I'll take a look at this when I get home and get back to you.

7
Cozzie
Re: Trying to add avatars to viewforum.php
  • 2008/7/15 2:29

  • Cozzie

  • Not too shy to talk

  • Posts: 133

  • Since: 2007/7/13


Thanks javesey!

I've tried adding the html smarty in other files, such as:

<img class="comUserImg" src="<{$xoops_upload_url}>/<{$topic_post.poster.avatar}>" alt="" />

(this is from newbb_thread.html)

But it doesn't work - I guess viewforum.php doesn't recognise that smarty

Any ideas?

Thanks a lot!

8
iHackCode
Re: Trying to add avatars to viewforum.php

sry, i am unable to really assist, but i'll guide you to the location. look in class/forum.php in the function getAllTopics.

it will have to be modified to add the avatar link to the returned array.
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

9
Cozzie
Re: Trying to add avatars to viewforum.php
  • 2008/7/16 9:40

  • Cozzie

  • Not too shy to talk

  • Posts: 133

  • Since: 2007/7/13


Thank Bandit

I've tried everything but I can't follow what's going on in the forum.php file.

Can anyone help???

10
Cozzie
Re: Trying to add avatars to viewforum.php
  • 2008/7/28 10:30

  • Cozzie

  • Not too shy to talk

  • Posts: 133

  • Since: 2007/7/13


Sorry guys I've really tried to do this but can't get it done

Can anyone help?

Login

Who's Online

116 user(s) are online (90 user(s) are browsing Support Forums)


Members: 0


Guests: 116


more...

Donat-O-Meter

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

Latest GitHub Commits