It is currently Sat Feb 24, 2018 2:23 am




 Page 1 of 1 [ 1 post ] 
Author Message
 Post subject: Integration with vldPersonals
PostPosted: Tue Dec 28, 2010 5:20 am 
Support Staff

Joined: Fri Nov 01, 2002 4:06 am
Posts: 43
Tested on: vldPersonals 2.5.7

Download the attachment and unzip it. It contains two files used in the instructions below.

Creating Chat Page
1. Log in to the vldPersonals control panel.

2. Go to Content > Manage pages.

3. Select a group or add one if you do not have any group yet ("Add group").

4. After the group has been selected, click on "Add page".

5. Here are the fields and the appropriate values.
Name: Chat
Label: chat
Page: (leave this blank)
Custom template: chat_page_default
Hide for groups: Check "Canceled members" and "Guests".

6. Upload chat_page_default.tpl to your vldPersonals template directory. This is usually found under install_directory/templates. Edit the Site ID value to your your own account's ID before you upload the file.

Adding Chat Tab to the Navigation Bar
1. In the same template directory, open header.tpl.

2. Add this snippet just above the line containing </head>. Again, change the siteID value to your own. For server license customers, the sourceBase value must be changed to reflect your own as well.
<!-- IF loggedin -->
<script language="JavaScript" type="text/javascript">
var sourceBase="http://host5.chatblazer.com/";
var siteID = "CBS1";
var tagName = "script";
document.write('<'+tagName+' language="JavaScript" type="text/javascript" src="'+sourceBase+'chatblazer.js"></'+tagName+'>');
</script>
<!-- ENDIF -->


3. Look for this section.
<div id="headernav">
<ul>

This section contains the list of navigation items. Add the following snippet as appropriate, in whatever order you desire.
<!-- IF loggedin -->
<li>{anchor:url1="chat/",url2="index.php?m=pages&g=general&p=chat",name="Chat",pre="<span>",pro="</span>"}</li>
<!-- ENDIF -->


Using the Authentication Script
1. Upload chat_auth.php to your vldPersonals installation directory.

2. In the ChatBlazer administrator, under Site Settings, specify the URL to this script in the External User Data Source section. e.g. http://www.mywebsite.com/chat_auth.php.

With this script, users who are logged into vldPersonals will automatically be logged into ChatBlazer as well.


Attachments:
cb_vldpersonals.zip [2.83 KiB]
Downloaded 356 times

_________________
Samuel
ChatBlazer Support
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 1 post ] 


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

cron