Calling a block from the profile information

Ok so i have a "new block" in the profile field page called "MySiteURL"

 


https://gyazo.com/b83b7d5af25f5028a42ed5c1f8e9f594

 

They will enter in a URL address in this field.

Now i want to show it in a block on the profile page and in the block i want to make it say "My Site URL is 'mysiteurl.com'"

How exactly would I be able to call or "echo" the inputted text from the profile field?

Thanks

The Purple Puppy

Quote · 12 May 2018

You can place a profile field in its own block anywhere on the profile page. I'm attaching an example of what you want. In this instance, it appears on the top right and the remaining profile fields are in the middle column.

You can also use this technique to create a News column where your member can add his/her favourite news. Just replace the text box with an extended text box and your member will be provided with Tinymce to allow them to add Bold and other formatting.

  1. Create a new Header Block (Grey) and call it MyURL (System Name) and My Web Site (Caption). This is essential because you want the item to be in it's own block and that's what the header Block is for.
  2. Save the profile field you've just created in your example above and place it under the header block. It will be green. Do this for Member and Admin  in edit and view profiles.
  3. Go to pages Builder. You will see your My Web Site Block in the list of Inactive Items. Move it to any column and in any position.
  4. Return to the site and edit your profile. Enter your site URL and save.
  5. Return to the site and you'll see the URL listed where you want it. Further garnishing is up to you.
puppy1.jpg · 7.1K · 251 views
Quote · 12 May 2018

Well that works but only half way.

Now that i created the block. Lets say that I want to echo that information that they input, into a code.

 

Like this, They go in and fill out the required field of "myURL" and then lets say that I have a code that is like this

 

<?php
$tags = get_meta_tags('__inputtedURL__');

echo $tags['description']; 
?>

where __inputtedURL__ is the URL that the user had put into the required field. i want to make the block with that code but be different based on the URL that has as it will be different every time.

Does that make since?

I would have to call the inputtedURL part only, not the full block itself?

Quote · 12 May 2018
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.