Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Please help with integrating an applet, a template, and Vbulletin Details »»
Please help with integrating an applet, a template, and Vbulletin
Version: , by Caliber Caliber is offline
Developer Last Online: Oct 2008 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-21-2002 Last Update: Never Installs: 0
 
No support by the author.

Hello all,

We are trying to integrate Volano chat into our Vbulletin. Volano looks like a great chat program. But I am having a hard time passing the Vbulletin username to volano.

Here's the applet:

<applet codebase="http://www.mywebsite.com/vcclient" archive="COM/volano/WebVolanoChat.jar" code="COM.volano.WebVolanoChat.class" width="500" height="300">
<param name="cabbase" value="COM/volano/VolanoChat.cab">
<param name="color" value="#ffffff">
<param name="foreground" value="000080">
<param name="color.background" value="#C000FF">
<param name="color.foreground" value="#000040">
<param name="font.default" value="Verdana, Arial, Helvetica, sans-serif">
<param name="group" value="Platinum Chat Room">
<param name="text" value="english.txt">
<param name="username" value="$username">
<param name="profile" value="http://boards.mywebsite.com/forum/member.php?s=&action=getinfo&userid=$username">
<param name="member" value="false">
</applet>

When I paste this applet into an existing template, it loads just fine and the Vbulletin username is already loaded into the applet. Additionally, the profile for the user is loaded as well.

But I need the applet to appear in a pop-up window and when I use javascript to call a web page containing the applet, since it is not loaded from within the Vbulletin system, the username and profile do not load.

What I think I need to do is create a new template, let's call it volano and a php page, let's call it volano.php. I think the volano template should contain the applet, and when a user clicks of the javascript popup link, it should open the volano.php page.

What I do not know how to do is to get the volano.php page to pull the volano template from vbulletin. Am I on the right track, or is there a better way to do this? Any help would be greatly appreciated.

We also have several custom vbulletin projects that we would love to pay a developer to take on for us. We pay well, and we run what is possibly the largest and most active vbulletin site. http://boards.elitefitness.com

Many thanks,
Paul

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-21-2002, 01:37 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok create a page, call it volano.php:
Code:
<?php
error_reporting(7);
require('./global.php');
eval("dooutput(\"".gettemplate("volano")."\");");
?>
Now make sure everything you need is in the 'volano' template, and link to volano.php.

BTW, use $bbuserinfo[username] in the template, not $username.
Reply With Quote
  #3  
Old 03-21-2002, 02:08 PM
Caliber Caliber is offline
 
Join Date: Feb 2002
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks FireFly,

Worked great! Only one small problem, if a user has a space in his username, his profile will not pull up correctly. Any suggestions for a work around?

Also, if you have any free time on your hands, we would love to talk about a larger size project for our site.

Again, many thanks.

Paul
Reply With Quote
  #4  
Old 03-21-2002, 02:11 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, stick this code in the file right after the require() line:
Code:
$urlencusername = urlencode($bbuserinfo['username']);
$htmlusername = htmlspecialchars($bbuserinfo['username']);
Now use $htmlusername in the username parameter, and $urlencusername in the profile parameter.

E-mail me if you wish with more information about the project.
Reply With Quote
  #5  
Old 05-13-2002, 12:18 PM
GrphicImprssion's Avatar
GrphicImprssion GrphicImprssion is offline
 
Join Date: Jan 2002
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am working on a Chat integration for my board, I know all the paramaters to allow the Java Applet to access to usernames and profiles. But i have one small problem..... My host (who is provideing the Java Chat function has set up the system files, and class files for the application (volano) to only be accessed by a page located in a certain place and certain name.
Example:
my board is at : ww w. mysite.com / index .php have the setup for the chat at w ww. my domain.com/ volano .php but the chat server will only allow access from volano.hostingcompany.com / mydomain name / chat .htm As you can see, it is hosted on a different server. So the ultimate question is: Is their a way to allow the volano. php page to redirect to chat.htm AND fill in the paramaters needed $ urlencusername and $ htmlusername in the Java Applet that is housed on the html page?

thanks
Jason
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 11:18 PM.


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.03711 seconds
  • Memory Usage 2,239KB
  • Queries Executed 18 (?)
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
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)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_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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete