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

Recent

Welcome to TinyPortal. Please login or sign up.

May 22, 2024, 05:38:25 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,197
  • Total Topics: 21,221
  • Online today: 226
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 177
  • Total: 177

[TP 1.0.5 B1] [Chat-Mod] PJIRC-Article Integration with CPanel

Started by Vorspire, August 25, 2008, 01:41:39 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Vorspire

Hey all, I have been working on a few new ways to integrate the PJIRC client into TinyPortal, without having to use an installation package or modifying any distro/default SMF or TP files.

This modification is a completely manual install, it is not database driven and has no settings or control panel in the admin area of TP/SMF. BUT it does come with a very diverse "settings.php" file where you may hard-code all of the settings to your liking. -Dynamic settings are not really needed for PJIRC, but I may add them in the future.

For now, this modification utilizes the TinyPortal PHP Articles to display itself as a unique page on your website.

So here you go, have fun! :)


/***************************************************************************
*                   TinyPortal-PJIRC Integration v1.0.0a
*                            -------------------
*   begin                : August 25, 2008
*   copyright            : (C) Vorspire Networks, New Age Designs
*   email                : admin@vorspire.com
*
*   $Id: TP-PJIRC,v 1.0.0a 2008/08/25 01:06:14 Vorspire $
*   $Author: Vorspire $
*   $Date: 2008/08/25 01:06:14 $
*
*
***************************************************************************/

/***************************************************************************
*
*   This program is free software; you can redistribute it and/or modify
*   it under the terms of the GNU General Public License as published by
*   the Free Software Foundation; either version 2 of the License, or
*   (at your option) any later version. Other licenses may apply, see PJIRC
*   Client docmentation provided. Use at own risk.
*
***************************************************************************/

//AP A:1 - Requirements

*SMF 1.1.5 or higher
*TinyPortal 1.0.5 Beta 1 or higher
*Administrator Access
*FTP Access
*Runtime Java, SUN Java or Java Runtime Enviroment (JRE)

                             -------------------


//AP A:2 - Installation

Installation is extremely simple!

All you have to do is upload the entire "webchat" folder to your forum
and edit the "settings.php" provided in the "webchat" directory.

When you have successfully uploaded everything and you have your
"settings.php" the way you like it, all you have to do now is create
a new "PHP Article" using your Article Manager in the Admin Section of
TinyPortal!

You will only need two very simple lines in this article's edit text-area,
which are provided in "Article Code.txt".

When you save your article, you can access it like any other article and it
should load and process the PJIRC client without any problems!

                             -------------------
                             
                             
//AP A:3 - Credits & Such

PJIrc Client - www.pjirc.com
TinyPortal - www.tinyportal.co.uk
SMF - www.simplemachinesforum.com
Vorspire Networks - www.vorspire.com

                             -------------------
                             

//AP A:4 - Demo's & Previews

You can visit this link for a preview of how this application will work;
www.rpk-uo.com?page=webchat
 
                             -------------------                         
                             



TP-PJIRC by Vorspire
Change-Log:


-----------------
Version 1.0.0a:

First release.


-----------------
Version 1.0.1:

*Added more detailed descriptions to some settings in settings.php
espcially those for the Client.

*Added/fixed the missing variable/var $IsStaff

*Moved the $Version variable to the main webchat.php


-----------------
Version 1.1.0:

*Added Perform and Commands to Settings.php

*Added custom commands to CPanel, editable in Settings.php

*Added death event sink if file paths do not exist,
shows error and ways to fix it.


If the attachment doesn't work, please PM me and i will send you a link to the update.

Ken.

Thanks for posting your code Vorspire, unfortunately the zip download is not working for me.  :)
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

Vorspire

Sorry about htat, that is unusual. I have provided a download location for future reference. But this may only be temporary.

Ken.

" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

barnuthin

QuoteNOTE: MAKE SURE THAT YOUR SETTINGS.PHP
"file_path" and "fq_url" are set correctly!!!

if i uploaded to the root directory - what would these two lines read?

Vorspire

Hmm, you would not have to edit them at all if you used the root directory :)


//PJIRC Path: Fully qualified file path to the PJIRC folder/directory
//Assuming that you have uploaded to your ROOT SMF Directory
$PJRequired['file_path'] = $boarddir . "/webchat";

//PJIRC URL: Fully qualified hyperlink to the PJIRC folder/directory
//Assuming that you have uploaded to your ROOT SMF Directory
$PJRequired['fq_url'] = $boardurl . "/webchat";


I'm sorry, I had noticed an inconsistency in the Settings.php am repairing and updating the new archive now. Please be patient :)

jepot

very nice work :)
some questions:
1. How can I resize the part thatshows the users online?


2. I have not changed this part that shows your site's url. What is this code for?

Vorspire

You can resize the online list by changing this line:

$PJTheme['nicklist_width'] = "50";


And you can change these;

//Channel List: Privides Auto-Join and Join Buttons for these channels (limitless)
//Syntax: Array( "< name >", "< address >", "< auto-join? >", "< mods only? >" )
//Syntax: Array( "Name", "#Address", "true", "false" )
//
$PJChannels[]=Array( "Main", "#RPK.UO", "true", "false" );
$PJChannels[]=Array( "Staff", "#RPK.UO.STAFF", "true", "true" );
$PJChannels[]=Array( "Events", "#RPK.UO.EVENTS", "true", "false" );
$PJChannels[]=Array( "World", "#RPK.UO.WORLD", "true", "false" );


To whatever you want, you can remove, add, or edit as many channels as you like.
"ChannelName", "#ChannelAddress", "true/false", "true/false"

Vorspire

I have updated a couple of things with the release, one being that the IsAdmin variable was missing from the PJIRC_Client class.

Please review the changelog below;


TP-PJIRC by Vorspire
Change-Log:


-----------------
Version 1.0.0a:

First release.


-----------------
Version 1.0.1:

*Added more detailed descriptions to some settings in settings.php
espcially those for the Client.

*Added/fixed the missing variable/var $IsStaff

*Moved the $Version variable to the main webchat.php


New archive has been updated, please replace your existing settings.php and webchat.php with the new files.

barnuthin

thanks for the quick response :)

now i can't find the download link.  am i blind or is it missing?