Hi all,
this issue has been puzzling me for a while and I could use your help please.
I have a VB installation on http://forum.beer.gr, with a special skin used to have the same look and feel with the rest of the site. Just below the green navigation bar, on the left hand side corner, the current date should appear, in Greek.
Here comes trouble. In order to display the date correctly in Greek, I created a small PHP script which assigns the correct output to a variable named $greekdate. Here's the script:
I then created a plugin with the following code:
Now, I used the $greekdate variable inside the header template, and I expected the Greek date to display on that corner. Instead, the variable is not parsed and "$greekdate" is dumped on the screen.
On a previous effort, I entered the PHP script directly inside the plugin (without including an external file), but that didn't work either.
Why isn't VB parsing my variable? What have I missed?
Any input would be appreciated, thanks.
Alex
this issue has been puzzling me for a while and I could use your help please.
I have a VB installation on http://forum.beer.gr, with a special skin used to have the same look and feel with the rest of the site. Just below the green navigation bar, on the left hand side corner, the current date should appear, in Greek.
Here comes trouble. In order to display the date correctly in Greek, I created a small PHP script which assigns the correct output to a variable named $greekdate. Here's the script:
PHP Code:
$beerdays = array('Δευτέρα','Τρίτη','Τετάρτη','Πέμπτη','Παρασκευή','Σάββατο','Κυριακή');
$beermonths = array('Ιανουαρίου','Φεβρουαρίου','Μαρτίου','Απριλίου','Μαΐου','Ιουνίου','Ιουλίου','Αυγούστου','Σεπτεμβρίου','Οκτωβρίου','Νοεμβρίου','Δεκεμβρίου');
$greekdate = $beerdays[date('w')]." ".date('j')." ".$beermonths[date('m')-1]." ".date('Y');
echo $greekdate;
PHP Code:
ob_start();
include('gd.php');
$greekdate = ob_get_contents();
ob_end_clean();
On a previous effort, I entered the PHP script directly inside the plugin (without including an external file), but that didn't work either.
Why isn't VB parsing my variable? What have I missed?
Any input would be appreciated, thanks.
Alex
Comment