Posting to a Gallery

Everything concerning the Wordpress/Joomla/Drupal plugins
Post Reply
tmansf455
Posts: 18
Joined: Fri Oct 31, 2014 10:36 pm
Location: Chicago, IL

Hey guys,

First, I just want to say, I still love your software. I have a license for both programs now and enjoy working with both.

Second, I have an interesting work around question for you that I can't quite figure out, using wordpress. I'm trying to post these to a gallery where the gallery, once the package is uploaded, automatically creates the new page so I can't just add in the shortcode to the individual page. I've tweaked the code to accept the .ggpkg extension and that part is working. However when I click on the thumbnail and it goes to the new page to view the 360 movie, it just shows the alt title.

Here is the code I'm using:

Code: Select all

<img src="<?php media_src() ;?>" alt="<?php media_title(); ?>" class="large"] />
And here is the code after the php is run through:

Code: Select all

<img src="source/Yellow-Int-Day-Cab.ggpkg" alt="Yellow Int Day Cab" class="large"/>
My problem is the <img src> tag. Is there any kind of work around I can do that keeps the php intact but allows me to use the .ggpkg extension? I've tried replacing the <img> tag with <embed> and that just re-downloads the file.

WordPress version 4.2.2 on a child X-theme

I'm going to keep at it, but just thought you may have some thoughts on this that I may have over looked.

Thanks
User avatar
thomas
Chief Gnome
Posts: 2611
Joined: Fri Sep 01, 2006 3:56 pm
Location: Vienna, Austria
Contact:

Hi,

I thing you have a misconception,as GGPKG files are no images. The special tags are expanded to HTML and Javascript code, if you embed them in a post, this means the gallery plugin would also need to expand to this code, otherwise it will not work. What gallery plugin are you using?
MfG, Thomas
tmansf455
Posts: 18
Joined: Fri Oct 31, 2014 10:36 pm
Location: Chicago, IL

Right now, I'm testing the idea on MediaPress.

My goal is to have a site where I can host the object files for my clients if they don't have a website or for a preview purpose before hosting the files on their website. I've made a lot of object movies and have become very familiar with how your program works. I am aware that the ggpkg files are not images but an html5 extension.

The current code is built in and tested to receive a file, create a unique folder for the id of the account, create a new page within the site that comes from the base gallery page and then outputs the file. It's doing all of these things but it is confused because it is looking for an image. What I'm hoping to do is write in the code so that it no longer looks for an image but looks for the html/ggpkg file and posts that on the new page it just created. I hope I'm explaining this well enough.

I've attached screenshots of the process. You can see that it is allowing the ggpkg file to be uploaded where it was only allowing images. The file gets uploaded and shows the preview thumbnail image. Then when you go to view that item in the gallery, it shows the blank image with the title.
Attachments
Media Output.png
Media Output.png (10.94 KiB) Viewed 4632 times
Media Uploaded.png
Media Uploaded.png (85.21 KiB) Viewed 4632 times
Media Uploading.png
Media Uploading.png (14.92 KiB) Viewed 4632 times
tmansf455
Posts: 18
Joined: Fri Oct 31, 2014 10:36 pm
Location: Chicago, IL

A thought I had was doing this line of code.

Code: Select all

<iframe align="center" width="960" height="720" ggpkg id="<?php media_src() ;?>"> </iframe>
But then it outputs nothing and is pulling this information. It creates the iframe space but nothing fills the space.

Code: Select all

<iframe align="center" width="960" height="720" ggpkg id="source/Yellow-Int-Day-Cab.ggpkg"> </iframe>
Just a thought and wanted to add this to the thread.

**EDIT**

I've updated the first code to work in an echo do_shortcode. Looks like this:

Code: Select all

<iframe align="center" width="960" height="720" <?php echo do_shortcode( '[ggpkg id=' );?> <?php media_src() ;?>> </iframe>
Still displays nothing but returns this value:

Code: Select all

<iframe align="center" width="960" height="720" [ggpkg id= http://source/Yellow-Int-Day-Cab.ggpkg> </iframe>
I feel like I'm getting closer, now if only I could get it to pull the id of the package instead of just the source of the package. I'm enjoying this because it's fun trial and error work so I thought I would share this with everyone. Still nothing yet but it's getting there.
tmansf455
Posts: 18
Joined: Fri Oct 31, 2014 10:36 pm
Location: Chicago, IL

So I've tested to see if I can just get the package to display and it works if hard coded into the gallery like this:

Code: Select all

<div class="item-entry media-entry" >
						
			<?php do_action( 'before_single_media_content' ); ?>
						
                        [ggpkg id= 26] <?php media_src() ;?>
However, my goal is to not hard code it because there will be multiple ggpkg to pull from, I'm hoping I can get the code to understand the individual ID's. Again, I'm just spit balling here and am just interested in sharing my work and finding new capabilities to use the package file.

Hopefully someone finds this interesting and may be willing to share input! haha
JSchroeder
Posts: 36
Joined: Tue Feb 24, 2015 2:32 pm

It is very interesting, pls keep going with it.
My IT skills are by far not good enough to be able to contribute to the solution.
I am looking forward to see the end-result.

Jürgen
tmansf455
Posts: 18
Joined: Fri Oct 31, 2014 10:36 pm
Location: Chicago, IL

Thanks for the feedback. I most certainly will keep posting updates on this. I'm glad someone finds this interesting and hopefully I can be useful with my findings once I get it working!
Post Reply