Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-20-2011, 01:55 PM
st@rsky st@rsky is offline
 
Join Date: Feb 2006
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Problems with the ?Name Suggestion? Autocomplete Javascript Functionality

Hi Guys!

I'm customising my "pm_newpm" template and everything is working properly except for one little issue which is the position of the name suggestion table.

For this part I'm still using the custom functionality of vB but when the suggestion comes up the position is wrong. I've tried to modify the CSS and the javascript files without any positive result.

Do know where the position is declared, as I’ve said, it isn't in the CSS or JS files. Attached is an image demonstrating what I am seeing currently.

Can anyone help?

Many thanks in advance,

Antonio
Attached Images
File Type: jpg name_suggestion.jpg (52.5 KB, 0 views)
Reply With Quote
  #2  
Old 07-20-2011, 02:29 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think it's this section from the pm_newpm template:

HTML Code:
<div class="vbmenu_popup" id="pmrecips_menu" style="display:none; z-index:50"></div>
						<script type="text/javascript">
						<!--
						vbmenu_register('pmrecips', true);
						recip_sugg = new vB_AJAX_NameSuggest('recip_sugg', 'pmrecips_txt', 'pmrecips');
						<if condition="$show['sendmultiple']">recip_sugg.allow_multiple = true;</if>
						//-->
						</script>
I believe it's the location of the <div class="vbmenu_popup" id="pmrecips_menu"... </div> that determines where the popup appears.
Reply With Quote
  #3  
Old 07-20-2011, 08:55 PM
EquinoxWorld EquinoxWorld is offline
 
Join Date: Nov 2009
Location: Naples
Posts: 354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am very much interested in utilizing this too on my own mod. Is it as simple as adding the form field between the divs wherever the form is located? Any information on this or any other resources that I can utilize would be very helpful. Sorry for bogarding your thread st@rsky
Reply With Quote
  #4  
Old 07-21-2011, 08:38 AM
st@rsky st@rsky is offline
 
Join Date: Feb 2006
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@EquinoxWorld

No problem at all You can use name suggestion just replicating the JS function which will manage everything for you. I've done it before and it's quick and easy

@kh99

First of all thanks for your reply.

Sorry but I've not explained my problem clearly.
When the suggestion list came up and I inspect the element the properties are the following

HTML Code:
<div class=”vbmenu_popup” id=”pmrecips_menu” style=”position: absolute; z-index: 50; top: 480px; left: 277px; clip: rect(auto auto auto auto); display: none;”>

I can't find where those properties are defined, I've searched more or less everywhere ,I've also tried to move it manually and to remove the style property using JS but I see no changes. I need it in the right position and I also need to redefine some of the style properties.

Thanks in advance
Attached Images
File Type: jpg ns.jpg (69.0 KB, 0 views)
Reply With Quote
  #5  
Old 07-25-2011, 12:28 PM
st@rsky st@rsky is offline
 
Join Date: Feb 2006
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any news?
Reply With Quote
  #6  
Old 07-25-2011, 01:29 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The position is set dynamically by javascript that's in clientscript/vbulletin_menu.js, at the time the menu opens. The top is set to the top of a certain object, plus the offsetHeight of that object. Obviously that's not working in your case, but I'm not sure why that would be. Maybe it's using the wrong object for some reason. I'll look at it more, but I wanted to post this in case it gives you an idea.

As far as the other style properties, I think if you list an additional style in the "class" attribute you could add some css to override the color, font, etc.
Reply With Quote
Reply


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 08:28 AM.


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.04129 seconds
  • Memory Usage 2,232KB
  • 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
  • (2)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (2)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete