Forum Activity for @derrickhand300

derrickhand300
@derrickhand300
08/30/16 06:43:03AM
1,353 posts

Adding Tags Using Form Designer


Design and Skin Customization

I have been working last night and this morning following @developer-networks method by using debug to get the variables from the youtube_item_list.tpl then adding them to the template using the code below
{jrSeamless_list modules="jrVideo,jrYouTube" order_by="_created numerical_desc"  search1="youtube_grade_0 = Football" search2="youtube_grade_1 = 3rd/4th" pagebreak=15 page=$_post.p pager=false template=$tpl}

This code is now getting the proper YT videos into the template- so now I am trying to get the jrVideo videos into the template so went through the same process and added debug to jrVideo_item_detail.tpl and find what I need as
search1="video_tag_0 = Football" search2="video_tag_1 = 3rd/4th"
Is there a proper way to combine this code with the one above it?
Would you use
SEARCH 1
SEARCH 2
SEARCH 3
SEARCH 4

I appreciate your help and all the help from developer-network :)
derrickhand300
@derrickhand300
08/30/16 04:10:32AM
1,353 posts

Adding Tags Using Form Designer


Design and Skin Customization

Thank you
So I have added the following ( screenshot) to jrYouTube Form Designer so that i select FOOTBALL from available sports THEN select a grade level of 3rd/4th and upload a video ( actually 3 for testing)
I use this template code to get all FOOTBALL videos that are tagged 3rd/4th
<h1>3rd and 4th Grade Football Videos</h1>
<div id="vidwrap">
<p><a title="Share A YouTube Video" href="http://sayreeagles.net/youtube/create" target="_blank"><img style="float: left; margin: 10px;" src="http://sayreeagles.net/upimg/image/upimg_file/74/128" alt="Share A YouTube Video" border="0"></a> <a title="Upload A Video File From Your Device" href="http://sayreeagles.net/uploaded_video/create" target="_blank"><img style="float: left; margin: 10px;" src="http://sayreeagles.net/upimg/image/upimg_file/75/128" alt="Upload A Video From Your Device" border="0"></a></p>
{capture name="template" assign="tpl"}
{literal}
    <div class="container">
        {foreach $_items as $item}
        {if $item@first || ($item@iteration % 3) == 1}
        <div class="row">
            {/if}
            <div class="col4">
                <div class="img-profile">
                    {if $item.seamless_module_name == "jrYouTube"}
                    <a href="{$jamroom_url}/{$item.profile_url}/youtube/{$item._item_id}/{$item.video_title_url}">
                        <img src="{$item.youtube_artwork_url}" class="rank_image" width=150 height=84/></a>                  
                    {elseif $item.seamless_module_name == "jrVideo"}
                            <a href="{$jamroom_url}/{$item.profile_url}/video/{$item._item_id}/{$item.video_title_url}">{jrCore_module_function function="jrImage_display" module="jrVideo" type="video_image" item_id=$item._item_id size="large" alt=$item.video_title title=
$item.video_title class="top_rank" width=150 height=84}</a>
                            {/if}
                        </div>
                
                <div class="center mb10">
                    {if $item.seamless_module_name == "jrYouTube"}
                    <a href="{$jamroom_url}/{$item.profile_url}/youtube/{$item._item_id}/{$item.youtube_title}">{$item.youtube_title|truncate:24}</a>                   
                         {elseif $item.seamless_module_name == "jrVideo"}   
                        <a href="{$jamroom_url}/{$item.profile_url}/video/{$item._item_id}/{$item.video_title_url}">{$item.video_title|truncate:24}</a>
                        {/if}
                        <br>                      
                </div>
            </div>
            {if $item@last || ($item@iteration % 3) == 0}
        </div>
        {/if}
        {/foreach}
    </div>
{/literal}
{/capture}   
   {jrSeamless_list modules="jrVideo,jrYouTube" order_by="_created numerical_desc"  search1="*_category = football" search2="*_tags LIKE %3rd%" search3="*_tags LIKE %4th%" pagebreak=15 page=$_post.p pager=false template=$tpl}
</div>
Integrity Check/Clear Cache and no matter how many times I try NO videos appear on the page?
Can someone tell me what I am doing wrong?
derrickhand300
@derrickhand300
08/29/16 05:00:46PM
1,353 posts

Adding Tags Using Form Designer


Design and Skin Customization

Thanks Brian
Will those tags then be searchable using the datastore in the same way a video or photo tag is?
I will try this agin this evening when back in front of the PC
THANKS AGAIN
derrickhand300
@derrickhand300
08/29/16 02:10:04PM
1,353 posts

Adding Tags Using Form Designer


Design and Skin Customization

Thanks- but that's not working as you can see here...
http://sayreeagles.net/test/
If possible I would prefer not rewriting the template code for approx 70 places where this is embedded and not have to add debug to all the pages to get the variables-then I would have to do all the same for all the jrVideo pages...
Just hoping there is a simple way to add the Form Field to photos and videos where the user has to select from a predefined set of tags and add one to their upload..
I appreciate your help though
derrickhand300
@derrickhand300
08/29/16 12:41:03PM
1,353 posts

Adding Tags Using Form Designer


Design and Skin Customization

Thanks- but thats not working for me here...anyone know an easier way to do this with TAGS?
I just want people to select a CATEGORY ( already set up) then select a GRADE ( set up in chain select now)
Then be able to get the data for say FOOTBALL and 3RD /4TH Grade...and have those photos and videos displayed on the 3rd?4th grade page..
derrickhand300
@derrickhand300
08/29/16 10:55:54AM
1,353 posts

Adding Tags Using Form Designer


Design and Skin Customization

Thanks Douglas- Just watched the video and thats a great tool -First time I have ever looked at it
BUT still how to I get the FORM DESIGNER to ADD A TAG to the photo or video?
Thats really where I am lost
derrickhand300
@derrickhand300
08/29/16 10:37:27AM
1,353 posts

Adding Tags Using Form Designer


Design and Skin Customization

Thank you- any DOCs on this that you know of?
derrickhand300
@derrickhand300
08/29/16 10:24:24AM
1,353 posts

Adding Tags Using Form Designer


Design and Skin Customization

Would that be an option like this?
5th|_tags LIKE %5th%

as an example...
updated by @derrickhand300: 08/29/16 10:24:55AM
derrickhand300
@derrickhand300
08/29/16 08:11:25AM
1,353 posts

Adding Tags Using Form Designer


Design and Skin Customization

When a user uploads a photo or video I would like a select field where the user has to select from available tags. I am trying to do this in Form Designer.
I have created a select option of categories like below
Football
Basketball
Baseball
etc
I want to now create the following options to select from ( to add TAGS to the photos and videos)
3rd & 4th
5th & 6th
7th
8th and 9th
High School

I want the photos and videos sorted to specific locations by using the code below:
 {jrSeamless_list modules="jrVideo,jrYouTube" order_by="_created numerical_desc"  search1="*_category = football" search2="*_tags LIKE %5th%" search3="*_tags LIKE %6th%" pagebreak=15 page=$_post.p pager=false template=$tpl}

While only changing this code on the pages its displayed on
 search1="*_category = football" search2="*_tags LIKE %5th%" search3="*_tags LIKE %6th%" 
( changing the 3rd and 4th to 5th and 6th or football to basketball)

Is there a way to add a TAGS field to Form designer that will achieve this? I want this so that photos and videos are presorted upon upload so i dont have to manually edit the tags of each after upload
Thanks!
updated by @derrickhand300: 11/28/16 02:37:26PM
  31