| View previous topic :: View next topic |
| Author |
Message |
heppy New Poster

Joined: 09 May 2006 Posts: 14
     
|
Posted: Tue May 09, 2006 7:30 Post subject: [hack] Add flash to Posts, with Admin hack for easy entry |
|
|
This is for version: 0.9.1 "Dawn" 2005-09-16
No idea if it works on other versions.
So i was looking for an easy way to add flash to my posts, as mine will be mainly a flash blog it was very important.
You need to update 2 files. I recommend making backups in case it doesn't work for you.
I am posting my files so if you have made any other modifications, you need to find the changes. If you need help, just ask
1. The html validation file (in conf/_formatting.php)
2. The php file that adds the buttons to write entry screen (plugins/toolbars/_quicktags.toolbar.php)
I haven't tested it extensively, but it works in internet explorer and firefox in windows.
the hotkey is alt-f to insert flash.
Last edited by heppy on Tue May 09, 2006 7:59; edited 1 time in total |
|
| Back to top |
|
 |
whoo Cleaning Crew Lead

 Joined: 25 Dec 2004 Posts: 1293
  votes: 19
|
Posted: Tue May 09, 2006 7:35 Post subject: |
|
|
Thats mighty cool of you Ron -- not only have you provided something I am sure people will find most useful, but you've made me feel great about adding the ability to do attachments!!
Hats off!! _________________
Do you use last.fm?
Try out my nifty badge generator!
|
|
| Back to top |
|
 |
heppy New Poster

Joined: 09 May 2006 Posts: 14
     
|
Posted: Tue May 09, 2006 7:39 Post subject: |
|
|
it makes sense for the attachmentrs, i was trying to post the code in either the code or php tags, but it converts the text "=>" that is in the formatting.php into an arrow.
 |
|
| Back to top |
|
 |
John the uncertain
Joined: 22 Jun 2004 Posts: 2147
     votes: 27
|
Posted: Tue May 09, 2006 7:42 Post subject: |
|
|
Heppy, what version are you running this on? _________________ See the Sites in in Venice |
|
| Back to top |
|
 |
whoo Janitor

 Joined: 25 Dec 2004 Posts: 1293
  votes: 19
|
Posted: Tue May 09, 2006 7:48 Post subject: |
|
|
| heppy wrote: |
...i was trying to post the code in either the code or php tags, but it converts the text "=>" that is in the formatting.php into an arrow.
 |
yah, its best to disable smileys (its one of the options when you create a post) for any posts youre going to put code snippits in, that fixes it, just in case you decide to share something else  _________________
Do you use last.fm?
Try out my nifty badge generator!
|
|
| Back to top |
|
 |
heppy New Poster

Joined: 09 May 2006 Posts: 14
     
|
Posted: Tue May 09, 2006 7:58 Post subject: |
|
|
| John wrote: |
| Heppy, what version are you running this on? |
0.9.1 "Dawn" 2005-09-16 |
|
| Back to top |
|
 |
John the uncertain
Joined: 22 Jun 2004 Posts: 2147
     votes: 27
|
Posted: Tue May 09, 2006 8:09 Post subject: |
|
|
Works a treat Heppy, I havn't noticed any issue with other stuff, the page validates, so thanks. _________________ See the Sites in in Venice |
|
| Back to top |
|
 |
heppy New Poster

Joined: 09 May 2006 Posts: 14
     
|
Posted: Tue May 09, 2006 8:18 Post subject: |
|
|
| John wrote: |
| Works a treat Heppy, I havn't noticed any issue with other stuff, the page validates, so thanks. |
Cool, let me know if you discover any bugs. |
|
| Back to top |
|
 |
John the uncertain
Joined: 22 Jun 2004 Posts: 2147
     votes: 27
|
Posted: Sun Aug 13, 2006 7:57 Post subject: |
|
|
Just converted this to 1.8 beta...
Will post it here after I crash test the thing a bit more. _________________ See the Sites in in Venice |
|
| Back to top |
|
 |
dharvell74 New Poster

Joined: 23 Aug 2006 Posts: 1  
|
Posted: Wed Aug 23, 2006 18:24 Post subject: Flash controller skins i.e. play/pause etc. |
|
|
| Hey how do you get flash skins to work with this hack? like play/pause rewind feature if you use one of flash's default skins like ArticExternalAll.swf? |
|
| Back to top |
|
 |
heppy New Poster

Joined: 09 May 2006 Posts: 14
     
|
Posted: Tue Oct 03, 2006 7:39 Post subject: |
|
|
| John wrote: |
Just converted this to 1.8 beta...
Will post it here after I crash test the thing a bit more. |
John, any luck getting this to work in serenity?
every time i edit the _formatting.php and try and load any page in the blog it gives me just: Do not access this page directly
any ideas? |
|
| Back to top |
|
 |
John the uncertain
Joined: 22 Jun 2004 Posts: 2147
     votes: 27
|
Posted: Tue Oct 03, 2006 7:57 Post subject: |
|
|
Yep...works fine though I got a bit lost in the _formatting.php for a while.
The error your getting appears to be because you are using the previous _formatting.php.
You have to edit the latest.
I will post the files here as soon as possible
Working example is at
http://wow-factor.com/index.php/flash_plugin_test _________________ See the Sites in in Venice |
|
| Back to top |
|
 |
John the uncertain
Joined: 22 Jun 2004 Posts: 2147
     votes: 27
|
Posted: Tue Oct 03, 2006 8:20 Post subject: |
|
|
Updated for B2 1.8 and works with 1.8.2
Please make sure you back up your files as the only science I used with this was "suck it and see" but it has survived B2 upgrades and still works
It is simply a transfer of the work by heppy
Working example: http://wow-factor.com/index.php/flash_plugin_test
Files edited:
conf/_formatting.php
and
plugins/_quicktags.plugin.php _________________ See the Sites in in Venice |
|
| Back to top |
|
 |
heppy New Poster

Joined: 09 May 2006 Posts: 14
     
|
Posted: Tue Oct 03, 2006 9:56 Post subject: |
|
|
well done!
i actually got it working, i was uploading from the wrong directory, so kept putting up the old file! stupido!
Nice collection of links by the way John! |
|
| Back to top |
|
 |
John the uncertain
Joined: 22 Jun 2004 Posts: 2147
     votes: 27
|
Posted: Wed Nov 29, 2006 21:21 Post subject: |
|
|
Updated this hack for B2Evo 1.9.0 beta
NOTE: this is version specific so if you are not upgrading to 1.9 give it a miss.
Please back up your original files before doing anything. _________________ See the Sites in in Venice |
|
| Back to top |
|
 |
|