Content Management System - CMS : eXV2 
Home
News
Forum
Downloads
Download Module
Sitemap
Partnerseiten
RSS News
Kontakt/Info
Sprache
EnglishFrench
Suchen
Login
Nickname
Passwort

Registrieren?
Passwort?
Navigation
 Home News  Forum Neueste Beiträge  Downloads Download Module eXV² Themes  Weblinks Tutorial Changelog 2.3.1 Jobcenter Gebrauchtmarkt OSMap  Sponsor Kalendersystem Sitemap Partnerseiten RSS News Kontakt/Info Webseiten Wetter
Willkommen im Free Web CMS : eXV² Forum!
  Forenarchiv
     eXV2 Module
  A minor problem with xoops_astro.php

Forum : eXV2 Module

Titel : A minor problem with xoops_astro.php

© 2004-2012 www.exv2.de
http://www.exv2.de

URL dieser Diskussion
http://www.exv2.de/modules/newbb_plus/viewtopic.php?topic_id=1879&forum=7


 Gast :

13.11.2004 16:12
 There is a minor problem with xoops_astro.php in classes directory. It doesn't display the astro image/name if you have a birthday between 21.01-01.02 at all.
Here's that code which handles it:
Code:

function &getTitelAstro($xdatum) {
global $db;
$mon = substr($xdatum,5,2);
$tag = substr($xdatum,-2);
if ($mon == "01") {
$where_str = "(date1 >= \"12-$tag\" and date2 >= \"$mon-$tag\")";
}else{
$where_str = "(date1 <= \"$mon-$tag\" and date2 >= \"$mon-$tag\")";
}
$sql = "SELECT title FROM ".$db->prefix("astro")." WHERE ".$where_str."";
//echo $sql."<br>";
$result = $db->query($sql);
list($title) = $db->fetch_row($result);
return $title;
}

I think it is the first where_str which causes this bug.

 bama :

14.11.2004 12:20
 Hi Pnooka,

wechsle mal beiliegende /class/xoops_astro.php aus

danke für den Hinweis

 Gast :

14.11.2004 12:29
 Thank you very much, it works like a charm.
Partnerseiten
http://service.bama-webdesign.de/

Vote für eXV2
php
Kontakt/Info
  Kontakt
  Impressum
  Link zu uns
  AGB
  Datenschutzhinweis
Downloads
  eXV² Core
  Core Sprachfiles
eXV² Filecenter
  Downloads
  Download Module
  eXV² Themes
  Multilanguage Module
  Sprachfiles eXV² Module
eXV² Support
  France