Jump to content
php.lv forumi

IPB skripta mainīgie!?


DieseL

Recommended Posts

Sveiki visiem!

 

Tātad, es gribu izveidot mainīgo funkciju IPB 2.3.6 skriptam, gribu lai beigās rādās ikona ar dažādām bildēm, piemērām kad topiks ir slēgts tad lai rāda vienu bildi, bet kad topiks atvērts tad citu bildi!

 

Izmēģinājos dažādi, bet pie rezultātiem nēsmu ticis, varbūt spēsiet palīdzēt!

 

Šī ir tā skripta daļa kur jau izvada visu un apakša veidoju tos mainīgos, nezinu vai uz īsto pusi vispār...

echo '
<div id="ramis">
<a style="text-decoration:none; color:black;" href="'.$forum.'/index.php?showtopic='.$id.'&view=getnewpost" >
<div style=" border-bottom:1px solid #000000; height: 25px; float:left; width: 25px; border: 1px solid rgb(170, 170, 170); padding: 1px;">
<img src="'.$userAvatar.'" width="25px;" height="25px;"></div>
<div style=" border-bottom:1px solid #000000; height: 25px; float:right; width: 25px; border: 1px solid rgb(170, 170, 170); padding: 1px;">
'.$state.'</div>
<span style="text-decoration:none; font-size:11px;font-weight:bold; text-align:left; margin-left:5px; color:#b20000;"> 
<img src="images/arrow.png" /> '.$title.'</span><br>
<span style="margin-left:5px;">
<img src="images/arrow.png" />Autors: <span style="color:gray">'.$row[starter_name].'</span></span>
<span style="margin-left:3px;">
Atbildēja: <span style="color:gray">'.$row[last_poster_name].'</span></span></a>
</div>
';
}
if (mysql_query($state) == "open")
{
echo '
<img src="images/open.png" />
';
}
if (mysql_query($state) == "closed")
{
echo '<img src="images/open.png" /> ';
}

?>

 

 

 

Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...