1
Montag
[NewBB Fix] Forum posts in a user profile
  • 2004/2/14 9:12

  • Montag

  • Just popping in

  • Posts: 9

  • Since: 2004/2/14


In the user profile (Xoops 2.0.6) are listed the links to the forum posts made by that user.
When you click on them you'll go to the relative posts only if the threads are on a single page (or the posts are on the first page of a longer thread).

This can be fixed editing /modules/newbb/include/search.inc.php and simply changing the line 53:
$ret[$i]['link'] = "viewtopic.php?topic_id=".$myrow['topic_id']."&forum=".$myrow['forum_id']."#forumpost".$myrow['post_id'];

with this one:
$ret[$i]['link'] = "viewtopic.php?post_id=".$myrow['post_id']."&topic_id=".$myrow['topic_id']."&forum=".$myrow['forum_id']."#forumpost".$myrow['post_id'];


Login

Who's Online

397 user(s) are online (267 user(s) are browsing Support Forums)


Members: 0


Guests: 397


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