• Welcome to Simple Machines Community Forum. Please login or sign up.
November 29, 2021, 07:48:32 AM

News:

Want to get involved in developing SMF, then why not lend a hand on our github!


Google ads search umesto default

Started by srbija-tip.com, October 22, 2008, 04:42:30 PM

Previous topic - Next topic

srbija-tip.com

Kako da zamenim tj gde se nalazi default od teme?

X3mE

Gde se šta nalazi???

Ukoliko tražiš folder default teme, to je Themes/default.

Ukoliko želiš da dodaš Google Custom Search (AdSense for Search), otvoriš index.template.php svoje teme i dodaš kôd koji dobiješ.
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



srbija-tip.com

Nisi me razumeo.

Postoji search na forumu u gornjem desnom uglu. Njega ocu da sklonim i da postavim google-ov search bar.

Gde mogu naci kod. Nasao sam url do te stranice ali u kodu to je skraceno.

X3mE

Kao što rekoh, otvoriš index.template.php u folderu teme, nađeš fragment kôda koji ga prikazuje, i zameniš kôdom koji dobiješ od Google-a.
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



srbija-tip.com

Da ali taj kod nisam nasao tj nasao sam samo u page source preko web browsera. A preko index.template.php ne vidim ga uopste.

X3mE

Linije 313-329 (moguće da kod tebe neće biti isti broj)

<form class="floatright" id="search_form" action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
<a href="', $scripturl, '?action=search;advanced" title="', $txt['search_advanced'], '"><img id="advsearch" src="'.$settings['images_url'].'/filter.gif" align="middle" alt="', $txt['search_advanced'], '" /></a>
<input type="text" name="search" value="" style="width: 190px;" />&nbsp;
<input type="submit" name="submit" value="', $txt['search'], '" style="width: 11ex;" />
<input type="hidden" name="advanced" value="0" />';

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="', $context['current_topic'], '" />';
// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';

echo '
</form>';
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



srbija-tip.com

Brate opet ja ne nadje ajde ovo ti moj index pa ga nadji pls ja cu samo zameniti. Hvala unapred

http://www.4shared.com/file/68102465/e416256e/indextemplate.html

X3mE

Potrebno je da zameniš linije 301-318 kôdom koji dobiješ od Google-a.
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



MarkoWeb

Nisi razmeo "pitanje", on oce da ti t sve uradis umesto njega :P
Ne mora da znaci da je isti kod, dobio si okvirno ono sta treba cak i vise nego sto treba... Citaj komentare sve je lepo iskomentarisano.

srbija-tip.com

Quote from: X3mE on October 23, 2008, 05:58:12 PM
Potrebno je da zameniš linije 301-318 kôdom koji dobiješ od Google-a.

Hvala puno uspeo sam care

vinston84

Quote from: X3mE on October 23, 2008, 05:58:12 PM
Potrebno je da zameniš linije 301-318 kôdom koji dobiješ od Google-a.

a kako da dobijem taj kod od gugla?

X3mE

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



vinston84

Ja sam konachno dobio od gugla kod, koji je u obliku skripte <style type="text/css">
@import url(http://www.google.com/cse/api/branding.css);
</style>
<div class="cse-branding-bottom" style="background-color:#FFFFFF;color:#000000">
  <div class="cse-branding-form">
    <form action="http://www.google.com/cse" id="cse-search-box" target="_blank">
      <div>
   i tako dalje

E sad kada odem u index.template da zamenim one redove shto je hovek gore naveo deshava mi se greshka.
kod X3mE stoji
<form class>

a kod mene neshto drugachije
<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '" style="margin: 0;">

pa sad nemam pojam u chemu se radi.

mobilmega

da ne otvaram novu temu....jel neko imao slično iskustvo ??? :(

Налог је онемогућен
Ваш AdSense налог за ово корисничко име је тренутно онемогућен. Препоручујемо да проверавате своје пријемне поштанске сандучиће за е-пошту да бисте проверили да ли смо Вам послали поруке о статусу Вашег налога. Понекад наше поруке могу да зауставе филтери за е-пошту, тако да редовно треба да проверавате и фасцикле за обједињену/непожељну пошту на свом налогу за е-пошту.

X3mE

Verovatno si kliktao sam na svoje reklame više puta... Ili je neko kliktao kao manijak sa iste IP adrese :D

U svakom slučaju mislim da ih nećeš ponovo dobiti :/
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



mobilmega

ni  jedan jedini put nisam kliknuo na te banere,pa nisam blesav jbt...hmm....pa šta ja mogu,ako je neko kliktao kao manijak  >:(

X3mE

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



Bob Marley

mobilmega bice da si banovan sa google :P

mobilmega

pisao žalbu isti dan,ali nisam dobio nikakav odgovor :( jel neko imao slično iskustvo?!

Maniacs

Meni su isto ukinuli nalog, ali nakon 6 mjeseci mozes se opet regat...i prije mjesec dana sam se opet rego i radi OK...

Advertisement: