Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
Home Page or This Page - Member Profile Details »»
Home Page or This Page - Member Profile
Version: 1.00, by FASEOFMARS FASEOFMARS is offline
Developer Last Online: Jul 2012 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 4.x.x Rating:
Released: 05-12-2011 Last Update: Never Installs: 6
Template Edits
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-13-2011, 12:15 PM
TheChief TheChief is offline
 
Join Date: Nov 2010
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A really simple code change that allows people to amend the address to suit their needs

Nice one, installed and in use
Reply With Quote
  #3  
Old 05-13-2011, 04:44 PM
Last_Zero's Avatar
Last_Zero Last_Zero is offline
 
Join Date: Jan 2011
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Installed
Reply With Quote
  #4  
Old 05-15-2011, 09:02 AM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you

installed

keep it up bro
Reply With Quote
  #5  
Old 05-15-2011, 10:33 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 05-18-2011, 02:39 PM
ranafarooq ranafarooq is offline
 
Join Date: Sep 2009
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry couldn't understand what this mod do? any snap shot that can explain!!
Reply With Quote
  #7  
Old 05-24-2011, 11:44 AM
FASEOFMARS FASEOFMARS is offline
 
Join Date: Mar 2010
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
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.
Reply With Quote
  #8  
Old 05-24-2011, 11:59 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Like I said, it is good for refreshing the page if you are testing something in the profile.
Reply With Quote
  #9  
Old 05-24-2011, 07:00 PM
FASEOFMARS FASEOFMARS is offline
 
Join Date: Mar 2010
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
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..
Reply With Quote
  #10  
Old 05-24-2011, 07:11 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FASEOFMARS View Post
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.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:13 AM.


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.06371 seconds
  • Memory Usage 2,306KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete