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)
-   -   Show Thread Enhancements - Homepage Button In Postbit (https://vborg.vbsupport.ru/showthread.php?t=232810)

txsbmw 01-10-2010 10:00 PM

Homepage Button In Postbit
 
1 Attachment(s)
This will add a Homepage Icon to your postbit next to the Yahoo, MSN, etc... Icons for your members website (if they have one).

UPDATE: Added alt tag to img code. When you hover over the image it will now say "Go to _______'s homepage

INSTRUCTIONS:

Upload Attached image to your images/misc folder then make the following changes to the postbit template:

In postbit, find:
HTML Code:

{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
ADD UNDER:
HTML Code:

<!-- Homepage Start-->
<vb:if condition="$show['homepage']">
<a href="{vb:raw post.homepage}" target="_blank" dir="ltr"><img src="images/misc/userhome.png" alt="Go to {vb:raw post.username}'s homepage" border="0" /></a>
</vb:if>
<!-- Homepage End-->


silverfox_uw 01-12-2010 01:50 PM

thanks, can this be altered so that when you hover over it, it says, "go to...........'s homepage"

txsbmw 01-13-2010 03:13 PM

You would have to use the alt tag within the img code. Try replace the <img> part of the code with:
HTML Code:

<img src="images/misc/userhome.png" alt="Go to {vb:raw post.username}'s homepage" border="0" />
Let me know if that works or not. I haven't tried it myself.

txsbmw 01-13-2010 03:16 PM

Actually I just tried it and it does work!!

Robru 01-13-2010 03:45 PM

Don't forget include this https://vborg.vbsupport.ru/attachmen...1&d=1263237895 image in your /images/misc folder ! :)

Brandon Sheley 01-13-2010 04:40 PM

so it'll add X amount of home page links on the threads?
can you post a live demo so I can better understand the mod

thx for sharing :)

TheLastSuperman 01-13-2010 04:55 PM

Quote:

Originally Posted by Loco.M (Post 1954622)
so it'll add X amount of home page links on the threads?
can you post a live demo so I can better understand the mod

thx for sharing :)

Brandon... having a "Mike Moment" are we? :p

It simply adds a new icon to the postbit.. you see their icons for msn/yahoo etc so now there's a little house with a mouseover effect and they specify their home page by default via the usercp or when registering so your set ;).

Mike

VonDoom 01-13-2010 05:08 PM

Very Cool, I actually misunderstood its function myself. thought it just took you to forum home. lol i was kind of scratching my head at the purpose of that. Good stuff Tagged

txsbmw 01-13-2010 06:54 PM

LOL ok I added a little more to what this is used for :)

Dr.osamA 01-14-2010 10:52 AM

instaled

working well

thanx
________
DIGITAL VAPORIZERS


All times are GMT. The time now is 05:11 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.01164 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete