Wall Script The Social Network Script Blog

Tuesday, March 1, 2016

How to Install Wall Script 8

Wall Script 8 is fully responsive for desktop, tablet and smart phones. If you are already a WALL SCRIPT user(people who have bought the Wall Script 8), please follow the installation steps.

Step 1
Extract wallscript.zip into htdocs or www folder using Winzip software.

Step 2
Create a database(MySQL Recommended) with name wallscript. Find wallscript.sql in extracted wallscript folder and import it to the created database using PhpMyAdmin or MySQL query browser.

Step 3
Database configuration settings.

config.php
You have to modify Host, Username, Password and Database.
<?php

define('DB_SERVER', 'Host');
define('DB_USERNAME', 'Username');
define('DB_PASSWORD', 'Password');
define('DB_DATABASE', 'Database');
define('BASE_URL', 'http://www.yourwebsite.com/');
define('API_BASE_URL', 'http://www.yourwebsite.com/wallscript/');
define('UPLOAD_PATH', 'uploads/');

....
....
....


/*SMTP Details for Email Alerts */
define("SMTP_CONNECTION", "1"); // On "1" Off "0"
define("SMTP_USERNAME", "SMTP Username");
define("SMTP_PASSWORD", "SMTP Password");
define("SMTP_HOST", "SMTP Host Name");
define("SMTP_PORT", "SMTP Port");
define("SMTP_FROM_EMAIL", "support@yourwebsite.com"); //Your website support email.
define("SMTP_FROM_TITLE", "Your Website Support Name"); //eg: Support Website Name

?>

Localhost
define('BASE_URL', 'http://localhost/wallscript/');
define('API_BASE_URL', 'http://localhost/wallscript/');

Hosted with Domain
define('BASE_URL', 'http://www.yourwebsite.com/');
define('API_BASE_URL', 'http://www.yourwebsite.com/wallscript/');

Step 4
Enable Curl, Mod Rewrite and GD extensions for PHP.

Curl: Expanding and OEmbed URLs suppot.
Mod Rewrite: Friendly URLs and .htaccess support
GD: Image processing

Step 5
Give read and write permission to the uploads folder, I recommend use XAMPP server.
sudo chmod -R 777 uploads

Step 6
.htaccess for root folder htdocs or www
RewriteEngine On

RewriteCond %{HTTP_HOST} ^youwebsite.com
RewriteRule (.*) http://www.yourwebsite.com/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^www\.yourwebsite\.com$
RewriteCond %{REQUEST_URI} !^/wallscript/
RewriteRule (.*) /wallscript/$1

Social OAuth Login

OAuth Login configuration setups for Facebook, Google, Microsoft and Linkedin
OAuth Login Social Applications Configuration Guide

For installation follow this link.
OAuth Login Installation Steps

Note: No need to import tables for OAuth login.


Redirection issues

if you face any redirection issues, just enable following function in config.php
ob_start("ob_gzhandler");
.....
.....
.....


Follow this tutorial, if you face any .htaccess issues.
Configure .htaccess inside folder.

MultiViews .htaccess Access

If you face any problem with multi view access, include following line in .htaccess file.
Eg URL: http://www.yourwesbite.com/messages/srinivas
Options +Indexes +FollowSymLinks -MultiViews
Options +FollowSymlinks
RewriteEngine On


Installation Video

Monday, February 29, 2016

How to Update Wall Script 7 to 8

Wall Script 8 is fully responsive for desktop, tablet and smart phones. If you are already a WALL SCRIPT user (people who have bought previous version of Wall Script), can just update your Wall Script to the latest version.

Here are the steps to update your existing Wall Script.

Step 1
Please take the backup for existing project and database(export SQL file).

Step 2
Extract wallscript.zip into htdocs or www folder using Winzip software. Now import wall_update.sql into existing wallscript database. This SQL contains ALTER statements.

Step 3
Database configuration settings.

config.php
You have to modify Host, Username, Password and Database.
<?php

define('DB_SERVER', 'Host');
define('DB_USERNAME', 'Username');
define('DB_PASSWORD', 'Password');
define('DB_DATABASE', 'Database');
define('BASE_URL', 'http://www.yourwebsite.com/');
define('API_BASE_URL', 'http://www.yourwebsite.com/wallscript/');
define('UPLOAD_PATH', 'uploads/');

....
....
....


/*SMTP Details for Email Alerts */
define("SMTP_CONNECTION", "1"); // On "1" Off "0"
define("SMTP_USERNAME", "SMTP Username");
define("SMTP_PASSWORD", "SMTP Password");
define("SMTP_HOST", "SMTP Host Name");
define("SMTP_PORT", "SMTP Port");
define("SMTP_FROM_EMAIL", "support@yourwebsite.com"); //Your website support email.
define("SMTP_FROM_TITLE", "Your Website Support Name"); //eg: Support Website Name

?>

Localhost
define('BASE_URL', 'http://localhost/wallscript/');
define('API_BASE_URL', 'http://localhost/wallscript/');

Hosted with Domain
define('BASE_URL', 'http://www.yourwebsite.com/');
define('API_BASE_URL', 'http://www.yourwebsite.com/wallscript/');

Step 4
Give read and write permission to the uploads folder, I recommend use XAMPP server.
sudo chmod -R 777 uploads

Step 5
.htaccess for root folder htdocs or www
RewriteEngine On

RewriteCond %{HTTP_HOST} ^youwebsite.com
RewriteRule (.*) http://www.yourwebsite.com/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^www\.yourwebsite\.com$
RewriteCond %{REQUEST_URI} !^/wallscript/
RewriteRule (.*) /wallscript/$1

Installation Video



Wall Script 7 Note
If you are using Wall Script 7.0, please don't include new files. It may damage existing script. Please try to work with fresh workspace, take a backup your previous work.

Wednesday, February 22, 2012

Wall Script 4.0 Updates

OEmbed expand URL service acquired by embed.ly, now it’s paid service so that I’m releasing this expanding URL fix. Right now this function will work with Youtube and Vimeo links. I have been working with few more popular services. For demo check my profile at labs.9lessons labs.9lessons.info/srinivas

If you own Wall Script 4.0 please mail to srinivas@9lessons.info with subject “ExpandURL WallScript” I will send you the Expand_URL.php file ASAP

Once you got the file just copy “Expand_URL.php” and paste it into wall script “includes” directory.

Note: Take your existing copy backup the do these modifications.

Step 1
Include new line in these files index.php, moreupdates_ajax.php and message_ajax.php.
include_once 'includes/db.php';
include_once 'includes/Wall_Updates.php';
include_once 'includes/Expand_URL.php'; // new line


Step 2
Delete following code in these file load_messages.php or message_ajax.php
<script type="text/javascript">
$(document).ready(function(){$("#stexpand<?php echo $msg_id;?>").oembed("<?php echo  $link; ?>",{maxWidth: 400, maxHeight: 300});});
</script>

And Replace
<div id="stexpand<?php echo $msg_id;?>">
</div>

To

<div id="stexpand<?php echo $msg_id;?>">
<?php
if(textlink($orimessage))
{
$link =textlink($orimessage);
echo Expand_URL($link);
}
?>
</div>

wall.js Fix

Remove following line.
$("#stexpand").oembed(updateval);

Message update FadeIn effect fix replace following code
$("#content").prepend(html);

To

$("#content").prepend($(html).fadeIn('slow'));

Same way comment update fadein effect fix.
$("#commentload"+ID).append(html);

To

$("#commentload"+ID).append($(html).fadeIn('slow'));

More button pre image loader fix.
$("#more").html('<img src="icons/ajaxloader.gif" />');

To

$("#more"+ID).html('<img src="icons/ajaxloader.gif" />');

Wall Script 4.0 Wall.9lessons.info.