• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Using Thickbox in the chat?

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
3 posts • Page 1 of 1

Postby cebronx » Sat Sep 23, 2006 5:03 am

Hello everyone!
I have another question. I found out about thickbox and is really cool how it lets you access the anything in the same window and page. I was wondering if its possible to add it to the chatroom. I have already implemented in my forum and it works fine. But when I add it to the chatroom it doesn't work.
Thickbox needs three files that need to be called:
<script type="text/javascript" src="lbox/jquery.js"></script>
<script type="text/javascript" src="lbox/thickbox.js"></script>
<link rel="stylesheet" href="lbox/thickbox.css" type="text/css" media="screen" />
I have try adding this to my main page. And this is my other code.
Code: Select all
   rx = new RegExp('\[verso\](.+?)\[/verso\]','ig');
    msg = msg.replace(rx, '<a href="http://www.biblegateway.com/passage/?search=$1&version=60;?TB_iframe=true&height=400&width=800" class="thickbox">$1</a>');

So when I add this in my chatroom [verso]Juan3:16[/verso] it will create the link above but when you open that link its supposed to open with thickbox but it doesn't. I was wondering if there's another place I can add the java scripts and the css rather than the main page so it will work. Thanks in advance...
Last edited by cebronx on Sat Sep 23, 2006 5:04 am, edited 1 time in total.
Luis
cebronx
Member
 
Posts: 32
Joined: Mon Aug 28, 2006 3:22 am
Location: Bronx, NY
  • Website
Top

Postby phpfreechat » Sat Sep 23, 2006 10:53 am

Sorry but I don't understand what you are tring to do...
You want to open the chat in a tihickbox ?
Whenre is your chat script code ?
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby cebronx » Sat Sep 23, 2006 1:34 pm

No not trying to open the chat in a thickbox. I know that would work. But Im trying to open a webpage on a thickbox from a link in the chatroom. I have tried it and it doesn't work.
Luis
cebronx
Member
 
Posts: 32
Joined: Mon Aug 28, 2006 3:22 am
Location: Bronx, NY
  • Website
Top


Post a reply
3 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 8 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub