Skocz do zawartości
"Idzie nowe..." - o zmianach i nie tylko ×
Przeniesienie zakupów z IPS Marketplace / Moving bought items from IPS Marketplace ×

ROZWIĄZANY: Dodanie KeywordScript do skrórki.


haerde

Rekomendowane odpowiedzi

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

Odnośnik do komentarza
Udostępnij na innych stronach

  • Manager

Czy aby na pewno to jest skrypt autora CSEO i tak wygląda jego opis instalacyjny? Możesz pokazać ten opis, ale w pełnej formie?

Do mod to serii 3.x?

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

Odnośnik do komentarza
Udostępnij na innych stronach

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.

Odnośnik do komentarza
Udostępnij na innych stronach

  • 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

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

Odnośnik do komentarza
Udostępnij na innych stronach

  • Manager

Aż tak miły nie będę, bo aktualna postać kosztowała mnie trochę pracy.

Z ciekawości - jakiej? Co tam było takiego niestandardowego? :thumbsup:

Pytam jak programista programistę..

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

Odnośnik do komentarza
Udostępnij na innych stronach

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 ?

Odnośnik do komentarza
Udostępnij na innych stronach

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.

Odnośnik do komentarza
Udostępnij na innych stronach

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

Odnośnik do komentarza
Udostępnij na innych stronach

  • Manager

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

Wbrew pozorom sporo już jest.. Więcej info w naszym dziale, jak chcesz poznać. :thumbsup:

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

Odnośnik do komentarza
Udostępnij na innych stronach

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
Odnośnik do komentarza
Udostępnij na innych stronach

  • 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

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

Odnośnik do komentarza
Udostępnij na innych stronach

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:

Odnośnik do komentarza
Udostępnij na innych stronach

  • Manager

Nie mam na to dziś czasu ani chęci, bo właśnie jest to wspomniane, nie 5, a 10 minut z przerwą na fajkę ( jak ktoś pali :thumbsup: ).

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

Odnośnik do komentarza
Udostępnij na innych stronach

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

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
  • Ostatnio przeglądający   0 użytkowników

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

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.