TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,234
  • Total Topics: 21,353
  • Online today: 639
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 252
  • Total: 253
  • @rjen

Opening Flashchat in a new window (Cityscape Theme)

Started by guvenck, October 11, 2007, 11:32:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

guvenck

Hello,

I am using SMF 1.1.4 and TP0.9.8 with Cityscape_TP theme (cityscape_11final_tp).

I installed Flashchat and the Flashchat Mod 1.0a. It did not any Chat buttons to upper menu, so I manually opened up Themes/cityscape_11final_tp/index.template.php and added this to function template_menu:


// chat button
$context['menubox'][]=array(
'title' => 'Chat',
'link' => $scripturl.'?action=chat',
'chosen' => 'chat',
'memberonly' => false,
'guestonly' => false,
'permission' => '',
);


It added a chat menuitem to menubar, but unfortunately I couldn't make it open in a new window (a JS popup window is preferred). Any advices?

This website is proudly hosted on Crocweb Cloud Website Hosting.