Ir para conteúdo
Fórum Script Brasil
  • 0

Template


SrMaster

Pergunta

Estou fazendo um template, já está tudo pronto, só uma coisa que tá difícil :angry:

Tipo, eu queria que ele ficasse assim:

dcnews21.png

E tá ficando assim:

taficandoassim.png

Código, a parte em negrito e vermelho é a dos slides.

<if test="$this->settings['DCSR_news_onoff']AND in_array( $this->memberData['member_group_id'], explode( ",", $this->settings['DCSR_news_grupos'] ) )">

<br>

<div class=category_block DangerNews_wrap'>

<h3 id='hook_DangerNews' class='maintitle'><a class='toggle right' href='#' title='{$this->lang->words['toggle_cat]}'>{$this->lang->words['toggle_cat']}</a>{$this->settings['DCSR_news_title']}</h3>

<table class=ipb_table'>

<tr class='header'>

<th class='header' width='4%'></th>

<th class='header' style='width: 48%'></th>

<th class='header' style='width: 48%' class='short'></th>

</tr>

<if test="mostrarmsg1:|:$this->settings['DCSR_news_estmsg1] == 1">

<tr class="row2">

<td class='altrow' align='center' width='4%'>

<if test="$this->settings['DCSR_news_pri1'] == 1">

<img src={style_images_url}/t_unread.png">

</if>

<if test="$this->settings['DCSR_news_pri1] == 2">

<img src="{style_images_url}/t_unread.png">

</if>

<if test="$this->settings['DCSR_news_pri1'] == 3">

<img src={style_images_url}/t_hot_unread.png">

</if>

<if test="$this->settings['DCSR_news_pri1] == 4">

<img src="{style_images_url}/t_hot_unread.png">

</if>

<if test="$this->settings['DCSR_news_pri1'] == 5">

<img src={style_images_url}/t_poll_unread.png">

</if>

<if test="$this->settings['DCSR_news_pri1] == 6">

<img src="{style_images_url}/t_poll_unread.png">

</if>

</td>

<td width='48%'>

<if test="$this->settings['DCSR_news_pri1'] == 1">

</if>

<if test=$this->settings['DCSR_news_pri1] == 2">

<span class='topic_prefix'>Fixado:</span>&nbsp;</if>

<if test="$this->settings['DCSR_news_pri1'] == 4">

<span class=topic_prefix'>Fixado:</span>&nbsp;</if>

<if test="$this->settings['DCSR_news_pri1] == 6">

<span class='topic_prefix'>Enquete:</span>&nbsp;</if>

<b>{$this->settings['DCSR_news_data1']}</b> - <a href={$this->settings['DCSR_news_link1]}" rel="nofollow"/>

{IPSText::truncate($this->settings['DCSR_news_title1'],$this->settings['DCSR_news_limite'])}</a>&nbsp;

<!-- <a href=java script">

<img src="http://localhost/upgrade/public/style_images/clean/topicpreview.png"></a> -->

<if test="des1:|:$this->settings['DCSR_news_mostrardesc1] == 1">

<br></b><span class='desc'>{$this->settings['DCSR_news_desc1']}</span>

</if>

</td>

</tr>

</if>

<if test=mostrarmsg2:|:$this->settings['DCSR_news_estmsg2] == 1">

<tr class='row1'>

<td class='altrow' align='center' width='4%'>

<if test="$this->settings['DCSR_news_pri2'] == 1">

<img src={style_images_url}/t_unread.png">

</if>

<if test="$this->settings['DCSR_news_pri2] == 2">

<img src="{style_images_url}/t_unread.png">

</if>

<if test="$this->settings['DCSR_news_pri2'] == 3">

<img src={style_images_url}/t_hot_unread.png">

</if>

<if test="$this->settings['DCSR_news_pri2] == 4">

<img src="{style_images_url}/t_hot_unread.png">

</if>

<if test="$this->settings['DCSR_news_pri2'] == 5">

<img src={style_images_url}/t_poll_unread.png">

</if>

<if test="$this->settings['DCSR_news_pri2] == 6">

<img src="{style_images_url}/t_poll_unread.png">

</if>

</th>

<td width='48%'>

<if test="$this->settings['DCSR_news_pri2'] == 1">

</if>

<if test=$this->settings['DCSR_news_pri2] == 2">

<span class='topic_prefix'>Fixado:</span>&nbsp;</if>

<if test="$this->settings['DCSR_news_pri2'] == 4">

<span class=topic_prefix'>Fixado:</span>&nbsp;</if>

<if test="$this->settings['DCSR_news_pri2] == 6">

<span class='topic_prefix'>Enquete:</span>&nbsp;</if>

<b>{$this->settings['DCSR_news_data2']}</b> - <a href={$this->settings['DCSR_news_link2]}" rel="nofollow"/>

{IPSText::truncate($this->settings['DCSR_news_title2'],$this->settings['DCSR_news_limite'])}</a>

<if test=des2:|:$this->settings['DCSR_news_mostrardesc2] == 1">

<br></b><span class='desc'>{$this->settings['DCSR_news_desc2']}</span>

</if>

</td>

</tr>

</if>

<if test=mostrarmsg3:|:$this->settings['DCSR_news_estmsg3] == 1">

<tr class='row2'>

<td class='altrow' align='center' width='4%'>

<center>

<if test="$this->settings['DCSR_news_pri3'] == 1">

<img src={style_images_url}/t_unread.png">

</if>

<if test="$this->settings['DCSR_news_pri3] == 2">

<img src="{style_images_url}/t_unread.png">

</if>

<if test="$this->settings['DCSR_news_pri3'] == 3">

<img src={style_images_url}/t_hot_unread.png">

</if>

<if test="$this->settings['DCSR_news_pri3] == 4">

<img src="{style_images_url}/t_hot_unread.png">

</if>

<if test="$this->settings['DCSR_news_pri3'] == 5">

<img src={style_images_url}/t_poll_unread.png">

</if>

<if test="$this->settings['DCSR_news_pri3] == 6">

<img src="{style_images_url}/t_poll_unread.png">

</if>

</center>

</th>

<td width='48%'>

<if test="$this->settings['DCSR_news_pri3'] == 1">

</if>

<if test=$this->settings['DCSR_news_pri3] == 2">

<span class='topic_prefix'>Fixado:</span>&nbsp;</if>

<if test="$this->settings['DCSR_news_pri3'] == 4">

<span class=topic_prefix'>Fixado:</span>&nbsp;</if>

<if test="$this->settings['DCSR_news_pri3] == 6">

<span class='topic_prefix'>Enquete:</span>&nbsp;</if>

<b>{$this->settings['DCSR_news_data3']}</b> - <a href={$this->settings['DCSR_news_link3]}" rel="nofollow"/>

{IPSText::truncate($this->settings['DCSR_news_title3'],$this->settings['DCSR_news_limite'])}</a>

<if test=des3:|:$this->settings['DCSR_news_mostrardesc3] == 1">

<br></b><span class='desc'>{$this->settings['DCSR_news_desc3']}</span>

</if>

</td>

</tr>

</if>

<if test=mostrarmsg4:|:$this->settings['DCSR_news_estmsg4] == 1">

<tr class='row1'>

<td class='altrow' align='center' width='4%'>

<center>

<if test="$this->settings['DCSR_news_pri4'] == 1">

<img src={style_images_url}/t_unread.png">

</if>

<if test="$this->settings['DCSR_news_pri4] == 2">

<img src="{style_images_url}/t_unread.png">

</if>

<if test="$this->settings['DCSR_news_pri4'] == 3">

<img src={style_images_url}/t_hot_unread.png">

</if>

<if test="$this->settings['DCSR_news_pri4] == 4">

<img src="{style_images_url}/t_hot_unread.png">

</if>

<if test="$this->settings['DCSR_news_pri4'] == 5">

<img src={style_images_url}/t_poll_unread.png">

</if>

<if test="$this->settings['DCSR_news_pri4] == 6">

<img src="{style_images_url}/t_poll_unread.png">

</if>

</center>

</th>

<td width='48%'>

<if test="$this->settings['DCSR_news_pri4'] == 1">

</if>

<if test=$this->settings['DCSR_news_pri4] == 2">

<span class='topic_prefix'>Fixado:</span>&nbsp;</if>

<if test="$this->settings['DCSR_news_pri4'] == 4">

<span class=topic_prefix'>Fixado:</span>&nbsp;</if>

<if test="$this->settings['DCSR_news_pri4] == 6">

<span class='topic_prefix'>Enquete:</span>&nbsp;</if>

<b>{$this->settings['DCSR_news_data4']}</b> - <a href={$this->settings['DCSR_news_link4]}" rel="nofollow"/>

{IPSText::truncate($this->settings['DCSR_news_title4'],$this->settings['DCSR_news_limite'])}</a>

<if test=des4:|:$this->settings['DCSR_news_mostrardesc4] == 1">

<br></b><span class='desc'>{$this->settings['DCSR_news_desc4']}</span>

</if>

</td>

</tr>

</if>

<if test=mostrarmsg5:|:$this->settings['DCSR_news_estmsg5] == 1">

<tr class='row2'>

<td class='altrow' align='center' width='4%'>

<center>

<if test="$this->settings['DCSR_news_pri5'] == 1">

<img src={style_images_url}/t_unread.png">

</if>

<if test="$this->settings['DCSR_news_pri5] == 2">

<img src="{style_images_url}/t_unread.png">

</if>

<if test="$this->settings['DCSR_news_pri5'] == 3">

<img src={style_images_url}/t_hot_unread.png">

</if>

<if test="$this->settings['DCSR_news_pri5] == 4">

<img src="{style_images_url}/t_hot_unread.png">

</if>

<if test="$this->settings['DCSR_news_pri5'] == 5">

<img src={style_images_url}/t_poll_unread.png">

</if>

<if test="$this->settings['DCSR_news_pri5] == 6">

<img src="{style_images_url}/t_poll_unread.png">

</if>

</center>

</th>

<td width='48%'>

<if test="$this->settings['DCSR_news_pri5'] == 1">

</if>

<if test=$this->settings['DCSR_news_pri5] == 2">

<span class='topic_prefix'>Fixado:</span>&nbsp;</if>

<if test="$this->settings['DCSR_news_pri5'] == 4">

<span class=topic_prefix'>Fixado:</span>&nbsp;</if>

<if test="$this->settings['DCSR_news_pri5] == 6">

<span class='topic_prefix'>Enquete:</span>&nbsp;</if></if><b>{$this->settings['DCSR_news_data5']}</b> - <a href={$this->settings['DCSR_news_link5]}" rel="nofollow"/>

{IPSText::truncate($this->settings['DCSR_news_title5'],$this->settings['DCSR_news_limite'])}</a>

<if test=des5:|:$this->settings['DCSR_news_mostrardesc5] == 1">

<br></b><span class='desc'>{$this->settings['DCSR_news_desc5']}</span>

</if>

</td>

</tr>

</if>

<tr class='row1'>

<td class='altrow short' align='center' width='48%'>

<script type="text/javascript" src="{$this->settings['public_dir]}js/ips.DangerNewsQJS.js"></script>

<script type="text/javascript" src="{$this->settings['public_dir']}js/ips.DangerNewsJS.js"></script>

<script type=text/javascript">

var mygallery=new fadeSlideShow({

wrapperid: "slideshow_exibir", //ID of blank DIV on page to house Slideshow

dimensions: [{$this->settings['DCSR_news_width]}, {$this->settings['DCSR_news_height']}], //dimensões

imagearray: [

<if test=mostrarimg1:|:$this->settings['DCSR_news_estimg1] == 1">

["{$this->settings['DCSR_news_image1']}", "{$this->settings['DCSR_news_urlimage1']}", "_new", "{$this->settings['DCSR_news_imgdesc1']}"],</if>

<if test=mostrarimg2:|:$this->settings['DCSR_news_estimg2] == 1">

["{$this->settings['DCSR_news_image2']}", "{$this->settings['DCSR_news_urlimage2']}", "_new", "{$this->settings['DCSR_news_imgdesc2']}"],</if>

<if test=mostrarimg3:|:$this->settings['DCSR_news_estimg3] == 1">

["{$this->settings['DCSR_news_image3']}", "{$this->settings['DCSR_news_urlimage3']}", "_new", "{$this->settings['DCSR_news_imgdesc3']}"],</if>

<if test=mostrarimg4:|:$this->settings['DCSR_news_estimg4] == 1">

["{$this->settings['DCSR_news_image4']}", "{$this->settings['DCSR_news_urlimage4']}", "_new", "{$this->settings['DCSR_news_imgdesc4']}"],</if>

<if test=mostrarimg5:|:$this->settings['DCSR_news_estimg5] == 1">

["{$this->settings['DCSR_news_image5']}", "{$this->settings['DCSR_news_urlimage5']}", "_new", "{$this->settings['DCSR_news_imgdesc5']}"],</if>

],

displaymode: {type:'auto', pause:{$this->settings['DCSR_news_descan']}, cycles:0, wraparound:false},

persist: false, //remember last viewed slide and recall within same session?

fadeduration: {$this->settings['DCSR_news_time']}, //transition duration (milliseconds)

descreveal: "peekaboo",

togglerid: ""

})

</script>

<div id="slideshow_exibir"></div>

</td>

</tr>

<tr><td colspan='2' class='moderation_bar' style='padding: 3px 5px 0px 0px; font-size:10px;'></td></tr>

</table>

</div>

<br>

</if>

Editado por SrMaster
Link para o comentário
Compartilhar em outros sites

2 respostass a esta questão

Posts Recomendados

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,1k
    • Posts
      651,8k
×
×
  • Criar Novo...