vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How to get the javascript edit for profile field on another page? (https://vborg.vbsupport.ru/showthread.php?t=209233)

Lynne 03-24-2009 01:29 PM

Glad you got it to work.

You might want to post the template code that includes the avatar so we can see what html you are currently using. Also, post a few lines above and below the area of interest.

whitesoxfan5622 04-15-2009 10:41 PM

I tried using this, but when i click the pencil, i get a popup saying undefined. Any help would be appreciated.

Thanks!

Here is the code im using:
Code:

<!-- ########## STEAM ID ######### -->

<script type="text/javascript" src="http://extremeg.org/forum/clientscript/vbulletin_profilefield_edit.js?v=$vboptions[simpleversion]"></script>

    <tr><td class="alt1" nowrap align="left">

<fieldset>
      <dt class="shade" id="profilefield_title_9">Steam ID:</dt>
    <dd id="profilefield_value_9">
        $bbuserinfo[field9]
        <script type="text/javascript">
        <!--
        vBulletin.register_control("vB_ProfilefieldEditor", "9");
        //-->
        </script>
    </dd>
</fieldset>

    </td></tr>
<!-- ########## /STEAM ID ######### -->

http://www.extremeg.org/index.php?pageid=testinput thats the page its on if you want to see the error.

TigerC10 04-16-2009 12:35 AM

I believe the issue is that you blindly copied the code without altering it to fit your page.

Here's a snippet from your page source:

Code:

                <tbody id="collapseobj_module_12" style="">
                       
                                <tr>
                                        <td class="alt1">
                                                <!-- ########## STEAM ID ######### -->

<script type="text/javascript" src="http://extremeg.org/forum/clientscript/vbulletin_profilefield_edit.js?v=382"></script>

    <tr><td class="alt1" nowrap align="left">

<fieldset>
      <dt class="shade" id="profilefield_title_9">Steam ID:</dt>
    <dd id="profilefield_value_9">
       
        <script type="text/javascript">
        <!--
        vBulletin.register_control("vB_ProfilefieldEditor", "9");
        //-->
        </script>
    </dd>
</fieldset>

    </td></tr>
<!-- ########## /STEAM ID ######### -->
                                        </td>
                                </tr>
                       
                </tbody>

Do you notice how you've inserted code incorrectly? <tr><td> <tr><td></td></tr> </td></tr>

Try fixing that.

whitesoxfan5622 04-16-2009 06:39 PM

Ok, thanks. I will try this.

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

I figured it out. I was making a page in VBa, but the index.php file was not under /forum. Once i moved it, it worked.

tommac3 04-26-2009 10:41 PM

I would like to do something similar. I started a seperate thread.

https://vborg.vbsupport.ru/showthread.php?p=1799453

Basically I would like to add a "pencil" somewhere that will allow the member to edit a field in his profile. I would prefer a text box to a pencil ... but I will take a pencil if it is easier.


All times are GMT. The time now is 02:00 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.02511 seconds
  • Memory Usage 1,725KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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