How to move 'my blog' to the other side of the menu - User Blog Mod
How to move 'my blog' to the other side of the menu
How do I move 'my blog' from the right side to the menu left side of the menu, please see attached gif. What file do i need to modify? thanks
- Attachments
-
- move my blog.gif (4.86 KiB) Viewed 216 times
-
- Registered User
- Posts: 81
- Joined: Fri Aug 16, 2013 10:11 pm
- Location: Canada
- Name: Art
- Contact:
Re: How to move 'my blog' to the other side of the menu
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
- Jessica
- Former Team Member
- Posts: 4342
- Joined: Sun Jul 18, 2010 2:53 pm
- Location: Pennsylvania, USA
- Name: Jessica
- Contact:
Re: How to move 'my blog' to the other side of the menu
Code: Select all
<li class="{blog_links.CLASS}"><a href="{blog_links.URL}">{blog_links.TEXT}</a></li>
-
- Registered User
- Posts: 81
- Joined: Fri Aug 16, 2013 10:11 pm
- Location: Canada
- Name: Art
- Contact:
Re: How to move 'my blog' to the other side of the menu
IN functions.php FIND:
Code: Select all
// The following assigns all _common_ variables that may be used at any point in a template.
$template->assign_vars(array(
'SITENAME' => $config['sitename'],
AFTER ADD:
'USER_ID' => $user->data['user_id'],
So that allows me to use {USER_ID} anywhere in my style templates--it grabs user ID. So the link to 'my blog' in overall_header.html will look something like this:
<a href="{U_BLOG}?page=view&mode=user&u={USER_ID}" class="icon-faq" title="View my Blog">My Blog</a>
And the link to the blog.php main page
<a href="{U_BLOG}" class="icon-ucp">{L_BLOG}</a>
Not sure if it's the best way to go about it, but it works for me. Otherwise You can't really 'split' the nav links this MOD provides since it was built that way. And the way I just explained was the easiest for me to do.
-
- Registered User
- Posts: 3260
- Joined: Wed Nov 09, 2005 2:51 pm
- Contact: