Recent Topics

1 Feb 25, 2007 16:56    

My b2evolution Version: 1.9.x

we have profile page, feedback page, archives page, comments page in b2 blogs
and they have there own url
index.php?blog=2&disp=comments
index.php?blog=2&disp=profile
index.php?blog=2&disp=arcdir
index.php?blog=2&disp=msgform

Id linke to create some custom urls like
index.php?blog=2&disp=about
index.php?blog=2&disp=gallery
and they shows the pages that I have manually created.
what shoud I do :?:

3 Feb 26, 2007 05:16

thank you for help. the urls created successfully.
but its a little different in v1.9.2
I edit the
_template.funcs.php
and
_blog.class.php
as you told but nothimg in _main.php
in _main.php
we have this linke
require $skins_path.'_dispatch.inc.php';
so in
_dispatch.inc.php
I found
'arcdir' = > '_arcdir.php',
and replaced with
'arcdir' = > '_arcdir.php', 'gallery' = > '_gallery.php', and 'about' = > '_about.php',
the _gallery.php and _about.php must be in the skinks directory.

Now!
if I call the
index.php?blog=2&disp=about
it shows the _about.php in skins directory

Now a question!
how the new url shows a page in blogs media folder insted of _about.php in the skinks directory?
or place a code somthing like this in _about.php
<?php include("phpfile"); ?>
to shows a page in blogs media folder.

I know that when we want to call a page or an image from the blogs media folder we
have to place the
<?php echo $media_url ?><?php $Blog->disp( 'media_subdir' ) ?>file
in href or src for the url or imageurl

:?: :?:


Form is loading...