Skocz do zawartości
Hosting webh.pl - 20%

ROZWIĄZANY: Dodanie KeywordScript do skrórki.

Rekomendowane odpowiedzi

Opublikowano

Witajcie,

Mam dość śmieszny problem, otóż jak zainstalować KeywordScript autorstwa CSEO do skórki ? Skrypt wymaga wykonania php w samej skórce, lecz chyba w IPB coś takiego nie było możliwe ? Jeśli tak to w których plikach należy dodać linijkę podaną poniżej, aby chmurka pojawiała się na stronie głównej i każdej podstronie ?

Zamieszczam kawałek instrukcji producenta:

5) To install, simply add the following code to any pages you want to track (or to a global file included on all pages)

##############################################################

<?php

include( 'keywords.php' );

?>

##############################################################

If you are adding this include statement inside existing php code, you must omit the php tags like so

##############################################################

include( 'keywords.php' );

##############################################################

To show the tag cloud, do the following

##############################################################

<?php

include( 'keywords.php' );

print $startMeUp->tagcloudKeywords();

?>

##############################################################

That's it! Any page this script is included on will be monitored.

Proszę o pomoc i pozdrawiam,

haerde

Opublikowano

Niestety DawPi to jest opis instalacyjny(wyżej są tylko ustawienia i zapytania sql)

Ale mod ten nie jest dedykowany konkretnie do IPB lecz ogólnie do wszystkiego.

Informacje o tym jak to powinno wyglądać w IPB znajdują się na forum CSEO.

Opublikowano
  • Autor

Pavulon, byłbyś tak miły i opisał jak Ty dokładnie to zrobiłeś ? Interesuje mnie właśnie identyczny efekt.

Dzięki wielkie z góry,

haerde

Opublikowano
  • Manager

Informacje o tym jak to powinno wyglądać w IPB znajdują się na forum CSEO.

Pavulon, byłbyś tak miły i opisał jak Ty dokładnie to zrobiłeś ? Interesuje mnie właśnie identyczny efekt.

Napisał wyżej. :thumbsup:

NA forum CSEO nie ma żadnego działu z instrukcjami?

intermedia - profesjonalne rozwiązania Invision Power Board, IC5

Opublikowano
  • Autor

Pav, a mógłbyś przynajmniej powiedzieć w którym miejscu w globalTemplate dodałeś

<span class="postcolor"><php>
if( include_once( './keywords.php' ) )
{
if( is_object( $startMeUp ) )
{
$this->tagcontent = $startMeUp->tagcloudKeywords();
}
}
</php></span>

I czy trzeba w jakimś pliku włączyć obsługę <php> w skórce ?

Opublikowano

Ten skrypt jest beznadziejny ^_^

Przez to że zakodowany to dodatkowo trzeba się z nim męczyć. Nie ma nawet dokładnie opisanych funkcji.

Aż sobie zrobiłem hook'a do tego bo miałem już dość edycji skinów.

Najgorsze jest to, że template'a to trzeba sobie w ogóle od początku zrobić ( http://amxx.pl/keywords.html?tag=amxx ) (bo standardowy nie nadaje się do niczego).

Nawet z config'iem musiałem się męczyć bo linki nie wyglądały tak: "http://amxx.pl/keywords.html?tag=amxx" tylko mniej więcej tak: "http://amxx.pl/home/pavulon/www/htdocs/keywords.html?tag=amxx"

W standardzie podane jest ledwo 15 silników wyszukiwarek.

W skrócie, udenerwował mnie ten (drogi :thumbsup: ) skrypt.

Opublikowano
  • Autor

No to d*pa ... A odpłatnie podałbyś rozwiązanie tego problemu ? Proszę, zależy mi.

Opublikowano
  • Autor

Hehe, byłby najlepiej z tymże już zakupiłem KeywordScript ... ;-/. Zostaje jedynie czekać aż Pav się ulituje :thumbsup:

Opublikowano

Hehe, DawPi po kupnie tego doszedłem do wniosku że lepiej bym na tym wyszedł jakbym zrobił to od początku :thumbsup:

Ale że wtedy miałem inne rzeczy na głowie a kosz tego nie był moim problemem...

Więc jak ty tego nie zrobisz to może ja się za to wezmę z czasem zab.gif

Opublikowano
  • Autor

Mam takiego hooka, lecz on pokazuje keywordsy wyłącznie w sidebar'ze na stronie głównej, jak zrobić, aby ta tabelka była nad footerem na stronie głównej i każdej podstronie ? Proszę o pomoc.

KeywordsLogger.xml

Edytowane przez haerde

Opublikowano
  • Manager

Jakiego hooka?

Anyway - trzeba zrobić nowego hooka na podstawie tego..

Tworzenie rozszerzeń

[ EDIT ]

Fajny kod:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<hookexport><hookdata><config><hook_name>Keywords Logger</hook_name><hook_desc>This adds a block of keywords logger on your board index in the sidebar</hook_desc><hook_author>Ryan Ghourley</hook_author><hook_email></hook_email><hook_website></hook_website><hook_update_check></hook_update_check><hook_requirements>a:4:{s:20:"hook_ipb_version_min";i:30006;s:20:"hook_ipb_version_max";i:0;s:20:"hook_php_version_min";s:0:"";s:20:"hook_php_version_max";s:0:"";}</hook_requirements><hook_version_human>1.0.0</hook_version_human><hook_version_long></hook_version_long><hook_extra_data></hook_extra_data><hook_key>KeywordsLogger</hook_key></config></hookdata><hookfiles><file><hook_file_real>KeywordsLogger.php</hook_file_real><hook_type>templateHooks</hook_type><hook_classname>KeywordsLogger</hook_classname><hook_data>a:6:{s:15:"classToOverload";s:0:"";s:9:"skinGroup";s:11:"skin_boards";s:12:"skinFunction";s:18:"boardIndexTemplate";s:4:"type";s:7:"foreach";s:2:"id";s:11:"side_blocks";s:8:"position";s:9:"outer.pre";}</hook_data><hooks_source><?php /*  * HOOK: Recommended Sites *  */ class KeywordsLogger{ public $registry;  public function __construct() {        /* Make registry objects */  $this->registry   =  ipsRegistry::instance();    }  public function getOutput() {  return $this->registry->output->getTemplate( 'global' )->hookKeywordsLogger( );  }}?></hooks_source></file></hookfiles><hookextras_settings></hookextras_settings><hookextras_language></hookextras_language><hookextras_modules></hookextras_modules><hookextras_help></hookextras_help><hookextras_templates><templates><template_set_id>0</template_set_id><template_group>skin_global</template_group><template_content><if test="$this->tagcontent"><div class='general_box clearfix'> <h3><img src='{$this->settings['img_url']}/comment_new.png' alt='{$this->lang->words['icon']}' />Search Engine Keywords</h3><ul class="hfeed block_list"><li>{$this->tagcontent} </li></ul></div></if></template_content><template_name>hookKeywordsLogger</template_name><template_data></template_data><template_updated></template_updated><template_removable>0</template_removable><template_added_to>0</template_added_to><template_user_added>0</template_user_added><template_user_edited>0</template_user_edited></templates></hookextras_templates><hookextras_tasks></hookextras_tasks><hookextras_database_create></hookextras_database_create><hookextras_database_alter></hookextras_database_alter><hookextras_database_update></hookextras_database_update><hookextras_database_insert></hookextras_database_insert></hookexport>

:thumbsup:

intermedia - profesjonalne rozwiązania Invision Power Board, IC5

Opublikowano
  • Autor

Hahaha, widzę że nie tylko mnie przytłoczył ten hook :thumbsup:. Czy dałoby się go jakoś przerobić, aby spełnił swoje zadanie ?

Opublikowano

Prosze, tak pięknie zrobiłem

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<hookexport>
 <hookdata>
   <config>
     <hook_name>Keywords Logger</hook_name>
     <hook_desc>This adds a block of keywords logger on your board index in the sidebar</hook_desc>
     <hook_author>Ryan Ghourley</hook_author>
     <hook_email></hook_email>
     <hook_website></hook_website>
     <hook_update_check></hook_update_check>
     <hook_requirements>a:4:{s:20:"hook_ipb_version_min";i:30006;s:20:"hook_ipb_version_max";i:0;s:20:"hook_php_version_min" ;s:0:"";s:20:"hook_php_version_max";s:0:"";}</hook_requirements>
     <hook_version_human>1.0.0</hook_version_human>
     <hook_version_long></hook_version_long>
     <hook_extra_data></hook_extra_data>
     <hook_key>KeywordsLogger</hook_key>
   </config>
 </hookdata>
 <hookfiles>
   <file>
     <hook_file_real>KeywordsLogger.php</hook_file_real>
     <hook_type>templateHooks</hook_type>
     <hook_classname>KeywordsLogger</hook_classname>
     <hook_data>a:6:{s:15:"classToOverload";s:0:"" ;s:9:"skinGroup";s:11:"skin_boards";s:12:"skinFunction";s:18:"boardIndexTemplate";s:4:"type";s:7:"foreach";s:2:"id";s:11:"side_blocks";s:8:"position";s:9:"outer.pre";}</hook_data>
     <hooks_source><?php /* * HOOK: Recommended Sites * */ class KeywordsLogger{ public $registry; public function __construct() { /* Make registry objects */ $this->registry = ipsRegistry::instance(); } public function getOutput() { return $this->registry->output->getTemplate( 'global' )->hookKeywordsLogger( ); }}?></hooks_source>
   </file>
 </hookfiles>
 <hookextras_settings></hookextras_settings>
 <hookextras_language></hookextras_language>
 <hookextras_modules></hookextras_modules>
 <hookextras_help></hookextras_help>
 <hookextras_templates>
   <templates>
     <template_set_id>0</template_set_id>
     <template_group>skin_global</template_group>
     <template_content><if test="$this->tagcontent"><div class='general_box clearfix'> <h3><img src='{$this->settings['img_url']}/comment_new.png' alt='{$this->lang->words['icon']}' />Search Engine Keywords</h3><ul class="hfeed block_list"><li>{$this->tagcontent} </li></ul></div></if></template_content>
     <template_name>hookKeywordsLogger</template_name>
     <template_data></template_data>
     <template_updated></template_updated>
     <template_removable>0</template_removable>
     <template_added_to>0</template_added_to>
     <template_user_added>0</template_user_added>
     <template_user_edited>0</template_user_edited>
   </templates>
 </hookextras_templates>
 <hookextras_tasks></hookextras_tasks>
 <hookextras_database_create></hookextras_database_create>
 <hookextras_database_alter></hookextras_database_alter>
 <hookextras_database_update></hookextras_database_update>
 <hookextras_database_insert></hookextras_database_insert>
</hookexport>

Już mnie nie ma :thumbsup:

Opublikowano
  • Autor

Angielski raczej znam, a i tak nic z tego tutka nie rozumiem ... DawPi, z racji że dzisiaj są wybory, ładnie deszczyk pada mógłbyś podać gotowe rozwiązanie ? Dla Ciebie to 5 minut, a dla mnie cała wieczność :X.

Opublikowano
  • Autor

btw. polecam shishe. Rozpalasz i przygotowujesz fajke z 3-4 minuty, a palisz ponad godzinke :thumbsup:. No nic, poczekam tylko proszę nie zapomnij.

Opublikowano

Z tego forum robi się forum do pogaduszek =(

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Ostatnio przeglądający 0

  • Brak zarejestrowanych użytkowników przeglądających tę stronę.

Szukaj

Szukaj

Skonfiguruj powiadomienia push w przeglądarce

Chrome (Android)
  1. Stuknij ikonę kłódki obok paska adresu.
  2. Stuknij Uprawnienia → Powiadomienia.
  3. Dostosuj swoje ustawienie.
Chrome (Komputer)
  1. Kliknij ikonę kłódki na pasku adresu.
  2. Wybierz Ustawienia witryny.
  3. Znajdź Powiadomienia i dostosuj swoje ustawienie.