A little advice....

MysticGirl
MysticGirl's picture

Joined: 2003-01-06
Posts: 81
Posted: Tue, 2003-01-28 22:58

I'm trying to figure out a way to link to a person's album when they post a comment. I'm using the hack that automatically pulls up the user's name if they are logged in with this code in addcomments.php:

<td><input type="hidden" name="commenter_name" value="<?php echo $displayName?></a>" size=30></td>

So, what I'm having a hard time with is trying to figure out how gallery saves the user information so that I can call it up. I tried changing it to this:

<td><input type="hidden" name="commenter_name" value="<a href=<a href=<?php echo $commenterURL?>><?php echo $displayName?></a>" size=30></td>

And then I could include the commenterURL properties above in the php section as:
$commenterURL = $gallery->user->getalbumURL();

Didn't work of course because there is no getalbumURL function in user.php. How does gallery save the information on who owns what album? Where can I call this information up? Anyone know? Let me know if this doesn't make sense. I have been having a hell of a time trying to teach myself php these past couple of days, so I might just be a bit loopy right now. :eek:

 
MysticGirl
MysticGirl's picture

Joined: 2003-01-06
Posts: 81
Posted: Fri, 2003-01-31 22:43

I'm still having trouble with this, so if anyone can point me in the right direction, I would appreciate it. I just need to know how gallery knows who owns albums, and what the url is......I just can't find it.

Also, I made a file for people to request an album. I have the self register hack installed on my gallery, but we don't want people to just be able to register and start adding pictures. So, I disabled their ability to create albums. Anyway, I wanted to know if there was a way to have a form, have the person click the submit button, and then have a confirmation message print out all in the same file.....cause it's not working right. It sends the email like it's supposed to, but the confirmation message is coming up in the middle of the text that was there before.

Does that make sense?

 
BorgKing
BorgKing's picture

Joined: 2002-09-12
Posts: 314
Posted: Sat, 2003-02-01 01:43

MysticGirl, have you thought about creating an album (only viewable for logged in users) where logged in users can create sub-albums? I'm using that solution. And each time a sub-album is added, I get an e-mail, so I can put the sub-album where I want it to be.

 
MysticGirl
MysticGirl's picture

Joined: 2003-01-06
Posts: 81
Posted: Sat, 2003-02-01 10:13

No, we talked about it, and since the gallery is only for members of the forum who have a certain number of posts, we want to create the albums. In fact, we've removed all the links for album commands unless the person is an admin. All they can do is add the photos and maintain them. But, anyway, like I said, I've got it working.....except for that little confirmation message issue.

 
skicrave

Joined: 2002-10-25
Posts: 89
Posted: Tue, 2003-02-04 21:08

What discussion board package are you using?

 
MysticGirl
MysticGirl's picture

Joined: 2003-01-06
Posts: 81
Posted: Tue, 2003-02-04 23:07

It's an ikonboard, but I don't have the know how yet to integrate the two of them.....I'm giving myself a crash course in php by customizing my gallery.

 
skicrave

Joined: 2002-10-25
Posts: 89
Posted: Wed, 2003-02-05 17:36

Nice, you're set if you're using iB. First step is to drop ib 3.x like a bad habit. The developers are gone (over to invision board), and trying to merge Gallery (in php) with iB (in perl) is not worth your time.

Next, upgrade to <!-- BBCode Start --><A HREF="http://www.invisionboard.com" TARGET="_blank">IBF</A><!-- BBCode End --> (they have a converter so everything is moved over). This is written by the guys that are responsible for ikonboard (Matt primarily), and is actively being pursued. Then, hop over to <!-- BBCode Start --><A HREF="http://www.ibresource.com" TARGET="_blank">IBResource.com</A><!-- BBCode End --> and search the mod database for Windrider's Gallery integration mod.

Then go into your Admin CP for IBF, and set your member group settings to auto promote members to the next level based on posts. Start members in a group that doesn't have Gallery access (these controls are included in the mod), and promote them to a group that does have gallery access.

If you have a large user community this will save to TONS of time! Any time it takes to do the upgrade will be well worth it. Let me know if you have any questions.

 
MysticGirl
MysticGirl's picture

Joined: 2003-01-06
Posts: 81
Posted: Wed, 2003-02-05 22:58

I'll talk to her about it, but will this work on a customized gallery? I've been tweaking it all over the place.

 
skicrave

Joined: 2002-10-25
Posts: 89
Posted: Thu, 2003-02-06 06:34

Sure will. Take a look at <!-- BBCode Start --><A HREF="http://www.malibuboatowners.com" TARGET="_blank">my site</A><!-- BBCode End --> for an example.

Remember that I'm the one that posted the add comments mod, so that's just one small change that has been made to my gallery (the cool thing about this mod is that it will it will link the name of a commenter in the gallery to their discussion board profile). I also have the link to view a posters gallery in each of their posts on the discussion board.