PDA

View Full Version : Mini Mods - Welcome text, links to your profile.


Yours Truly
07-18-2007, 10:00 PM
Time taken: 2 Minutes
Difficulty: Easy as pie
What it does: This will basically change your username at the top of the page in the navbar template to the html markup and a link to that persons profile.

You can also use this for Vb 3.5.x too

Go to:

Style Manager --> [Template you wanna edit] --> Navigation / Breadcrumb Templates --> navbar

Find:

<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />

Replace with:


<strong><phrase 1="$bbuserinfo[musername]"><a href="member.php?u=$bbuserinfo[userid]">$vbphrase[welcome_x]</a></phrase></strong><br />
---------------------------------------------------------------------------------------
Making it link to the usercp:

Style Manager --> [Template you wanna edit] --> Navigation / Breadcrumb Templates --> navbar

Replace:


<strong><phrase 1="$bbuserinfo[musername]"><a href="member.php?u=$bbuserinfo[userid]">$vbphrase[welcome_x]</a></phrase></strong><br />


With:

<strong><phrase 1="$bbuserinfo[musername]"><a href="usercp.php$session[sessionurl_q]">$vbphrase[welcome_x]</a></phrase></strong><br />


To come:

Let the user choose what they want their name to link to
Post some ideas :p
Versions:
1.00
Release
1.01
Updated to use phrases instead of editing the templates
Corrected usercp url
1.02
Fixed again as using phrases doesn't parse the links correctly

Stromba
07-19-2007, 07:56 PM
Thank you

Yours Truly
07-19-2007, 08:42 PM
Thank you
Your welcome =]

King Kovifor
07-19-2007, 09:11 PM
You should write better installation instructions, and this should be done through the phrase system, not the templates.

Yours Truly
07-20-2007, 10:05 AM
You should write better installation instructions, and this should be done through the phrase system, not the templates.
I appreciate it is bad i will amend it today i was a little worse for wear yesterday lol

And that's a good idea i never thought of doing it though phrases =]

Thanks
x

EnIgMa1234
07-20-2007, 10:29 AM
You should always think of doing it with phrases ;)

Magnumutz
07-20-2007, 10:47 AM
In the instructions to link to usercp, when the replacement of: <a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$bbuserinfo[musername]</a> was supposed to be made, it's supposed to be replaced with:<a href="usercp.php$session[sessionurl_q]">

dismas
07-25-2007, 08:48 AM
So how would this be put into the welcome_x phrase then? When I tried to put in the same code into the phrase, I got:

"This user has not registered and therefore does not have a profile to view."

Yours Truly
07-25-2007, 09:26 AM
So how would this be put into the welcome_x phrase then? When I tried to put in the same code into the phrase, I got:

"This user has not registered and therefore does not have a profile to view."
Ill update this on my lunch break =]

dismas
07-25-2007, 12:53 PM
Looking forward to it!

Yours Truly
07-25-2007, 04:30 PM
Looking forward to it!
Would be much appreciated if you pressed the install button as well =]

Yours Truly
07-25-2007, 05:03 PM
Updated to use phrases and use the correct url for the usercp

dismas
07-25-2007, 06:43 PM
I still get the same error. The URL that it's trying to go to is:
/forum/member.php?$session[sessionurl]u=$bbuserinfo[userid]

Yours Truly
07-26-2007, 08:37 AM
I still get the same error. The URL that it's trying to go to is:
/forum/member.php?$session[sessionurl]u=$bbuserinfo[userid]

Try

/forum/member.php?$session[sessionurl_q]u=$bbuserinfo[userid]

dismas
07-26-2007, 01:48 PM
Try

/forum/member.php?$session[sessionurl_q]u=$bbuserinfo[userid]

I still get the same error.

Yours Truly
07-26-2007, 02:13 PM
I still get the same error.
I have figured it out ill post the fix in an hour when i get back from work

Yours Truly
07-26-2007, 03:19 PM
Version 1.02 released

1.02
Fixed again as using phrases doesn't parse the links correctly

dismas
07-26-2007, 05:07 PM
A template edit it is then.

Thanks!

Yours Truly
07-26-2007, 05:10 PM
A template edit it is then.

Thanks!
Sorry about that mate the phrase manager wasn't parsing the links correctly =]

dismas
07-27-2007, 03:07 AM
No worries. Not your fault.

love_uae
07-27-2007, 09:22 AM
Thank you good job

install it :)

Yours Truly
07-27-2007, 09:33 AM
Thank you good job

install it :)
Your welcome :)