vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   BB Code Enhancements - Scribd BBCode (https://vborg.vbsupport.ru/showthread.php?t=172292)

JhJ 03-05-2008 10:00 PM

Scribd BBCode
 
I wrote this BBCode so that the members of my board can post their essays, poems, and any other great literary stuff hosted on scribd.com easily within their posts so that other members wouldn't have to download the files (especially pdf files).

NOTE: This is in beta testing. I claim no responsibility for any mishaps that might happen if you don't follow the directions as noted. As with all mods, please backup anything you deem necessary.

Installation Directions:
In your AdminCP go to Custom BB Codes > Add New BB Code

Title: Scribd
Tag: scribd
Replacement:
Code:

<object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" id="embedded_flash_2188154_mzztx_object" name="embedded_flash_2188154_mzztx_object" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" align="middle"        height="500" width="100%"><param name="flashvars" value="&document_id={param}">                <param name="movie"        value="http://documents.scribd.com/ScribdViewer.swf">                <param name="quality" value="high">                <param name="play" value="true">                <param name="loop" value="true">                <param name="scale" value="showall">                <param name="wmode" value="opaque">                <param name="devicefont" value="false">                <param name="bgcolor" value="#ffffff">                <param name="menu" value="true">                <param name="allowFullScreen" value="true">                <param name="allowScriptAccess" value="always">                <param name="salign" value="">                <embed flashvars="&document_id={param}" src="http://documents.scribd.com/ScribdViewer.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" play="true" loop="true" scale="showall" wmode="opaque" devicefont="false" bgcolor="#ffffff" name="embedded_flash_2188154_mzztx_object" menu="true" allowfullscreen="true" allowscriptaccess="always" salign="" type="application/x-shockwave-flash" align="middle" height="500" width="100%"></embed></object>
Example:
Code:

[scribd]2188341&access_key=key-pggizk99nplsltbis9h&page=[/scribd]
Description: Anything you want to add
Use {option}: No
-----
All scribd uploads come with an embed code. Find this part of the embed code (Part that is BOLDED)
Code:

embed flashvars="&document_id=2188341&access_key=key-pggizk99nplsltbis9h&page=
And use that selection within the [scribd]selectiongoeshere[ /scribd] (Remove space)
-----

ricardoNJ 09-14-2009 06:41 AM

Nice but I don't know what is the code that I have to use in Scribd embed?

ricardoNJ 09-27-2009 05:39 AM

I got it: thanks!

PretorianoAlfa 02-17-2010 08:24 AM

It works perfectly in Vb 4. He needed this BB to insert my documents directly in the forum and it has made me happy to verify that it works with the last version of the same one.

Thank you very much. Installed. :)

Jacob_ITAPros 04-20-2010 03:46 PM

Thanks for this. The specific code to grab from the Scribd html embed is the document_id.

Charis 02-03-2012 05:16 PM

Thanks. I works fine in VB4.06.


All times are GMT. The time now is 01:12 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.01059 seconds
  • Memory Usage 1,718KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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