1 daniel Aug 03, 2007 14:29
3 daniel Aug 03, 2007 14:50
Yeh... that would of course solve the problem... but I´m currently working on a small plugin and I want to have it open for everyone to use... and for this I would need a code and not the name of my blog in plain text...
4 yabba Aug 03, 2007 14:52
<?php
$fred = $BlogCache->get_by_ID( 1 );
$fred->disp( 'name' );
?>
;)
¥
5 afwas Aug 03, 2007 14:57
I am beaten in speed by ¥åßßå, but luckily so, because my answer was different :roll:
6 daniel Aug 03, 2007 15:40
No, that does not work for me; I get error messages... is there another way?
7 yabba Aug 03, 2007 15:41
What's your error message?
If you trying to use this inside a function then you need to global the BlogCache first ;)
<?php
global $BlogCache;
$fred = $BlogCache->get_by_ID( 1 );
$fred->disp( 'name' );
?>
¥
8 daniel Aug 03, 2007 15:43
Uups, my fault, should have told that I intend to use this in a function... and YES, now it´s working properly! THANKS!
9 yabba Aug 03, 2007 15:45
No worries ;)
¥
In ../blogs/skins/YOURSKIN/_main.php just skip your code and type 'Anything you want' like:
old code:
new code:
Good luck