vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Profile Field in Custom BB Code? (https://vborg.vbsupport.ru/showthread.php?t=151752)

evenmonkeys 07-09-2007 07:12 AM

Profile Field in Custom BB Code?
 
I've been searching but can't find out how to do it this way... so yeah... I'm sort of lost.

I'm trying to create my own bbcode that will display a profile field. For instance, I want to make it display their Location. Don't make sense of it... just consider that it does make sense.

How can I do this? I'm mainly focusing on putting the outcome into signatures, but signatures show in more areas than just the postbit. The following html replacement does not work... so I'm in need of help.

Code:

<div>$post[field10]</div>
Is there a way to parse that within a BB code?

snakes1100 07-09-2007 09:54 PM

You don't need to do it with bbcode, just copy the <if> statemnet for the field id into the sig area of the postbit/postbitlegacy template

evenmonkeys 07-10-2007 03:25 AM

I don't want to do that though. I want them to be able to choose where it goes. I want them to be able to choose where [tag][/tag] goes in their signature.

snakes1100 07-10-2007 03:59 AM

Well you still could do it by div tag'ing it for placement, was just trying help ya bud, rather than going to create a bunch of un-deed coding.

evenmonkeys 07-10-2007 04:35 AM

That's what I've been doing, but I don't want it to be in a solid place. I want the user to be able to move it around. I appreciate the reply though.

evenmonkeys 07-12-2007 07:45 AM

Bump.

Apophis 07-26-2007 01:49 PM

Quote:

Originally Posted by snakes1100 (Post 1287253)
Well you still could do it by div tag'ing it for placement, was just trying help ya bud, rather than going to create a bunch of un-deed coding.

I'm trying to do something similar to this but don't understand what you mean by div tagging it. I've been trying to take the awards display data from the Yet Another Awards product and allow users to choose placement via bbcode. I've got it displaying in the signature area right now, but I want to allow more flexibility in its placement. I've had no luck after reading and trying various solutions for the past few days.

Care to elaborate on your suggestion?


All times are GMT. The time now is 01:10 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.00965 seconds
  • Memory Usage 1,721KB
  • 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
  • (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