Recent Topics

1 Jun 16, 2006 10:25    

Hello Crowd,

in _main.php the description for a blog is called with

<?php 
if( $desc = $Blog->disp( 'longdesc', 'htmlbody' ) )
  print '<p>'.$desc.'</p>'; 
  print '<br /><br />'; 
?>

, right?

I would like to put a little "info"-icon, say images/info.gif, before that area - but only if a description does exist for the blog; so I would have to include in the 'if'. I toyed around a litte trying to set it with a print line can't seem to get it done by myself. Can anybody tell me how this could be this accomplished?

Thank yous, and best regards,
'lex

2 Jun 16, 2006 10:50

I'm way too likkered up to have an answer for ya, but I do got a question that springs to my sorry sodden mind. In what version and folder did you find an _main.php with that code in it?

(Now that I gave you nothing if ¥åßßå doesn't beat me to it I'll try to have a real answer for you in the nextday.)

3 Jun 16, 2006 11:07

Hey, Ed :)
sorry, to have forgotten that. The bit originally comes from skin "plain" and I'm having it in the "poolish" skin I'm trying to concoct for 0.9.2.

Don't forget that hair of the dog in the morning! :D

L8rs, 'lex

4 Jun 16, 2006 12:24

if ( $Blog->longdesc )
{ 
  $Blog->disp( 'longdesc', 'htmlbody' );
} else {
  // no long desc
}

;)

¥

5 Jun 16, 2006 12:37

Hey Yabba; thanks .. but .. *scratching head* ummm ....
where do I put my icon call?!

more regards, 'lex

6 Jun 16, 2006 12:41

if ( $Blog->longdesc )
{
  // change this line to your real icon call
  echo '<img src="images/info.gif" alt="an icon" />';

  $Blog->disp( 'longdesc', 'htmlbody' );
} else {
  // no long desc
}

¥

7 Jun 16, 2006 13:36

perfect! /me needed a minute to figure out that your statement needed inclusion by php brackets, heh, but now it works like a charm! Thank you! :) Even more regards, 'lex


Form is loading...