| Author |
Message |
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 1139
|
Posted: Wed Feb 13, 2008 10:29 am Post subject: New code |
|
|
Dari has the next release version of the integration, but he is very busy and I don't know when he will be able to get an official version released.
For now, anyone wishing to get their fingers on the latest version (the same code that will be released), can get it here...
Gallery2_Integration-1.0.0.zip [jettyfishing.com] |
|
| Back to top |
|
|
AdBot
|
|
| Back to top |
|
 |
lanec
Beginner


Joined: Feb 13, 2008 Posts: 1
|
Posted: Wed Feb 13, 2008 4:20 pm Post subject: Re: New code |
|
|
Ouch... I just wasted a bunch of time integrating the old mod
Thanks though! This one looks like it has some MAJOR installation improvements. |
|
| Back to top |
|
|
firemists15
Beginner


Joined: Feb 25, 2007 Posts: 9
|
Posted: Wed Feb 13, 2008 4:51 pm Post subject: Re: New code |
|
|
I'm going to be trying this when I get home from work, I just spent half the day upgrading from G2 2.2.1 to 2.2.4 thinking maybe it was part of the problem
Will posts results later tonight
I like the XML installs though makes things easier to follow, which may be my complete issue to start with
 |
|
| Back to top |
|
|
darkxst
Beginner


Joined: Mar 25, 2006 Posts: 10
|
Posted: Fri Feb 15, 2008 5:03 am Post subject: Re: New code |
|
|
Well I have successfully installed the integration on my test site. Great work jettyrat this mod is very nice!
just a quick question, when I upgrade my website which is current running the phpBB2/g2 integration, do I need to copy the g2_user mappings in phpbb_user table across, or will the sync users function handle this for me? |
|
| Back to top |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 1139
|
Posted: Fri Feb 15, 2008 10:43 am Post subject: Re: New code |
|
|
I think you are asking about the gallery item id's that get assigned to the phpbb users as links to their albums...
The sync users function does not do this, it just makes sure user accounts in gallery and phpbb match each other. The album mapping happens when users visit gallery. Every time a logged in user visits gallery, the album mapping is checked. If a user has an album and does not have a link, one is created; if a user deletes their album and creates another one, the link is corrected; etc. So, eventually over time as users visit gallery, the users table will automatically update itself with the links. If you have a convenient way to update the table accurately, you could speed up the process. The only issue really is that when you do the upgrade, your users profiles and posts will not have the gallery link until they login and visit gallery. |
|
| Back to top |
|
|
alitogata
Beginner


Joined: Nov 06, 2007 Posts: 7
|
Posted: Tue Feb 19, 2008 8:59 pm Post subject: Re: New code |
|
|
Firstly I want to thank you for this excellent integration. Actually I've been trying to integrate gallery with joomla but the bridge for joomla is not really supported any longer and in an effort to find a solution and since I changed from SMF to PHPBB I found out about galllery2&phpbb.
I must admin that installing mods in SMF was much easier but phpbb is way much better.
I have a question about this integration and one problem that I have using the New Code.
If there is a new version e.g. Gallery2_Integration-1.0.1 do I have to do all the process from the start?
Also I used the 1.0.0 Integration and I have the following problems:
In memberlist I get the following:
At the column that is titled Username (right of website) there it shows the link to the gallery. But how do I get rid of the rest of the columns on the right and make that column named to Gallery as the last column?
Also, are the members able to define any settings for the gallery link on their profile? e.g. how many photos, from which album if they have more than one etc..? Or disable this?
Other than that, I didn't have any other problems and it works great!!
Thank you |
|
| Back to top |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 1139
|
Posted: Wed Feb 20, 2008 12:03 am Post subject: Re: New code |
|
|
Quote: › If there is a new version e.g. Gallery2_Integration-1.0.1 do I have to do all the process from the start?
Upgrading from one integration version to the next is always a problem. There is no easy way except to go through the mods and look for the changes. If there is an easier way, I'm open to suggestions.
Quote: › In memberlist I get the following:
You are using the subsilver2 style? Double check the mods to the subsilver memberlist_body.html, something is wrong with your mods. That is not what it should look like.
Quote: › Also, are the members able to define any settings for the gallery link on their profile? e.g. how many photos, from which album if they have more than one etc..? Or disable this?
That is all controlled in the ACP under Gallery 2 Settings->Link Settings. Only the admin can turn it on or off and set how many images are displayed. There is currently no way to set which album the images come from. The integration just grabs them from the albums and displays them in sequential order until the max number is reached. If there are more, then a link is shown to the rest of the users gallery. |
|
| Back to top |
|
|
alitogata
Beginner


Joined: Nov 06, 2007 Posts: 7
|
Posted: Wed Feb 20, 2008 8:57 am Post subject: Re: New code |
|
|
Thank you for your reply jettyrat.
Yes I am using subsilver2. It seems that indeed there is a problem in memberlist_body.html.
Might be somewhere at this code:
Code: › <th nowrap="nowrap" width="25%" align="{S_CONTENT_FLOW_BEGIN}"><a href="{U_SORT_USERNAME}">{L_USERNAME}</a></th>
<th nowrap="nowrap" width="15%"><a href="{U_SORT_JOINED}">{L_JOINED}</a></th>
<th nowrap="nowrap" width="10%"><a href="{U_SORT_POSTS}">{L_POSTS}</a></th>
<th nowrap="nowrap" width="15%"><a href="{U_SORT_RANK}">{L_RANK}</a></th>
<th nowrap="nowrap" width="11%">{L_SEND_MESSAGE}</th>
<th nowrap="nowrap" width="11%"><a href="{U_SORT_EMAIL}">{L_EMAIL}</a></th>
<th nowrap="nowrap" width="11%"><a href="{U_SORT_WEBSITE}">{L_WEBSITE}</a></th>
In xml instructions for subsilver2 it says to add after the above the lines mentioned in the instructions. But if I replace the above lines with the ones in the instructions that I added it shows correctly. Might be this? I am not good with codes etc... but I delete the above lines and the member list looks good now. |
|
| Back to top |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 1139
|
Posted: Wed Feb 20, 2008 10:24 am Post subject: Re: New code |
|
|
Quote: › In xml instructions for subsilver2 it says to add after the above the lines mentioned in the instructions. But if I replace the above lines with the ones in the instructions that I added it shows correctly. Might be this? I am not good with codes etc... but I delete the above lines and the member list looks good now.
Ah, you probably found a bug in the xml...I just converted to xml a short while ago. The instructions should probably say 'replace with' instead of 'after-add'. I'll check it out. Thanks for the report! |
|
| Back to top |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 1139
|
Posted: Wed Feb 20, 2008 10:50 am Post subject: Re: New code |
|
|
| Yep, my bad...the mod instruction should say 'replace-with'. What you have done to fix it was the right thing... |
|
| Back to top |
|
|
alitogata
Beginner


Joined: Nov 06, 2007 Posts: 7
|
Posted: Mon Feb 25, 2008 9:18 pm Post subject: Re: New code |
|
|
| jettyrat a big THANK YOU for this integration. It's the best I ever used. Although I am unemployed at the moment and can't donate anything, as soon I find a job I'll be sure donating for this excellent integration. |
|
| Back to top |
|
|
darkxst
Beginner


Joined: Mar 25, 2006 Posts: 10
|
Posted: Tue Feb 26, 2008 2:49 am Post subject: Re: New code |
|
|
Quote: › There is currently no way to set which album the images come from. The integration just grabs them from the albums and displays them in sequential order until the max number is reached. If there are more, then a link is shown to the rest of the users gallery.
Would it be possible to randomly select the images to display in the profile? |
|
| Back to top |
|
|
jettyrat
Moderator


Joined: Nov 28, 2005 Posts: 1139
|
Posted: Tue Feb 26, 2008 10:13 am Post subject: Re: New code |
|
|
The next feature on my list of things to add to the integration is a UCP page that would allow the user to select the items shown, whether albums or photos are shown, the number to show (up to the limit set by admin) and pick an image to use as their avatar. A random option could be possible as well.
The mapAllGalleryLinks function grabs all the users items, then slices off the number it needs. You could add some random selection code there if you wanted. I personally would rather work on the UCP option as I think it is more useful.
Another way to get certain items shown that you want is to re-order them in Gallery so they are the first ones that get grabbed by the integration code. |
|
| Back to top |
|
|
darkxst
Beginner


Joined: Mar 25, 2006 Posts: 10
|
Posted: Tue Feb 26, 2008 3:33 pm Post subject: Re: New code |
|
|
jettyrat wrote: › The next feature on my list of things to add to the integration is a UCP page that would allow the user to select the items shown, whether albums or photos are shown, the number to show (up to the limit set by admin) and pick an image to use as their avatar. A random option could be possible as well.
Yeh that would be good, much more useful than the current situation! |
|
| Back to top |
|
|
sypher01
Beginner


Joined: Feb 05, 2008 Posts: 19
|
|
| Back to top |
|
|
|
|
|
|
|