Jump to content

Archived

This topic is now archived and is closed to further replies.

runnerjp

change font size???

Recommended Posts

can i change the font size of the information gatherd by this

[code]<center>Most Recent Posts </center>
<div style="border : solid 2px #ffffff; background : #094569; color : #ffffff; padding : 4px; width : 200px; height : 100px; overflow : auto; ">
<?php require("forum/SSI.php");
ssi_recentPosts(); ?>


</div>
[/code]

Share this post


Link to post
Share on other sites
Depends on what's inside your function, but you could try adjusting that div style declaration to:

[code]<div style="font-size:11px; border: ..... [/code]

Share this post


Link to post
Share on other sites
If that looks odd, which it may if there's formatting code in SSI.php then you could always edit the function ssi_recentPosts() in SSI.php

That's the beauty of PHP, you can hack around with it and there's always someone to help when it goes wrong  ;)

Rich

Share this post


Link to post
Share on other sites
[quote author=runnerjp link=topic=106926.msg428486#msg428486 date=1157468803]
haha yer thats true..... so wat do i have to change in code then im confuzzeld lol
[/quote]

We don't have the code for that function. We can't tell you what to change. You do have the code for that function. Look through it to find out where there's screen output and modify to suit however you think best.

Share this post


Link to post
Share on other sites
Since changing the font style in the surrounding div apparently didn't achieve what you wanted, I can only assume that 'yer', it's somewhere in your ssi file that needs to be edited.

Share this post


Link to post
Share on other sites
i cant seem to find where this wud need changeing :S is it just me or is their a way
[code]ssi_recentPosts($num_recent = 8, $exclude_boards = array(), $output_method = 'echo')
{
global $context, $settings, $scripturl, $txt, $db_prefix, $ID_MEMBER, $user_info, $modSettings;

// Find all the posts.  Newer ones will have higher IDs.
$request = db_query("
SELECT
m.posterTime, m.subject, m.ID_TOPIC, m.ID_MEMBER, m.ID_MSG, m.ID_BOARD, b.name AS bName,
IFNULL(mem.realName, m.posterName) AS posterName, " . ($user_info['is_guest'] ? '1 AS isRead, 0 AS logTime' : '
IFNULL(lt.logTime, IFNULL(lmr.logTime, 0)) >= GREATEST(m.posterTime, m.modifiedTime) AS isRead,
IFNULL(lt.logTime, IFNULL(lmr.logTime, 0)) AS logTime') . "
FROM ({$db_prefix}messages AS m, {$db_prefix}boards AS b)
LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)" . (!$user_info['is_guest'] ? "
LEFT JOIN {$db_prefix}log_topics AS lt ON (lt.ID_TOPIC = m.ID_TOPIC AND lt.ID_MEMBER = $ID_MEMBER)
[/code]

Share this post


Link to post
Share on other sites
Nothing in that code would do anything like output to the screen.  All it does is create a database query.  Look through the code for something that outputs to the screen or has created some string that then gets set to an output function.

Share this post


Link to post
Share on other sites
[quote author=runnerjp link=topic=106926.msg428514#msg428514 date=1157470148]
what would an example of the output function would i be lookin for :D
[/quote]

Is this a test of my patience or a test of my telepathic skills?

Share this post


Link to post
Share on other sites
lol telepathic skills!!!!  is their a way to which i could send u the file.... pleaseee :D

Share this post


Link to post
Share on other sites
[quote author=runnerjp link=topic=106926.msg428526#msg428526 date=1157470608]
is their a way to which i could send u the file.... pleaseee :D
[/quote]

No thanks.  I'm sure there are other readers here would will enjoy helping and/or seeing the solution as a learning aid.  Make a copy of the file, remove any information relating to passwords (if there is any), then save it as wombat.php[b]s[/b] and upload it to your server. Post the URL ... www.mysite.com/wombat.phps ... and then we can all look at it and offer help.

Share this post


Link to post
Share on other sites
yep its uploaded....so if any 1 can offer me any help the code is all here

[url=http://www.runnerselite.com/wombat.php]www.runnerselite.com/wombat.php[/url]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.