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
<?php/** * Serbian language file for the code snippet: anynews * * This code snippets grabs news from the WB news module database * and displays them on any page you want by invoking the function * displayNewsItems() via a page of type code or the index.php * file of the template. * * This file contains the Serbian language output. * * LICENSE: GNU General Public License 3.0 * * @author Christian Sommer * @copyright Christian Sommer (c) 2007-2009 * @license http://www.gnu.org/licenses/gpl.html * @version 1.00 * @platform WebsiteBaker 2.7*/// Serbian module description$module_description = 'WebsiteBaker modul za prikazivanje novosti na bilo kojoj stranici vašeg web site-a. Funkcija modula može biti implementirana u sam template ili putem code sekcije. Detalji i pomoć oko korišćenja ovog modula mogu se naći u samom modulu na linku <a href="{WB_URL}/modules/anynews/help/help_en.html" target="_blank">README</a>';// declare module language array$LANG = array();// Tekstualni prikaz izlazne forme modula$LANG[0] = array( 'TXT_HEADER' => 'Najnovije vesti', 'TXT_READMORE' => 'detaljnije', 'TXT_NO_NEWS' => 'Vesti ne postoje u bazi.', 'TXT_NEWS' => 'Novosti', // English date/time format: (9:12 PM, 10/20/2008) 'DATE_FORMAT' => ' | d.m.Y. - H:i', 'TXT_REQUIREMENTS' => 'Greška, Anynews možete koristiti samo sa WebsiteBaker verzijom 2.7 ili novijom.', );?>
$group_id = 0, $max_news_items = 10,$max_news_length = 251, $display_mode = 1, $lang_id = 'AUTO',$strip_tags = true, $allowed_tags = '<p><a><img>', $custom_placeholder = false,$sort_by = 1, $sort_order = 1, $not_older_than = 0)
<img width="220" height="60"
<p><img width="220" height="60"
function wordwrap2( $str, $width = 75, $break = '\n', $cut = true ) { $str = html_entity_decode( $str ); //first decode $out = wordwrap( $str, $width, $break, $cut ); //now wordwrap $out = htmlentities( $out ); //re-encode the entities// I added// $out = html_entity_decode( $out );// end of my adding $out = str_replace( htmlentities( $break ), $break, $out ); //put back the break // return the first line $temp = explode( $break, $out ); return $temp[0];}?>
$str = html_entity_decode( $str ); //first decode
$out = html_entity_decode( $out );
But I dont think I can just like that delete some line of the code and everything work.So please tell me if this what I did is not safe or something.
if (function_exists('displayNewsItems')) { displayNewsItems();}
if (function_exists('displayNewsItems')) { displayNewsItems(display_mode = 1,);}
@webbird: auf der bonsai-seite scheint die foldergallery schön sortierbar zu sein.sind da schon neuerungen in verwendung?
As soon as I change to eg. Code: [Select]if (function_exists('displayNewsItems')) { displayNewsItems(display_mode = 1,);}it is not working anymore (means there is no news shown on the page anymore).
displayNewsItems( $group_id = 0, $max_news_items = 2, $max_news_length = 200, $display_mode = 5, $lang_id = 'DE', $strip_tags = false, $allowed_tags = '<p><a><img>', $custom_placeholder = false, $sort_by = 1, $sort_order = 1, $not_older_than = 0 );
if (function_exists('displayNewsItems')) { displayNewsItems( $group_id = 0, $max_news_items = 2, $max_news_length = 200, $display_mode = 1 );}
2. No long contentSome of my news do not have a long content but the "read more" link is shown in any case. Is there a possibility that the "read more" link is only shown if there is a long content for this particular news?
// register outside variables global $wb, $database;// AFTER ADD if ( ! is_object( $wb ) ) { require_once(WB_PATH.'/framework/class.frontend.php'); // Create new frontend object $wb = new frontend(); }