Language: 
To browser these website, it's necessary to store cookies on your computer.
The cookies contain no personal information, they are required for program control.
  the storage of cookies while browsing this website, on Login and Register.
Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Select language:

Community



Donate

Donate for PortaMx !
Your donation is safe and helps support the issues and causes you care most about.

Stats

  • *Total Members: 4339
  • *Latest: AJ

  • *Total Posts: 15836
  • *Total Topics: 2396
  • *Online Today: 5
  • *Most Online: 157
(27.08.09, 03:54:53)
  • *Users: 0
  • *Guests: 5
  • *Total: 5

Author Topic: recent_posts.php need board name output please  (Read 2365 times)

0 Members and 0 Guests are viewing this topic.

Offline webking

  • Full Member
  • ***
  • Posts: 108
  • Gender: Male
recent_posts.php need board name output please
« on: 04.11.08, 15:55:35 »
Hi guys,

Would it be possible to add boardname to the recent_posts.php please?

I m expecting to have this kind of output below:

Code: [Select]
Topic tile here (boardname)

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5616
  • Gender: Female
Re: recent_posts.php need board name output please
« Reply #1 on: 04.11.08, 17:05:25 »
For this, you have to modify the recent_post.php in the folder Sources/PortaMx/Class.

The boardname is inside the $post array..
You get is with $post['board_name'] and can applied in the content (function _RecentContent()) at this part ..
Code: [Select]
$this->cfg['content'] .= '
<a href="'. $post['href'] .'">'. $post['subject'] .'</a><br />
'.(empty($context['right_to_left']) ? $txt['by'] .' '. $post['poster']['link'] : $post['poster']['link'] .' '. $txt['by']).'<br />
'. ($post['new'] ? '' : '<a href="' . $scripturl . '?topic=' . $post['topic'] . '.msg' . $post['new_from'] . ';topicseen#new" rel="nofollow"><img src="' . $settings['lang_images_url'] . '/new.gif" alt="' . $txt['new'] . '" border="0" /></a> ').
'['. $post['time'] .']'. ($numpost > 0 ? '
<hr />' : '');

Fel

Many are stubborn in relation to the path, a few in relation to the target.

Offline webking

  • Full Member
  • ***
  • Posts: 108
  • Gender: Male
Re: recent_posts.php need board name output please
« Reply #2 on: 04.11.08, 17:18:15 »
How do I modify it?

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5616
  • Gender: Female
Re: recent_posts.php need board name output please
« Reply #3 on: 04.11.08, 18:29:35 »
If you give me an example, how to looks that, I can you help.
Best is a sample image.

Fel
Many are stubborn in relation to the path, a few in relation to the target.

Offline webking

  • Full Member
  • ***
  • Posts: 108
  • Gender: Male
Re: recent_posts.php need board name output please
« Reply #4 on: 04.11.08, 20:05:25 »
Well, just the subject and the board name.


This is the topic title - boardname

or

This is the topic title (boardname)

straight line. I got rid of the rest of the information except the topic title but now I just need the board name included.

Could not attach image. Error
Allowed file types: doc, gif, jpg, pdf, png, txt, zip
Maximum attachment size allowed: 0 KB, per post: 6

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5616
  • Gender: Female
Re: recent_posts.php need board name output please
« Reply #5 on: 04.11.08, 20:56:04 »
Could not attach image. Error
Allowed file types: doc, gif, jpg, pdf, png, txt, zip
Maximum attachment size allowed: 0 KB, per post: 6
yes .. you have use the correct filetyp (extension)

But .. here the change for recent_topics block:

find: (line 66)
Code: [Select]
$this->cfg['content'] .= '
<a href="'. $post['href'] .'">'. $post['subject'] .'</a><br />


replace with:
Code: [Select]
$this->cfg['content'] .= '
<b>'. $post['board']['link'] .'</b><br />
<a href="'. $post['href'] .'">'. $post['subject'] .'</a><br />

Thats all ..
See atached image

Fel
Many are stubborn in relation to the path, a few in relation to the target.

Offline webking

  • Full Member
  • ***
  • Posts: 108
  • Gender: Male
Re: recent_posts.php need board name output please
« Reply #6 on: 04.11.08, 21:16:10 »
excellent. Thanks millions.

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5616
  • Gender: Female
Re: recent_posts.php need board name output please
« Reply #7 on: 04.11.08, 23:16:00 »
No problem.
Next .. please specify your question a little bit more precisely .. that would help us  ;)

Fel
Many are stubborn in relation to the path, a few in relation to the target.