Home SePortal
Welcome Guest · Registration
Resources
Download Seportal
Demo Site
SePortal Sites

Users
Username:

Password:

Log me on automatically next visit?


» Forgot password
» Registration

Topics
Home
Seportal (5)
News (3)

Random Image
Üye Grupları/User Groups

Üye Grupları/User Groups
Comments: 0
zebaniz

Powered By
Powered by SePortal

Rate SePortal at
Listed at Hot Scripts in PHP

Scripts.com


ScriptSearch.com


PHP


Home / User profile

zebaniz
Administrator

Group Icon


· Find all posts by this user

19 Nov 2009
SePortal integration with Ajax Chat.

Download:
http://www.seportal.org/file-seportal-integration-with-ajax-chat-0-8-3-8-showfile.htm

Test:
http://demo.seportal.org

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

SePortal ile Ajax Chat entegre edildi.

Dosya buradan indirilebilir:
http://www.seportal.org/file-seportal-integration-with-ajax-chat-0-8-3-8-showfile.htm

Test:
http://demo.seportal.org
readme.txt

CODE

/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/

AJAX Chat
=========

This is the SePortal integration version:
http://www.seportal.org/


AJAX stands for "Asynchronous JavaScript and XML".
The AJAX Chat clients (the user browsers) use JavaScript to query the web server for updates.
Instead of delivering a complete HTML page only updated data is send in XML format.
By using JavaScript the chat page can be updated without having to reload the whole page.

Requirements
============

Server-Side:

- PHP >= 4
- MySQL >= 4
- Ruby >= 1.8 (optional)


Client-Side:

- Enabled JavaScript
- Enabled Cookies
- Flash Plugin >= 9 (optional)


Installation
============

1. Upload to the server
--------------------

Upload the chat folder to your server into your SePortal portal directory:
e.g. http://example.org/SePortal/chat/


2. Creation of database tables and update of SePortal database table (seportal_blocks)
--------------------------------------------------------------------------------

Execute the provided installation script by visiting the following URL with your browser:
http://example.org/SePortal/chat/install.php

Replace "http://example.org/SePortal/chat/" with the real URL to your chat directory.


3. Delete the installation script
------------------------------

Delete the file install.php from the chat directory on your server.


4. And open SePortal/includes/lib-custom.php (for PHP block function)
(e.g. http://example.org/SePortal/includes/lib-custom.php)
----------------------------

Find;

?>

And replace;

function phpblock_chat() {
$html = "<script language=\\"javascript\\" type=\\"text/javascript\\">
function openWindow(url,width,height,options,name) {
width = width ? width : 800;
height = height ? height : 600;
options = options ? options : 'resizable=yes';
name = name ? name : 'openWindow';
window.open(
url,
name,
'screenX='+(screen.width-width)/2+',screenY='+(screen.height-height)/2+',width='+width+',height='+height+','+options
)
}
</script>
<center><a href=\\"./chat\\" onclick=\\"openWindow(this.href);this.blur();return false;\\"><img src=\\"https://blueimp.net/ajax/img/ajax-chat.png\\" border=\\"0\\"></a></center>";

return $html;
}

?>



Ready!


Configuration files:
====================

AJAX Chat is fully customizable and contains two configuration files:

1. lib/config.php
--------------
This file contains the server side (PHP) settings.

2. js/config.js
------------
This file contains the client side (JavaScript) settings.

Each configuration option is explained with a comment prior to the setting assignment.


Customizing the layout:
=======================

The layout of AJAX Chat is fully customizable by using CSS (Cascaded Style Sheets).
AJAX Chat comes with a predefined set of styles. To add your own style, do the following:

1. Add a new CSS file (e.g. mystyle.css) by copying one of the existing styles from the CSS directory.

2. Edit your file (css/mystyle.css) and adjust the CSS settings to your liking.

3. Add the name of your style without file extension to the available styles in lib/config.php:

// Available styles:
$config['styleAvailable'] = array('mystyle','beige','black','grey');
// Default style:
$config['styleDefault'] = 'mystyle';

To further customize the layout you can adjust the template files in lib/template/.

Make sure you are creating valid XHTML, else you will produce errors in modern browsers.
This is due to the page content-type served as "application/xhtml+xml".
Using this content-type improves performance when manipulating the Document Object Model (DOM).

If for some reason you cannot create valid XHTML you can force a HTML content-type.
Just edit lib/config.php and set the following option:

$config['contentType'] = 'text/html';




Adjusting the language settings:
================================

AJAX Chat comes with two language file directories:

1. js/lang/
------------
This directory contains the language files used for the chat messages localization.
These are JavaScript files with the extension ".js".

2. lib/lang/
--------------
This directory contains the language files used for the template output.
These are PHP files with the extension ".php".


For each language, you need a file in each of these directories, with the language code as file name.
The language code is used following the ISO 639 standards.

The files for the english (language code "en") localization are the following:

js/lang/en.js
lib/lang/en.php

To enable a language, you need to add the language code in lib/config.php:

$config['langAvailable'] = array('en');

For the language selection you also need to add the language name:

$config['langNames'] = array('en'=>'English');

To avoid errors, you should follow these rules:

1. Make sure you encode your localization files in UTF-8 (without Byte-order mark).
2. Don't use HTML entities in your localization files.
3. Don't remove any "%s" inside the JavaScript language files - these are filled with dynamic data.


Logs:
=====

By default, AJAX Chat stores all chat messages in the database.
To access the logs you have to add the GET parameter view=logs to your chat url:

e.g. http://example.org/path/to/chat/?view=logs

If you are not already logged in, you have to login as administrator to access the logs.

The log view enables you to monitor the latest chat messages on all channels.
It is also possible to view the logs of private rooms and private messages.
You have the option to filter the logs by date, time and search strings.

The search filter accepts MySQL style regular expressions:

http://dev.mysql.com/doc/refman/5.1/en/regexp.html

To search for IPs, use the following syntax:

ip=127.0.0.1


Shoutbox:
=========

AJAX Chat is also usable as shoutbox - this is a short guide on how to set it up:


1. Shoutbox stylesheet
----------------------

Add the following line to the stylesheet (CSS) of all pages displaying the shoutbox:

@import url("http://example.org/path/to/chat/css/shoutbox.css");

Replace http://example.org/path/to/chat/ with the URL to the chat.
Modify css/shoutbox.css to your liking.


2. Shoutbox function
--------------------

Add the following function to your PHP code:

<?php
function getShoutBoxContent() {
// URL to the chat directory:
if(!defined('AJAX_CHAT_URL')) {
define('AJAX_CHAT_URL', './chat/');
}

// Path to the chat directory:
if(!defined('AJAX_CHAT_PATH')) {
define('AJAX_CHAT_PATH', realpath(dirname($_SERVER['SCRIPT_FILENAME']).'/chat').'/');
}

// Validate the path to the chat:
if(@is_file(AJAX_CHAT_PATH.'lib/classes.php')) {

// Include Class libraries:
require_once(AJAX_CHAT_PATH.'lib/classes.php');

// Initialize the shoutbox:
$ajaxChat = new CustomAJAXChatShoutBox();

// Parse and return the shoutbox template content:
return $ajaxChat->getShoutBoxContent();
}

return null;
}
?>

Make sure AJAX_CHAT_URL and AJAX_CHAT_PATH point to the chat directory.


2. Shoutbox output
------------------

Display the shoutbox content using the shoutbox function:

<div style="width:200px;"><?php echo getShoutBoxContent(); ?></div>


Socket Server:
==============

Using the AJAX technology alone the chat clients have to permanently pull updates from the server.
This is due to AJAX being a web technology and HTTP being a stateless protocol.
Events pushed from server-side need a permanent or long-lasting socket connection between clients and server.
This requires either a custom HTTP server (called "comet") or another custom socket server.

AJAX Chat uses a JavaScript-to-Flash bridge to establish a permanent socket connection from client side.
The JavaScript-to-Flash bridge requires a Flash plugin >= 9 installed on the user browser.
Clients without this requirement will fall back to pull the server for updates.


1. Installation
---------------

The socket server coming with AJAX Chat is implemented in Ruby.
You need to be able to run a Ruby script as a service to run the socket server.
To be able to start the service, the script files in the socket/ directory have to be executable:

$ chmod +x server
$ chmod +x server.rb

"server" is a simple bash script to start and stop a service.
"server.rb" is the ruby socket server script.
"server.conf" is a configuration file - each setting is explained with a comment.

To start the service, execute the "server" script with the parameter "start":

$ ./server start

This will create two additional files:

"server.pid" contains the process id of the service.
"server.log" is filled with the socket server log.

To monitor the socket server logs, you can use the "tail" command included in most GNU/Linux distributions:

$ tail -f server.log

By default only errors and start/stop of the server are logged.
To get more detailed logs configure the log level by editing the configuration file.

To stop the service, execute the "server" script with the parameter "stop":

$ ./server stop

If the socket server is running, you have to enable the following option in lib/config.php:

$config['socketServerEnabled'] = true;

This tells the server-side chat script to broadcast chat messages via the socket server.
Chat clients will establish a permanent connection to the socket server to listen for chat messages.

By default only local clients (127.0.0.1,::1) may broadcast messages.
Clients allowed to broadcast messages may also handle the channel authentication.
If your socket server is running on another host you should set the broadcast_clients option to the chat server IP.

Using the socket server increases response time while improving server performance at the same time.


2. Flash Permissions
--------------------

Since Flash 9.0.115.0 and all Flash 10 versions, permissions for creating sockets using Flash have changed.
Now an explicit permission (using xml-syntax) is required for creating socket connections.
In the current state, socket server won't work with the newest Flash versions.
You will get a "Flash security error" in the browser.

A solution is to use a policy-files server which will listen to connections in port 843 in the server.
Each time a client tries to connect to the chat, the Flash client will request the policy authorization to the server.
The policy-files server is downloadable from http://ammonlauritzen.com/FlashPolicyService-09b.zip
It works with FF3 and IE7 (not yet tested in other browsers).

A more detailed explanation can be found here:

* http://ammonlauritzen.com/blog/2007/12/13/new-flash-security-policies/
* http://ammonlauritzen.com/blog/2008/04/22/flash-policy-service-daemon/


Official Adobe documentation:

* http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html
* http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security_04.html

28 Oct 2009
Yeni 2.5 versiyonu yayimlandı. Bazi hatalar düzeltildi.
Tüm kullaniciların yeni versiyona terfi etmelerini öneririz. Yapilan degisikliklerin listesini "docs/Change_Log.txt" dosyasinda bulabilirsiniz.

Download:
http://www.seportal.org/file-seportal-2-5-1-showfile.htm

Demo:
http://demo.seportal.org

Degisiklikten once tum dosyaların ve veritabaninin yedegini aliniz.
Tüm dosyalari herhangi bir FTP programı ile serveriniza gönderin ve browserinizi acıp 'http://www.yourdomain/update_2.4_to_2.5.php' dosyasini calıstirin.

TinyMCE HTML WYSIWYG yazi editoru eklendi.
Yazilar Dizini eklendi.
Seo Mod (Arama Motoru Optimization Modu) eklendi.
header.html dosyasina META-Taglar eklendi.
Banner Yonetim Sistemi eklendi.
Dosya izinlerini test scripti eklendi.
------------------------------------------------------------------------------------------------
The new version 2.5 has just been released. This is a bugfix-release and fixes all known security issues and bugs.
We recommend all users to update to the current version. All changes and features are listed in "docs/Change_Log.txt".
You may take the backup of all files before doing the changes.
Upload all files by any FTP program to your root server and open in your browser 'http://www.yourdomain/update_2.4_to_2.5.php'.

Added TinyMCE HTML WYSIWYG editor.
Added Article Directory.
Added Seo Mod (Search Engine Optimization Mod).
Added META-Tags in header.html template: robots, description, keywords, revisit-after.
Added Banner Manager System.
Added Directory Permissions Test Script.

CODE

Degisen Dosyalar / Changed Files:
---------------------------------------
Tum dosyalar / All Files

Yeni Dosyalar / New Files:
---------------------------------------
Folder: admin/banners
Folder: data/banners
Folder: js
Folder: htmleditor
Folder: templates/se_aqua
Folder: templates/default/stars
admin/test.php
includes/banner_functions.php
includes/se_seo.php
includes/functions_wysiwyg.php
js/slide.js
directory.php
redirect.php
update_2.4_to_2.5.php

Yeni Sablonlar / New Templates:
---------------------------------------
templates/default/blockfooter_user.html
templates/default/blockheader_user.html
templates/default/cal_w_title.html
templates/default/content_box.html
templates/default/forum_jump.html
templates/default/forum_mod_split_topic_row.html
templates/default/forum_no_topic.html
templates/default/forum_topics_pinned_end.html
templates/default/forum_topics_pinned_start.html
templates/default/forum_who_post_missing.html
templates/default/list.html
templates/default/listitem.html
templates/default/pm_msg_list.html
templates/default/pm_msg_list_empty.html
templates/default/pollblock_footer.html
templates/default/pollblock_header.html
templates/default/polllist_footer.html
templates/default/polllist_header.html
templates/default/profile_files.html
templates/default/profile_forum.html
templates/default/profile_forum_posts_bit.html
templates/default/profile_forum_topics_bit.html
templates/default/profile_message.html
templates/default/short_day.html
templates/default/short_day_image.html
templates/default/stats_empty.html
templates/default/stats_row.html[/p][p]Asagidaki yeni dizinler icin izin ayari: /
Set permissions for the following new directories:
------------------------------------------------
chmod 777 (drwxrwxrwx) : admin/banners/images/graphs
chmod 777 (drwxrwxrwx) : data/banners


10 Feb 2008
Yeni 2.4 versiyonu yayimlandi. Bazı hatalar düzeltildi.
Tüm kullanicilarin yeni versiyona terfi etmelerini öneririz. Yapilan degisikliklerin listesini "docs/Change_Log.txt" dosyasinda bulabilirsiniz.
------------------------------------------------------------------------------------------------
The new version 2.4 has just been released. This is a bugfix-release and fixes all known security issues and bugs.
We recommend all users to update to the current version. All changes and features are listed in "docs/Change_Log.txt".

Download:
http://www.seportal.org/downloads.php?action=showfile&id=6

Demo:
http://demo.seportal.org
CODE

================================================
Change Log Version 2.4
================================================
First release
- Yenilik / New feature: Guestbook (Ziyaretçi Defteri).
- Yenilik / New feature: Lightbox for image gallery (Resim Albümü).

Değişen Dosyalar / Changed Files:
---------------------------------------
- admin/admin_global.php
- admin/articles.php
- admin/backup.php
- admin/down_categories.php
- admin/gal_categories.php
- admin/gal_images.php
- admin/home.php
- admin/link_categories.php
- forums/post.php
- forums/topics.php
- includes/cache_utils.php
- includes/constants.php
- includes/functions.php
- includes/page_header.php
- includes/sessions.php
- lang/english/admin.php
- lang/english/main.php
- lang/turkish/admin.php
- lang/turkish/main.php
- downloads.php
- gallery.php
- gallery_categories.php
- gallery_image.php
- gallery_postcards.php
- global.php
- logout.php
- member.php
- memberlist.php
- pm.php
- rss.php
- search.php


Değişen Şablonlar / Changed Templates:
---------------------------------------
- templates/member_menu.html
- templates/pm_new.html
- templates/gallery_image.html
- templates/gallery_thumbnail_bit.html


Yeni Dosyalar / New Files:
---------------------------------------
- admin/guestbook.php
- Folder: /data/guestbook_media/ (chmod 777)
- includes/gallery_utils.php
- includes/zip.php
- gallery_lightbox.php
- guestbook.php
- update_2.3_to_2.4.php


Yeni Şablonlar / New Templates:
---------------------------------------
- templates/guestbook.html
- templates/guestbook_bit.html
- templates/guestbook_com_bit.html
- templates/gallery_lightbox.html


14 Dec 2007
Yeni web içerik yönetimi olan Seportal'a hoş geldiniz.
İçeriğinde haber yönetim sistemi, resim galerisi, link yönetim sistemi, dosya yönetim sistemi, forumları kapsamlı bir şekilde barındıran yeni web portalını ücretsiz olarak hemen indirip ve kolayca kurup kullanabilirsiniz.

Tüm web kullanıcılarından, çoklu dil desteği (Şimdilik Tükçe, İngilizce) bulunan ve tamamen ücretsiz olan yeni SePortal'ın gelişimine katkıda bulunmasını bekliyoruz.

Herkese başarılar dileriz.

----------------------------------------------------------------------------------
Welcome to new managing dynamic web content.

You can now download and install easly a new free webportal which includes comment system, weblinks management system, file management system, image gallery management system, polls, calender, forums, user registration and management.

All the web users, we are waiting for completely free of new SePortal which contains multi language (English, Turkish -for now-) support.

Best Regards.

13 Dec 2007
SePortal, PHP/MySQL tabanlı dinamik bir web içerik yönetimidir.
Özellikleri haber yönetimi, dosya yönetimi, link yönetimi, resim galerisi, anketler, takvim, forumlar, üye kaydı ve yönetimi, şifre korumalı yönetim alanı, yorum sistemi ile browser tabanlı dosya yükleme ve site arayüzü ve tasarımı için HTML şablonlarını içerir.

Diğer özellikleri: Rss kaynağı, arama motoru, kapsamlı üye yönetimi, üyeler için yükleme fonksiyonu, yazılar, dosyalar, resimler için oylama sistemi, spam koruması, e-kart, dahili veritabanı yedekleme fonksiyonu, vb.
SePortal'ın özellikleri aşağıdadır:

Genel fonksiyonlar
kapsamlı, şifre korumalı bir şekilde yapılandırılmış portal yönetimi
kapsamlı haberler/yazılar yönetimi
kapsamlı resim galerisi yönetimi
kapsamlı forum yönetimi
anketler
bloklar sistemi
statik sayfalar fonksiyonu
kapsamlı linkler yönetimi
kapsamlı dosyalar yönetimi
takvim
email adresi açıklanmadan üyeler arası email gönderme sistemi
üyeler arası özel mesajlaşma servisi
SePortal daki son duyurulara online ulaşım
veritabanı yedekleme fonksiyonu
çoklu dil desteği
kolay kurulum
RSS-Kaynağı (son yazılar, son resimler, son dosyalar, son linkler, son yorumlar)
ban kontrolü
browser ile yönetim panelinden yada FTP ile yükleme
formları captcha ile koruma
dahili cache sistemi
istenmeyen işlemlerin kontrolü
yüklenen resimlere otomatik önizleme yaratma

Kategoriler
sınırsız kategoriler ve alt kategoriler
her kategorinin yada alt kategorinin tıklanma kaydı ve
istatistikleri
her kategori için başlık va açıklama (isteğe bağlı)
ulaşılabilir ana kategori altındaki alt kategorilerin sayı ile belirtilmesi

Yazılar
her yazının üyeler tarafından değerlendirilmesi
her yazı için bağımsız yorum fonksiyonu
her yazı için özet ve içerik bölümü
özet ve içerik alanlarına HTML-kod kullanmama bb-code desteği koyu, italik, vb.
her yazı için email ile bildirme ve yazdırılabilir hali fonksiyonu
kötü kelime fonksiyonu

Galeri resimleri
her resmin üyeler tarafından değerlendirilmesi
her resim için bağımsız yorum fonksiyonu
her resim için açıklama
kolayca kişiselleştirilebilen e-kartlar (renkler, yazı tipi)
her resim için email ile bildirme fonksiyonu

Dosyalar
her dosyanın üyeler tarafından değerlendirilmesi
her dosya için bağımsız yorum fonksiyonu
her dosya için geniş bilgi velisans fonksiyonu
her dosya için email ile bildirme fonksiyonu

Linkler
her linkin ziyaret sayısı kaydı ve istatistikleri
her linkin son ziyaret tarihi kaydı
her link için açıklama

Forumlar
konuları birleştirme
konuları kilitleme
konuları işaretleme
konuları taşıma
konuları birleştirme
konu başlıklarını düzenleme
forum yöneticilerini belirleme
Konulara/iletilere çoklu yönetim
yöneticilere konuları raporlama
yönetim tarafından izin verilen dosya tiplerinin eklentilerde kullanılması
lo-fi uygulaması
üyelerin konuları word/HTML olarak indirebilmeleri

Yorumlar
her yazı, her resim, her dosya için bağımsız yorum fonksiyonu
bb-code desteği koyu, italik, vb.
yorum alanına HTML-kod kullanmama
spam kontrolü
kötü kelime fonksiyonu
uzun kelimeleri otomatik ayarlama

Üyeler
kapsamlı üye yönetiminde dahili kayıt
üyeler ve üye gruplarında kapsamlı izi yönetimi
kayıtlı üyeler için yükeleme fonksiyonu
"Kimler online" funksiyonu
Üyelere mesaj gönderme fonksiyonu
şifreleri kriptolayarak veritabanında saklama

Şablonlar
kolayca kişiselleştirilen şablonlar
yönetim alanından HTML editörü ile düzenlenebilen şablonlar
standard şablon bulundurma

Profile
Personal Photo

Rating
3.00 of 5

Personal Statement
zebaniz doesn't have a personal statement currently.

Signature
Bilgi paylaşıldığında değerlidir.

Personal Info
zebaniz
Administrator
51 years old
Male Male
Location: İzmir
Born 1-April-1959

Interests
Bilgisayar, Gezi..

Statistics
Join Date: 01.01.2007
Profile Views: 4956
Last Activity: 17.08.2010 08:33
User's local time: 09.09.2010 12:55
Articles: 6
Images: 17
Files: 5
Weblinks: 3
Forum Posts: 260
Comments: 1
Total posts: 292
(40.44% of total portal posts)
Posts per day: 0.2

Communicate
Email: admin at seportal.org
Homepage: http://www.seportal.org
ICQ: No Information
MSN: No Information
Private Message:



Contribute | Forums | Gallery | Calendar | Links | Downloads | Members | Search | Guestbook | Article Directory

Powered by SePortal 2.5
Copyright © 2007-2010 SePortal.org