Warning: The author of this contribution does not provide support for it anymore.

User Blog Mod

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

by mamamia22 » Mon Sep 09, 2013 9:49 pm

Hi,
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
move my blog.gif (4.86 KiB) Viewed 216 times
mamamia22
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

by Jessica » Mon Sep 09, 2013 10:37 pm

overall_header.html. Find the blog code (that creates the blog link) and move it after the notes one.
Pro-choice, Atheist, Pro-LGBT rights
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
User avatar
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

by mamamia22 » Mon Sep 09, 2013 10:52 pm

The problem with this is that I only want to move 'My blog'. 'Blogs' I want to leave in the right side and I do not know how to separate them, overall_header.html has

Code: Select all

<li class="{blog_links.CLASS}"><a href="{blog_links.URL}">{blog_links.TEXT}</a></li>
for both of them
mamamia22
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

by Peter77sx » Thu Sep 12, 2013 6:16 am

You can try this to separate those two links...

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.
Peter77sx
Registered User
Posts: 3260
Joined: Wed Nov 09, 2005 2:51 pm
Contact: