WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • anynews snippet works fine with WB 2.10.0
  • Print
Pages: [1]   Go Down

Author Topic: anynews snippet works fine with WB 2.10.0  (Read 10603 times)

Offline masju

  • Posts: 231
  • Gender: Male
anynews snippet works fine with WB 2.10.0
« on: May 08, 2017, 10:01:55 AM »
The anynews snippet still works fine with WB 2.10.0, if you do the following changes in /modules/anynews/include.php
Go to line 66 and add an "//" at the beginning of line 66 to 69 (or simply delete these lines):

Code: [Select]
// output message for outdated Website Baker versions
// if ((double) WB_VERSION < 2.7) {
// echo $LANG[0]['TXT_REQUIREMENTS'];
// return;
// }

This switches off the version-check, but it is no longer needed, since 2.10.0 is newer than 2.7.

masju
Logged

Offline jacobi22

  • Betatester
  • **
  • Posts: 5920
Re: anynews snippet works fine with WB 2.10.0
« Reply #1 on: May 08, 2017, 11:26:19 AM »
oder man passt die Abfrage entsprechend an (wobei die WB-Version 2.7 jetzt eher fiktiv ist)

// output message for outdated Website Baker versions
	
if( 
version_compare( WB_VERSION, '2.7', '<' )) {
	
	
echo 
$LANG[0]['TXT_REQUIREMENTS'];
	
	
return;
	
}
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • anynews snippet works fine with WB 2.10.0
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2