Jump to content

[SOLVED] Help adding font effects to a very small php bit


Padgoi

Recommended Posts

So I have this small PHP bit and I want a red and bold font on the line that says "This post has been deleted by:" but not sure how to get it in there.  Here's the bit:

 

		$post = 'This post has been deleted by:'. $usr;
	$ta = array (
				'post'        => $post,
						);

	$db_string = $this->ipsclass->DB->compile_db_update_string( $ta );

	$this->ipsclass->DB->simple_exec_query( array( 'update' => 'posts', 'set' => $db_string, 'where' => 'pid'.$pid ) );

 

Any help would be appreciated.

at a guess

change

$post = 'This post has been deleted by:'. $usr;

to

$post = '<font color="#FF0000"><strong>This post has been deleted by: $usr</strong></font>';

 

your need to test it in your IPB (also this should be in the third party section, as this is for IPB)

Archived

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

×
×
  • Create New...

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.