vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   How to make profile field link in postbit? (https://vborg.vbsupport.ru/showthread.php?t=253580)

OurCouponHome 11-12-2010 11:55 PM

How to make profile field link in postbit?
 
I know how to add a profile field in the postbit but what if I want to make it a link?

I added this but I want to direct it to another page when it is clicked on:

<vb:if condition="$post['field8']"><dt>Wishlist</dt> <dd>{vb:raw post.field8}</dd></vb:if>


Thanks in advance! :)

Lynne 11-13-2010 03:18 AM

Code:

<vb:if condition="$post['field8']"><dt>Wishlist</dt> <dd><a href="page.php">{vb:raw post.field8}</a></dd></vb:if>

OurCouponHome 11-14-2010 06:49 PM

Sorry, I guess I should have said, how do I make it a hyperlink? Thanks Lynne! :) I need to make it a hyperlink.

Lynne 11-14-2010 08:52 PM

I made the field a hyperlink in the code above.

OurCouponHome 11-14-2010 10:50 PM

When I added it, it showed this Wishlist and then the thread link. I want just Wishlist and when you click on it, it goes to the link.

Lynne 11-14-2010 10:53 PM

Then put the link code around the word Wishlist?

HTML Code:

<vb:if condition="$post['field8']"><dt><a href="page.php">Wishlist</a></dt> <dd></dd></vb:if>

OurCouponHome 11-14-2010 10:58 PM

YAY! That one worked!! Thanks so much!!

--------------- Added [DATE]1289782963[/DATE] at [TIME]1289782963[/TIME] ---------------

Ok, dumb question...how do I get it on its own line and in bold? And maybe another color? It is next to another field right now.

Lynne 11-15-2010 03:21 AM

Put a non-breaking space in between the <dd></dd> - (I have to put spaces between it or it gets 'blanked' out - & n b s p ;

Then just change <dt> to <dt style="font-weight: bold; color: green">

OurCouponHome 11-15-2010 11:28 AM

OK, lynne...I'm sorry, you must think I am a complete moron at this point but you are so great! :)

I entered the code above and it put the link in but then it just comes up as a non-existent page of page.php not the link that I put in my User Profile Field.

Lynne 11-15-2010 01:31 PM

So you want it to link to field8? And is that a full URL? You can try:

HTML Code:

<a href="{vb:raw post.field8}">


All times are GMT. The time now is 09:39 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.01080 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_html_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