aha! Perfect, thank you @sonnb :)
You still can't do that as you don't have those 3 fields in $contents after getContentsByAlbumId. prepareContents gives you these errors when...
Your join is on getContentsByAlbumId but it needs to be on prepareContents to get those fields. And you can't do that join in prepareContents...
You can't get ContentUrl without doing the join, and you can't do the join without the upload_date, file_hash and extension. The join has to be...
I also realized in my original code (which would work to construct my own URLs) I was sending the wrong content id to the contentdata model, which...
Your code was very close and gave me one of the missing pieces (prepareContents) but the $contents seemed to be missing the required upload_date,...
Content of getContentsByAlbumId: Array ( [content_id] => 981 [content_type] => photo [content_data_id] => 1202 [album_id] => 75 [user_id] => 8970...
This may be of assistance, you can do a regex replace for the URLs Post / Content Fine & Replace
Does what I'm asking just make no sense?
I'm not sure whether that really matters, nor how to describe it. I'm just trying to use the existing XenForo Model structure to access the...
So I'm trying to display some latest albums with the main album photo on the home page of my website. I have the XenForo integration working for...
I agree, but it links to /galley/albums spelling mistake included in the URL
When an album is in the moderation queue, the link for the time/day for Posted goes to /galley/albums, where it should be going to /gallery/new-albums
I really should look further before posting, obtained phrase from template sonnb_xengallery_x_photos
Is there a phrase option where I can change this from "Malo's photos" to just "Photos"? [ATTACH]
Great! I'll wait till next release to have that patched in then.
I don't use AttachmentStore, all local. I have turned on "Disable Original Concept", is that possibly causing the errors?
Works fine here. How do I go about troubleshooting this? Is there some kind of log or debug mode?
Separate names with a comma.