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: Power Point Presentation (https://vborg.vbsupport.ru/showthread.php?t=248865)

midnz 08-17-2010 10:00 PM

BBCode: Power Point Presentation
 
1 Attachment(s)
Power Point Presentation BBCode

Description:
This BBCode allows you to place the address of any .pps file between the [pps] tags to automate the viewing of Power Point Presentations without needing to manually download those files to your desktop before playing them.
Internet Explorer will play .pps files in a pop-up window whereas Mozilla Firefox will allow you the option to either save the file or download and play the file using your default .pps viewing software.
I have not tested the behaviour in any other browsers.
You may adjust the "height=" and "width=" parameters in the code below to change the size of the pop-up viewing window (for IE) to suit your individual requirements.

Demo Here

Instructions:
Open the BBCode Manager/Add New BBCode

Title: Power Point Presentation
BB Code Tag Name: pps
Replacement:
Code:

<script type="text/javascript">
function openPP() {
    window.open("{param}","","height=600,width=600,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,left=0,top=0");
}
</script>
<!{param}>
<div onClick="openPP()">Click to Start Presentation</div>



Example:
[pps]web address of pps file[/pps]

Description: Allows viewing of .pps files without needing to manually download them first.

Use {option}: No
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: Yes
Disable Smilies Within This BB Code: Yes
Disable Word Wrapping Within This BB Code: Yes
Disable Automatic Link Parsing Within This BB Code: Yes

Please mark as installed if you use this :)

Dr.osamA 08-18-2010 02:26 PM

thanxxx man

installed

Doctor Death 08-18-2010 09:53 PM

In IE8 this doesnt work as it was probably designed... Window pops up but then windows asks if you want to open or save the file.

A great idea if we can get it working better.

midnz 08-18-2010 10:20 PM

Quote:

Originally Posted by Doctor Death (Post 2086011)
In IE8 this doesnt work as it was probably designed... Window pops up but then windows asks if you want to open or save the file.

A great idea if we can get it working better.

I usually use Mozilla Firefox but tested it using IE8 and the pop-up window displayed the presentation without any further prompts from me.
I wondered if it had something to do with the 'compatibility view options', IE8 > Tools > Compatibility View Settings > Display all websites in Compatibility View ... I have that option unselected. I've just now tried using that option selected and it still works the same for me.

There must be a different setting between our IE8's that causes a different reaction after selecting the .pps link.

So, when you select to 'Open the file' rather than 'save the file' does it work for you? Are you given an option to 'do this for all files of this type' or similar option when you select to 'Open the file'?

lemonadesoda 08-19-2010 06:46 PM

demo link doesnt work for me under Chrome 5.x

midnz 08-19-2010 08:08 PM

Quote:

Originally Posted by lemonadesoda (Post 2086485)
demo link doesnt work for me under Chrome 5.x

I didn't have a Chrome browser but I've just downloaded and installed version 5.0.375.126 to test your issue. The BBCode should still work in Chrome if you select the drop-down panel and click "Always open files of this type". See the image below. Close the pop-up window and try the link once more. If you do that then your default .pps software will be used to view the presentation.

http://img823.imageshack.us/img823/9...mesettings.jpg

ARSamo 02-21-2011 04:01 PM

any solution for google chrome

midnz 02-22-2011 05:16 PM

Quote:

Originally Posted by ARSamo (Post 2165024)
any solution for google chrome

It should work in Google Chrome. I tested Chrome version 5.0.375.126 as shown in post #6

tafreeh 12-06-2011 03:33 AM

does not seems to be working at Firefox(latest version)

midnz 12-06-2011 06:44 AM

Quote:

Originally Posted by tafreeh (Post 2275075)
does not seems to be working at Firefox(latest version)

What version of Firefox is the (latest version)? I'm using Firefox 8.0 and just tested the demo which still works for me.


All times are GMT. The time now is 01:53 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.00991 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete