vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   BB Code Enhancements - [snap] BBcode : capture screens of websites ! (https://vborg.vbsupport.ru/showthread.php?t=221327)

cclaerhout 08-19-2009 10:00 PM

[snap] BBcode : capture screens of websites !
 
[snap] BBcode
-Version 1.0-
Created by C?dric Claerhout
for 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 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.

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? :
Code:

[snap] BBcode APIKEY
Description :
Code:

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 :
Code:

            $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

Code:

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


All times are GMT. The time now is 05:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01555 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete