Autor Tópico: Ranks Estrelas imagens e localização  (Lida 3022 vezes)

0 Membros e 2 Visitantes estão a ver este tópico.

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5072
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Ranks Estrelas imagens e localização
« em: 04 de Janeiro de 2009, 20:47 »
$sourcedir/ManageMembergroups.php

Pesquisar
Código: [Seleccione]
global $db_prefix, $txt, $scripturl, $context, $settings;
Alterar colocar
Código: [Seleccione]
global $db_prefix, $txt, $scripturl, $context, $settings, $boardurl;
Pesquisar
Código: [Seleccione]
'stars' => !empty($row['stars'][0]) && !empty($row['stars'][1]) ? str_repeat('<img src="' . $settings['images_url'] . '/' . $row['stars'][1] . '" alt="*" border="0" />', $row['stars'][0]) : '',
Alterar
Código: [Seleccione]
'stars' => !empty($row['stars'][0]) && !empty($row['stars'][1]) ? str_repeat('<img src="' . $boardurl . '/ranks/' . $row['stars'][1] . '" alt="*" border="0" />', $row['stars'][0]) : '',
$sourcedir/Load.php
Pesquisar
Código: [Seleccione]
static $dataLoaded = array();
Adicionar
Código: [Seleccione]
global $boardurl;
Pesquisar
Código: [Seleccione]
'group_stars' => str_repeat('<img src="' . str_replace('$language', $context['user']['language'], isset($profile['stars'][1]) ? $settings['images_url'] . '/' . $profile['stars'][1] : '') . '" alt="*" border="0" />', empty($profile['stars'][0]) || empty($profile['stars'][1]) ? 0 : $profile['stars'][0]),
Adicionar e alterar
Código: [Seleccione]
'group_stars' => str_repeat('<img src="' . str_replace('$language', $context['user']['language'], isset($profile['stars'][1]) ? $boardurl . '/ranks/' . $profile['stars'][1] : '') . '" alt="*" border="0" />', empty($profile['stars'][0]) || empty($profile['stars'][1]) ? 0 : $profile['stars'][0]),


Themes\default\ManageMembergroups.template.php
Pesquisar
Código: [Seleccione]
function template_edit_group()
{
global $context, $settings, $options, $scripturl, $txt;

Alterar
Código: [Seleccione]
function template_edit_group()
{
global $context, $settings, $options, $scripturl, $txt, $boardurl;


Pesquisar
Código: [Seleccione]
<div class="smalltext" style="font-weight: normal;">', $txt['membergroups_star_image_note'], '</div>
</th>
<td>
', $txt['membergroups_images_url'], '
<input type="text" name="star_image" id="star_image_input" value="', $context['group']['star_image'], '" onchange="if (this.value &amp;&amp; this.form.star_count.value == 0) this.form.star_count.value = 1; else if (!this.value) this.form.star_count.value = 0; document.getElementById(\'star_preview\').src = smf_images_url + \'/\' + (this.value &amp;&amp; this.form.star_count.value > 0 ? this.value.replace(/\$language/g, \'', $context['user']['language'], '\') : \'blank.gif\');" size="20" />
<img id="star_preview" src="', $settings['images_url'], '/', $context['group']['star_image'] == '' ? 'blank.gif' : $context['group']['star_image'], '" alt="*" />
</td>
</tr>


Trocar por
Código: [Seleccione]
<div class="smalltext" style="font-weight: normal;">', $txt['membergroups_star_image_note'], '</div>
</th>
<td>
{Board URL}/ranks/
<input type="text" name="star_image" id="star_image_input" value="', $context['group']['star_image'], '" onchange="if (this.value &amp;&amp; this.form.star_count.value == 0) this.form.star_count.value = 1; else if (!this.value) this.form.star_count.value = 0; document.getElementById(\'star_preview\').src = ' . $boardurl . ' + \'/ranks/\' + (this.value &amp;&amp; this.form.star_count.value > 0 ? this.value.replace(/\$language/g, \'', $context['user']['language'], '\') : \'blank.gif\');" size="20" />
<img id="star_preview" src="', $boardurl, '/ranks/', $context['group']['star_image'] == '' ? 'blank.gif' : $context['group']['star_image'], '" alt="*" />
</td>
</tr>