Start Online Training

Get access to all our video classes and support. That's 1808 training sessions in Joomla, Drupal, WordPress, Coding and SEO.
Prices start only at only 25 USD per month

Testimonials

Testimonials OSTrainingHI folks! To start with, I'm really enjoying the OStraining videos. They are a wonderful, wonderful, WONDERFUL support to someone who is not enamored with spending hours fumbling over webdesign like a blindfolded surgeon! "Hey look guys, whatever I did, it works!" "

~ Rebekah

 

Start a FREE 7 day trial! Get training videos and books, plus expert support:  

TOPIC: Inserting html code into K2 item

Inserting html code into K2 item 1 year 2 months ago #64431

Hi sorry if this is a really dumb question but I want to be able to show countdown timers in K2 items. What is a good method to do this? The countdown timers are in html code.

Actually I have just got SobiPro too and see that it has an "allow HTML code". This might be a better option for my events listings.
Last Edit: 1 year 2 months ago by Noetikos.
Please become a member of OSTraining to reply to this post.

Inserting html code into K2 item 1 year 2 months ago #64437

  • tessa
  • tessa's Avatar
  • OFFLINE
  • Posts: 4073
  • Thank you received: 144
Noetikos wrote:
Hi sorry if this is a really dumb question but I want to be able to show countdown timers in K2 items. What is a good method to do this? The countdown timers are in html code.

Actually I have just got SobiPro too and see that it has an "allow HTML code". This might be a better option for my events listings.

Hi Noetikos,

I'm not sure how you would have a countdown timer work with just html. HTML is static code that shouldn't do "something". A countdown timer could be created using HTML and JavaScript code.

Also there are several countdown modules you can just install to your site to obtain the same thing.

If you installed a countdown module, you can insert your module into a k2 item by using the following extension Modules Anywhere:
extensions.joomla.org/extensions/core-en...embed-a-include/6402

And if you decided to go the route of using your html/javascript code for your own, you can using an extension called Sourcerer found here:
extensions.joomla.org/extensions/core-en...code-in-content/5051
Warm Regards,

Tessa Mero



Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Inserting html code into K2 item 1 year 2 months ago #64441

Great I will try them as well as seeing how SobiPro deals with this.
Please become a member of OSTraining to reply to this post.

Inserting html code into K2 item 1 year 2 months ago #64470

  • tessa
  • tessa's Avatar
  • OFFLINE
  • Posts: 4073
  • Thank you received: 144
Noetikos wrote:
Great I will try them as well as seeing how SobiPro deals with this.

No problem, let me know how it works out. :-)
Warm Regards,

Tessa Mero



Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Inserting html code into K2 item 1 year 2 months ago #64643

Hhmmm, no progress yet. I investigated the whole modules anywhere thing and managed to update my .htaccess file etc to make the required php 5.3 to install this. It will be useful for a whole lot of things I am sure, however all the countdown modules need back-end setting up and I want it for front-end users when they are entering their virtual events. I have a few options for presenting the events: SobiPro (which I am totally hopeless at using still), K2, Jomsocial or Kunena. BBcode for countdowns is relatively easily obtained from a few sites such as pending.me.uk, so could be a good option to use in Kunena. If it wasn't for timezones the Jomsocial eventing system would be fine. You can set that system to display timezone information at least, but it is overly detailed. Anyway, I will keep experimenting. Not many virtual eventers out there? Also I believe using Javascript can cause lags? I did get a countdown into the JomSocial events 'details' but can't replicate however I did it. One other person did this too but as the timezone conversion was done with him counting on his fingers (and possibly toes), he got it wrong and the countdown ended 4 hrs after the event. !!!!!! gahhh!!!!!!! Also investigating "Leoclock" which sounds like it was created for the same purpose, an online multiplayer gaming website.

Any ideas gratefully accepted.
Please become a member of OSTraining to reply to this post.

Inserting html code into K2 item 1 year 2 months ago #64648

  • tessa
  • tessa's Avatar
  • OFFLINE
  • Posts: 4073
  • Thank you received: 144
Noetikos wrote:
Hhmmm, no progress yet. I investigated the whole modules anywhere thing and managed to update my .htaccess file etc to make the required php 5.3 to install this. It will be useful for a whole lot of things I am sure, however all the countdown modules need back-end setting up and I want it for front-end users when they are entering their virtual events. I have a few options for presenting the events: SobiPro (which I am totally hopeless at using still), K2, Jomsocial or Kunena. BBcode for countdowns is relatively easily obtained from a few sites such as pending.me.uk, so could be a good option to use in Kunena. If it wasn't for timezones the Jomsocial eventing system would be fine. You can set that system to display timezone information at least, but it is overly detailed. Anyway, I will keep experimenting. Not many virtual eventers out there? Also I believe using Javascript can cause lags? I did get a countdown into the JomSocial events 'details' but can't replicate however I did it. One other person did this too but as the timezone conversion was done with him counting on his fingers (and possibly toes), he got it wrong and the countdown ended 4 hrs after the event. !!!!!! gahhh!!!!!!! Also investigating "Leoclock" which sounds like it was created for the same purpose, an online multiplayer gaming website.

Any ideas gratefully accepted.

Hi Noetikos, I completely understand what you are asking.

I did mention countdown's require javascript, but the javascript code is already generated and being used from another server, so the only thing you will need is the HTML code, as you mentioned to us. The whole "code" is displayed through an iframe, which all the "real" code is on their site.

So all you have to do is open up any article, k2 item, or anywhere you can type text code in, and paste the code in there and it should work.

You will not need sourcerer or modules anywhere to do the above task. :-) Didn't realize you just wanted to paste an iFrame, but it's okay.

Did you do any other research on countdown modules and see if you liked any found in the URL below:
extensions.joomla.org/search?q=countdown

Did you have any other questions? :-) Did any of this help?
Warm Regards,

Tessa Mero



Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

 

Start a FREE 7 day trial! Get training videos and books, plus expert support: