PDA

View Full Version : BB Code Enhancements - [snap] BBcode : capture screens of websites !


cclaerhout
08-19-2009, 10:00 PM
[snap] BBcode
-Version 1.0-
Created by C?dric Claerhout
for www.vBulletin(-fr).org (http://www.vBulletin-fr.org)


Version history:

2009 august 20: version 1.0 is out

Presentation:
This BBcode, which is provided as a product file, is based on Webthumb (http://webthumb.bluga.net/home) service. It consists of making screen capture of a website. It's working the following way: user borders website url with [snap] BBcode. When he valides a message, the website url is sent to Webthumb server, which sends back a picture that will be save on your server. Then, time has come for BBcode [snap] to be replaced by its brotherhood [IMG] BBcode, which will load picture from your server

You HAVE to open an account on Webthumb website in order to get an APIkey. This kind of license will allow you to make 100 screenshots per month. This product has been created to make you able to enter a default APIKEY for all your users AND, if you want it, you can create a User Profile Field to allow users to enter their own APIKEY.

This module can be automatically integrated to Advanced BB Codes Toolbar (https://vborg.vbsupport.ru/showthread.php?t=220257).

There are many options:
Usergroups permissions
Default APIkey
User APIkey
Image format
Image default size
Horizontal resolution
Vertical resolution
Multi sizes?
Multi-Snap Option
Advanced BB Codes Toolbar Integration
Single-button Option with Advanced BB Codes Toolbar

Information
Don't use this product on crowded forum except if you configure it for a few number of users. The reason : when user submits a message with [snap] bbcodes inside, the website "snapped" URL is sent to Webthumb, but during this time your server is waiting for Webthumb answer. And if this answer is taking to much time to come, an SQL error will be displayed. Nothing serious but your admin email account will be spammed with error messages. Quite boring.


I don't think I will be able to improve this product. I've reached my coding limits. So if a smart coder wants to continue this project, please do ! For your information, Webthumb uses a GNU license. For my vB Code, you can modify it as you want (with or without sourcing me) providing to distribute your modification on vBulletin.org.

I'm sorry but I will not support this modification

cclaerhout
08-20-2009, 05:29 AM
HOW TO CREATE A USER PROFILE FIELD FOR APIKEY

Step 1 :
Admincp=>Champs du profil=>Add New User Profile Field=> Single-Line Text Box
Intitul? :
[snap] BBcode APIKEYDescription :
Enter here the [snap] BBcode APIkey. If you don't have one, go to <a href="http://webthumb.bluga.net/home">Webthumb</a> website and open an account for free.Max length of allowed user input: 100
Field Required: no
Field Editable by User: yes
Private Field: no
Field Searchable on Members List: no
Afficher sur la liste des membres : yes

Display Page: "Edit your details"


=> SAVE AND WRITE DOWN THE FIELD ID

Step 2 :

Open the [snap] BBcode xml product and search :
$APIKEY = $vbulletin->userinfo['fieldXX'];Then replace the XX with your User Profile Field ID, save and import product.

MikesSite
08-20-2009, 01:48 PM
Looks pretty cool, have any screen shots?

theforumist
08-20-2009, 02:23 PM
Interested in this. Get some screenies up and I might consider installing it. :D

ErrorLog
08-20-2009, 02:25 PM
Please screenshot ?

cclaerhout
08-20-2009, 02:57 PM
Well even though screenshots won't tell you more than has already been by the description, here you are ^^

P.S: I've tested this hack on two forums.

I see that one vB member give my hack one star. That's kind but it would have be kinder if he could have told be why.

RTMdotORG
08-20-2009, 04:21 PM
This is great... will probably install this later... I need something like this...thanks..

Faizan
08-21-2009, 01:57 AM
wow great Man

choccyclaire
08-21-2009, 02:27 AM
Have no use for it but what an interesting idea...

Shevko
08-24-2009, 02:53 PM
Good Idea.. Thanks :)

Entonadoscl
08-29-2009, 04:21 PM
error for me

Warning: file_put_contents(snaps/wt4a996395a3a85_normal.png) [function.file-put-contents]: failed to open stream: Permission denied in [path]/includes/Bluga/Webthumb.php on line 482

help me

Pandadisossato
09-18-2009, 11:02 AM
Rly interesting mod, at the moment it don't fit my site needs but in past it might be really useful.

I'll probably use it in my next community forum.

Good Work

cclaerhout
10-26-2009, 06:12 PM
Considering vBulletin officials attitude towards their customers & the vB community, my mods will be remove from vBulletin.org on the Friday 30th October. If after this delay you want to download one of them, just contact me.

Best regards,

Cédric Claerhout