Jump to content
InvisionCommunity.de - Der Deutsche Invision Community Support
Sign in to follow this  
redcobra

Mehrere Emoticons Spalten im EmoPopUp

Recommended Posts

Hi,

ich habe zwar schon durch die Anleitung von Ibplanet.com erreicht, dass 2 Spalten angezeigt werden, aber ich hätte gern 4 Spalten.

Hier ein Auszug aus der Anleitung. Was muss ich abändern, damit 4 Spalten angezeigt werden?



Open: sources/misc/legends.php

////////////
///////FIND:
////////////

$this->output .= $this->html->page_header( $ibforums->lang['emo_title'], $ibforums->lang['emo_type'], $ibforums->lang['emo_img'] );

/////////////////////////////
///////and REPLACE that with:
/////////////////////////////

$this->output .= $this->html->emoticons_header( $ibforums->lang['emo_title'], $ibforums->lang['emo_type'], $ibforums->lang['emo_img'] );

////////////
///////FIND:
////////////

$this->output .= $this->html->emoticons_row( stripslashes($r['typed']), stripslashes($r['image']), $in_delim, $out_delim );

/////////////////////////////
///////and REPLACE that with:
/////////////////////////////

$emo_count++;
if($emo_count % 2)
{
$this->output .= "<tr>" . $this->html->emoticons_row( stripslashes($r['typed']), stripslashes($r['image']), $in_delim, $out_delim );
}else
{
$this->output .= $this->html->emoticons_row( stripslashes($r['typed']), stripslashes($r['image']), $in_delim, $out_delim ) . "</tr>";
}

////////////////////////////////
///////SAVE and CLOSE that file.
////////////////////////////////

Open: Skin/s#/skin_legends.php

////////////
///////FIND:
////////////

function emoticons_row($code, $image, $in="'", $out="'") {
global $ibforums;
return <<<EOF
<tr>
<td align='center' class='row1' valign='middle'><a href={$out}java script:add_smilie({$in}$code{$in}){$out}>$code</a></td>
<td align='center' class='row2' valign='middle'><a href={$out}java script:add_smilie({$in}$code{$in}){$out}><img src='{$ibforums->vars['EMOTICONS_URL']}/$image' border='0' valign='absmiddle' alt='$image'></a></td>
</tr>
EOF;
}

/////////////////////////////
///////and REPLACE that with:
/////////////////////////////

function emoticons_header( $title, $row1, $row2 ) {
global $ibforums;
return <<<EOF
<div class='tableborder'>
<div class='maintitle'>$title</div>
<table class='tablebasic' cellspacing='1' cellpadding='4'>
<tr>
<td width='25%' align='center' class='pformstrip' valign='middle'>$row1</td>
<td width='25%' align='center' class='pformstrip' valign='middle'>$row2</td>
<td width='25%' align='center' class='pformstrip' valign='middle'>$row1</td>
<td width='25%' align='center' class='pformstrip' valign='middle'>$row2</td>
</tr>
EOF;
}

function emoticons_row($code, $image, $in="'", $out="'") {
global $ibforums;
return <<<EOF
<td align='center' class='row1' valign='middle'><a href={$out}java script:add_smilie({$in}$code{$in}){$out}>$code</a></td>
<td align='center' class='row2' valign='middle'><a href={$out}java script:add_smilie({$in}$code{$in}){$out}><img src='{$ibforums->vars['EMOTICONS_URL']}/$image' border='0' valign='absmiddle' alt='$image'></a></td>
EOF;
}

Vielen Dank mal wieder ;)

Grüße

redcobra

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×