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

RedHacker 01-14-2010 07:58 PM

Installed but not show anything and also upload image....

txsbmw 01-15-2010 06:33 PM

Is your homepage filled out in your profile? If that field is left blank it will not show.

nextslit 01-28-2010 02:34 AM

1 Attachment(s)
Quote:

Installed but not show anything and also upload image....
In postbit_legacy find :

HTML Code:

{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
Add below :
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-->

https://vborg.vbsupport.ru/external/2010/01/18.jpg

https://vborg.vbsupport.ru/external/2010/01/18.jpg


Thanks for sharing txsbmw :)

RedHacker 01-28-2010 05:26 AM

Quote:

Originally Posted by nextslit (Post 1968580)
In postbit_legacy find :

HTML Code:

{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
Add below :
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-->

https://vborg.vbsupport.ru/attachmen...1&d=1264653206

https://vborg.vbsupport.ru/attachmen...1&d=1264653396


Thanks for sharing txsbmw :)

I will try and the postbit_legacy and again cant show...

goran424 03-30-2010 04:50 AM

Is it possible to have it restricted only to certain groups?

Reason: I don't want newbies members on my site pimping their forums which are rival to mine. I would like to see only staff and higher ranked user groups offered this option.

goran424 04-16-2010 09:46 AM

Quote:

Originally Posted by goran424 (Post 2012653)
Is it possible to have it restricted only to certain groups?

Reason: I don't want newbies members on my site pimping their forums which are rival to mine. I would like to see only staff and higher ranked user groups offered this option.

Guess not.....

txsbmw 04-28-2010 05:36 PM

Quote:

Originally Posted by goran424 (Post 2012653)
Is it possible to have it restricted only to certain groups?

Reason: I don't want newbies members on my site pimping their forums which are rival to mine. I would like to see only staff and higher ranked user groups offered this option.

You might be able to use template conditionals. This will not stop them from filling out their homepage or it showing on their profile.


All times are GMT. The time now is 02:07 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.01132 seconds
  • Memory Usage 1,758KB
  • 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
  • (7)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)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