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: 423
  • 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: new install -- text size in blocks  (Read 5141 times)

0 Members and 1 Guest are viewing this topic.

Offline smithc6

  • Semi Newbie
  • *
  • Posts: 47
  • SMF Version: 1.1.11
  • SP Version: 2.2
new install -- text size in blocks
« on: September 15, 2010, 01:28:41 AM »
Hi i installed SP yest on my smf forum
i have got it integrated with just some boxes around the right and top

one of the boxes is recent posts
is there a way i can make the text smaller as it looks kinda chunky
and have more posts showing pls
on the old info center i had quite a few posts showing on the portal its only about 8

and also i'd like to make a box to house a donate button any ideas how to do this pls

thanks
« Last Edit: September 21, 2010, 02:02:49 PM by AngelinaBelle »

Offline deansmar

  • Full Member
  • ***
  • Posts: 122
  • Gender: Male
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: new install and a few questions
« Reply #1 on: September 15, 2010, 06:28:35 AM »
the bit about recent posts, just increas the "Recent Posts or Topics to Display: " in the settings for that box.

i do belive the text size is set in the index.css of your theme.

use one of the custom php, html, or bbc boxes to make your own box for the donate button
as a foot note:
i went from a SMF 1.1.11 to SMF2 RC3 with out any problems what so ever, first of all de-install all Mods, converted to RC3, then installed SP2.3.2, then installed the required Mods.

Offline smithc6

  • Semi Newbie
  • *
  • Posts: 47
  • SMF Version: 1.1.11
  • SP Version: 2.2
Re: new install and a few questions
« Reply #2 on: September 15, 2010, 07:19:02 AM »
there isn't any settings in the recent posts section what so ever as far as i can see
any ideas where it is

and what do i change in the index.css?
i'm using the default style

Offline smithc6

  • Semi Newbie
  • *
  • Posts: 47
  • SMF Version: 1.1.11
  • SP Version: 2.2
Re: new install and a few questions
« Reply #3 on: September 15, 2010, 07:26:53 AM »
i've just had a look and there isn't an index.css in the default theme?

Offline deansmar

  • Full Member
  • ***
  • Posts: 122
  • Gender: Male
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: new install and a few questions
« Reply #4 on: September 15, 2010, 07:51:32 AM »
sorry in version 1.1.11 its called style.css
as a foot note:
i went from a SMF 1.1.11 to SMF2 RC3 with out any problems what so ever, first of all de-install all Mods, converted to RC3, then installed SP2.3.2, then installed the required Mods.

Offline smithc6

  • Semi Newbie
  • *
  • Posts: 47
  • SMF Version: 1.1.11
  • SP Version: 2.2
Re: new install and a few questions
« Reply #5 on: September 15, 2010, 08:20:22 AM »
ok i've had a look and didn't find anything to do with the recent pots box
have you any idea what i'm looking for or what to change pls

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: new install and a few questions
« Reply #6 on: September 15, 2010, 09:02:02 AM »
"Recent Posts or Topics to Display" is where you enter the number of recent posts or topics to display
 
You can see the options for recent posts/topics at
http://demo.simpleportal.net/index.php?action=admin;area=portalblocks;sa=edit;block_id=11;
 
(of course, on that demo forum, there are only 2 posts and no options to add any more)
 
-------------
 
You've discovered there are not any special classes for individual block types.
You can learn more about what CSS classes are used by looking at the HTML for each block (each block starts with  <div id="sp_block_, which makes them easy to find in the HTML source).
 
If you wish to alter the style of the body of a block, use the "Style Options".  You can start with a Custom Body Style and experiment with text and font styling (http://w3schools.com/css/default.asp offers lots of info on the proper CSS syntax).
 
 
« Last Edit: September 15, 2010, 09:07:31 AM by AngelinaBelle »
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline smithc6

  • Semi Newbie
  • *
  • Posts: 47
  • SMF Version: 1.1.11
  • SP Version: 2.2
Re: new install and a few questions
« Reply #7 on: September 15, 2010, 09:49:31 AM »
wooo thanks i sorted the amount of posts to be shown
but i have searched for the code to change the text size and i can't find it anywhere
sorry to be a pain but where is it exactly pls

Offline deansmar

  • Full Member
  • ***
  • Posts: 122
  • Gender: Male
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: new install and a few questions
« Reply #8 on: September 15, 2010, 10:29:01 AM »
thanks AngelinaBelle I'm sure that's what i typed as well..!! 8)

strange that he understood what you typed and not what i typed..  :D

going back to the subject Fonts.. and the size of..

they are in your style.css of your theme if you did a search for font-size: I'm sure you will find a fair few

it depends on what your using, if i remember rightly most of the text use these classes;

.catbg, .catbg2, .catbg3

i suppose i have no idea what so every what i am doing...!!!  :thumbsdown:

at least i know how to set SP and SMF up as i would like it to be and look.  :whistle:
as a foot note:
i went from a SMF 1.1.11 to SMF2 RC3 with out any problems what so ever, first of all de-install all Mods, converted to RC3, then installed SP2.3.2, then installed the required Mods.

Offline deansmar

  • Full Member
  • ***
  • Posts: 122
  • Gender: Male
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: new install and a few questions
« Reply #9 on: September 15, 2010, 10:53:50 AM »
if you had supplied us with a link to your Forum / SP i could have told you which class on which line.

because you have not done that, we can only gaze in to the crystal ball and point you in the right direction... hoping that you will find your way.

by clicking with the right mouse on your open Forum in a browser and looking at the code, find a word that is in the box that you would like to change and some were near there you will find the Class code that changes the Fonts appearance..
as a foot note:
i went from a SMF 1.1.11 to SMF2 RC3 with out any problems what so ever, first of all de-install all Mods, converted to RC3, then installed SP2.3.2, then installed the required Mods.

Offline smithc6

  • Semi Newbie
  • *
  • Posts: 47
  • SMF Version: 1.1.11
  • SP Version: 2.2
Re: new install and a few questions
« Reply #10 on: September 15, 2010, 11:26:40 AM »

Offline deansmar

  • Full Member
  • ***
  • Posts: 122
  • Gender: Male
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: new install and a few questions
« Reply #11 on: September 15, 2010, 12:26:54 PM »
i suppose your talking about the recent post box....

the thing is if you change the font size it will not just be for that box it will be for the hole Forum...

you would have to make a seperat class if you just want to control that box

once the class has been made then you need to enter it in the settings for that box under Style Options find Custom Title Class: enter the class that you made there.

the class in your themes style.css that is controling the text in that box is either;
a:link
a:visited
a:hover
tborder
sp_block
catbg

look for these classes in your styles.css and see if there is a Font-size if yes, change it and see if it worked.. try and try again....

in the setting for that box you might like to try setting the Display type: to compact first

and also try making the colum a little wider, it look as if it is below 200
under Block settings, Width of Right Side Blocks
as a foot note:
i went from a SMF 1.1.11 to SMF2 RC3 with out any problems what so ever, first of all de-install all Mods, converted to RC3, then installed SP2.3.2, then installed the required Mods.

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: new install and a few questions
« Reply #12 on: September 15, 2010, 03:33:03 PM »
For the moment, let's forget about the CSS files.
 
How about editing the block we want to change, and only that block?
 
Down at the bottom of the "edit block" screen, look for "Custom body style".  Here is where you can apply any text or font styles you want to apply to just this one block.
 
Why not give that a try and see how well it works?
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline smithc6

  • Semi Newbie
  • *
  • Posts: 47
  • SMF Version: 1.1.11
  • SP Version: 2.2
Re: new install and a few questions
« Reply #13 on: September 15, 2010, 04:50:47 PM »
ok thanks that sounds easier
any idea what to put in there
i'm not very good with coding yet
i'm learning as i go along the hard way usually lol

Offline smithc6

  • Semi Newbie
  • *
  • Posts: 47
  • SMF Version: 1.1.11
  • SP Version: 2.2
Re: new install and a few questions
« Reply #14 on: September 15, 2010, 04:53:00 PM »
i put x-small and font:x-small in but nothing changed lol

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: new install and a few questions
« Reply #15 on: September 15, 2010, 07:42:55 PM »
Funny.  I just tried it at http://demo.simpleportal.net/, and it worked great.
 
The demo gets reset/refreshed every hour (or is it half-hour?).
I edited the recent posts block here: http://demo.simpleportal.net/index.php?action=admin;area=portalblocks;sa=edit;block_id=11
 
 
BeforeAfter

Regular size Recent Posts

Smaller size post text

HTML for regular size Recent Posts

HTML for small Recent Posts


Here's how I did it:



 

 
« Last Edit: September 15, 2010, 07:57:02 PM by AngelinaBelle »
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline smithc6

  • Semi Newbie
  • *
  • Posts: 47
  • SMF Version: 1.1.11
  • SP Version: 2.2
Re: new install and a few questions
« Reply #16 on: September 16, 2010, 01:54:55 AM »
thanks for the brill info and explanation
not a clue why mine isn't working though lol
i have done exactly as you have said and there's no dif lol
i'm wondered if it's because i'm using safari with a mac
i know when i have done other things it always looks dif on dif browsers
but i just tried it on firefox and it hadn't changed

this is really weird and so frustrating
you've been kind enough to take time out and figure the solution for me and it just isn't working on mine
so annoying

Offline deansmar

  • Full Member
  • ***
  • Posts: 122
  • Gender: Male
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: new install and a few questions
« Reply #17 on: September 16, 2010, 03:10:47 AM »
i just tryed it.. and it works fine on the normal IE and Firefox

just to be on the safe side you did type into the Box "Custom Body Style:"
font-size: x-small

not just "x-small"
as a foot note:
i went from a SMF 1.1.11 to SMF2 RC3 with out any problems what so ever, first of all de-install all Mods, converted to RC3, then installed SP2.3.2, then installed the required Mods.

Offline smithc6

  • Semi Newbie
  • *
  • Posts: 47
  • SMF Version: 1.1.11
  • SP Version: 2.2
Re: new install and a few questions
« Reply #18 on: September 16, 2010, 04:38:41 AM »
yes i typed it exactly as Angelina did
weird hey lol
it's still in there but as you can see from my site it looks no dif
www.christianstogether.co.uk/smfforum

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: new install and a few questions
« Reply #19 on: September 16, 2010, 08:10:18 AM »
I see! So, that style must be overridden by an inner element.
 
I investigated using IE8's developers tools -- and it turns out to be -- <tr>.
 
In your style.css
Code: (find) [Select]
body, td, th , tr
{
 color: #000000;
 font-size: small;
 font-family: verdana, sans-serif;
}
Code: (replace) [Select]
body, td, th
{
 color: #000000;
 font-size: small;
 font-family: verdana, sans-serif;
}
tr
{
 color: #000000;
 font-family: verdana, sans-serif;
}

There is a chance that this will have an effect on a table used somewhere else in your site.  But probably not.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline smithc6

  • Semi Newbie
  • *
  • Posts: 47
  • SMF Version: 1.1.11
  • SP Version: 2.2
Re: new install and a few questions
« Reply #20 on: September 16, 2010, 08:57:47 AM »
lol thanks for taking the time and trouble to do that its really appreciated
but............. there's always a but isn't there
it hasn't worked tho
this is really baffling me
the only difference between your and mine is the little icons i have on my titles
do you think that could affect it????

i put the code in exactly right
and made sure the code in 'custom body style' was right
i even added some font-size code on the css but that hasn't worked either???????

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: new install and a few questions
« Reply #21 on: September 16, 2010, 11:16:28 AM »
oops -- you'll have to do the same for the td as you did for the tr, because, as you can see, the recent_subject and recent_info are in a <td>.
 
Just look at all the styles applied, and work your way down the layers until you get to your output.
 
When you have a problem like this, you should really use IE8 or firefox with firebug to trace the styles.
 
That's how I found your problem. If I can do it, you can do it.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline smithc6

  • Semi Newbie
  • *
  • Posts: 47
  • SMF Version: 1.1.11
  • SP Version: 2.2
Re: new install and a few questions
« Reply #22 on: September 16, 2010, 12:39:55 PM »
the td has worked in the sense of all the text is smaller now lol
but thats fine because it looks loads better like that
more crisp

thanks for sorting that out
onto the next question if i may but hopefully it'll be easier than the last one :)

the stats box
is there anyway to get more info in it
on my last one it told me how many users had been on that day
and the most who where on-line it told me when
etc there seems to be lots of lost info

a huge thanks for getting the text sorted tho i'm well happy now ty

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: new install and a few questions
« Reply #23 on: September 16, 2010, 01:21:57 PM »
Code: (find) [Select]
body, th
{
 color: #000000;
 font-size: small;
 font-family: verdana, sans-serif;
}
td
{
 color:#000000;
 font-family:Verdana, sans-serif
}
tr
{
 color:#000000;
 font-size:x-small;
 font-family:verdana, sans-serif;
}
Code: (replace) [Select]
body, th
{
 color: #000000;
 font-size: small;
 font-family: verdana, sans-serif;
}
tr, td
{
 color:#000000;
 font-family:Verdana, sans-serif
}

Then find that block in the blocks list and put font-size:x-small in the custom body style text box.
 
Unless you REALLY want to make all your text x-small all over your site...
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline smithc6

  • Semi Newbie
  • *
  • Posts: 47
  • SMF Version: 1.1.11
  • SP Version: 2.2
Re: new install and a few questions
« Reply #24 on: September 16, 2010, 01:36:32 PM »
woo hoo well done it worked
looks great now ty

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: new install and a few questions
« Reply #25 on: September 16, 2010, 01:58:12 PM »
Cheers!
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?