vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Custom Profile Field - Hidden to Admins (https://vborg.vbsupport.ru/showthread.php?t=66233)

Drakah 06-16-2004 08:20 PM

Custom Profile Field - Hidden to Admins
 
I have read a few posts about the editing of the Custom Profile Field, namely the one about Magelo Linking.

Here is my concern:

I have a Custom Profile field that people enter in their URL for their Magelo Link, but I need it to be automatically converted into a URL after they submit it. The URL is always the same except the numbers.

Example: http://www.magelo.com/eq_view_profile.html?num=0000000
Where 0000000 would be their Character number.


Question 1:
How would I be able to make a Custom Profile Field that all they would have to do is enter the #'s instead of the whole URL and would be correctly linkable to open a new window?

Currently I have them typing in the whole field of the entire link, and I edited the MEMBERINFO, with an added IF statement to show this 'Field' as a Hyperhink. But it now shows the un-hyperlinked Field as well as the one I just added manually in the template. I now see both because I am an Admin, but Users only see the Hyperlinked one.

Question 2:
How would I edit to make certain profile fields NOT even show to Admins? Namely this field that they typed in their URL?

Thanks much!!

Drakah 06-17-2004 03:43 AM

Nevermind, was a silly simple thing I could almost kick myself :rolleyes:


I figured it was not a big deal that they would enter in the whole URL as that would probably be easier anyway for a cut and paste method on their side. So I went back to square one.

I reverted back the MEMEBERINFO to take out my IF statement and headed back to the memberinfo_customfields template.

And replaced it with this:
(Where XX would be the FieldID number)

PHP Code:

<if condition="$profilefield['value'] != '' ">
<
tr>
    <
td>
        <
strong>$profilefield[title]</strong>:<br />
        
        <if 
condition="$profilefield[profilefieldid] == XX">
        <
a target="_blank" href="$profilefield[value]">Magelo Link Profile</a>
        <else />

        
$profilefield[value]
        </if>
    </
td>
</
tr>
</if> 

then I set back the field in the AdminCP to be able to be shown on the Profile page once again, and wham, there it was, all nice like :o


All times are GMT. The time now is 07:28 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.00999 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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