Recent Topics

1 Feb 09, 2009 18:49    

My b2evolution Version: Not Entered

This is a little complicated, i need to determine which blog the user is writing in, im trying to edit a plugin that doesnt do this and want to know what php file do i need to include and what variable would get me the string of the blog.

Example

Joe is writing in blog1 named pizzablog
there has to be a php file holding the info joe is writing in pizzablog.

Then i want to import that data into my conf file for this plugin which would then help me out in my uploads which would fix this
/media/blogs/'.$joescurrentblog.'/'; something like that which would give.
/media/blogs/pizzablog/ as its upload :)

thanks for anyone who can help me, i did find the selectedblog variable in the admin.php but it returns i think an int.

2 Feb 09, 2009 18:51

global $current_User
$current_User->Blog


@(Characters): pls correct me if I'm wrong. Gotta run now.

4 Feb 09, 2009 20:27

sunshine_killer wrote:

... there has to be a php file holding the info joe is writing in ****** ...

Wow I got censored by the forums for quoting something IN the forums. How cool is that?

Okay dig this: nope. No files hold the info about what is going on at any given moment. It's all done on the server using ... I dunno what they are. Objects and params and Items and Users ... and edited_Items and current_Users. Oh and this. I totally love the fact that sometimes $this->thing is what you need for that thing you're after.

Weird as a golf ball eh?


Form is loading...