Forum Activity for @pch

pch
@pch
06/25/16 02:25:40AM
328 posts

How to make Audio and Video Categories (genres) a link ?


Using Jamroom

Hi Douglas,

I have been trying to make Audio and Video Categories (genres) a link using the solution that you posted here:

https://www.jamroom.net/the-jamroom-network/forum/using-jamroom/845/video-genre-field

https://www.jamroom.net/the-jamroom-network/forum/design-and-skin-customization/14628/how-to-create-a-genre-block

I've changed:

{$item.audio_genre}
to
<a href="{$jamroom_url}/search_area=audio_genre/search_string={$item.audio_genre}">{$item.audio_genre}</a>

but it doesn't work. Maybe because it was for an old version of JR or an old template version. (maybe)

How to make Audio and Video Categories (genres) a link on the audio and video item detail page, the main Audio and video page and on the search result page ?

Thanks


updated by @pch: 10/05/16 10:49:24AM
pch
@pch
06/25/16 12:45:37AM
328 posts

How to add a comment count under the audio and video item detail page?


Using Jamroom

Hello,

How to add a comment count under the audio and video on the item detail page like on Youtube?

E.g:

Comments: 35

Thanks
updated by @pch: 10/21/16 08:57:26AM
pch
@pch
06/25/16 12:11:45AM
328 posts

How to add the who is online for the entire site?


Using Jamroom

Hi Douglas,

Thanks. Your way of showing guests was the best one but because of this last issue i will use Brian's solution. Still no way to fix it?

Isn't there really a way to get a language string to work in a gs variable like this:

{if $visitor_count == 1}
{$gs = '...... language string here.....'}
{else}
{$gs = ..... language string here.....'}
{/if}

Thanks
updated by @pch: 06/25/16 12:21:55AM
pch
@pch
06/25/16 12:01:31AM
328 posts

OneAll Questions


Using Jamroom

michael:
The suggestion was to read those docs and watch the videos on the docs page, then you will understand that part.
the {if} statement will work in .tpl files. If the file comes from jamroom, you can make it mulit-lingual in the same way outlined in your other thread:https://www.jamroom.net/the-jamroom-network/forum/using-jamroom/40891/creating-a-page

Your answers to posts are sometimes hard to understand but I will try to do my best to find my way.

michael:
A: oneall is not a template, its provided by the oneall site so you probably can't do much customization in this area.

I have already understood the OneAll part. Thanks.

I would like to add a language string on the login and the sign up page. Where are their templates located at? I can't find them in the admin.

Thanks
pch
@pch
06/24/16 01:52:58PM
328 posts

How to add a Search by date Range?


Using Jamroom

Hi Douglas

I am thankful for the great support you are providing.

You have already assisted me with some of the questions related to this topic here:
https://www.jamroom.net/the-jamroom-network/forum/using-jamroom/39942/how-to-upload-and-search-audio-and-video-by-date-and-location

but in order to organize things in the forum as Michael always suggests us I have decided to create a separate topic for this specific question:

How to add a Search by Date Range as an option in the main search?

I have created a date field as you advised me in the link above. How to allow users who don't remember anymore the subject or the audio or video title of an event or conference (but who know approximately when that event took place), to search by date range?

E.g: From: September 05, 2013 to: November 12, 2013

Then JR will return a result of that date range.

Thanks
updated by @pch: 10/25/16 05:52:46AM
pch
@pch
06/24/16 01:30:08PM
328 posts

How to upload and search audio and video by date and location?


Using Jamroom

douglas:
The form designer will do what you want.
Just add a date field, not a datetime field unless you need the time too, via the form designer and you should be able to search by date. You can do the same for the Location.

Hi Douglas,

Thanks a lot for the great support. It exactly what I was looking for. I am so happy. It works.

By the way, how to translate the date picker? e.g: Mon, Tue, Wed, etc... September, October ect

For the Location, what do you advise me? A "text" field or a "select_and_text" field?

Also, I have just remembered that "Conference" which is one of our audio and video categories has a speaker and one conference can have more than one speakers at a time (3 or 5 speakers per conference).

I would like to have a field like "speakers" in order to add many speakers to an audio or video. We know all our conference speakers (there are more than twenty of them).

Which field type would you recommend? A "checkbox" or a "select_multiple" field type?
Note: The speakers field will be searchable. One can search for a video of two or more speakers of the same conference.

douglas:
You may also need to rebuild the search index after creating new fields... ACP > Listing > Search > Tools > Rebuild Index.

Yes, I have done it and I added the audio_publish_date in the "Additional Search Fields" in the search module > Global config, but the date field is not showing as an option in the search pop-up window when you click on the search magnifying glass (I am using Elastic clone)

Should I put {$item.audio_publish_date} in the search template?

douglas:
If you need to show those fields on the profiles detail page, you'll have to modify the item_detail.tpl, ACP > Profiles > Audio > Templates, and add the variables for the new form fields where you would like them to show.

The variables will be the name of the field, ie. if you name the new field audio_publish_date, the variable used in the item_detail.tpl file will be {$item.audio_publish_date}.

I have added {$item.audio_publish_date} in the item_detail.tpl file. Instead of outputting the date (e.g 24 Jun 2016) it displays this: 1272146400

Have I missed something?

Also i would like to output the audio_publish_date on the main Audio and video page (where all audio and video are listed) and on the Audio and video Album page. How to do it and which file to edit?

Same with the audio_description and video_description fields that I created. I would like to display them on the main Audio and video page and on the Audio and video Album page. I have already managed to display them on the Audio and video detail page.

Thanks for a lot for the support.
pch
@pch
06/23/16 06:32:41AM
328 posts

How to add the who is online for the entire site?


Using Jamroom

brian:
The reason it still shows you online is that this function:
jrUser_whos_online()
Gets users that have been active within the last 15 minutes (900) seconds. You can change that by passing in the seconds:
{jrUser_whos_online template=$online_tpl length=600}
This is NOT going to give you an up to the second "whos online" - this is more "users active in last XX seconds".

Thanks Brian.

I understand. it makes sense. What is the default setting being used here in the JR site? 900 or 600 seconds?
pch
@pch
06/23/16 06:28:25AM
328 posts

How to add the who is online for the entire site?


Using Jamroom

douglas:
This is probably due to caching as well, it saw you as a guest before you logged in, and then as the logged in user, try resetting your cache, ACP > System Tools > Reset Cache, and clear your browser cache as well. lf you turn dev mode on as mentioned above, you shouldn't see this issue at all and you shouldn't have to reset your cache.

Yes, it is probably because of the cache. Then, users in JR are being shown twice at the same time: as logged users and as guests, because there were guest few minutes or seconds before logging.

Even here in the JR Forum the guests that we are seeing in the Who is online are probably "us" - logged users (There are not really users - I am not quite sure, I am just presuming). That can lead us to conclude that the Who is online is not accurate because of the duplication, right?

Is it possible to make "logged in user" a real "logged in user" and a "guest", a true/real "guest"?

douglas:
{if $visitor_count == 1}
{jrCore_lang skin=$_conf.jrCore_active_skin id="#" default="Guest"  assign="gs"}
{else}
{jrCore_lang skin=$_conf.jrCore_active_skin id="#" default="Guests"  assign="gs"}
{/if}

It works. Thanks Douglas.

Just another small issue:

If there was more than 1 visitor online, when JR removes them from the Who is Online, it shows:

0 Visitantes

instead of:

0 Visitante

Please notice that visitante (guest) is being display in plural and not in singular. it should have used the correct language string in singular because the number is 0 (zero). The number updates but the language string doesn't. It will keep on showing 0 Guests (guest in plural) for almost forever till another guest will be online. Then it will go back to normal and show: 1 Guest (in singular).

How to fix it?

Thanks
pch
@pch
06/23/16 05:51:35AM
328 posts

How to add the who is online for the entire site?


Using Jamroom

brian:
Just to add that you can avoid this by using the tag as a prefix - i.e. use this:
Quote:
guests: 1
instead of:
Quote:
1 guests

Yes it is a good alternative in such a situation. Thanks Brian.
pch
@pch
06/23/16 05:48:12AM
328 posts

OneAll Questions


Using Jamroom

Thanks Michael.

I will order a OneAll Plan.

michael:
You can use the {debug} function to find out which variables are available to you, then use an {if} template block to switch on the lanugage variable
Docs: "{debug}"https://www.jamroom.net/the-jamroom-network/documentation/development/1477/debug
Docs: Template Blockshttps://www.jamroom.net/the-jamroom-network/documentation/development/3126/template-blocks

Sorry but i didn't understand this part.

Will the {if} statement work in the OneAll Email Template?
Will OneAll module send a welcome email in let's say "Spanish" when a user signs up when visiting the spanish version of the site?

Also what about question #1 and #2 ?

Thanks
  14