PDA

View Full Version : Profile Enhancements - Home Page or This Page - Member Profile


FASEOFMARS
05-12-2011, 10:00 PM
hi, this is my first little mod i want to share with everyone, not a coder or anything i just like to pay attention to detail. I often find myself stripping away at vbulletin, re-adjusting alot of the templates..

"This Page" in the contact section of the member profile seems like a filler to me, basically if your member has no contact information up this little thing will happily fill the space for you.. which is all it should be, as giving the page you are viewing as contact information isn't really logical..

For the most part its an irrelevant link, that you can easy get from the address bar lol, so why not replace it with the members home-page if he happens to select one?

i have achieved this by editing the template: memberinfo_block_contactinfo

code for This Place
<dl class="blockrow stats">
<dt>{vb:rawphrase this_page}</dt>
<dd> <a href="{vb:raw prepared.profileurl}{vb:raw prepared.homepage}">{vb:raw prepared.profileurl}</a></dd>
</dl>

replace with
<vb:if condition="$prepared['homepage']">
<dl class="blockrow stats">
<dt>Home Page</dt>
<dd> <a href="{vb:raw prepared.homepage}">{vb:raw prepared.homepage}</a></dd>
</dl>

<vb:else />

<dl class="blockrow stats">
<dt>{vb:rawphrase this_page}</dt>
<dd> <a href="{vb:raw prepared.profileurl}{vb:raw prepared.homepage}">{vb:raw prepared.profileurl}</a></dd>
</dl></vb:if>

enjoy :)

TheChief
05-13-2011, 12:15 PM
A really simple code change that allows people to amend the address to suit their needs

Nice one, installed and in use

Last_Zero
05-13-2011, 04:44 PM
Thanks Installed

Dr.osamA
05-15-2011, 09:02 AM
thank you

installed

keep it up bro

Boofo
05-15-2011, 10:33 AM
I'm not quire sure I understand your reasoning for this. Basically, the "This Page" link will refresh the profile page, which can be good if you are testing something. Maybe renaming the "This Page" might be better and then adding the homepage? Just a thought.

ranafarooq
05-18-2011, 02:39 PM
sorry couldn't understand what this mod do? any snap shot that can explain!!

FASEOFMARS
05-24-2011, 11:44 AM
I'm not quire sure I understand your reasoning for this. Basically, the "This Page" link will refresh the profile page, which can be good if you are testing something. Maybe renaming the "This Page" might be better and then adding the homepage? Just a thought.

you could replace "this page" with the phrase "homepage" but that would make no sense because this page may not be the members selected homepage.. instead you would want two possible links A: the selected homepage b: this page (if the member happens not to select a homepage)..

I dont see the point in a "this page" link at all to be frank, its an irrelevant piece of contact information.

Boofo
05-24-2011, 11:59 AM
Like I said, it is good for refreshing the page if you are testing something in the profile.

FASEOFMARS
05-24-2011, 07:00 PM
Like I said, it is good for refreshing the page if you are testing something in the profile.

we're taking about contact information here, i believe their is a refresh button on most browsers..

Boofo
05-24-2011, 07:11 PM
we're taking about contact information here, i believe their is a refresh button on most browsers..

The refresh button doesn't always work as well as a link. ;)

FASEOFMARS
05-25-2011, 03:21 PM
wise up m8 your saying their is no point to this because its good for refreshing the page?

would you listen to yourself....

Boofo
05-25-2011, 03:35 PM
No, you need to learn to read better. This mod might be useful to someone who sees it as yourself. The way I see it, it is not. Hence, "to each their own". ;)

FASEOFMARS
05-25-2011, 04:54 PM
well its not that hard to see the logic, but your point is not valid im afriad. a refresh button no reason to include it as "contact" information, and im not selling out so i can run a few tests as admin.

the only foreseeable reason relating to contact information, is that if the person does not enter none and "this page" is the only source of contact.

Boofo
05-25-2011, 05:13 PM
well its not that hard to see the logic, but your point is not valid im afriad. a refresh button no reason to include it as "contact" information, and im not selling out so i can run a few tests as admin.

the only foreseeable reason relating to contact information, is that if the person does not enter none and "this page" is the only source of contact.

My point may not be valid to you, but it is valid to me. Hence, again, to each their own. I can also see your point. That is what is called "looking at things objectively". You might want to try that sometime. ;)