I'm trying to duplicate the photos block to put in a smaller left column, about 250px wide. I can't find a way to do this without affecting the photos view photo block at the same time.
Has anyone done this affectively? My goal is to mimic the profile photos block with quick thumbnails for group & event images etc. Give it a much cleaner look vs a big bulky photo block in the main content area.
Attached is what I'm trying to duplicate, but can't find any way to do it yet.
Skype: shawn.nelson |
This forum is for posting something you have to contribute.... not for asking questions. My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
This forum is for posting something you have to contribute.... not for asking questions.
what up .... what your emails so i can send some pics of my xxx hope you not a FED
|
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
I had a great response typed out, HL it would have made you laugh and blush at the same time - but then I hit the backspace button trying to edit out a typo and went backwards in the browser.. losing it all.
First, I don't think this should have been moved - as the 7.0 forums only yield responses such as Sasha telling me to put in for a job & to pay someone handsomely to do something so trivial. I'm a php rookie, but I can get around - for this being such a supposed open source, free, and helpful community, people sure are quick to tell you to get out the wallet!
Here's the code I've got that is working, it's just with a static gallery item and I need it to be dynamic:
$iPID = $this->_oDb->getMediaIds($this->aDataEntry['id'], 'images'); $aImgnum = 20; $aImage = BxDolService::call('photos', 'get_image', array( $aImgnum, 'file'), 'Search'); echo '<div align="center"><img src="' . $aImage[file] . '" width="300px"/></div>';
Wonderful, I discovered that by adding a static gallery ID number (20), I can get it to output the image and constrain it to 300px wide. This is worthless until I can make it dynamic to the actual array contents of $iPID.
Tried replacing the code with this:
$aImgnum = array_keys($iPID);
But it looks like it just loads the array into the variable and not a single value (which is what I need, I think). I'm ok with just pulling the first gallery image for my little left column photo here - but wouldn't mind having the mini thumbnails and pagination available like it is on the profile page.
Hope you're happy now that I've shared some "code" HL, even if it is something I just pulled from an already compiled php block and butchered it up a bit!
Skype: shawn.nelson |
Hope you're happy now that I've shared some "code" HL, even if it is something I just pulled from an already compiled php block and butchered it up a bit!
It has nothing to do with me being happy. It has everything to do with keeping two forums a place where people can contribute little bits and pieces of helpful information, and not letting those forums turn into a random mess. Those forums will evolve into a very useful resource, but only if the basic guidelines are respected. I assure you, it has nothing to do with me.
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
Those forums will evolve into a very useful resource, but only if the basic guidelines are respected. I assure you, it has nothing to do with me.
When did you become so optimistic about the future of dolphin?
Skype: shawn.nelson |
Let's not blow things out of proportion. My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
Let's not blow things out of proportion.
HL do you have a life outside here? After today I went and drank all the tequlia in Jacksonville, I feel good right now!!
Let's argue about something!
ManOfTeal.COM a Proud UNA site, six years running strong! |
Still battling with this one - I might just settle for utilizing the current photos block built into dolphin, but can't determine where to resize it. It looks like the images are about 600px wide, when I move the block into my 342px left column it looks horrible.
Anyone know where I need to modify this? The changes I want to make are to some of modzzz's mods, but it appears as if he's calling boonex core photos module code to pull the data over, so I should probably start by looking there...
Skype: shawn.nelson |
Still battling with this one - I might just settle for utilizing the current photos block built into dolphin, but can't determine where to resize it. It looks like the images are about 600px wide, when I move the block into my 342px left column it looks horrible.
Anyone know where I need to modify this? The changes I want to make are to some of modzzz's mods, but it appears as if he's calling boonex core photos module code to pull the data over, so I should probably start by looking there...
are you speaking of changing the default photos block? If so..
www.yoursite.com/m/photos/administration/settings
look towards bottom.
ManOfTeal.COM a Proud UNA site, six years running strong! |
Nope, seems independent from that. I've changed the values in the admin panel to 300x300 (default 600x600), it changes the boonex photo unit but makes no effect on the call being used by the module.
Here's the code being used to pull the photo block:
function getBlockCode_Photo() { return $this->_blockPhoto ($this->_oDb->getMediaIds($this->aDataEntry['id'], 'images'), $this->aDataEntry['author_id']);
Still battling with this one - I might just settle for utilizing the current photos block built into dolphin, but can't determine where to resize it. It looks like the images are about 600px wide, when I move the block into my 342px left column it looks horrible.
Anyone know where I need to modify this? The changes I want to make are to some of modzzz's mods, but it appears as if he's calling boonex core photos module code to pull the data over, so I should probably start by looking there...
are you speaking of changing the default photos block? If so..
www.yoursite.com/m/photos/administration/settings
look towards bottom.
Skype: shawn.nelson |