PDA

View Full Version : [Mod-Mall] Apture - Keep visitors on your pages longer VBB 4.1.2



PhucSD
19-06-2011, 09:00 AM
What Apture Does
Apture allows the users to select a piece of text and then searchs your website (or websites) to find pages releavent to that text. This keeps people on your pages and website longer, as they don't go and google the next topic of interest.

It has too many features to list but if you go to there website you will get a decent idea..

Apture Website (http://www.apture.com/)

You can try it out on the economist.com (http://www.economist.com/node/16316937)

What This Mod Does
This mod inserts the javascript in your header template, saving you from having to edit or revert your templates every upgrade.

It also has built in conditionals to allow you (or your users) to configure who the script is active for

Currently supports

Disable for guests
Allow users to enable/disable from their options
Only show for certain usergroups (for example only people who donate)
Only show to people above a certain post count
More coming soon...
How to install
Import the xml
Register at apture.com (http://www.apture.com/), and configure your settings
It should give you some code that looks like the below to insert into your header
Code:


<script id="aptureScript">(function (){var a=document.createElement("script");a.defer="true";a.src="http://www.apture.com/js/apture.js?siteToken=#######";document.getElementsByTagName("head")[0].appendChild(a);})();</script>
copy and paste this into the script box found in your admincp under Settings>Options>Add apture Script
Activate and configure the add on in the same screen
To allow users to turn Apture on and off
Do all the steps listed in install
in your admincp go to "Add New User Profile Field"
Select "Single Selection Radio Buttons" and fill in the following
(you can change these as you see fit but these are my setup)

Title: Apture
Description: Turn Apture Search on or off.
Profile Field Category: Doesn't matter
Options:

On
Off

Set Default: Yes (VERY IMPORTANT!)
Display Order: Doesn't Matter
Field Required: No
Field Editable by User: Yes
Private Field: No
Field Searchable on Members List: No
Show on Members List: No

Save that, and note down the name (note this isn't the title and should be something like "field13"
Go back to Settings>Options>Add apture Script
Fill in the What is the fieldid box with the name of your field
Fill in the Disabled text (in the example above this would "Off" without the quotes)
Select Yes to allow users to enable/disable toolbar
How to upgrade
Import the xml, set overwrite to allow/yes/on
Check the settings at Settings>Options>Add Apture Script
Releases
V1.0 - Initial Release
V1.1 - Added support for different options, usergroups, post counts
V1.2 - Bug fix (to do with how VB handles defaults)

To Do List

Additional user checks (User ID, Usergroup) - Done V1.1
Allow different field options (i.e different to on/off) - Done V1.1
Vbulletin NULLS the field values, which disabled the addon - Fixed V1.2
Additional forum checks (Forum ID)
Style checks
Screenshot

http://farm3.anhso.net/upload/20110619/08/o/anhso-085708_Apture_after_click.jpg
http://farm3.anhso.net/upload/20110619/08/o/anhso-085709_Apture_Select.jpg
http://farm3.anhso.net/upload/20110619/08/o/anhso-085710_onoff.jpg
http://farm3.anhso.net/upload/20110619/08/o/anhso-085713_settings.jpg
http://farm3.anhso.net/upload/20110619/08/o/anhso-085946_Where_to_find_field.jpg