Author Topic: New Mod - User Menu  (Read 1100 times)

0 Members and 1 Guest are viewing this topic.

« on: December 30, 2011, 11:44:58 PM »

User Menu - Compatible with: 2.0 RC3 and later http://livemods.net/index.php?action=mods#95

This mod creates a user menu in a poster's information block while viewing a thread. I may add more menu items to this over time.

There are absolutely no theme edits here, and the way it's implemented, it should work reasonably well on any theme. (It works beautifully on all the themes I've tested)

The mod is installed on the same website linked above, so you can see a live demo of it working. Just enter any topic and click on a poster's name. I also made sure it looks good on IE8 since it sports RGBA borders, shadow, and rounded corners. I've attached previews; Curve in Firefox, Curve in IE8, Happy Holidays in Firefox, Modern Dark32, and Mystic Jade.


« Reply #1 on: May 03, 2012, 09:38:07 AM »

I've now installed this and it's looking great!  Thank you :)

I expected to have to manually choose the colours to fit my theme, but this mod just fit right in!  Here it is installed on Crip's Actualism theme:

[ Guests cannot view attachments ]


« Reply #2 on: May 06, 2012, 08:23:24 AM »

Ok, one minor issue.... the "View Homepage" option opens in the same window, taking visitors away from my forum.  How can I change it to open in a new tab/window?  Thanks :)


« Reply #3 on: May 06, 2012, 09:52:33 AM »

"View Homepage"?


« Reply #4 on: May 06, 2012, 10:32:40 AM »

Image attached, if I click on "View ******'s homepage" it opens in the same window

[ Guests cannot view attachments ]

« Last Edit: May 06, 2012, 12:24:34 PM by Sabrinova »

« Reply #5 on: May 07, 2012, 04:17:34 PM »

In Display.php, find

Code: [Select]
$menu[] = '<a href="' . $output['member']['website']['url'] . '" rel="nofollow">' . sprintf($txt['usermenu_website'], $output['member']['name']) . '</a>';

and replace with

Code: [Select]
$menu[] = '<a href="' . $output['member']['website']['url'] . '" rel="nofollow" target="_blank">' . sprintf($txt['usermenu_website'], $output['member']['name']) . '</a>';