AJUDA com o SOBI2

  • Specker_
  • Avatar de Specker_ Autor do Tópico
  • Offline
  • JCB! Professional
  • JCB! Professional
Mais
15 anos 2 meses atrás #37580 por Specker_
Specker_ created the topic: AJUDA com o SOBI2
Galera é o seguinte eu editei um template assim:
<?php
/**
/*please do not remove this line */
defined( '_SOBI2_' ) || ( trigger_error("Restricted access", E_USER_ERROR) && exit() );
?>

<?php HTML_SOBI::renewal( $config,$mySobi ); ?> 
<table> 
<td><h1><?php echo $mySobi->title; ?></h1>
  <table border="0" align="right" width="300px">       
    <tbody>
      <tr>
      <td><?php echo $img; ?></td> 
      </tr><div class="gk_legend5">
      <table border="0" style="width:737px">
        <u><b><h4>Informações:</h4></b></u>
          <tr>
            <td width="318"><span class="gk_highlight-2"><b>Titulo:</b></span> <?php echo $fieldsObjects&#91;'field_titulo'&#93;->data; ?>
            <td width="409"><span class="gk_highlight-2"><b>Release:</b></span> <?php echo $fieldsObjects&#91;'field_release'&#93;->data; ?></td>           
</tr>
          <tr>
            <td><span class="gk_highlight-2"><b>CD's:</b></span> <?php echo $fieldsObjects&#91;'field_cds'&#93;->data; ?>
            <td><span class="gk_highlight-2"><b>Tamanho:</b></span> <?php echo $fieldsObjects&#91;'field_tamanho'&#93;->data; ?></td>
          </tr>
            </table></div>
              <div class="gk_legend5">
           <table border="0" style="width:737px">
             <u><b><h4>Seriado:</h4></b></u>
          <tr>
            <td width="318"><span class="gk_highlight-2"><b>Gênero:</b></span> <?php echo $fieldsObjects&#91;'field_genero'&#93;->data; ?>        
            <td width="409"><span class="gk_highlight-2"><b>Emisora:</b></span> <?php echo $fieldsObjects&#91;'field_emissora'&#93;->data; ?></td>
          </tr>
              
        <tr>
          <td><span class="gk_highlight-2"><b>Último Eps:</b></span><?php echo $fieldsObjects&#91;'field_ulteps'&#93;->data; ?>
          <td><span class="gk_highlight-2"><b>Proxímo Eps.:</b></span> <?php echo $fieldsObjects&#91;'field_proeps'&#93;->data; ?></td>
          </tr>
          </table></div>
        <div class="gk_legend5">
          <tr>
            <td><b><h4>Sinopse:</h4></b> <br />
             <div class="gk_code2"> <?php echo $fieldsObjects&#91;'field_sinopse'&#93;->data; ?> </td>
        </tr>
              </table></div></div>
              <div class="gk_legend5">
    <h4>Equipe</h4>
    <ul class="gk_bullet4">
        <br />
        <li>Tradução:<?php echo $fieldsObjects&#91;'field_traducao'&#93;->data; ?></li>
    </ul>
    <ul class="gk_bullet4">
        <li>Revisão:<?php echo $fieldsObjects&#91;'field_revisao'&#93;->data; ?></li>
    </ul>
    <ul class="gk_bullet4">
      <li>Sincronia:<?php echo $fieldsObjects&#91;'field_sinc'&#93;->data; ?></li>
    </ul>
    <ul class="gk_bullet4">
      <li>Resincronia:<?php echo $fieldsObjects&#91;'field_resinc'&#93;->data; ?></li>
    </ul>
 
    <p> </p>
</div>
                    <div class="gk_legend5">
          <tr>
            <td><b><h4>Download:</h4></b><br />
     <td><span class="gk_highlight-2"><b>Link:</b></span><?php echo $fieldsObjects&#91;'field_download'&#93;->data; ?> </td>
        </tr></div>
<table class="sobi2DetailsFooter" width="52%">
  <tr>    <td width="51%"><?php HTML_SOBI::addedDate($config,$mySobi); ?>
      &nbsp;&nbsp;
      <?php HTML_SOBI::showHits($config,$mySobi);?>
    </td>
    <td width="49%"><?php HTML_SOBI::editButtons($config,$mySobi); ?></td>
  </tr>
</table>
?


agora eu vi esse arquivo aki:
<?php
/**
* @version $Id: sobi2.form.tmpl.php 5379 2010-02-26 17:30:01Z Sigrid Suski $
* @package: Sigsiu Online Business Index 2
* ===================================================
* @author
* Name: Sigrid & Radek Suski, Sigsiu.NET GmbH
* Email: sobi&#91;at&#93;sigsiu.net
* Url: http://www.sigsiu.net
* ===================================================
* @copyright Copyright (C) 2006 - 2010 Sigsiu.NET GmbH (http://www.sigsiu.net). All rights reserved.
* @license see http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU/GPL.
* You can use, redistribute this file and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation.
*/

/*please do not remove this line */
defined( '_SOBI2_' ) || ( trigger_error("Restricted access", E_USER_ERROR) && exit() );

/* ------------------------------------------------------------------------------
 * This is an example template for the Entry Form
 * ------------------------------------------------------------------------------
 */
?>
<?php
/* ------------------------------------------------------------------------------
 * Here are several standard free fields
 * ------------------------------------------------------------------------------
 */
?>
<?php echo $screenTitle; ?>
<?php echo $requiredFieldsInfo; ?>
<?php echo $fields&#91;'EntryName'&#93;&#91;'label'&#93;; ?><?php echo $fields&#91;'EntryName'&#93;&#91;'field'&#93;; ?><br/>
<?php echo $fields&#91;'field_release'&#93;&#91;'label'&#93;; ?><?php echo $fields&#91;'field_release'&#93;&#91;'field'&#93;; ?><br/>
<?php echo $fields&#91;'field_cds'&#93;&#91;'label'&#93;; ?><?php echo $fields&#91;'field_cds'&#93;&#91;'field'&#93;; ?><br/>
<?php echo $fields&#91;'field_tamanho'&#93;&#91;'label'&#93;; ?> <?php echo $fields&#91;'field_tamanho'&#93;&#91;'field'&#93;; ?><br/>
<?php echo $fields&#91;'field_county'&#93;&#91;'label'&#93;; ?> <?php echo $fields&#91;'field_county'&#93;&#91;'field'&#93;; ?><br/>
<?php echo $fields&#91;'field_federal_state'&#93;&#91;'label'&#93;; ?> <?php echo $fields&#91;'field_federal_state'&#93;&#91;'field'&#93;; ?><br/>
<?php echo $fields&#91;'field_country'&#93;&#91;'label'&#93;; ?> <?php echo $fields&#91;'field_country'&#93;&#91;'field'&#93;; ?><br/>
<?php echo $fields&#91;'field_email'&#93;&#91;'label'&#93;; ?> <?php echo $fields&#91;'field_email'&#93;&#91;'field'&#93;; ?><br/>

<?php
/* ------------------------------------------------------------------------------
 * But if these are not free fields
 * @example these informations are in the following variables:
 * $fields&#91;'field_fieldname'&#93;&#91;'payment'&#93;&#91;'box'&#93; - is the checkbox to activate the target field
 * $fields&#91;'field_fieldname'&#93;&#91;'payment'&#93;&#91;'box_label'&#93; - is the label of this checkbox. A text like "add website"
 * $fields&#91;'field_fieldname'&#93;&#91;'payment'&#93;&#91;'explanation'&#93; - explanation text. Something like "This option is not for free. It costs: 20$"
 * ------------------------------------------------------------------------------
 */
?>
<?php echo $fields&#91;'field_website'&#93;&#91;'payment'&#93;&#91;'box'&#93;; ?>
<?php echo $fields&#91;'field_website'&#93;&#91;'payment'&#93;&#91;'box_label'&#93;; ?><br/>
<?php echo $fields&#91;'field_website'&#93;&#91;'payment'&#93;&#91;'explanation'&#93;; ?>
<?php echo $fields&#91;'field_website'&#93;&#91;'label'&#93;; ?> <?php echo $fields&#91;'field_website'&#93;&#91;'field'&#93;; ?><br/>

<?php
/** ------------------------------------------------------------------------------
 * Of course You can add the additional payment infos to all fields.
 * If the field is for free, nothing will be shown.
 * ------------------------------------------------------------------------------
 */
?>
<?php echo $fields&#91;'field_contact_person'&#93;&#91;'payment'&#93;&#91;'box'&#93;; ?>
<?php echo $fields&#91;'field_contact_person'&#93;&#91;'payment'&#93;&#91;'box_label'&#93;; ?><br/>
<?php echo $fields&#91;'field_contact_person'&#93;&#91;'payment'&#93;&#91;'explanation'&#93;; ?>
<?php echo $fields&#91;'field_contact_person'&#93;&#91;'label'&#93;; ?> <?php echo $fields&#91;'field_contact_person'&#93;&#91;'field'&#93;; ?><br/>

<?php echo $fields&#91;'field_phone'&#93;&#91;'payment'&#93;&#91;'box'&#93;; ?>
<?php echo $fields&#91;'field_phone'&#93;&#91;'payment'&#93;&#91;'box_label'&#93;; ?><br/>
<?php echo $fields&#91;'field_phone'&#93;&#91;'payment'&#93;&#91;'explanation'&#93;; ?>
<?php echo $fields&#91;'field_phone'&#93;&#91;'label'&#93;; ?> <?php echo $fields&#91;'field_phone'&#93;&#91;'field'&#93;; ?><br/>

<?php echo $fields&#91;'field_fax'&#93;&#91;'payment'&#93;&#91;'box'&#93;; ?>
<?php echo $fields&#91;'field_fax'&#93;&#91;'payment'&#93;&#91;'box_label'&#93;; ?><br/>
<?php echo $fields&#91;'field_fax'&#93;&#91;'payment'&#93;&#91;'explanation'&#93;; ?>
<?php echo $fields&#91;'field_fax'&#93;&#91;'label'&#93;; ?> <?php echo $fields&#91;'field_fax'&#93;&#91;'field'&#93;; ?><br/>

<?php echo $fields&#91;'field_hotline'&#93;&#91;'payment'&#93;&#91;'box'&#93;; ?>
<?php echo $fields&#91;'field_hotline'&#93;&#91;'payment'&#93;&#91;'box_label'&#93;; ?><br/>
<?php echo $fields&#91;'field_hotline'&#93;&#91;'payment'&#93;&#91;'explanation'&#93;; ?>
<?php echo $fields&#91;'field_hotline'&#93;&#91;'label'&#93;; ?> <?php echo $fields&#91;'field_hotline'&#93;&#91;'field'&#93;; ?><br/>

<?php echo $fields&#91;'field_description'&#93;&#91;'payment'&#93;&#91;'box'&#93;; ?>
<?php echo $fields&#91;'field_description'&#93;&#91;'payment'&#93;&#91;'box_label'&#93;; ?><br/>
<?php echo $fields&#91;'field_description'&#93;&#91;'payment'&#93;&#91;'explanation'&#93;; ?>
<?php echo $fields&#91;'field_description'&#93;&#91;'label'&#93;; ?> <?php echo $fields&#91;'field_description'&#93;&#91;'field'&#93;; ?><br/>

<?php
/* ------------------------------------------------------------------------------
 * Now several special SOBI2 fields
 * ------------------------------------------------------------------------------
 */
?>
<?php echo $fields&#91;'Metakeys'&#93;&#91;'label'&#93;; ?><?php echo $fields&#91;'Metakeys'&#93;&#91;'field'&#93;; ?><br/>
<?php echo $fields&#91;'MetaDesc'&#93;&#91;'label'&#93;; ?><?php echo $fields&#91;'MetaDesc'&#93;&#91;'field'&#93;; ?><br/>

<?php
/* ------------------------------------------------------------------------------
 * The Image/Icon fields and the background chooser are splitted in two fields. One is the input field, the other is an already existing image
 * ------------------------------------------------------------------------------
 */
?>
<?php echo $fields&#91;'ExistingImg'&#93;&#91;'label'&#93;; ?><?php echo $fields&#91;'ExistingImg'&#93;&#91;'field'&#93;; ?><br/>
<?php echo $fields&#91;'ImgField'&#93;&#91;'payment'&#93;&#91;'box'&#93;; ?>
<?php echo $fields&#91;'ImgField'&#93;&#91;'payment'&#93;&#91;'box_label'&#93;; ?><br/>
<?php echo $fields&#91;'ImgField'&#93;&#91;'payment'&#93;&#91;'explanation'&#93;; ?>
<?php echo $fields&#91;'ImgField'&#93;&#91;'label'&#93;; ?> <?php echo $fields&#91;'ImgField'&#93;&#91;'field'&#93;; ?><br/>

<?php echo $fields&#91;'ExistingIco'&#93;&#91;'label'&#93;; ?><?php echo $fields&#91;'ExistingIco'&#93;&#91;'field'&#93;; ?><br/>
<?php echo $fields&#91;'IcoField'&#93;&#91;'payment'&#93;&#91;'box'&#93;; ?>
<?php echo $fields&#91;'IcoField'&#93;&#91;'payment'&#93;&#91;'box_label'&#93;; ?><br/>
<?php echo $fields&#91;'IcoField'&#93;&#91;'payment'&#93;&#91;'explanation'&#93;; ?>
<?php echo $fields&#91;'IcoField'&#93;&#91;'label'&#93;; ?> <?php echo $fields&#91;'IcoField'&#93;&#91;'field'&#93;; ?><br/>

<?php echo $fields&#91;'BackgroundChooser'&#93;&#91;'label'&#93;; ?><?php echo $fields&#91;'BackgroundChooser'&#93;&#91;'field'&#93;; ?><br/>
<?php echo $fields&#91;'BackgroundPreview'&#93;&#91;'label'&#93;; ?><?php echo $fields&#91;'BackgroundPreview'&#93;&#91;'field'&#93;; ?><br/>

<?php
/* ------------------------------------------------------------------------------
 * Let's show the category chooser now
 * ------------------------------------------------------------------------------
 */
?>
<?php echo $catChooser; ?>

<?php
/* ------------------------------------------------------------------------------
 * Safety code is splitted in two fields too
 * ------------------------------------------------------------------------------
 */
?>
<?php echo $fields&#91;'SafetyCodeImage'&#93;&#91;'label'&#93;; ?><?php echo $fields&#91;'SafetyCodeImage'&#93;&#91;'field'&#93;; ?><br/>
<?php echo $fields&#91;'SafetyCodeField'&#93;&#91;'label'&#93;; ?><?php echo $fields&#91;'SafetyCodeField'&#93;&#91;'field'&#93;; ?><br/>

<?php
/* ------------------------------------------------------------------------------
 * At least the entry rules confirmation (has to be in a div container with id="accept_rules_row")
 * ------------------------------------------------------------------------------
 */
?>
<div id="accept_rules_row">
<?php echo $fields&#91;'EntryRules'&#93;&#91;'label'&#93;; ?><?php echo $fields&#91;'EntryRules'&#93;&#91;'field'&#93;; ?>
</div>

<?php
/* ------------------------------------------------------------------------------
 * And of course the buttons
 * ------------------------------------------------------------------------------
 */
?>
<?php echo $cancelButton; ?>
<?php echo $sendButton; ?><br/>
?


o que eu tenho que editar pra aparecer os nomes nos campos?
http://livesportsbr.com/portal/componen ... &sobi2Id=3

Please Entrar ou Registrar to join the conversation.


  • Specker_
  • Avatar de Specker_ Autor do Tópico
  • Offline
  • JCB! Professional
  • JCB! Professional
Mais
15 anos 2 meses atrás #37582 por Specker_
Specker_ replied the topic: Re: AJUDA com o SOBI2
ta dexa ja desinstalei, deu um erro...
alguem sabe um modulo, plugin ou componente que a gente cria Campos e ele gera um html desses campos para postar em articles?

Please Entrar ou Registrar to join the conversation.