vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Adding more fields for Homepage URL? (https://vborg.vbsupport.ru/showthread.php?t=146053)

NRLMedia 04-29-2007 09:42 PM

Adding more fields for Homepage URL?
 
I'd like my members to be able to list their websites on their profile pages that are hyperlinked.

A similiar field like the profile field Homepage URL.

Example:

My Websites
Website 1
Website 1
Website 1
Website 1

How can I implement this? Is it possible for the links to have anchor text?

If you could provide the exact code to replace/add I'd appreciate it as I'm editing challenged. ;)

LEAD_WEIGHT 04-29-2007 10:05 PM

1 Attachment(s)
Question originally posted from http://www.vbulletin.com/forum/showthread.php?t=228240

Just edit two templates and repeat the information
template = modifyprofile = phrase = home_page_url
template = MEMBERINFO = phrase = home_page

Find in red and repeat in template: modifyprofile
Attachment 63789
Code:

                        <fieldset class="fieldset">
                                <legend><label for="tb_homepage">$vbphrase[home_page_url]</label></legend>
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
                                <tr>
                                        <td>$vbphrase[let_other_visitors_know_url]</td>
                                </tr>
                                <tr>
                                        <td>$vbphrase[home_page_url]<br /><input type="text" class="bginput" name="homepage" id="tb_homepage" value="$bbuserinfo[homepage]" size="50" maxlength="200" dir="ltr" /></td>
                                </tr>
                                </table>
                        </fieldset>


Find in red and repeat in template: MEMBERINFO
Attachment 63790
Code:


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


NRLMedia 04-29-2007 10:20 PM

Ok, I think I followed the directions. However, when i entered different urls, they didn't change in the profile.

It just used the 1st url as the 2 others.

LEAD_WEIGHT 04-29-2007 10:36 PM

Doh! I hate doing things on the fly.. You have another option is
Admin CP => User Profile Fields => Add New User Profile Field

NRLMedia 04-29-2007 10:52 PM

Quote:

Originally Posted by LEAD_WEIGHT (Post 1237866)
Doh! I hate doing things on the fly.. You have another option is
Admin CP => User Profile Fields => Add New User Profile Field

Well, the link isn't hyperlinked when I do that.

Hmm..

LEAD_WEIGHT 04-30-2007 01:44 AM

Have not used this, but you can ask the coder if it works on custom fields
https://vborg.vbsupport.ru/showthread.php?t=120833


All times are GMT. The time now is 05:32 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.01192 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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