vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   BB Code Enhancements - BBCode view PDF (https://vborg.vbsupport.ru/showthread.php?t=242088)

ry215 05-07-2010 10:00 PM

BBCode view PDF
 
1 Attachment(s)
Going AdminCP >> Custome BBCode Codes >> BB Code Manager >> Add New BBCode.

Title: PDF
Tag: PDF

Replacement:

HTML Code:

<p align="center"><a href="{param}" target="_blank"><b>Download File</b></a><br>
<iframe src="http://docs.google.com/gview?url={param}&amp;embedded=true" style="width: 100%; height: 600px;" frameborder="0"></iframe></p>



Example:

HTML Code:

[PDF]http://soctrangit.net/diendan/demo/demo-pdf.pdf[/PDF]
Description: View file PDF Online

Use {option} No

Button Image (Optional) or use attached

HTML Code:

http://yoursite/images/editor/pdf.gif

TimberFloorAu 05-08-2010 06:52 AM

Good Idea, tagged:

Not sure what Làm việc thôi: Vào AdminCP >> Custome BBCode Codes >> BB Code Manager >> Add New BBCode. Điền vào các ô như sau: means tho !

sulasno 05-08-2010 06:56 AM

tagged and thanks

used Google to try the translation and got this;

Working alone: In AdminCP>> custome BBCode Codes>> BB Code Manager>> Add New BBCode. Fill in the boxes as follows:

ry215 05-08-2010 07:08 AM

sorry :D T_T

ThorstenA 05-08-2010 08:39 AM

can you make a screenshot?

Xencored 05-08-2010 08:55 AM

On my test Site i get this mate

https://vborg.vbsupport.ru/

Edit =
HTML Code:

[CENTER]Test PDF

[PDF][url]http://www.myanimeisland.com/testpdf.pdf[/url][/PDF][/CENTER]

It keeps adding the [url] wraps :(

ThorstenA 05-08-2010 08:59 AM

Thanks for your screenshot! :)

Xencored 05-08-2010 09:21 AM

Quote:

Originally Posted by ThorstenA (Post 2033625)
Thanks for your screenshot! :)

My screen shot is of a error mate :D

sulasno 05-08-2010 10:21 AM

working perfectly in vBulletin 4.0.3

Xencored 05-08-2010 11:05 AM

Quote:

Originally Posted by sulasno (Post 2033659)
working perfectly in vBulletin 4.0.3

How did you get it so it didnt add the URL tags?

Overbr 05-08-2010 11:29 AM

good work man !thanks and instaled vb 4.0.2 OK 100% !!!!

JAFRI 05-08-2010 01:17 PM

Nice , dear . Gooooooooooooooood

Xencored 05-10-2010 06:34 PM

Quote:

Originally Posted by Animemike (Post 2033622)
On my test Site i get this mate

http://www.myanimeisland.com/pdf error.png

Edit =
HTML Code:

[CENTER]Test PDF

[PDF][url]http://www.myanimeisland.com/testpdf.pdf[/url][/PDF][/CENTER]

It keeps adding the [url] wraps :(

Ha for anyone with this problem
Disable Automatic Link Parsing Within This BB Code : set to YES!

Awesome Mods Thanks

The download button does not work tho

http://www.myanimeisland.com/www.myanimeisland.com/testpdf.pdf

Copys the url twice

Dr.osamA 05-11-2010 12:15 AM

Good Idea

installed + 5 stars

thanxxx ry215

cloferba 08-11-2010 03:59 AM

i get:

The following BB Code replacement may not be properly formed. All HTML attributes should be enclosed within double quotes.
<p align="center"><a href="{param}" target="_blank"><b>Descargar Archivo</b></a><br> <iframe src="http://docs.google.com/gview?url={param}&amp;embedded=true" style="width: 100%; height: 600px;" frameborder="0"></iframe></p>

BirdOPrey5 08-15-2010 03:11 PM

This mod should really be marked with the 'external content' warning because it relies on google to show the pdf.

JAFRI 08-22-2010 04:17 AM

not work in vb 4.0.6

sticky 09-29-2010 09:22 AM

Any reason why it doesn't work in Internet Explorer but works fine in Chrome and Firefox?

sticky 09-29-2010 09:27 AM

Quote:

Originally Posted by sticky (Post 2104558)
Any reason why it doesn't work in Internet Explorer but works fine in Chrome and Firefox?

Figured it out, it was IE's privacy settings.

sticky 10-03-2010 10:14 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2084287)
This mod should really be marked with the 'external content' warning because it relies on google to show the pdf.

This is true.

It seems you need to be logged in to google for this to work?

Unfortunate as it is so useful, not everyone has an account though.

iyama 10-20-2010 10:36 AM

The following BB Code replacement may not be properly formed. All HTML attributes should be enclosed within double quotes.

* <p align="center"><a href="{param}" target="_blank"><b>Download File</b></a><br> <iframe src="http://docs.google.com/gview?url={param}&amp;embedded=true" style="width: 100%; height: 600px;" frameborder="0"></iframe></p>

On vb4.07

BirdOPrey5 10-20-2010 10:56 AM

You can hit "continue" and ignore that warning, it must be a bug, as you can see all html attributes ARE enclosed in double quotes.

sticky 10-23-2010 07:45 AM

I thought this was great at first but for users who don't have a google account it is useless as you have to be logged in for the PDF's to display.

Doctor Death 12-13-2010 07:35 PM

I got the same error, but continued and it works great.

BadgerDog 12-13-2010 10:10 PM

Installed.. then uninstalled ...

Useless unless you have Google account ...

Thanks anyway ...

Regards,
Doug

rootsxrocks 12-14-2010 02:34 PM

Yeah I got excited too, till I realised it was not for attached PDFs

majidmozaffari 03-02-2011 06:12 AM

Disable Automatic Link Parsing Within This BB Code >>>>> yes شاد باشید :)

lemonadesoda 07-07-2011 01:27 PM

Author: Please modify this bbcode to be INDEPENDENT of google. Requiring a google account AND logged in for this bbcode to work is useless IMO. Work out and explain how to get the PDF viewer application into the local server installation so that it is independent of google, then this would be brilliant. 2 stars now. 4 or 5 stars when you get this working server-side.


All times are GMT. The time now is 09:23 AM.

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.01615 seconds
  • Memory Usage 1,769KB
  • 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
  • (5)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (28)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