runnerjp Posted September 5, 2006 Share Posted September 5, 2006 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] Quote Link to comment https://forums.phpfreaks.com/topic/19746-change-font-size/ Share on other sites More sharing options...
AndyB Posted September 5, 2006 Share Posted September 5, 2006 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] Quote Link to comment https://forums.phpfreaks.com/topic/19746-change-font-size/#findComment-86290 Share on other sites More sharing options...
HuggieBear Posted September 5, 2006 Share Posted September 5, 2006 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.phpThat's the beauty of PHP, you can hack around with it and there's always someone to help when it goes wrong ;)Rich Quote Link to comment https://forums.phpfreaks.com/topic/19746-change-font-size/#findComment-86297 Share on other sites More sharing options...
runnerjp Posted September 5, 2006 Author Share Posted September 5, 2006 haha yer thats true..... so wat do i have to change in code then im confuzzeld lol Quote Link to comment https://forums.phpfreaks.com/topic/19746-change-font-size/#findComment-86432 Share on other sites More sharing options...
AndyB Posted September 5, 2006 Share Posted September 5, 2006 [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. Quote Link to comment https://forums.phpfreaks.com/topic/19746-change-font-size/#findComment-86434 Share on other sites More sharing options...
runnerjp Posted September 5, 2006 Author Share Posted September 5, 2006 so would this be in my ssi file yer Quote Link to comment https://forums.phpfreaks.com/topic/19746-change-font-size/#findComment-86437 Share on other sites More sharing options...
AndyB Posted September 5, 2006 Share Posted September 5, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/19746-change-font-size/#findComment-86440 Share on other sites More sharing options...
runnerjp Posted September 5, 2006 Author Share Posted September 5, 2006 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] Quote Link to comment https://forums.phpfreaks.com/topic/19746-change-font-size/#findComment-86450 Share on other sites More sharing options...
AndyB Posted September 5, 2006 Share Posted September 5, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/19746-change-font-size/#findComment-86457 Share on other sites More sharing options...
runnerjp Posted September 5, 2006 Author Share Posted September 5, 2006 what would an example of the output function would i be lookin for :D Quote Link to comment https://forums.phpfreaks.com/topic/19746-change-font-size/#findComment-86460 Share on other sites More sharing options...
AndyB Posted September 5, 2006 Share Posted September 5, 2006 [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? Quote Link to comment https://forums.phpfreaks.com/topic/19746-change-font-size/#findComment-86470 Share on other sites More sharing options...
runnerjp Posted September 5, 2006 Author Share Posted September 5, 2006 lol telepathic skills!!!! is their a way to which i could send u the file.... pleaseee :D Quote Link to comment https://forums.phpfreaks.com/topic/19746-change-font-size/#findComment-86472 Share on other sites More sharing options...
AndyB Posted September 5, 2006 Share Posted September 5, 2006 [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. Quote Link to comment https://forums.phpfreaks.com/topic/19746-change-font-size/#findComment-86519 Share on other sites More sharing options...
runnerjp Posted September 5, 2006 Author Share Posted September 5, 2006 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] Quote Link to comment https://forums.phpfreaks.com/topic/19746-change-font-size/#findComment-86551 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.