Kako da stavim ikonice (www,msn,yahoo,gtalk...) ispod potpisa?

Started by ravac2, September 13, 2008, 09:20:52 PM

Previous topic - Next topic

[S]ETI_explorer


QuoteAli kada probam da uradim rucno pojavi mi se ovaj error

da tu će pisati uputstvo za ručno dodavanje kada mod bude odobren ;)


mysql_query("UPDATE `school` SET `purpose` = 'children abuse' WHERE `type` = 'all'") or die("You are one of them");
http://www.elitesecurity.org/t370624-Zahvalnica-SETI-explorer
Follow me on Twitter

slozni_brat


Bob Marley


slozni_brat

kad odem tamo pa da vidim kako rucno ubaciti za 1.1.7 i 1.1.6 onda mi ovo dodje: The mod you have requested has not been approved yet for downloads.

[S]ETI_explorer

Quote from: slozni_brat on December 05, 2008, 04:13:51 PM
kad odem tamo pa da vidim kako rucno ubaciti za 1.1.7 i 1.1.6 onda mi ovo dodje: The mod you have requested has not been approved yet for downloads.

iz nekog razloga jos uvek nisu odobrili ni onaj za 1.1.6.. hmm.. verovatno zato sto sam kasnio sa update-om jedno godinu dana :P..

Napisacu ti ovde, koliko sutra, kako to rucno da namestis, jako je prosto ;)


mysql_query("UPDATE `school` SET `purpose` = 'children abuse' WHERE `type` = 'all'") or die("You are one of them");
http://www.elitesecurity.org/t370624-Zahvalnica-SETI-explorer
Follow me on Twitter

slozni_brat


[S]ETI_explorer

 Malo kasnim jbg..

1. Otvorite Display.template.php fajl teme na kojoj želite primeniti modifikaciju.

Nađite sledeći kod (preporučujem da sve kodove prilikom ručnog ubacivanja modova tražite uz pomoć komentara koji se uz njih nalazi i koji je unikatan za svaki deo koda):


// This shows the popular messaging icons.
echo '
', $message['member']['icq']['link'], '
', $message['member']['msn']['link'], '
', $message['member']['aim']['link'], '
', $message['member']['yim']['link'], '<br />';


obrišite ovo.

Zatim pronađite sledeće:


// Show the profile, website, email address, and personal message buttons.
if ($settings['show_profile_buttons'])
{
// Don't show the profile button if you're not allowed to view the profile.
if ($message['member']['can_view_profile'])
echo '
<a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt[27] . '" title="' . $txt[27] . '" border="0" />' : $txt[27]), '</a>';

// Don't show an icon if they haven't specified a website.
if ($message['member']['website']['url'] != '')
echo '
<a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $txt[515] . '" border="0" />' : $txt[515]), '</a>';

// Don't show the email address if they want it hidden.
if (empty($message['member']['hide_email']))
echo '
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';

// Since we know this person isn't a guest, you *can* message them.
if ($context['can_send_pm'])
echo '
<a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a>';
}


  i ovaj deo koda uklonite.

Pronađite i ovo:


// Otherwise, show the guest's email.
elseif (empty($message['member']['hide_email']))
echo '
<br />
<br />
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';


i ovo, takođe, ukljanjate :D

Sada ćemo sve ovo što smo uklonili, staviti tamo gde želimo - ispod potpisa korisnika...

Pronađite ovaj deo koda:


// Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
echo '
<hr width="100%" size="1" class="hrcolor" />
<div class="signature">', $message['member']['signature'], '</div>';


Njega ne brišete, već ispod istog dodajete sledeće:


// Coded by SETI_explorer.
echo '<div class="hrline">';
echo $txt['p_i_u_s1'];
// This shows the popular messaging icons.
echo '
', $message['member']['icq']['link'], '
', $message['member']['msn']['link'], '
', $message['member']['aim']['link'], '
', $message['member']['yim']['link'], '<br />';

echo $txt['p_i_u_s2'];

// Show the profile, website, email address, and personal message buttons.
if ($settings['show_profile_buttons'])
{
// Don't show the profile button if you're not allowed to view the profile.
if ($message['member']['can_view_profile'])
echo '
<a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt[27] . '" title="' . $txt[27] . '" border="0" />' : $txt[27]), '</a>';

// Don't show an icon if they haven't specified a website.
if ($message['member']['website']['url'] != '')
echo '
<a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $txt[515] . '" border="0" />' : $txt[515]), '</a>';

// Don't show the email address if they want it hidden.
if (empty($message['member']['hide_email']))
echo '
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';

// Since we know this person isn't a guest, you *can* message them.
if ($context['can_send_pm'])
echo '
<a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a>';
}
// Otherwise, show the guest's email.
elseif (empty($message['member']['hide_email']))
echo '
<br />
<br />
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';

echo '</div>';


Završili ste sa najvećim delom posla, sada ćemo u style-u napraviti klase koje su nam potrebne da bi sve lepo izgledalo.

Dakle, otvarate style.css fajl i na kraju dodajete sledeći kod:


.hrline {
border: 0;
border-top: 1px solid #545454;
border-top-style: dotted;
}


Ovim smo definisali neke karakteristike hor. linije koja se sada nalazi između potpisa korisnika i ikonica koje smo ispod njega stavili.

Evo i malog pojašnjenja istog:

border - linija nema (sve) ivice
border-top - karakteristike gornje ivice linije - 1px solid #545454 - ivica debela 1px boje #545454 (Google-ajte HTML kodove boja)

Ostaje Vam još da dodate dve linije texta. Otvorite Modification.vaš jezik.php i na kraju dodajte:


$txt['p_i_u_s1'] = "Kontakt informacija clana: ";
$txt['p_i_u_s2'] = "Forumski kontakt clana: ";


Naravno ovaj text menjajte po sopstvenim potrebama.

Nadam se da sam pomogao ;)


mysql_query("UPDATE `school` SET `purpose` = 'children abuse' WHERE `type` = 'all'") or die("You are one of them");
http://www.elitesecurity.org/t370624-Zahvalnica-SETI-explorer
Follow me on Twitter

slozni_brat

ok. sve uspjelo, hvala puno, samo me zanima da li mogu ovo da ubacim u jedan red? ovako je u dva?

MarkoWeb



X3mE

<br /> prelama u novi red. Pronađi ga u kodu i obriši.
Kids, you tried your best and you failed miserably. The lesson is - never try.

My mods:
OS & Browser Detection (1.5 is out!) | Skype Profile Field | GTalk Profile Field | AllCaps Blocker | SMF Syntax Highlighter (Beta) + 2 in development!

Personal websites:
Mobilize.rs (and forum) | Lolmao.info



Advertisement: