Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions

Reply
 
Thread Tools Display Modes
  #11  
Old 03-22-2009, 11:36 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TNCclubman View Post
Does anyone have an idea of what the javascript is to have the little edit pencil show up?
Sleuthing 101:

Take a look at the page source and see what is going on. If you did, you'd see something like this:
HTML Code:
    <dt class="shade" id="profilefield_title_1">Biography</dt>
    <dd id="profilefield_value_1">
        N/A
        <script type="text/javascript">
        <!--
        vBulletin.register_control("vB_ProfilefieldEditor", "1");
        //-->
        </script>
    </dd>
Then, do a search in your files for "register_control" and you'll find it in clientscript/vbulletin_global.js.

Also, since this is shown on the member.php page, it's a good idea to see what scripts get added on that page that don't get added on all the other pages. When looking at the page source, search for any scripts on there and you'll come across a couple scripts that have the word "edit" in them - "vbulletin_quick_edit_generic.js" and "vbulletin_profilefield_edit.js" And, right under where you find those scripts, you'll see some more lines that look useful that have the word "Edit" in them. Grab that too. Do I know if you need all that? No, I don't know, but it's a good place to start.
Reply With Quote
  #12  
Old 03-23-2009, 02:00 AM
Fuzz22 Fuzz22 is offline
 
Join Date: May 2006
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
That isn't telling us anything. Post your script and tell us which plugin you are using for it and tell us where - which template or line - you wish to use it on the homepage. I assume by homepage you mean the forum index? If not, you need to explain it better.
No, by homepage I mean a completely separate part of the site (not the forum) as I explained in my first post.

I wish to insert field5 (one of my User Profile Fields) into a sentence. I don't have a code yet as I'm not sure where to start. I know that if I was doing it on any forum page, then I'd use "$post[field5]" however this won't work and I'd like to know what I need to add to make that work. Hopefully that's a little more understandable
Reply With Quote
  #13  
Old 03-23-2009, 03:11 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, what query are you using to get the userinfo? You'll have to add to that query to get the field5 info.
Reply With Quote
  #14  
Old 03-23-2009, 05:16 PM
TNCclubman's Avatar
TNCclubman TNCclubman is offline
 
Join Date: Sep 2008
Posts: 690
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, got the pencil to show up and it links to the users 'edit details' page. Wanted it to just do an instant inline editing with the javascript... wondering if anyone's figured out exactly what I need in terms of the coding to do that... it kind of sucks that by clicking the icon they leave the page and have to search for that field to change it.
Attached Images
File Type: jpg whatsonyourmind.jpg (14.3 KB, 0 views)
Reply With Quote
  #15  
Old 03-23-2009, 06:01 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You really need to start your own thread about this and post the code you are using and template changes, etc. We really can't help when we have no clue what you have done and where, etc.
Reply With Quote
  #16  
Old 03-24-2009, 05:17 AM
Fuzz22 Fuzz22 is offline
 
Join Date: May 2006
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Well, what query are you using to get the userinfo? You'll have to add to that query to get the field5 info.
None as yet, I'd like to know what query I should use.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:30 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07656 seconds
  • Memory Usage 2,236KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (1)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete