1
zuluDROOG
ForumEx hack to "View User's Album" link
  • 2007/11/10 5:58

  • zuluDROOG

  • Just popping in

  • Posts: 32

  • Since: 2007/9/18


Hi everyone,

I hope this is the right area for this post. If not, please excuse my ignorance.

I'm using XOOPS with ForumEx (newbbex) v1.4 and Yogurt Album v1.0. All I want to do is add a link to every user's forum post so that a link to their Yogurt album appears under their avatar/location details. I've tried editing templates within ForumEx but nothing I do seems to affect any changes (let alone create a working link). :)

I understand that all I need is the UID variable in a hyperlink to create a link to each user's album... but which file do I need to edit?

Any help would be greatly appreciated.

Thanks in Advance,
-Richard

2
stefan88
Re: ForumEx hack to "View User's Album" link
  • 2007/11/10 8:18

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


Hi,

when change in template does not appear it may help to clean cache (delete all files except index.html in templates_c folder)...
..

3
zuluDROOG
Re: ForumEx hack to "View User's Album" link
  • 2007/11/10 8:53

  • zuluDROOG

  • Just popping in

  • Posts: 32

  • Since: 2007/9/18


You legend! Worked like a charm. I was editing the right file and even had the syntax correct but it was never going to show without your help.

Thank you very much!

4
noo-b
Re: ForumEx hack to "View Users Album" link
  • 2007/11/10 9:12

  • noo-b

  • Just can't stay away

  • Posts: 456

  • Since: 2007/10/23


Hi zuludroog

can you share the code ? which file did you edit to do this ?
i'm interested to implement the same feature in my site

thanks
I Love Xoops

5
zuluDROOG
Re: ForumEx hack to "View Users Album" link
  • 2007/11/10 9:21

  • zuluDROOG

  • Just popping in

  • Posts: 32

  • Since: 2007/9/18


Sure thing matey,

Edit file: \modules\newbbex\templates\newbbex_thread.html

At line 10, change:

<td class="odd"><div class="comUserRank"><div class="comUserRankText"><{$topic_post.poster_rank_title}></div><{$topic_post.poster_rank_image}></div><img class="comUserImg" src="<{$xoops_upload_url}>/<{$topic_post.poster_avatar}>" border="0" alt="" /><div class="comUserStat"><span class="comUserStatCaption"><{$lang_joined}>:</span> <{$topic_post.poster_regdate}></div><div class="comUserStat"><span class="comUserStatCaption"><{$lang_from}>:</span> <{$topic_post.poster_from}></div><div class="comUserStat"><span class="comUserStatCaption"><{$lang_posts}>:</span> <{$topic_post.poster_postnum}></div><div class="comUserStatus"><{$topic_post.poster_status}></div></td>


...to read:

<td class="odd"><div class="comUserRank"><div class="comUserRankText"><{$topic_post.poster_rank_title}></div><{$topic_post.poster_rank_image}></div><img class="comUserImg" src="<{$xoops_upload_url}>/<{$topic_post.poster_avatar}>" border="0" alt="" /><div class="comUserStat"><span class="comUserStatCaption"><{$lang_joined}>:</span> <{$topic_post.poster_regdate}></div><div class="comUserStat"><span class="comUserStatCaption"><{$lang_from}>:</span> <{$topic_post.poster_from}></div><div class="comUserStat"><span class="comUserStatCaption"><{$lang_posts}>:</span> <{$topic_post.poster_postnum}></div>
          <
div class="comUserStatus"><a href="/modules/yogurt/index.php?uid=<{$topic_post.poster_uid}>">View User's ALBUM</a></div>
          <div class="comUserStatus"><{$topic_post.poster_status}></div></td>


Pretty simple really. Just don't forget to delete everything in /templates_c before you test it. Hehehe...

6
noo-b
Re: ForumEx hack to "View Users Album" link
  • 2007/11/10 12:15

  • noo-b

  • Just can't stay away

  • Posts: 456

  • Since: 2007/10/23


thanks
I Love Xoops

7
zuluDROOG
Re: ForumEx hack to "View User's Album" link
  • 2007/12/11 1:06

  • zuluDROOG

  • Just popping in

  • Posts: 32

  • Since: 2007/9/18


Now that I'm converted to using CBB (newbb) ...

To get this hack to work in CBB 3.08 (newbb), edit file /modules/newbb/templates/newbb_thread.html, and insert the following code at line 38:

<div class="comUserStatus"><a href="<{$xoops_url}>/modules/yogurt/index.php?uid=<{$topic_post.poster.uid}>">View User's ALBUM</a></div>

8
zuluDROOG
Re: ForumEx hack to "View User's Album" link
  • 2007/12/11 1:10

  • zuluDROOG

  • Just popping in

  • Posts: 32

  • Since: 2007/9/18


Just noticed a bug in this forum: The code tags cause apostrophes to be stripped from text. Just FYI.

9
waleedpak
Re: ForumEx hack to "View User's Album" link
  • 2008/2/9 2:22

  • waleedpak

  • Just popping in

  • Posts: 45

  • Since: 2007/11/25


please... can anyone tell me how to put the same link to yogurt on xphpbbi module......

10
waleedpak
Re: ForumEx hack to "View User's Album" link
  • 2008/2/9 2:23

  • waleedpak

  • Just popping in

  • Posts: 45

  • Since: 2007/11/25


i really need your help.....

Login

Who's Online

104 user(s) are online (68 user(s) are browsing Support Forums)


Members: 0


Guests: 104


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