PDA

View Full Version : modifying "Latest Forum News"


Pixelrage
11-27-2006, 04:10 PM
I need to make a really simple modification to this plugin (it's the one by spib). Currently, it displays things like this:

Title

Body of message here

Read MoreI want it to display this way (simply, removing the spaces in between everything so that it looks less spread out):

Title
Body of message here
Read MoreHow can I do this? I looked through the PHP files, and the only one that seems to set up the display of this plugin is within the install file.

Thanks

Edit: Can a moderator please move this to Plugin Modifications? Sorry, I posted this in the wrong place.

Pixelrage
11-27-2006, 09:46 PM
I figured it out - it had to be changed from within "vb.php".

Greg Thimmes
11-27-2006, 09:48 PM
you need to find the type of forum you are running, either phpbb,vbulletin, or Invision. You then can edit the php code there, just look for the <br> code and remove it. The code is pretty understandable below.

echo '<b>' . $post['title'] . '</b><br/>';
if($showForum) echo $language['in_forum'] . ' <a href="' . $forumpath . 'index.php?showforum=' . $post['forum_id'] . '">' . $post['forum_name'] . '</a><br/>';
if($showDate) echo $language['posted'] . ' ' . date($date_format, $post['postdate']) . '<br/>';
if($showUser) echo $language['by'] . ' <a href="' . $forumpath . 'index.php?showuser=' . $post['userid'] . '">' . $post['username'] . '</a><br/>';