Jump to content

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


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)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.