![]() |
Here's a simple question. The 'Photo Album' tab on the profile pages links to this file:
/z/album.php (Which doesn't exist) Where can I change the link that the 'Photo Album' tab points to? Maybe I can hack in Photopost as an interim solution. |
Quote:
There are also photo blocks from both Photopost and Photoplog on dev.zoints.com to integrate with Zoints, but I don't know if they still currently work as they are both older and I am sure they've gone through updates. - Reid |
Quote:
Quote:
I did notice the photopost block on dev.zoints.com. If I could ever actually log in on that site, I might have a look at it. The login system on your dev site hasn't worked right for over a year now. Y'all might want to fix that. Example: Manual Login If you have reached this page then the automated login process is not working. In order to log in, please proceed with the following steps: Copy down the login code Click the button labeled "Proceed" Enter the login code into the form on the next page. 0IDV6UXB0LLLJW8USPQU Clicking on 'PROCEED' returns a blank white page. How hard can it be to get a login script to work?????????!!!!!!!!! |
Quote:
I hope your Saturday is going as well as it can be, mine has been fantastic. :) But I do need to apologize. I know I am probably not your favorite person, but there really has been a lot of work put into the release this week and a lot of support so I've been scatterbrained. I have so many different products I help on and I sometimes get things confused. For some reason, I don't really recall why or even if there was a reason, the album file was left out a few versions ago (I am not an engineer, so I don't know.) But I found the file for you and I PERSONALLY tested it on my forum (you can go to my profile to check it but I will likely remove that page from my navigation soon.) This is how it functions. If enabled, when the user clicks on it for their profile, it will bring up a screen asking for their album URL. If they click that page, they will always get that screen but visitors and guests will be redirected to the URL that they specified. And yes, there are certainly blocks on dev.zoints.com to show a user's images and to link to their gallery. On some install work I installed them for a few forums. These are 3rd party blocks so I wouldn't be able to support them but if they work, that would be great to hear. http://dev.zoints.com/showthread.php?t=119 Again, my apologies. Upload this file to your /z/ folder, enable the Photos page, inform your users on how to use it. I am sure a more elegant and seamless solution can be coded if you sought it from a hacker here, but this is something that does the job. |
Quote:
I'll inform someone of this right away though. I'll download the blocks and I will post them you ASAP while that gets sorted out. - Reid |
Here you go JD,
I've also copied over his config instructions into a .txt file for you with a link to the thread for your future reference. From my knowledge of the block, Photopost needs to be installed on the same database to work. (For all others: This is not my modification nor an official Zoints modification. I am just posting this here to help JD out while we fix things.) - Reid |
When will gold be released?
|
Quote:
I guess I'm just S.O.L. |
I'm posting the complet code for the block below just in case someone here can figure out how to make this work with a seperate photopost database. Hope you zoints guys don't mind, but this is my only hope of getting this working. I don't know enough about mysql to do it myself.
I'm also running Photopost 6.1, so this block probably hase more problems than just the database issue ===================Block code below ========================================= # photopost album # 1.0.2 # mtgmaster (themtgmaster@gmail.com) # http://lol.zoints.com/ # # Displays a members photos class user_photopost_album extends z_module { # Set the maximum amount of images any users are allowed to display var $max_images = 7; # Set your photopost db table prefix here var $pp_prefix = 'pp_'; # Set your full url to the photopost directory, with no trailing slash var $pp_dir = 'http://www.majorleaguetalk.com/photopost'; # Set categories you don't want to be displayed, separated with commas eg. '2,500,501' var $dis_cats = ''; function contents() { $content = $this->content; $vbulletin = $this->_zoints->external->vbulletin; $userinfo = $this->_zoints->external->load_user($this->zuser); # If limit hasnt been set or is over the admin set maximum, set it to the admin max if(empty($content['max_pics']) OR $content['max_pics'] > $this->max_images) { $limit_sql = 'LIMIT ' . $this->max_images; } # Otherwise, let them set it else { $limit_sql = 'LIMIT ' . $content['max_pics']; } # Generate the sql to get rid of some cateories if(!empty($this->dis_cats)) { $categories = explode(',', $this->dis_cats); if(is_array($categories)) { foreach($categories as $cat) { $cat_sql .= 'AND cat<>' . $cat . ' '; } } else { $cat_sql = ' AND cat<>' . $this->dis_cats . ' '; } } # Get all photos the user has $sql = " SELECT * FROM " . $this->pp_prefix . "photos WHERE userid=" . $this->zuser . " AND approved=1 " . $cat_sql . " ORDER BY date DESC " . $limit_sql . " "; $getphotos = $vbulletin->db->query_read($sql); $html .= '<div class="' . $this->style['pmain1'] . '" style="padding: 0;">'; # Does the user have any photos? if ($vbulletin->db->num_rows($getphotos)) { # Display the top of the table $html .= '<table border="0" width="100%"> <tr> <td width="100" align="center" class="phead"> Image </td>'; # Display the details? if(!$content['details']) { $html .= ' <td class="phead"> Details </td>'; } $html .= ' </tr>'; # loop and display all that have been fetched from the DB while($photo = $vbulletin->db->fetch_array($getphotos)) { # Display image cell $html .= ' <tr> <td width="100" align="center" class="' . $this->style['pmain1'] . '"> <a href="' . $this->pp_dir . '/showphoto.php?photo=' . $photo['id'] . '"> <img src="' . $this->pp_dir . '/data/' . $photo['cat'] . '/thumbs/' . $photo['bigimage'] . '" /> </a> </td>'; # Display the image details? if(!$content['details']) { $html .= ' <td class="' . $this->style['pmain1'] . '" valign="top" style="font-size: 80%;">'; # photo name $html .= '<div><a href="' . $this->pp_dir . '/showphoto.php?photo=' . $photo['id'] . '">' . htmlspecialchars($photo['title']) . '</a></div>'; # File size in KB $html .= '<div>Filesize: ' . number_format($photo['filesize'] / 1024, 2) . ' KB</div>'; # Date uploaded $html .= '<div>Date: ' . $this->_zoints->external->date($photo['date'], $this->_zoints->external->get_date_format()) . '</div>'; # Dimensions $html .= '<div>Dimensions: ' . $photo['width'] . 'x' . $photo['height'] . '</div>'; # Views $html .= '<div>Views: ' . $photo['views'] . '</div>'; # Rating $html .= '<div>Rating: ' . $photo['rating'] . '</div>'; $html .= ' </td>'; } $html .= '</tr>'; } $html .= '</table>'; $html .= '<div class="' . $this->style['pmain1'] . '" style="text-align: center;"> <a href="' . $this->pp_dir . '/showgallery.php?cat=500&ppuser=' . $this->zuser . '">View all of ' . $userinfo['username'] . '\'s photos</a> </div>'; } # Nope, tell them they have none else { $html .= '<div class="' . $this->style['pmain1'] . '" style="text-align: center;">' . $userinfo['username'] . ' doesn\'t have any photos</div>'; } if($this->powner) { $html .= '<div class="' . $this->style['pmain1'] . '" style="text-align: center;"> <a href="' . $this->pp_dir . '/uploadphoto.php">Upload pictures</a> </div>'; } $vbulletin->db->free_result($getphotos); $html .= '</div>'; return $html; } function update($content) { return $content; } function edit() { $content = $this->content; if($content['max_pics'] AND $content['max_pics'] < $this->max_images) { $limit = htmlspecialchars($content['max_pics']); } else { $limit = $this->max_images; } $html .= '<div class="pmain1">'; # Disable description checkbox $html .= 'Disable image details? '; $html .= '<input type="checkbox" name="mod[content][details]" ' . ($content['details'] ? 'checked="checked"': '') . ' /> <br />'; # Max pictures textbox $html .= 'Max pictures to display '; $html .= '<input type="text" name="mod[content][max_pics]" value="' . $limit . '" size="5" /> '; $html .= '<span style="font-size: 7pt; color: #848484;">(max ' . $this->max_images . ' allowed)</span> '; $html .= '</div>'; return $html; } } |
Quote:
Album.php doesn't do me much good. I guess it would be ok for linking to an external site, but I'd rather keep users on my site instead of providing a way for them to leave. This is not a viable solution for photopost albums on my site because each users album pages are a different url, and they would have no easy way to figure out what the url is. Thanks for trying though. It is really getting frustrating. I think I'll just go get drunk now.... I've been at this for 18 hours straight now. BTW, you may not be my favorite person, but I like you just fine. I have to complain to somebody, and you're the only one around. |
All times are GMT. The time now is 05:52 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|