HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Vimeo Comcode

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#77757 (In Topic #15985)
Avatar

Honoured member

I added a new comcode for vimeo video's.   If anyone is interested, this is it:

Code

{$SET,VIDEO,{$PREG_REPLACE,(http://.*\?v=)?(http://vimeo.com/)?([\w\-]+)(.*)?,$\{3\},{content}}}<object width="384" height="288"><iframe allowfullscreen="" frameborder="0" height="288" mozallowfullscreen="" src="http://player.vimeo.com/video/{$GET*,VIDEO}?title=0&amp;byline=0&amp;portrait=0" webkitallowfullscreen="" width="384"></iframe>

Paul


Paul
Webmaster: Air-RC An RC Aircraft Community.
Back to the top
 
Posted
Rating:
#77761
Avatar

ocStaff (admin)

:cool:



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#77762
Avatar

ocStaff (admin)

Worth re-posting onto the community docs IMO.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#77763
Avatar

Community saint

It's nice to see more coding discussion from those who are capable. It's a great contribution to the community.

Bob
Back to the top
 
Posted
Rating:
#77764
Avatar

Honoured member

I don't know how to re-post to the docs, or I should say I haven't looked into it as of yet.

Bob, there is a lot more I have on my list.   My bottleneck is wrapping a lot of the template stuff and how the coding for database access is set up and where things are stored.



Paul
Webmaster: Air-RC An RC Aircraft Community.
Back to the top
 
Posted
Rating:
#77765
Avatar

Community saint

Well, you seem quite capable or, at least, persistent. It's just nice to see people contributing to the community in whatever way they can.

Bob
Back to the top
 
Posted
Rating:
#77766
Avatar

Honoured member

I'm always glad to help when I can.   Probably a good bit of the stuff will not be things others want on their site, but it may at least give them ideas, or help get to something else they want.

I have done a lot of web stuff in the past, mostly PHP.   So once I get 'on-step' with all the internals of ocPortal I should be able to be of more help, and put out much more.

Some of the things I added on my 'custom tasks' in my admin area (so I remember) is adding a list for tracked topics (which someone mentioned elsewhere) and a block to show most recent user blog entries (which is one specific for me).   I know I had a few more, but I forgot to write them down.   ;)

But I am slowly going through the software and figuring it all out.   Messing with permissions and such to hide away stuff I don't want on the site, or don't want guests to see.   I even figured out I could hide a forum for general users and have it only acessable to those in a usergroup I made, so they can join or leave as they wish.  Pretty handy stuff once you get the hang of it.

The guys who came up with ocPortal get the big cudo's for thinking outside of the box on a lot of stuff while putting this system together.



Paul
Webmaster: Air-RC An RC Aircraft Community.
Back to the top
 
Posted
Rating:
#77767
Avatar

ocStaff (admin)

Fantastic :).

adding a list for tracked topics (which someone mentioned elsewhere)

If you're planning to upgrade to v8 when it comes, I'd have that on the end of your list. It might happen via us, but I'm not 100% sure yet.



Become a fan of ocPortal on Facebook or add me as a friend.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#77768
Avatar

Honoured member

I haven't even read the v8 thread yet… I just got started with this one.   I don't want to read that a lot will change and then I'd have to re-figure it all out to put my changes back in.  ;)



Paul
Webmaster: Air-RC An RC Aircraft Community.
Back to the top
 
Posted
Rating:
#77769
Avatar

Community saint

Chris Graham said

Fantastic :).

adding a list for tracked topics (which someone mentioned elsewhere)

If you're planning to upgrade to v8 when it comes, I'd have that on the end of your list. It might happen via us, but I'm not 100% sure yet.

I think I may have been the one to ask for that or, at least, chimed in with my desire to see something like this.

Sounds like we will get a solution one way or another.

Bob
Back to the top
 
Posted
Rating:
#77772
Avatar

Community saint

Arbo said

I haven't even read the v8 thread yet… I just got started with this one.   I don't want to read that a lot will change and then I'd have to re-figure it all out to put my changes back in.  ;)
There's really not much information in the v8 thread except the statement that the design goals are different with a few hints to what might be added. I think it is a bit too early in the game for Chris to determine if a lot of the paid development is well-suited for a general release of ocPortal. Chris likes to always over-deliver so I think he is quite cautious about over-promising.

That said, I have found the best source of clues as to what might be is the commit log from github. I suspect you could glean a lot more out of it since you'll be able to make better sense of the attached code.

I guess I could pull a github version and install it but I am just so busy with thing plus all the holiday stuff going on.

At any rate, I am quite excited by the prospects of v8 and wish it was here yesterday. I know it contains some goodies that I sponsored so that already makes it a win for me. Any added stuff could only possibly mean an even happier me.  :)

Bob
Back to the top
 
Posted
Rating:
#77776
Avatar

Hallowed customer

Arbo said

I added a new comcode for vimeo video's.   If anyone is interested, this is it:
Thanks, Paul.

Will build a custom-comcode tag and see how it works - tomorrow.

 :thumbs:

Take my advice. I'm not using it!
View my working ocPortal site at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#77777
Avatar

Honoured member

Fletch (and everyone else)….

I realized I messed up with this code.  I forgot the

Code

</object>
  
at the end of it.  Without that it causes problems.  So ensure you do that.


Paul
Webmaster: Air-RC An RC Aircraft Community.
Back to the top
 
Posted
Rating:
#77778
Avatar

Hallowed customer

thanks

'/object' added




Update: Added the code to a custom-comcode tag named 'vimeo' and it all works perfectly. Thanks again Paul, and the points are going up in a mo!

 :thumbs:


Last edit: by Fletch

Take my advice. I'm not using it!
View my working ocPortal site at Anglo-Indian Portal
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: