vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   MSN & .js - New Window (https://vborg.vbsupport.ru/showthread.php?t=280123)

ssdevious 03-15-2012 07:10 PM

MSN & .js - New Window
 
Hello,

after 3 days of desperate attempts to explain vBulletin support staff that I don't need any help with writing any code, only a simple advice, where is located script and code to MSN / Yahoo / AIM pop-out window, I've decided to give up and create a topic here.

User's postbit --> small MSN icon --> you click it --> new, small window pops out...

This is what I want to figure out, how is this being done. Apparently a .js, right? But which .js and where is located the appropriate file, containing the code, which makes it attached to user profile fields - to those 4 default ones.

Thanks,
~tEh'Pâr4d0x

Iain M 03-15-2012 08:05 PM

Hey Paradox,

The function is in clientscript/vbulletin-core.js, called imwindow. (around line 1253)

The templates are:
http://img14.imageshack.us/img14/709...5b38a2d097.png

ssdevious 03-15-2012 08:32 PM

Oi, thanks again.

I will play a bit with it, see, if I can port it into my new "User Profile Fields".

Best Regards,
~tEh'P?r4d0x

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

I've got one additional question.

"{vb:raw block_data.imbits}" - how come that the .js is somewhat automatically linked to this?

It seems to have a problem with getting user's id in my code:

Code:

<vb:if condition="$social['msn']">
<a href="javascript://" onclick="imwindow('msn', '{vb:raw userinfo.userid}', 440, 270); return false;"><img src="images/postbit_social/msn.png" onmouseover="this.src='images/postbit_social/msn_a.png'" onmouseout="this.src='images/postbit_social/msn.png'" alt="{vb:rawphrase send_message_via_msn_to_x, {vb:raw post.username}}." /></a>
</vb:if>


Giving me:
Quote:

No User specified. If you followed a valid link, please notify the administrator

Thanks in advance,
~tEh'P?r4d0x


All times are GMT. The time now is 01:21 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.01695 seconds
  • Memory Usage 1,713KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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