Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 892
  • Dot Hidden: 0
  • Dot Users: 1
  • Dot Users Online:

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


Thanks for having an interest with our portal. If you have any requests for features, have a look at the Feature Requests board.

Articles image size

Started by Nick, July 07, 2011, 07:13:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nick

When you have an article on the portal you can have an image next to the topic name and poster. How do you make this image and the text bigger?

Currently the image is scaled to 40px

Nick


Nick

Never mind worked out how to do this. If you want to know then go to;

/Sources/PortalBlocks.php

Find

<table class="sp_fullwidth sp_articles">';



foreach ($articles as $article)

{

echo '

<tr>

<td class="sp_articles sp_center">';



if (!empty($article['avatar']['href']) && $image == 1)

echo '<img src="', $article['avatar']['href'], '" alt="', $article['poster']['name'], '" width="40" />';

elseif (!empty($article['image']['href']) && $image == 2)

echo '<img src="', $article['image']['href'], '" alt="', $article['name'], '" width="40" />';



echo '</td>


Change the;

width="40"

To whatever you want.