WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
Hallo Aldus, Hallo Linger!Ich habe grade zum ersten Mal das ganze "installiert", um zu schauen wie es für mich funktionieren kann usw.Es funktioniert alles erwartungsgemäß.Ich habe nur noch 2 Fragen:1) Kann ich - wenn ja, wie - dieses Jumping für die Webcodes machen?2) Wird noch an diesem Modul gearbeitet, dass es ins WB integrert werden kann, oder wurde es mangels Interesse ad acta gelegt?
AddType application/x-httpd-php4 .php4 AddType application/x-httpd-php5 .php
<?php // ignore this linefunction __display_header ( $res, $content="") {
if (!array_key_exists('comment', $result['webcodes']['webcodeset'][$startcounter])) $result['webcodes']['webcodeset'][$startcounter]['comment']="";
http://www.xxx.de/xxx/index.php?cl=alist&cnid=3de462222e03a0036.81690649
<?php // ignore this line ...$result = $search->search_and_go ( trim($_POST['searchstring']) );
Ich habe irgendwo noch einen Fehler drin ...
<?php/** * Embedding the class */require_once ("includes/c_webcodesearch.php");/** * Getting an instance */$my_search = new c_webcodesearch();/** * Setting the path to the xml-document */$my_search->filename = "Testdocument.xml";/** * Getting all */$result = $my_search->getAll();/** * Getting a search result */$result = $my_search->search ( $a_webcode_string );/** * Getting the link instead of the data, or "0" if none match */$result = $my_search->search_and_go( $a_webcode_string );/** * Example for handling the result */$result = $my_search->search_and_go ( $a_wecode_string );if ("0" == $result ) { echo "sorry ... no matches found: "; echo $my_search->getAll();} else { echo "<script>window.onload = function() { document.location.href='".$result."'; }\n</script>";}/** * To modify the result-output you can modify the following template(-strings) vars * * - header_item_templ * - content_templ * - content_all_templ * - error_templ * * within the following keys|markers: * * count_all - display the number of all founded webcodes * code - display the webcode * name - display the name of the webcode * descr - display the description of the webcode * url - display the url of the webcode * title - display title of the webcode in the link * comment - display the comment of the webcode * * Example given: */$my_search->error_templ = "All found: <b>{{ count_all }}</b>, but none has match: {{ code }}!";/** * Displaying the header, default is false. */$my_search->display_header = true; /** * Manipulate the header info about //witch// info is display in a given order and * with what kind of lable (values) */$my_search->$header_info = array ( 'version' => "Version", 'date' => "Datum", 'author' => "Autor");/** * Manipulate the header-info-template */$my_search->header_item_templ = "<br/>{{ label }} : <i>{{ value }}</i>";?>