Jump to content


Photo

change font size???


  • Please log in to reply
13 replies to this topic

#1 runnerjp

runnerjp
  • Members
  • PipPipPip
  • Advanced Member
  • 2,214 posts

Posted 05 September 2006 - 10:07 AM

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

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


#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 05 September 2006 - 12:14 PM

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

<div style="font-size:11px; border: .....

Legend has it that reading the manual never killed anyone.
My site

#3 HuggieBear

HuggieBear
  • Members
  • PipPipPip
  • Advanced Member
  • 1,899 posts
  • LocationEngland, UK

Posted 05 September 2006 - 12:26 PM

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
Advice to MySQL users: Get phpMyAdmin and test your queries work there first, take half the hassle out of diagnosis, also check the reserved words list.

Links: PHP Docs :: RegEx's :: MySQL :: DevGuru :: w3schools

#4 runnerjp

runnerjp
  • Members
  • PipPipPip
  • Advanced Member
  • 2,214 posts

Posted 05 September 2006 - 03:06 PM

haha yer thats true..... so wat do i have to change in code then im confuzzeld lol

#5 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 05 September 2006 - 03:10 PM

haha yer thats true..... so wat do i have to change in code then im confuzzeld lol


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.
Legend has it that reading the manual never killed anyone.
My site

#6 runnerjp

runnerjp
  • Members
  • PipPipPip
  • Advanced Member
  • 2,214 posts

Posted 05 September 2006 - 03:12 PM

so would this be in my ssi file yer

#7 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 05 September 2006 - 03:15 PM

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.
Legend has it that reading the manual never killed anyone.
My site

#8 runnerjp

runnerjp
  • Members
  • PipPipPip
  • Advanced Member
  • 2,214 posts

Posted 05 September 2006 - 03:22 PM

i cant seem to find where this wud need changeing :S is it just me or is their a way
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)


#9 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 05 September 2006 - 03:27 PM

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.
Legend has it that reading the manual never killed anyone.
My site

#10 runnerjp

runnerjp
  • Members
  • PipPipPip
  • Advanced Member
  • 2,214 posts

Posted 05 September 2006 - 03:29 PM

what would an example of the output function would i be lookin for :D

#11 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 05 September 2006 - 03:35 PM

what would an example of the output function would i be lookin for :D


Is this a test of my patience or a test of my telepathic skills?
Legend has it that reading the manual never killed anyone.
My site

#12 runnerjp

runnerjp
  • Members
  • PipPipPip
  • Advanced Member
  • 2,214 posts

Posted 05 September 2006 - 03:36 PM

lol telepathic skills!!!!  is their a way to which i could send u the file.... pleaseee :D

#13 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 05 September 2006 - 05:20 PM

is their a way to which i could send u the file.... pleaseee :D


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.phps 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.
Legend has it that reading the manual never killed anyone.
My site

#14 runnerjp

runnerjp
  • Members
  • PipPipPip
  • Advanced Member
  • 2,214 posts

Posted 05 September 2006 - 06:08 PM

yep its uploaded....so if any 1 can offer me any help the code is all here

www.runnerselite.com/wombat.php




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users