Recent Topics

1 Nov 18, 2007 20:02    

My b2evolution Version: 1.10.x

I'd like to be able to programmatically insert the name of the current stub into a URL, like so:

a href="http://www.domainname.com/<?php STUBNAME ?>"

so that the url changes depending on which blog it's being displayed on, but I can't figure out the syntax for calling the stubname itself... Anyone able to help?

jj.

2 Nov 18, 2007 22:28

try :

<?php echo $Blog->gen_blogurl(); ?>

¥

3 Nov 18, 2007 22:45

Well, that generates the entire url... I want to be able to generate *only* the stubname...

jj.

4 Nov 18, 2007 22:55

in that case try :

<?php echo $Blog->stub; ?>

¥

5 Nov 18, 2007 23:26

That did the trick, thanks.

jj.


Form is loading...