• 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

[FIX] openlinknewwindow does not work in 0.9.1

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

Post a reply
3 posts • Page 1 of 1

Postby cactux » Fri Apr 07, 2006 10:08 pm

Hello,

It seems the param openlinknewwindow does not work in 0.9.1.
I put this :
$params["openlinknewwindow"] = true;

I closed the browser, emptied the cache, then went to the chat to test, it does not work: links open in the same window :-(

Yann
cactux
Member
 
Posts: 16
Joined: Wed Feb 15, 2006 11:08 pm
Location: France
  • Website
Top

Postby phpfreechat » Sat Apr 08, 2006 9:46 am

Right, I just fixed it in the svn.

If you want to patch manualy the source, uses this patch :
Code: Select all
Modified: trunk/themes/default/templates/pfcclient.js.tpl.php
==============================================================================
--- trunk/themes/default/templates/pfcclient.js.tpl.php (original)
+++ trunk/themes/default/templates/pfcclient.js.tpl.php Fri Apr  7 16:27:02 2006
@@ -395,7 +395,7 @@
        var range1 = 7+offset-delta;
        var range2 = 7+offset+delta;
        if (ttt[i].match(rx_url))
-          msg = msg + '<a href="' + ttt[i] + '">' + (delta>0 ? ttt[i].substring(7,range1)+ ' ... '+ ttt[i].substring(range2,ttt[i].length) :  ttt[i]) + '</a>';
+          msg = msg + '<a href="' + ttt[i] + '"<?php if($openlinknewwindow) echo ' target="_blank"'; ?>>' + (delta>0 ? ttt[i].substring(7,range1)+ ' ... '+ ttt[i].substring(range2,ttt[i].length) :  ttt[i]) + '</a>';
        else
        {
          msg = msg + ttt[i];
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby cactux » Sat Apr 08, 2006 1:43 pm

Salut

Bien sûr ça marche :-) / off course it works.

Merci pour la rapidité ! / Thanks for being so fast !

Yann
Last edited by cactux on Sat Apr 08, 2006 1:44 pm, edited 1 time in total.
cactux
Member
 
Posts: 16
Joined: Wed Feb 15, 2006 11:08 pm
Location: France
  • 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 13 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