[hack] Add flash to Posts, with Admin hack for easy entry
Goto page 1, 2  Next
 
Post new topic   Reply to topic   printer-friendly view    b2evolution Forum Index -> Plugins & Extensions
View previous topic :: View next topic  
Author Message
heppy
New Poster
New Poster

Joined: 09 May 2006
Posts: 14
Reputation: 5.2Reputation: 5.2Reputation: 5.2Reputation: 5.2Reputation: 5.2 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Tue May 09, 2006 7:30    Post subject: [hack] Add flash to Posts, with Admin hack for easy entry Reply with quote

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
View user's profile Send private message
whoo
Cleaning Crew Lead
Cleaning Crew Lead

Joined: 25 Dec 2004
Posts: 1293
Reputation: 100.1 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 19

PostPosted: Tue May 09, 2006 7:35    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
heppy
New Poster
New Poster

Joined: 09 May 2006
Posts: 14
Reputation: 5.2Reputation: 5.2Reputation: 5.2Reputation: 5.2Reputation: 5.2 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Tue May 09, 2006 7:39    Post subject: Reply with quote

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.
Shocked
Back to top
View user's profile Send private message
John
the uncertain

Joined: 22 Jun 2004
Posts: 2147
Reputation: 4.6Reputation: 4.6Reputation: 4.6Reputation: 4.6 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 27

PostPosted: Tue May 09, 2006 7:42    Post subject: Reply with quote

Heppy, what version are you running this on?
_________________
See the Sites in in Venice
Back to top
View user's profile Send private message Visit poster's website
whoo
Janitor
Janitor

Joined: 25 Dec 2004
Posts: 1293
Reputation: 100.1 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 19

PostPosted: Tue May 09, 2006 7:48    Post subject: Reply with quote

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.
Shocked


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 Smile

_________________

Do you use last.fm?
Try out my nifty badge generator!
Back to top
View user's profile Send private message Visit poster's website
heppy
New Poster
New Poster

Joined: 09 May 2006
Posts: 14
Reputation: 5.2Reputation: 5.2Reputation: 5.2Reputation: 5.2Reputation: 5.2 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Tue May 09, 2006 7:58    Post subject: Reply with quote

John wrote:
Heppy, what version are you running this on?



0.9.1 "Dawn" 2005-09-16
Back to top
View user's profile Send private message
John
the uncertain

Joined: 22 Jun 2004
Posts: 2147
Reputation: 4.6Reputation: 4.6Reputation: 4.6Reputation: 4.6 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 27

PostPosted: Tue May 09, 2006 8:09    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
heppy
New Poster
New Poster

Joined: 09 May 2006
Posts: 14
Reputation: 5.2Reputation: 5.2Reputation: 5.2Reputation: 5.2Reputation: 5.2 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Tue May 09, 2006 8:18    Post subject: Reply with quote

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
View user's profile Send private message
John
the uncertain

Joined: 22 Jun 2004
Posts: 2147
Reputation: 4.6Reputation: 4.6Reputation: 4.6Reputation: 4.6 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 27

PostPosted: Sun Aug 13, 2006 7:57    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
dharvell74
New Poster
New Poster

Joined: 23 Aug 2006
Posts: 1
add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Wed Aug 23, 2006 18:24    Post subject: Flash controller skins i.e. play/pause etc. Reply with quote

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
View user's profile Send private message
heppy
New Poster
New Poster

Joined: 09 May 2006
Posts: 14
Reputation: 5.2Reputation: 5.2Reputation: 5.2Reputation: 5.2Reputation: 5.2 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Tue Oct 03, 2006 7:39    Post subject: Reply with quote

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
View user's profile Send private message
John
the uncertain

Joined: 22 Jun 2004
Posts: 2147
Reputation: 4.6Reputation: 4.6Reputation: 4.6Reputation: 4.6 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 27

PostPosted: Tue Oct 03, 2006 7:57    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
John
the uncertain

Joined: 22 Jun 2004
Posts: 2147
Reputation: 4.6Reputation: 4.6Reputation: 4.6Reputation: 4.6 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 27

PostPosted: Tue Oct 03, 2006 8:20    Post subject: Reply with quote

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 Smile
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
View user's profile Send private message Visit poster's website
heppy
New Poster
New Poster

Joined: 09 May 2006
Posts: 14
Reputation: 5.2Reputation: 5.2Reputation: 5.2Reputation: 5.2Reputation: 5.2 add or subtract from this member's reputationadd or subtract from this member's reputation

PostPosted: Tue Oct 03, 2006 9:56    Post subject: Reply with quote

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
View user's profile Send private message
John
the uncertain

Joined: 22 Jun 2004
Posts: 2147
Reputation: 4.6Reputation: 4.6Reputation: 4.6Reputation: 4.6 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 27

PostPosted: Wed Nov 29, 2006 21:21    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    b2evolution Forum Index -> Plugins & Extensions All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
b2evolution Support Forum RSS Feed Forums powered by php Bulletin Board