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

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Vimeo Comcode

Login / Search

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

Community saint

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
Back to the top
 
Posted
Rating:
#77761
Avatar

:cool:


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#77762
Avatar

Worth re-posting onto the community docs IMO.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
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

Community saint

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

Community saint

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
Back to the top
 
Posted
Rating:
#77767
Avatar

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. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#77768
Avatar

Community saint

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

Community saint

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 (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#77777
Avatar

Community saint

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
Back to the top
 
Posted
Rating:
#77778
Avatar

Community saint

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 (version 9.x.x) 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: