241
Draven
Re: 3rd party chat advice needed
  • 2003/10/7 20:03

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


Quote:

DobePhat wrote:
Wow thanks for that! Do you place in a custom block then modify a template or creat a new template file for it with the theme?


No, it's made as a real block. Put the php file in a folder called "blocks" and name it inchat.php. Put the template file in the template/blocks/ folder (If I remeber you have to create the blocks folder inside templates) and name it "inchat.html".

Then add the follwing to the xoops_version file:

Quote:

// blocks
$modversion['blocks'][1]['file'] = "inchat.php";
$modversion['blocks'][1]['name'] = "Who's in chat";
$modversion['blocks'][1]['description'] = "Shows Article menu";
$modversion['blocks'][1]['show_func'] = "b_inchat_show";
$modversion['blocks'][1]['template'] = 'inchat.html';


Reload the module and you should be fine.

As for the install, I just did it the way the instructions say to. I haven't made it so the SQL is installed by the xoops_version yet. Didn't see a point since I can't distribute the chat to anyone. Sorry.



242
Draven
Re: 3rd party chat advice needed
  • 2003/10/7 13:06

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


Quote:

setaside wrote:
Would you be willing to release that "Who's in Chat" block that you made for it?


The block function
Quote:
function b_inchat_show() {
global $xoopsDB,$xoopsUser;

$block = array();

$result = $xoopsDB->query("SELECT c.name AS name, d.uid AS uid FROM chat_users c, ".$xoopsDB->prefix("users")." d WHERE NOW( ) - datetime < 12 AND d.uname LIKE c.name");


while ( $myrow = $xoopsDB->fetchArray($result) ) {
$block['users'][] = $myrow;
}
$block["count"] = count($block['users']);
return $block;
}{


The template.
Quote:
<table width="99%" class="whitebg" border="0" cellspacing="1" cellpadding="3">
<tr>
<td class="odd"><b><{$block.count}></b> user(s) are in chat</td>
</tr>
<{if $block.users}>
<tr>
<td class="even">
<{foreach from=$block.users item=user}>
<a href="<{$XOOPS_URL}>userinfo.php?uid=<{$user.uid}>"><{$user.name}></a>,
<{/foreach}>
</td>
</tr>
<{/if}>
<tr>
<td class="odd">
<a href="<{$XOOPS_URL}>/modules/flashchat/">Join Chat Room Now!</a>
</td>
</tr>
</table>



243
Draven
Re: 3rd party chat advice needed
  • 2003/10/6 21:24

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


Quote:

You do need to make some chat script changes, but there is a detailed textfile on it.

Changes include, how many members in a room, server settings (Not taken from mainfile.php), and some other cool features, like opening and closing times of chat.


True. I meant I didn't need to hack anything to get it to work, but yes there a some config settings that need to be set. I also created a "Who's In Chat" block that I now use in my forums so people can see when there are people in chat.



244
Draven
Re: 3rd party chat advice needed
  • 2003/10/6 17:57

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


Quote:

DobePhat wrote:
I see you are indeed using the chat I was considering. I like it. Did you purchase it? Was it easy to adapt? And what version of XOOPS are you using?


Yes, I did purchase it and it worked perfectly with my 2.0.3 version of Xoops. Didn't have to hack anything. Although I might to add new features. ;)



245
Draven
Re: 3rd party chat advice needed
  • 2003/10/5 23:18

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


I'm running flashchat on my site right now.http://www.gaining-mass.com/. YOu have to register to try it though.



246
Draven
Re: Banner Management?
  • 2003/9/30 0:00

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


I've sent the mod to Catz so it should be up shortly.



247
Draven
Re: Banner Management?
  • 2003/9/29 4:02

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


As soon as I can find somewhere to upload it to I will. I don't have the bandwidth to spare. :(



248
Draven
Re: Banner Management?
  • 2003/9/26 5:02

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


I've created a module using the current version of phpadsnew (And it works, unlike the one found in the modules section here) if you're interested. Personally I don't think it's overkill, but it's up to you.



249
Draven
Re: another auto-login by GIJOE for newbb & ipbm xoopsers
  • 2003/9/17 16:30

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


Well I got everything to work but now there seems to be another problem. All my users are complaining that forum posts are marked as read before they've even looked at them. Now if you don't check the forum within basically a minute of a new post it automatically gets marked as read. Wierd. I had to remove this hack as I have no idea what could be doing it. I assume it's a cookie issue.

UPDATE: Never mind I figured it out. The problem is the latest release of IPBM already has an autologin hack in it. DOH!



250
Draven
Re: another auto-login by GIJOE for newbb & ipbm xoopsers
  • 2003/9/14 20:47

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


HMmm, doesn't seem to be working. It autologs in for about an hour but longer than that it makes you login again. It did that before I installed this hack, any ideas?




TopTop
« 1 ... 22 23 24 (25) 26 »



Login

Who's Online

88 user(s) are online (64 user(s) are browsing Support Forums)


Members: 0


Guests: 88


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits