Social Microblogging PRO - Documentation

### “Social Microblogging PRO” Documentation by “Miguel Vasquez” v1.0

# “Social Microblogging PRO”

Created: 12, October 2014
By: Miguel Vasquez
Email: miguelvasquezweb@gmail.com

Thank you for purchasing my script. If you have any questions that are beyond the scope of this help file, please feel free to email via miguelvasquezweb@gmail.com Thanks so much!

## Table of Contents

1. Setting MySQL
2. Uploading Files
3. Installation
4. Settings Admin Panel
5. Create App Twitter
6. Customize
7. Sources and Credits

Social Microblogging PRO Twitter is a script style, designed to share news, events, or simply what you want, through publications of 140 characters, and may refer to other users, create Hashtag and share with other site users. a part of it can upload images, videos from Youtube, DailyMotion, Screenr, DotSub, Hulu (Permitted users only united states ) or Vimeo. Follow other users, send direct messages.

### Requirements: - top

- cURL
- PDO Driver
- GD Library
- Enabled function mbstring
- This script was developed with PHP OOP and MVC
- allow_url_fopen (PHP.INI) is ON

### Important - top

if your URL in Db.php is well: http://site.com can not enter if the URL have the www To not have that problem with this can add to .htaccess the following code:

    		RewriteEngine On
    		RewriteCond %{HTTP_HOST} ^(www\.yousite\.com)(:80)? [NC]
    		RewriteRule ^(.*) http://yousite.com/$1 [R=301,L]

If you want your site to always be so: yousite.com And if you want it that way: www.yousite.com add this then:

    		RewriteEngine On
    		RewriteCond %{HTTP_HOST} ^(yousite\.com)(:80)? [NC]
    		RewriteRule ^(.*) http://www.yousite.com/$1 [R=301,L]

Important Do not delete the other lines. Htaccess If the problem persists, verify that the "mbstring" is enabled

### A) Setting MySQL - top

This script works with PHP 5.4 and MySQL 5. The first thing to do is:

- 1.) Create a database
- 2.) Create a user for database

### B) Uploading Files - top

A) upload the folder "Script" to the "public_html" folder on your server.
B) Log into your phpMyAdmin and import the social.sql file located in the folder "Mysql" (NOTE: the database already must be created )

### C) Installation - top

Make sure PDO driver is enabled on your server, if not, you should ask your hosting provider activation of this driver, so that the script can work.

After you have uploaded all files can start to setup the files.

### ›› Database Connection/URL Site

1. Open the file Db.php located in the folder "application", with any text editor, e.g: NOTEPAD
2. change the following parameters, for theirs:

    			$config->set('dbname', 'DATABASE NAME'); //<-- DATABASE NAME
    			$config->set('dbuser', 'USER'); //<-- USER
    			$config->set('dbpass', 'PASS'); //<-- PASS
    			define('URL_BASE', 'http://yousite.com/'); //<-- IMPORTANT: place a backslash at the end

1. Save and close, then upload the file to your server, in the folder "application"

### D) Settings Admin Panel - top

In admin panel you can:

Access to admin panel

    			http://yousite.com/admin/ //<-- IMPORTANT: place a backslash at the end
    			User: Admin
    			Pass: 12345

1. Change the site name
2. Set keywords for the site. (SEO)
3. Add a description (SEO)
4. Long of private messages, and publications
5. Edit pages e.g.: Help, Privacy, etc.
6. Change password.
7. Manage users.
8. Manage users reported.
9. Manage posts reported.
10. Manage Advertise
11. Admin can enable or disable the user records, and to verify whether or not users all from the admin panel.
12. Edit the color of the header icons, and edit the color of the icon Verified

### E) Create App Twitter - top

1) Enter https://apps.twitter.com/

2) Click on "Create New App"

4) Fill out all fields

- Name: Your application name. This is used to attribute the source of a tweet and in user-facing authorization screens. 32 characters max.
- Description: Your application description, which will be shown in user-facing authorization screens. Between 10 and 200 characters max.
- Website: Your application's publicly accessible home page, where users can go to download, make use of, or find out more information about your application. This fully-qualified URL is used in the source attribution for tweets created by your application and will be shown in user-facing authorization screens. (If you don't have a URL yet, just put a placeholder here but remember to change it later.)
- Callback URL Where should we return after successfully authenticating? OAuth 1.0a applications should explicitly specify their oauth_callback URL on the request token step, regardless of the value given here. To restrict your application from using callbacks, leave this field blank.

5) Read "Developer Rules of the Road" and then click "Create your Twitter application"

6) Click "Keys and Access Tokens"

7) Open file application/DataConfig.php

Copy the code in the following way:

    			define('YOUR_CONSUMER_KEY', 'Consumer Key (API Key)'); //Consumer Key (API Key)
    			define('YOUR_CONSUMER_SECRET', 'Consumer Secret (API Secret)'); //Consumer Secret (API Secret)

* If you do not want to let registered users from Twitter is empty variables so

    			define('YOUR_CONSUMER_KEY', ''); //Consumer Key (API Key)
    			define('YOUR_CONSUMER_SECRET', ''); //Consumer Secret (API Secret)

### F) Customize - top

Changing the logo

- Path: public / img / logo.png

Changing the favicon

- Path: public / img / favicon.ico

Change the background to the main page

- Path: public / img / bg.jpg
- CSS: Line 314 in public / css / main.css

Change the default link color

- CSS: Line: 208 in public / css / flat-ui.css

Change default image advertising

- Path: public / img_ad / ad.jpg

Change default avatar

- Path: public / avatar / avatar.png

Backgrounds default page "Design"

- Path: public / backgrounds

### * PHPMAILER Data setup - SMTP - top

Go to application / DataConfig.php line 31

    			define( 'SMTP_HOST', '' ); //Specify main and backup SMTP servers - smtp1.example.com;smtp2.example.com
    			define( 'SMTP_USERNAME', '' ); //SMTP username
    			define( 'SMTP_PASSWORD', '' ); //SMTP password
    			define( 'SMTP_PORT', 587 ); //TCP port to connect to

Should fill the relevant details of your SMTP provider and the script will use it automatically.
IMPORTANT: If after you do not use the SMTP option only leave as it was before

### * Sitemaps - top

To call the SiteMaps must place the following URL

    -> http://yousite.com/public/sitemaps/sitemaps.xml

### G) Sources and Credits - top

I've used the following files as listed.

- jQuery - http://jquery.com/
- Bootstrap 3.2 - http://getbootstrap.com/
- Font Awesome - http://fortawesome.github.io/Font-Awesome/
- IcoMoon - http://icomoon.io
- Flat UI - http://designmodo.github.io/Flat-UI/
- Placeholder Plugin jquery.placeholder.1.1.1.min.js // Mike Taylor, http://miketaylr.com
- Char Count count.js // Alen Grakalic
- jquery Form // malsup.com/jquery/form/‎
- jqueryTimeago.js // http://timeago.yarp.com/
- jquery.scroll.js // http://andersonferminiano.com/jqueryscrollpagination/
- colorpicker.js // Stefan Petre www.eyecon.ro
- jquery.colorbox.js // Jack Moore - http://www.jacklmoore.com/colorbox
- jquery.dataTables.js // Allan Jardine (www.sprymedia.co.uk) // www.datatables.net
- PHPMAILER https://github.com/Synchro/PHPMailer
- Readmore - http://jedfoster.com/Readmore.js/
- Drag Background - https://github.com/kentor/jquery-draggable-background
- Bootboxjs - http://bootboxjs.com/
- Images - unsplash - http://unsplash.com/
- Avatars - http://uifaces.com/
- Fonts - https://www.google.com/fonts
- ShareThis - http://www.sharethis.com/
- Google Maps - https://www.google.com/maps

Miguel Vasquez

Go To Table of Contents