(FSY23) Random Gallery Images v1.2
Started by Michael, Oct 26 2006 03:44 AM
308 replies to this topic
#21
Posted 20 April 2007 - 05:04 PM
Thanks for the code.
#22
Posted 20 April 2007 - 05:52 PM
Installed it and working just fine
#23
Posted 20 April 2007 - 08:07 PM
Cool.
Michael McCune - IPS Marketplace Moderator
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
#24
Posted 21 April 2007 - 06:45 PM
I know this mod copies whatever the setting is from the Gallery, but I have a question -- is there a way to have random images from a particular album show instead of the default random images from the entire library?
Also, with sale mods, is there still a waiting period (to confirm payment)? I'm asking because I'm interested in this mod for a special forum I'm running this weekend -- the forum is covering results and updates on a competition, while we have photos from the event posted in a specific album/catagory, and I kinda would like to have the mod installed ASAP...before the competition is over (if I can set it to have images from the specific album only).
Also, with sale mods, is there still a waiting period (to confirm payment)? I'm asking because I'm interested in this mod for a special forum I'm running this weekend -- the forum is covering results and updates on a competition, while we have photos from the event posted in a specific album/catagory, and I kinda would like to have the mod installed ASAP...before the competition is over (if I can set it to have images from the specific album only).
#25
Posted 22 April 2007 - 07:37 PM
There's no built-in way to do that, no, but it looks possible to do it by tweaking the code a bit. There's a get_allowed_albums function that can be accessed to set which albums this will use. I can test this if you want, it will mean you'll have to adjust some of the code in this mod, but I should think it will mean just adding a single line.
I only enforce the waiting period of 'questionable' PayPal accounts, such as non-verified accounts outside of the US, UK, or Canada. But since I have been too busy this weekend to respond to all questions I have gotten, it may be too late for your competition now.
I only enforce the waiting period of 'questionable' PayPal accounts, such as non-verified accounts outside of the US, UK, or Canada. But since I have been too busy this weekend to respond to all questions I have gotten, it may be too late for your competition now.
Michael McCune - IPS Marketplace Moderator
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
#26
Posted 26 April 2007 - 05:04 PM
QUOTE(Michael @ Apr 20 2007, 09:31 AM) <{POST_SNAPBACK}>
K, the mod is on it's way. By default, it shows this box at the top of the board. You can change its position by changing where you put the code in sources/action_public/boards.php. Instead of putting it where the instructions tell you, put it right above this code:
CODE
//-----------------------------------------
// Add in show online users
//-----------------------------------------
// Add in show online users
//-----------------------------------------
Michael, I put this code as directed here to move it to the bottom and wound up getting IPS driver errors.
CODE
$this->process_all_cats();
//-----------------------------------------
// (FSY22) Random Gallery Images v1.0
//-----------------------------------------
require_once( ROOT_PATH.'sources/lib/func_gallery_random.php' );
$gallery_random = new func_gallery_random;
$gallery_random->ipsclass =& $this->ipsclass;
$this->output .= $gallery_random->show_random();
//-----------------------------------------
// Add in show online users
//-----------------------------------------
$stats_html = "";
$stats_html .= $this->statfunc->active_users();
#27
Posted 26 April 2007 - 05:12 PM
http://www.invisionmodding.com/inde...amp;article=129
I need the specific info about the error to be able to troubleshoot this.
I need the specific info about the error to be able to troubleshoot this.
Michael McCune - IPS Marketplace Moderator
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
#28
Posted 26 April 2007 - 05:35 PM
Can I Email you the sql log file? I can't upload it here.
#29
Posted 26 April 2007 - 05:51 PM
Nevermind. Changed it to a txt file.
I might add that it seemed to work OK on the IPB Default Skin last night but this morning is when it took a hit. I have 6 custom skins and maybe one of them triggered this?
I might add that it seemed to work OK on the IPB Default Skin last night but this morning is when it took a hit. I have 6 custom skins and maybe one of them triggered this?
Attached Files
Edited by DarkShadow, 26 April 2007 - 05:53 PM.
#30
Posted 26 April 2007 - 06:31 PM
The error is because the category IDs are missing from the query. Those IDs are pulled by the get_allowed_cats() function in gallery_library.php. That function should be returning the categories you are allowed to view. Did you change anything with category permissions?
Michael McCune - IPS Marketplace Moderator
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
#31
Posted 26 April 2007 - 07:15 PM
Two quick question for this mod.
1. I am alittle confused on what version does this actually work for. It says FSY22 in the topic title but in the post it says (Category: 2.1)?
2. Will this mod work with the latest gallery 2.1.2?
If it is for 2.2 and works with the lastest gallery, I will purchase it.
thanks.
Zolton
1. I am alittle confused on what version does this actually work for. It says FSY22 in the topic title but in the post it says (Category: 2.1)?
2. Will this mod work with the latest gallery 2.1.2?
If it is for 2.2 and works with the lastest gallery, I will purchase it.
thanks.
Zolton
#32
Posted 26 April 2007 - 07:23 PM
QUOTE(Michael @ Apr 26 2007, 11:31 AM) <{POST_SNAPBACK}>
The error is because the category IDs are missing from the query. Those IDs are pulled by the get_allowed_cats() function in gallery_library.php. That function should be returning the categories you are allowed to view. Did you change anything with category permissions?
No changes to any permissions before this mod went in. I tried it first at the top of the page and it worked fine. Then when I saw your post about moving it to the bottom above the Stats, I used that since I prefer the images there. And, it worked fine there until it blew up this morning. I'm still thinking I have a weird skin issue since all 6 of the skins came with gallery skins also.
#33
Posted 26 April 2007 - 07:33 PM
Hi M
I currently have the 5 random gallery images on index installed from elsewhere! (DON'T KNOW IF I CAN SAY WHERE FROM?)
anyway fully able to remove it.
Does you paid mod fully surpport IPB 2.2.2 and the new forthcoming IPB 2.2.3 ? and IPG 2.1.2? (mainly the boards.php?) or how quickly can/do you update it to work with new releases
as the free one i use @ moment only works on IPB 2.2.1 board.php (hence why i want to buy yours!)
I currently have the 5 random gallery images on index installed from elsewhere! (DON'T KNOW IF I CAN SAY WHERE FROM?)
anyway fully able to remove it.
Does you paid mod fully surpport IPB 2.2.2 and the new forthcoming IPB 2.2.3 ? and IPG 2.1.2? (mainly the boards.php?) or how quickly can/do you update it to work with new releases
as the free one i use @ moment only works on IPB 2.2.1 board.php (hence why i want to buy yours!)
#34
Posted 26 April 2007 - 07:45 PM
QUOTE(zolton @ Apr 26 2007, 03:15 PM) <{POST_SNAPBACK}>
Two quick question for this mod.
1. I am alittle confused on what version does this actually work for. It says FSY22 in the topic title but in the post it says (Category: 2.1)?
2. Will this mod work with the latest gallery 2.1.2?
If it is for 2.2 and works with the lastest gallery, I will purchase it.
thanks.
Zolton
1. I am alittle confused on what version does this actually work for. It says FSY22 in the topic title but in the post it says (Category: 2.1)?
2. Will this mod work with the latest gallery 2.1.2?
If it is for 2.2 and works with the lastest gallery, I will purchase it.
thanks.
Zolton
1. My fault, I have fixed it. It is an IP.Board v2.2.x/IP.Gallery v2.1.x mod.
2. Yes, it works with the latest Gallery version.
QUOTE(DarkShadow @ Apr 26 2007, 03:23 PM) <{POST_SNAPBACK}>
QUOTE(Michael @ Apr 26 2007, 11:31 AM) <{POST_SNAPBACK}>
The error is because the category IDs are missing from the query. Those IDs are pulled by the get_allowed_cats() function in gallery_library.php. That function should be returning the categories you are allowed to view. Did you change anything with category permissions?
No changes to any permissions before this mod went in. I tried it first at the top of the page and it worked fine. Then when I saw your post about moving it to the bottom above the Stats, I used that since I prefer the images there. And, it worked fine there until it blew up this morning. I'm still thinking I have a weird skin issue since all 6 of the skins came with gallery skins also.
If you changed nothing and it just stopped working, then all I can really suggest is that you uninstall the mod and start from scratch. There's nothing built-in to the mod that will make it stop working after a set amount of time. Like I said, the reason for the error is due to the category ID numbers not being in that query. Those category ID numbers are pulled from what permissions the active user has access to view. I don't have the ability right now to dig into the code to find you a comprehensive list of what all issues can lead to this problem, but I can tell you that the most common cause would simply be that the category permissions are not set properly, or they are in some cache that has become corrupt.
QUOTE(east anglian discus @ Apr 26 2007, 03:33 PM) <{POST_SNAPBACK}>
Hi M
I currently have the 5 random gallery images on index installed from elsewhere! (DON'T KNOW IF I CAN SAY WHERE FROM?)
anyway fully able to remove it.
Does you paid mod fully surpport IPB 2.2.2 and the new forthcoming IPB 2.2.3 ? and IPG 2.1.2? (mainly the boards.php?) or how quickly can/do you update it to work with new releases
as the free one i use @ moment only works on IPB 2.2.1 board.php (hence why i want to buy yours!)
I currently have the 5 random gallery images on index installed from elsewhere! (DON'T KNOW IF I CAN SAY WHERE FROM?)
anyway fully able to remove it.
Does you paid mod fully surpport IPB 2.2.2 and the new forthcoming IPB 2.2.3 ? and IPG 2.1.2? (mainly the boards.php?) or how quickly can/do you update it to work with new releases
as the free one i use @ moment only works on IPB 2.2.1 board.php (hence why i want to buy yours!)
This mod has been tested with the latest versions of IP.Board and IP.Gallery. I cannot say for sure that it will work for the next version of IP.Board until I get my hands on that version to test it.
Michael McCune - IPS Marketplace Moderator
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
#35
Posted 27 April 2007 - 03:35 PM
Payment has been sent.
Thank you.
Thank you.
#36
Posted 11 May 2007 - 01:27 AM
Payment sent.
#38
Posted 22 May 2007 - 07:43 PM
You're welcome.
Michael McCune - IPS Marketplace Moderator
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
#39
Posted 23 May 2007 - 11:57 AM
Mike, I found that if all the categories are set not to allow guests to view thumbnails, it can cause a driver error (strangely nothing was in my cache folder though)
Not really a bug report as such (as having no permissions to view the thumbs conflicts with the way the mod works
) , just wanted to let you know and it might help others if they have this problem with this great small mod for any reason.
Not really a bug report as such (as having no permissions to view the thumbs conflicts with the way the mod works
Edited by yellow_spider, 23 May 2007 - 11:58 AM.
View my tutorials
Please do NOT pm me with support related questions unless requested.
If you are in need of help or assistance, please post on the forum in the appropriate section!
A Look Back - 1.0.1 - 1.3.1 - 2.0.0 - 2.1.7 - 2.2.0 - 2.3.6
#40
Posted 23 May 2007 - 01:29 PM
Interesting. Kind of hard for me to put a fix in, though, if there's a driver error with no actual error logged, I'd like to be able to wrap whatever code was the problem in some sort of if statement to avoid this. I'll fiddle with it, see what I can find. Thanks for letting me know.
Michael McCune - IPS Marketplace Moderator
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
My Stuff: My Forum · My Resources · My Tutorials
Contact Me: Email · Facebook · Twitter
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users





Contributor













