Recent Topics

1 Jan 08, 2008 00:18    

My b2evolution Version: Not Entered

What snippet is required to display the blog's version number next to it's credit?
I've looked through Admin etc etc but whatever I found wouldn't render?

Cheers

2 Jan 08, 2008 00:29

/conf/_application.php ( approx somewhere in the file )

/**
 * The version of the application.
 * Note: This has to be compatible to {@link http://us2.php.net/en/version-compare}.
 * @global string
 */
$app_version = '2.3.0-rc1';

So, in yer skin do something like :

<?php
global $app_version;
echo $app_version;
?>

¥

3 Jan 08, 2008 00:30

Thanks...
Note: reply posted at 10.23 AEDST

4 Jan 08, 2008 00:34

damn, now I need to google aedst .. it's probably one of those foreign gmt wannabees :|

¥

5 Jan 08, 2008 00:36

Australian Eastern Daylight Savings Time

6 Jan 08, 2008 00:38

Bet you knew what GMT was though huh? ;)

¥

7 Jan 08, 2008 00:55

John, aren' t you in GST?

11 Jan 08, 2008 01:13

another GMT wannabe wrote:

GMT +10.00

;)

¥

12 Jan 08, 2008 01:15

BTW, Mr GMT.. your snippet doesn't render....

<?php
global $app_version;
echo $app_version;
?>

13 Jan 08, 2008 01:27

	<?php
		// --------------------------------- START OF POSTS -------------------------------------
		if( isset($MainList) ) $MainList->display_if_empty(); // Display message if no post
global $app_version;
echo $app_version;

[url=http://innervisions.org.uk]Mr GMT[/url]

Works for me ;)

¥

14 Jan 08, 2008 01:44

Yes....
Does it make any difference that I'm trying to include this in the xml.feeds.widget ?

15 Jan 08, 2008 01:49

Yes, it'd mean you described yer original problem in a crap manner :P

Unluckily for you it's now 00:41 GMT and I'm off to bed ;)

¥

17 Jan 08, 2008 10:57

ok, now that I'm back from the land of nod, 2 questions

1) which xml feeds widget ( I assume the core one ? )
2) where exactly are you wanting the app version added

¥

18 Jan 08, 2008 11:13

:)
The core xml widget and I wanted to add it to the b2 credit at the end, between the last </a> and </li>.
I was assuming there might be a snippet that would render regardless but I was proved wrong - again !!

echo $this->disp_params['item_start'];
			echo $Skin->name.':<br /> ';
			echo '<a href="'.$Blog->get_item_feed_url( $Skin->folder ).'">'.T_('Posts').'</a>, ';
			echo '<a href="'.$Blog->get_comment_feed_url( $Skin->folder ).'">'.T_('Comments').'</a>';
			echo $this->disp_params['item_end'];
			}
			echo 'Externals:<br /> ';
			echo '<a href="/index.php?disp=feed" title=" XML feeds from elsewhere ">'.T_('External Feeds').'</a>, ';
		echo $this->disp_params['list_end'];

		//echo $this->disp_params['notes_start'];
		echo '<h3>Contact etc</h3>';
		   echo '<ul><li><a href="http://wow-factor.com/index.php?disp=msgform&amp;recipient_id=1&amp;redirect_to=http%3A%2F%2Fwow-factor.com%2Findex.php%3Fblog%3D2" title="Contact Form">Contact</a></li>
                        <li><a href="http://wow-factor.com/index.php?disp=submit" title="Submit a site">Submit a site</a></li>
						<li><a href="http://wow-factor.com/index.php?disp=about" title="A liitle about wow">About</a></li></ul>';
		echo '<h3>Software</h3>';
		echo '<ul><li>
           Powered by:<br /><a href="http://b2evolution.net/" title="b2evolution: next generation blog software">b<sub>2</sub>evolution</a></li></ul>';

19 Jan 08, 2008 12:06

This works for me :

      global $app_version;
      echo '<ul><li>
           Powered by:<br /><a href="http://b2evolution.net/" title="b2evolution: next generation blog software">b<sub>2</sub>evolution '.$app_version.'</a></li></ul>';

¥


Form is loading...