main_gallery_embed (@Random)

Post

Posted
Rating:
#2173 (In Topic #411)
Avatar
Standard member
vynum is in the usergroup ‘Well-settled’

Randomly (Pull, Place & Sort)

Need Help with (Youtube functionality cloning)

main_gallery_embed


@Random Pull, Place & Sort  into PetToob's MAIN GALLERIES: (Videos, Pictures, Music)from *all "Member Created Galleries" and place the results on the page/s of choice using "main_gallery_embed".

My Choices is to place the resulting Pull, Place & Sort on the following page/s:

Code

Pet Toob (( Typing in URL takes you here ))
Pet Toob (( Clicking on HOME takes your here ))
Welcome back, Ritchie. - Pet Toob (( not enough time to recreate were I got this URL?))
http://pettoob.com/index.php?page=start&redirected=1 (( When Logging Out ))



Choices for administrator/s:

*** PULLING ***


1.)main_gallery_embed [Pull From "Member's Created Galleries" that are located /under the following]:

        [] Videos
        [] Pictures
        [] Music
        [] ..Any Selected Combination of the above
        [] ..All The Above

EXAMPLE:
/Pictures/John Doe's Gallery
/Videos/Jane Smith's Gallery
/Music/Superman's Gallery

*** SORTING ***

    
        A.) main_gallery_embed [Sort Order Choices];
              Sort By: (Give member's These Choices to sort as well)
        
                [] Most Liked ( Pettoob is not going to use the rating system)
                [] Date Posted (Most Recent First)
                [] Date Posted (Oldest First)
                [] Author (Gallery Owner)
                [] File Type (VIDEOS, PICTURES, MP3's, etc….)
            

Pettoob.com's MAIN GALLERIES

 
    /Pictures     (Member's content embed from youtube or their on content.)
    /Videos       (Member's content embed from youtube or their on content.)
    /Music        (Member's content embed from youtube or their on content.)
    
EXAMPLE of Pull and Placement using "main_gallery_embed" with only 3 members:

/Pictures/John Doe's Gallery, Jane Smith's Gallery, Superman's Gallery …
/Videos/John Doe's Gallery, Jane Smith's Gallery, Superman's Gallery …
/Music/John Doe's Gallery, Jane Smith's Gallery, Superman's Gallery …


RESOURCE PLACEMENT [Pulled from:  Member's Created Galleries" Using main_gallery_embed

*** PULLING *** & *** SORTING ***


/Pictures/main_gallery_embed  *** PULLED & SORTED ***
/Videos/main_gallery_embed  *** PULLED & SORTED ***
/Music/main_gallery_embed  *** PULLED & SORTED ***


IMPORTANT: Remember, all members have the ability to post into 3 different types of galleries.
The: MAIN GALLERIES

/PICTURES
/VIDEOS
/MUSIC




 

Last edit: by vynum

Online now: No Back to the top

Post

Posted
Rating:
#2176
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Hi,

I think you're asking a question, but I'm not sure what "@Random" means, and there doesn't seem to be any question posed.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Follow me on Minds (where I am most active). Support me on Patreon

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 Composr whenever you see the opportunity or support me on Patreon.
  • 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 Composr 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.
Online now: No Back to the top

Post

Posted
Rating:
#2177
Avatar
Standard member
vynum is in the usergroup ‘Well-settled’
Give me a moment and I will try and clarify myself.  sorry, I didn't ask a explicit question.
Online now: No Back to the top

Post

Posted
Rating:
#2178
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
You're probably asking "how do I do all this?". However, for someone to go through all that they'd need to sit down for a couple of hours and write a detailed tutorial, I think it's unlikely you'll get that I'm afraid.

It's better if you first experiment and read the documentation to eliminate all the details you can work out on your own, then ask a few very simple pointed questions, then those can be tackled individually.

Anyway, from the spec you posted, most of it can be done using main_gallery_embed block as you identified. I'll try and pick out some more specialist bits.

Sorting by most likes is the compound_rating sort (the average_rating sorts by conventional rating).

I don't think you can sort by Author (plus galleries only support submitters, not authors). But actually wouldn't you want to filter by author instead?
You can use Filtercode for that, I believe setting the filter parameter to submitter=5 would only show entries from member #5.

Again for file type I think you mean filter, not sort. We don't support that explicitly as we only distinguish images and videos. You can use Selectcode for that. I think if you set select to -1 it would not show images and if you set video_select to -1 it would not show videos.
You can probably make Filtercode do it by file extension. I've not tried it but try setting filter to url~=.mp3 would probably filter to mp3 files.
And url~=.mp3|.aac would be either mp3 or aac files.

You can use Selectcode to get a subtree of the galleries. E.g. setting select to bob* would find anything under the gallery bob.

I've not explicitly tested any of this, I'm going off the top of my head.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Follow me on Minds (where I am most active). Support me on Patreon

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 Composr whenever you see the opportunity or support me on Patreon.
  • 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 Composr 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.
Online now: No Back to the top

Post

Posted
Rating:
#2179
Avatar
Standard member
vynum is in the usergroup ‘Well-settled’
Thanks Chris.

Ok. I'm going to read through "select code" & "Filters" again and a few others things to grasp their real purposes. I think "select code" is what I need for what I'm trying to achieve.

I'll post a response sometime today.
Online now: No Back to the top

Post

Posted
Rating:
#2180
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Selectcode - filtering content based on ID, ID range, or hierarchy position
Filtercode - filtering content based on querying properties


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Follow me on Minds (where I am most active). Support me on Patreon

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 Composr whenever you see the opportunity or support me on Patreon.
  • 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 Composr 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.
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Users online:

Philip, gabriel58, babu, deepu_ms, Manu, Paul D, amit.nigam

Forum statistics:
  • 1,298 topics, 5,830 posts, 7,065 members
  • Our newest member is raguragavan
Birthdays:
Back to Top