Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

PFC in Shoutbox?

edited October 2007 in Vanilla 1.0 Help
I asked this in the PFC thread but it doesn't look like anyone saw it. So I ask, can this be done?

It looks like the PFC chat would work well if it was at the top of every page, you know with that little minimize thing. So people no matter where they are on the forum can expand that and chat. Is there an option for this? Or how can I get it to display on like the discussions list at the top of the page just below the banner?
Thanks

Comments

  • Options
    Ok, I get the picture. This must be an impossible task.. I just thought you'd be able to run it in a nugget or something.. I guess not. Oh well, thanks anyhow.
  • Options
    I made a nugget with this code in it. It showed up fine but only worked for me. I think thats because it had my login data. I couldn't find out how to make it grab the data from the forum. And I almost screwed everything up. Any help on how this could be fixed to work? <link rel="shortcut icon" href="/forum/themes/vanilla/styles/offroadingsubarus/favicon.ico" /> <link rel="stylesheet" type="text/css" href="/forum/themes/vanilla/styles/offroadingsubarus/vanilla.css" media="screen" /> <link rel="stylesheet" type="text/css" href="/forum/themes/vanilla/styles/offroadingsubarus/vanilla.print.css" media="print" /> <link rel="stylesheet" type="text/css" href="/forum/extensions/Nugget/nugget.css" /> <script type="text/javascript" src="/forum/js/global.js"></script> <script type="text/javascript" src="/forum/js/vanilla.js"></script> <script type="text/javascript" src="/forum/js/ajax.js"></script> <script type="text/javascript" src="/forum/js/ac.js"></script> <script type="text/javascript" src="/forum/extensions/JQuery/jquery.js"></script><style> .ProfileTitle.WithIcon .ProfileIcon { width: 80px; height: 80px; } #AccountProfile .Picture { width: 300px; height: 300px; } #Comments .CommentHeader { line-height: 80px; } #Comments .CommentHeader li div.CommentIcon { padding: 80px 0px 80px 80px; } li.User.Name .UserIcon { padding: 80px 0px 80px 80px !important; } li.User.Name.WithIcon { line-height: 80px; } </style> <div id="pfc_loader"> <div style="width:250px;background-color:#FFF;border:1px solid #000;padding:10px;position:relative;margin:auto"> <p style="padding:0;margin:0;text-align:center;"> <img src="http://img327.imageshack.us/img327/8071/indicatormediumgb6.gif" alt="" style="float:left;margin:0;"/> Chat loading ...<br style="margin:0"/>Please wait </p> </div> <script type="text/javascript"> // <![CDATA[ var pfc = null; // will contains a pfcClient instance var pfc_nickname = ; var pfc_nickid = ; var pfc_version = "1.0-beta11"; var pfc_clientid = ; var pfc_title = "Chat Room"; var pfc_refresh_delay = 5000; var pfc_max_refresh_delay = 60000; var pfc_start_minimized = true; var pfc_nickmarker = true; var pfc_clock = true; var pfc_startwithsound = true; var pfc_showsmileys = true; var pfc_showwhosonline = true; var pfc_focus_on_connect = true; var pfc_max_text_len = 400; var pfc_max_displayed_lines = 150; var pfc_quit_on_closedwindow = true; var pfc_debug = false; var pfc_btn_sh_smileys = true; var pfc_btn_sh_whosonline = true; var pfc_displaytabimage = true; var pfc_displaytabclosebutton = true; var pfc_connect_at_startup = true; var pfc_notify_window = true; var pfc_defaultchan = ["Main Lobby"]; var pfc_userchan = []; var pfc_defaultprivmsg = []; var pfc_userprivmsg = []; var pfc_openlinknewwindow = true; var pfc_bbcode_color_list = ["FFFFFF","000000","000055","008000","FF0000","800000","800080","FF5500","FFFF00","00FF00","008080","00FFFF","0000FF","FF00FF","7F7F7F","D2D2D2"]; var pfc_nickname_color_list = ["#CCCCCC","#000000","#3636B2","#2A8C2A","#C33B3B","#C73232","#80267F","#66361F","#D9A641","#3DCC3D","#1A5555","#2F8C74","#4545E6","#B037B0","#4C4C4C","#959595"]; var pfc_theme = "default"; var pfc_isready = false; /* prototype ajax config */ function pfc_loadChat() { var url = './extension.php?PostBackAction=PFC'; var params = $H(); params['pfc_ajax'] = 1; params['f'] = 'loadChat'; new Ajax.Request(url, { method: 'get', parameters: params, onSuccess: function(transport) { eval( transport.responseText ); } }); } function pfc_handleRequest(cmd) { var url = './extension.php?PostBackAction=PFC'; var params = $H(); params['pfc_ajax'] = 1; params['f'] = 'handleRequest'; params['cmd'] = cmd; new Ajax.Request(url, { method: 'get', parameters: params, onSuccess: function(transport) { eval( transport.responseText ); } }); } window.onload = function () { pfc = new pfcClient(); if (pfc_isready) pfc_loadChat(pfc_theme); } // ]]> </script> <script type="text/javascript" src="extensions/PFC/phpfreechat-1.0-beta11/data/public/js/compat.js"></script> <script type="text/javascript" src="extensions/PFC/phpfreechat-1.0-beta11/data/public/js/md5.js"></script> <script type="text/javascript" src="extensions/PFC/phpfreechat-1.0-beta11/data/public/js/cookie.js"></script> <script type="text/javascript" src="extensions/PFC/phpfreechat-1.0-beta11/data/public/js/image_preloader.js"></script> <script type="text/javascript" src="extensions/PFC/phpfreechat-1.0-beta11/data/public/js/myprototype.js"></script> <script type="text/javascript" src="extensions/PFC/phpfreechat-1.0-beta11/data/public/js/prototype.js"></script> <script type="text/javascript" src="extensions/PFC/phpfreechat-1.0-beta11/data/public/js/regex.js"></script> <script type="text/javascript" src="extensions/PFC/phpfreechat-1.0-beta11/data/public/js/utf8.js"></script> <script type="text/javascript" src="extensions/PFC/phpfreechat-1.0-beta11/data/public/js/sprintf2.js"></script> <script type="text/javascript" src="extensions/PFC/phpfreechat-1.0-beta11/data/public/js/activity.js"></script> <script type="text/javascript" src="extensions/PFC/phpfreechat-1.0-beta11/data/public/js/mousepos.js"></script> <script type="text/javascript" src="extensions/PFC/phpfreechat-1.0-beta11/data/public/js/createstylerule.js"></script> <script type="text/javascript" src="extensions/PFC/phpfreechat-1.0-beta11/data/public/js/pfcclient.js"></script> <script type="text/javascript" src="extensions/PFC/phpfreechat-1.0-beta11/data/public/js/pfcgui.js"></script> <script type="text/javascript" src="extensions/PFC/phpfreechat-1.0-beta11/data/public/js/pfcresource.js"></script> <script type="text/javascript" src="extensions/PFC/phpfreechat-1.0-beta11/data/public/js/pfcprompt.js"></script> <div id="pfc_notloading" style="width:270px;background-color:#FFF;color:#000;border:1px solid #000;text-align:center;margin:5px auto 0 auto;font-size:10px;background-image:url('http://img402.imageshack.us/img402/3766/stopcc3.gif');background-repeat:no-repeat;background-position:center center;"> <noscript> <p>JavaScript appears to be either disabled or unsupported by your browser. This web application requires JavaScript to work properly. Please enable JavaScript in your browser settings, or upgrade to a browser with JavaScript support and try again.</p> </noscript> <p><script type="text/javascript"> // <![CDATA[ if (!browserSupportsCookies()) document.write('Cookies appears to be either disabled or unsupported by your browser. This web application requires Cookies to work properly. Please enable Cookies in your browser settings, or upgrade to a browser with Cookies support and try again.'); else if (!browserSupportsAjax()) document.write('Ajax appears to be either disabled or unsupported by your browser. This web application requires Ajax to work properly. Please upgrade to a browser with Ajax support and try again.'); else if (!ActiveXEnabledOrUnnecessary()) document.write('ActiveX appears to be either disabled or unsupported by your browser. This web application requires Ajax to work properly. In Internet Explorer versions earlier than 7.0, Ajax is implemented using ActiveX. Please enable ActiveX in your browser security settings or upgrade to a browser with Ajax support and try again.'); else { $('pfc_notloading').style.display = 'none'; pfc_isready = true; } // ]]> </script></p> <a href="http://www.phpfreechat.net" style="text-align:center"><img src="http://www.phpfreechat.net/pub/logo_80x15.gif" alt="PHP FREE CHAT [powered by phpFreeChat-1.0-beta11]" /></a> </div> <!-- pfc_notloading --> </div> <!-- pfc_loader --> <div id="pfc_container"><!-- Will contains chat.html.tpl.php --><
  • Options
    BTW with it like var pfc_nickname = ; var pfc_nickid = ; it didn't work.. When it had my login name and a big string of numbers and letters in the id it did work, but only for me.
This discussion has been closed.