Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
embedding a non youtube video
Avatar
joe griffith
Member
Free Members
sp_UserOfflineSmall Offline
Aug 15, 2013 - 2:32 pm

Thank you.

So adding iframes through filters will work?

How do I use these filters?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 15, 2013 - 3:29 pm

it is in 2 parts. Part one is here:
https://simple-press.dev/suppo.....t/#p117400

I need to do a little more work for the second part but will come back on it.

andy-signature.png
YELLOW
SWORDFISH
Avatar
joe griffith
Member
Free Members
sp_UserOfflineSmall Offline
Aug 15, 2013 - 4:07 pm

Hi,

Thank you for doing this, I do appreciate it. Ummmm...the link above says "server not found" < sorry:(

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 15, 2013 - 4:25 pm

Whoops. Sorry. Should be this

https://simple-press.com/suppo.....t/#p117400

andy-signature.png
YELLOW
SWORDFISH
Avatar
joe griffith
Member
Free Members
sp_UserOfflineSmall Offline
Aug 15, 2013 - 5:06 pm

Worked like a charm!!!Thank you!!!

In case someone claims the code doesn't work. You have to first create the topic and save it. Next, edit the topic and click the html tab and add the iframe code. Click save.

I banged in 36 videos in 42 minutes :)

Tada..you now have video via iframe.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 15, 2013 - 7:22 pm

that by itself worked???

should have had to use a second filter - which was created after that old post...  maybe thats why you have to edit the post... you shouldnt have too...

add_filter('sph_forum_vars', 'my_forum_vars');
function my_forum_vars($strings) {
$strings['checkiframe'] = 'no';
return $strings;
}

that might be your issue on saving when creating...

Avatar
joe griffith
Member
Free Members
sp_UserOfflineSmall Offline
Aug 16, 2013 - 11:36 am

Mr Papa said
that by itself worked???

should have had to use a second filter - which was created after that old post...  maybe thats why you have to edit the post... you shouldnt have too...

<br />

add_filter('sph_forum_vars', 'my_forum_vars');
function my_forum_vars($strings) {
$strings['checkiframe'] = 'no';
return $strings;
}

<br />

that might be your issue on saving when creating...

You sound surprised Mr. Papa :)

Yes, it did work other than what I mentioned above. Thanks for the additional code, I'll add this to the library.

 

Thanks again,

Joe

 

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 16, 2013 - 12:18 pm

And with the next version iframes will become a permission and we will all keep our fingers crossed...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 16, 2013 - 10:47 pm

surprised because the 2nd filter is what is need to work on the initial save... hadnt realized you could get around that filter by editing...

but with the second change, it should work fine when saving first time...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17366
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626