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 login or register.

* Who's Online

  • Dot Guests: 384
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* 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]

NEED HELP? If you're looking for support with Simple Portal, look no further than the Support Board!

Author Topic: Chage the font size of block?  (Read 5143 times)

0 Members and 1 Guest are viewing this topic.

Offline edi67

  • Semi Newbie
  • *
  • Posts: 22
  • SMF Version: 2 RC1
  • SP Version: 2.3
Chage the font size of block?
« on: October 11, 2008, 09:20:04 AM »
How i can change the font size of blocks? i mean i want the letter small than now for have the letter not going in another line

View
http://ediboard.altervista.org/index.php

thx for help

PS. strange i have that problem only with ITALIAN LANGUAGE ...

Offline ???1031

  • ... feel not as a dev at the moment ...
  • Comrade
  • *
  • Posts: 789
  • Gender: Male
  • Overworked <<
  • SMF Version: None
  • SP Version: None
Re: Chage the font size of block?
« Reply #1 on: October 13, 2008, 01:07:25 AM »
Because in the italian language the text for that Board Info Block is longer... (I've the same problem in german).

Hmmm at the moment i've only one idea... do you like this for all blocks or only for the block who made the problem?

Bye
DIN1031
Again... I'm having time problems...Normal Monday to Friday I'm at office from 6:00-16:00 (On my local time ;P).

Offline LoGraYThS

  • Semi Newbie
  • *
  • Posts: 17
  • Gender: Male
    • Pearl Jam Comunidad México
  • SMF Version: 1.1.12
  • SP Version: 2.3.3
Re: Chage the font size of block?
« Reply #2 on: November 20, 2008, 01:55:54 AM »
I will take back this thread cause I want to make all my blocks fonts smaller...

Where do I have to tweak or change to have this?

Tnx in advance!  :D


Offline Shortie

  • Semi Newbie
  • *
  • Posts: 21
  • The Art OF Graphics
    • Graphics Mayhem
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Chage the font size of block?
« Reply #3 on: December 02, 2008, 07:19:21 AM »
I too have the same problem

I would like to reduce the font for all blocks

Any idea where to change the settings

Shortie

Setup

SMF 2b4
SP 2.1.1
Non default theme

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Chage the font size of block?
« Reply #4 on: December 02, 2008, 07:29:31 AM »
For now you can do this;

SPortalBlocks1-1.template.php
or
SportalBlocks2.template.php

Find:

Code: [Select]
style="padding: 5px;"
Replace:

Code: [Select]
style="padding: 5px; font-size: 10pt;"
It appears two times, you should change both.
Change "10pt" as you wish.
And slowly, you come to realize... It's all as it should be...

Offline Shortie

  • Semi Newbie
  • *
  • Posts: 21
  • The Art OF Graphics
    • Graphics Mayhem
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Chage the font size of block?
« Reply #5 on: December 02, 2008, 09:52:17 AM »
Spot on

Many thanks and worked a treat

From my point of view this can be locked

Shortie

P.S. Nearly there now just some colours to finish off

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Chage the font size of block?
« Reply #6 on: December 02, 2008, 10:32:41 AM »
P.S. Nearly there now just some colours to finish off

Not sure if I got this. Can you elaborate?
And slowly, you come to realize... It's all as it should be...

Offline Shortie

  • Semi Newbie
  • *
  • Posts: 21
  • The Art OF Graphics
    • Graphics Mayhem
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Chage the font size of block?
« Reply #7 on: December 08, 2008, 06:23:09 AM »
P.S. Nearly there now just some colours to finish off

Not sure if I got this. Can you elaborate?

Sorry I meant nearly finished seting my portal up and just need to get the colours sorted

Offline benz1

  • Semi Newbie
  • *
  • Posts: 18
Re: Chage the font size of block?
« Reply #8 on: December 20, 2008, 07:36:07 PM »
This only appears to work for some blocks, e.g., News, Latest Posts, User Info, etc, but not others, e.g., Top Topics, Polls, Top Forums, etc. Is there somewhere else it should be added to apply the same style to all blocks?

Thanks,
Benz1

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Chage the font size of block?
« Reply #9 on: December 21, 2008, 05:27:06 AM »
Those blocks may have their own class set, I'm not sure. Check the SPortalxx.php file and you will see the block codes.
And slowly, you come to realize... It's all as it should be...

Offline benz1

  • Semi Newbie
  • *
  • Posts: 18
Re: Chage the font size of block?
« Reply #10 on: December 22, 2008, 12:17:03 AM »
Thanks but I'm not smart enough to work out how to change the style. For example, the code for topTopics is as follows -

Code: [Select]
function sp_topTopics($parameters)

{
global $db_prefix, $txt, $scripturl, $ID_MEMBER, $user_info, $modSettings, $topics, $func;
$type = !empty($parameters[0]) ? $parameters[0] : 0;
$num_topics = !empty($parameters[1]) ? $parameters[1] : (isset($_GET['limit']) ? (int) $_GET['limit'] : 10);
if ($modSettings['totalMessages'] > 100000)
{
$request = db_query("
SELECT ID_TOPIC
FROM {$db_prefix}topics
WHERE num" . ($type != 0 ? 'Views' : 'Replies') . " != 0
ORDER BY num" . ($type != 0 ? 'Views' : 'Replies') . " DESC
LIMIT 100", __FILE__, __LINE__);
$topic_ids = array();
while ($row = mysql_fetch_assoc($request))
$topic_ids[] = $row['ID_TOPIC'];
mysql_free_result($request);
}
else
$topic_ids = array();
$request = db_query("
SELECT m.subject, m.ID_TOPIC, t.numViews, t.numReplies
FROM ({$db_prefix}topics AS t, {$db_prefix}messages AS m, {$db_prefix}boards AS b)
WHERE m.ID_MSG = t.ID_FIRST_MSG
AND t.ID_BOARD = b.ID_BOARD" . (!empty($topic_ids) ? "
AND t.ID_TOPIC IN (" . implode(', ', $topic_ids) . ")" : '') . "
AND $user_info[query_see_board]" . (!empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0 ? "
AND b.ID_BOARD != $modSettings[recycle_board]" : '') . "
ORDER BY t.num" . ($type != 0 ? 'Views' : 'Replies') . " DESC
LIMIT $num_topics", __FILE__, __LINE__);
$topics = array();
while ($row = mysql_fetch_assoc($request))
{
censorText($row['subject']);
if ($func['strlen']($row['subject']) > 16)
$row['subject'] = $func['substr']($row['subject'], 0, 16) . '...';
$topics[] = array(
'id' => $row['ID_TOPIC'],
'subject' => $row['subject'],
'num_replies' => $row['numReplies'],
'num_views' => $row['numViews'],
'href' => $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0',
'link' => '<a href="' . $scripturl . '?topic=' . $row['ID_TOPIC'] . '.0">' . $row['subject'] . '</a>',
);
}
mysql_free_result($request);
if (empty($topics))
return $topics;
echo '
<table class="ssi_table">
<tr>
<th align="left">', $txt[118], '</th>
<th align="left">', $type ? $txt[301] : $txt[110], '</th>
</tr>';
foreach ($topics as $topic)
echo '
<tr>
<td align="left">
', $topic['link'], '
</td>
<td align="right">', $type ? $topic['num_views'] : $topic['num_replies'] , '</td>
</tr>';
echo '
</table>';
}

The class is "ssi_table" but I cant see where it is defined.

Can you advise if it's possible to change the style here and if so where?

Thanks,
Benz1