vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Mini Mods - Car Domain button in postbit (https://vborg.vbsupport.ru/showthread.php?t=160219)

SLY LS1 10-13-2007 10:00 PM

Car Domain button in postbit
 
This is good little mod for people with car forums as a lot of your members would have a Car Domain site.

1. Make a profile field

In Admin CP go to - User Profile Fields - Add New User Profile Field
Profile field type = Single-line text box
Title: Car Domain Profile
Description: Type your Car Domain ID number
You can leave the rest to default

**Note down the number of the field! Example: field16. You need to replace the fieldX in the next code with the number!**

2. Template changes - In postbit_lecacy & Postbit

Find:
Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]
After add:
Code:

<!-- Car Domain display start -->
<if condition="$post[fieldX]"><a href="http://www.cardomain.com/ride/$post[fieldX]" alt="View my Car Domain" target="_blank">
<img src="images/misc/im_cardomain.gif" border="0"></a>
</if><!-- Car Domain display end -->

3. Button Upload

Upload the attached image to your: /images/misc folder!


4. Add link in members profile "Contact Info: section

Edit template - "memberinfo"

Find:
Code:

<if condition="$show['homepage']">
                                <tr>
                                        <td>
                                                $vbphrase[home_page]:<br />
                                                <a href="$userinfo[homepage]" target="_blank" dir="ltr">$userinfo[homepage]</a>
                                        </td>
                                </tr>
                                </if>

Add above:
Code:

<if condition="$userinfo[fieldX]">
                                <tr>
                                        <td>
                                                Car Domain Profile:<br />
                                                <a href="http://www.cardomain.com/ride/$userinfo[fieldX]" target="_blank">Check out my Car Domain page</a>
                                        </td>
                                </tr>
                                </if>

Dont forget to change the X to your field number.

iogames 10-14-2007 05:00 PM

Can you do one for Zoints or MySpace page?

SLY LS1 10-14-2007 10:46 PM

Quote:

Originally Posted by iogames (Post 1359867)
Can you do one for Zoints or MySpace page?

You can pretty much change the wording to any of these type of sites.

You just need to make a 18 x 18 gif for the icon

Theres a facebook on here

RedGTiVR6 11-02-2007 07:14 PM

can we get a screenie of this in action?

rasp187 11-03-2007 09:45 PM

Works very well. Thanks.

sdavis2702 05-04-2008 11:12 AM

Awesome thanks :)

militarytuners 05-24-2008 02:24 AM

Excellent Hack


All times are GMT. The time now is 03:54 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.00980 seconds
  • Memory Usage 1,729KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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