vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   AIM template modification problem... (https://vborg.vbsupport.ru/showthread.php?t=49744)

JediSJ 03-07-2003 03:52 AM

AIM template modification problem...
 
Note: I've highlighted the relevant sections of the code in yellow.

I made a small modification to the default AIM template so that it would work more smoothly. The original code listed below is straight from vB - it uses javascript to bring up an AIM window and you can message people from that window.

Code:

&nbsp;&nbsp; <a href="javascript:aimwindow('$userinfo[aim]')">
<img src="https://vborg.vbsupport.ru/images/aim_icon.gif"
alt="Send an AIM message to $userinfo[username]" border="0"></a>

I found out that you can use straight HTML to launch an AIM window and changed the code to the following:

Code:

&nbsp;&nbsp; <a href="aim:goim?screenname=$userinfo[aim]&amp;message=Hello+Are+you+there?">
<img src="https://vborg.vbsupport.ru/images/aim_icon.gif"
 alt="Send an AIM message to $userinfo[username]" border="0"></a>

The problem that I'm having only affects users who's screen names have spaces in them. When the link is clicked, it pops up a message box correctly, but the only the first word of the screen name is present. For example, my screen name is Jedi SchattenJgr - when the link is clicked, it pops up a message box to Jedi.

Anyone know of a way to fix this?

EDIT: I know how to fix this in straight HTML (you just add a '+' where the space is) but since vB uses $userinfo[aim] I don't know how to incorperate the +

jibious 04-24-2003 08:14 PM

i PM'd you...

filburt1 04-24-2003 08:20 PM

If you have a fix please post it publicly so the community can benefit. That's what it's here for. :)

Chris Gwynne 04-24-2003 08:20 PM

The reason vB have used it as a pop-up is because they also include a AIM window built into vB that you can use. :)

jibious 05-06-2003 02:33 PM

filburt, i didnt post b/c Tigga hadn't taken a look yet. anyhow, here's the thread where things are deduced. theres also a thread on vb.com about this. any chance on talking to steve or someone and letting them know this is an issue that should most likely be addressed in vB3 (he doesn't seem to believe it).

https://vborg.vbsupport.ru/showthrea...threadid=52011


All times are GMT. The time now is 02:58 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.00994 seconds
  • Memory Usage 1,719KB
  • 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)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete