vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Profile Enhancements - Home Page or This Page - Member Profile (https://vborg.vbsupport.ru/showthread.php?t=263552)

FASEOFMARS 05-12-2011 10:00 PM

Home Page or This Page - Member Profile
 
1 Attachment(s)
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
Code:

<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
Code:

<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

Quote:

Originally Posted by Boofo (Post 2195940)
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

Quote:

Originally Posted by Boofo (Post 2199432)
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

Quote:

Originally Posted by FASEOFMARS (Post 2199546)
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

Quote:

Originally Posted by FASEOFMARS (Post 2199862)
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. ;)


All times are GMT. The time now is 05:03 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03842 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (14)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete