Well that was a LOT easier than I thought it would be. I'm still checking everything but, seems pretty oK. I left several of the member templates in place from 2.15, they seem to work oK. Only have two problems that I can see:
1. Existing member's album images are not showing. I figure that's because I need to run the attachments importer from upgrade.php (as it says in the readme). The problem is there is no link to it when I load upgrade.php (I've upgraded twice looking for the link and searched everywhere in the admin panel for it). I found attachimport.php and tried to run it from the browser while logged in, that didn't work. All avatars are still linked properly. How can I reassociate member images?
2. A member function you helped me with is no longer working (several other custom functions work fine). When I add the function to the members class, the page fails to load. Here's the function:
1. To check if it needs to show the link, it checks if there are any records in the wsngallery_links table where the filename field isn't blank. Perhaps they're all blank for you... but that would mean you don't have any old-style attachments. Check phpmyadmin.
Actually you mentioned you're using some old templates. If you use old templates, that will cause none of your images to show. That's why it says to overwrite templates.
2. Don't add the function. There's already an age() function.
3. You must not have overwritten all of the files. Says 2.21 for me, as dictated by scriptinfo.php.
Everything in my modified albums.tpl is working fine, except for the links. I searched all the filename fields and, they're all full with file names. Can you look at the code below and see what might be causing the images not to load in the ablum template:
I tried removing the above and inserting the default code (I even overwrote once with the new tpl to see if that would call the album images) from 2.2 but, it's not displaying anything, either (actually, it displays the {variable names}, which means I am trying to call variables that aren't accessible).
I am using a links toplist that is calling thumbs like above and linking member albums just fine.
<IF {SWITCH_RATINGS} and {IMAGEVOTES}><br>{IMAGESTARS} <br>{IMAGERATING}/{MAXVOTE} based on {IMAGEVOTES} votes and {IMAGEHITS} views</IF> <br><IF {SWITCH_COMMENTS}><a href="comments.php?id={IMAGEID}">Comments (<IF {IMAGECOMMENTSREAD}>{IMAGENUMCOMMENTS}<OTHERWISE><b>{IMAGENUMCOMMENTS}</b></IF>)</a> </IF>
<br>Submitted {IMAGEDATE} <IF {IMAGELASTEDIT} is greater than {IMAGETIME}> and edited {IMAGELASTEDITDATE}</IF> </td> <!-- END REGULAR IMAGES -->
Comments on Just Upgraded, I have 2 problems
Experienced
Usergroup: Customer
Joined: Mar 31, 2004
Total Topics: 20
Total Comments: 83
Well that was a LOT easier than I thought it would be. I'm still checking everything but, seems pretty oK. I left several of the member templates in place from 2.15, they seem to work oK. Only have two problems that I can see:
1. Existing member's album images are not showing. I figure that's because I need to run the attachments importer from upgrade.php (as it says in the readme). The problem is there is no link to it when I load upgrade.php (I've upgraded twice looking for the link and searched everywhere in the admin panel for it). I found attachimport.php and tried to run it from the browser while logged in, that didn't work. All avatars are still linked properly. How can I reassociate member images?
2. A member function you helped me with is no longer working (several other custom functions work fine). When I add the function to the members class, the page fails to load. Here's the function:
function age() {
$bits = explode('-', $this->birth_date);
$this->birthyear = $bits[0];
$this->birthmonth = $bits[1];
$this->birthday = $bits[2];
if ($this->birthyear == '0000') return '0';
$t = adjusttotimezone(time());
$thisyear = strftime("%Y", $t);
$thismonth = strftime("%m", $t);
$thisday = strftime("%d", $t);
$age = $thisyear - $this->birthyear;
if ($this->birthmonth > $thismonth) $age -= 1;
if ($this->birthmonth == $thismonth && $this->birthday > $thisday) $age -= 1;
return $age;
}
Only other thing is that my admin panel still shows 2.15 in the header, should it have changed to 2.2?
Thanks!
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
1. To check if it needs to show the link, it checks if there are any records in the wsngallery_links table where the filename field isn't blank. Perhaps they're all blank for you... but that would mean you don't have any old-style attachments. Check phpmyadmin.
Actually you mentioned you're using some old templates. If you use old templates, that will cause none of your images to show. That's why it says to overwrite templates.
2. Don't add the function. There's already an age() function.
3. You must not have overwritten all of the files. Says 2.21 for me, as dictated by scriptinfo.php.
Experienced
Usergroup: Customer
Joined: Mar 31, 2004
Total Topics: 20
Total Comments: 83
Everything in my modified albums.tpl is working fine, except for the links. I searched all the filename fields and, they're all full with file names. Can you look at the code below and see what might be causing the images not to load in the ablum template:
<!-- BEGIN REGULAR IMAGES --><td valign="top" class="link" align="center" width="230"><IF {THISMEMBERCANREMOVE[{IMAGEOWNERID}]}><strong><a href="albums.php?action=remove&linkid={IMAGEID}&catid={CATID}">DELETE THIS IMAGE</a></strong></IF><br><br><img src="thumbnail.php?id={IMAGEID}" alt="{IMAGEBOOKMARKTITLE}" onClick="window.open('download.php?id={IMAGEID}', 'Image_Display', 'width=<?php echo {IMAGEXWIDTH} + 20; ?>,height=<?php echo {IMAGEYHEIGHT} + 28; ?>,left=0,top=0,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=0,resizable=1')" onMouseOver="this.style.cursor='hand'" onMouseOut="this.style.cursor='auto'"><p>{IMAGEDESCRIPTION}</p></td><!-- END REGULAR IMAGES -->
I tried removing the above and inserting the default code (I even overwrote once with the new tpl to see if that would call the album images) from 2.2 but, it's not displaying anything, either (actually, it displays the {variable names}, which means I am trying to call variables that aren't accessible).
I am using a links toplist that is calling thumbs like above and linking member albums just fine.
Thanks for you time!
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I can't read what you wrote since you didn't format it, but this is what the template uses:
And this is what it looks like in action: http://gallery.philosophyforums.com/albums.php?catid=5