There's a strange thing happening when I use an image variable. I use a href="http://mysite.com/member-{IMAGEVOTERIDS}.php"
to link to a member album displayed in a toplist. The strange thing is that a space is always inserted in the url after the varible, so it ends up looking like this: a href="http://mysite.com/member-118%20.php"
The url still works but, the '%20' is bugging me. Do you know where it's coming from?
voterids naturally contains a space-deliminated list of the member id numbers of people who have rated the image. The question is, why are you using it? It's certainly not a variable intended for display.
Ahhhh, that was indeed the next question I figured you would ask.
I'm using a LOT of customization in the templates. Quick synopsis, I'm using the gallery in my pre-existing member profile system. The images just enhance the existing profile (images are not rated and, only members with profiles can add images). As discussed in an earlier thread, it is the member albums that contain their images so, I have had to be creative in how I link search results, etc., to the albums (accounting for existing members who haven't created an album but, still have a profile).
For this particular TOPLIST, the random images called link to the particular member album. The only reference to the particular member album I could find in any image 'link' was the {IMAGEVOTERIDS}. Since I do not allow any voting, that variable (should) only contain that member's album ID (right?).
How crazy does that sound? Seems to be working swell but, it was a quick fix using my sophmore imagination.
The album id would be the category id of the image, {IMAGECATID}. And {IMAGEVOTERIDS} contains member ids, it has nothing to do with albums. Nothing lists member album ids of voters, you'd have to grab the voter's profile and get the albumid field of that.
Got it working with {IMAGEOWNERID}, CATID was giving me problems (I think I know why but, if the below works fine, there's no need to change it). Don't know why I didn't see that ownerid in the links table.
Yeah, I've got a lot of htaccess rewrites and small hacks going on to make it work the way I want. That's what scares me about updating to the new version, I can't remember all the changes I've made to my version.
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on blank space inserted in image variable
Experienced
Usergroup: Customer
Joined: Mar 31, 2004
Total Topics: 20
Total Comments: 83
Hi Paul.
There's a strange thing happening when I use an image variable. I use
a href="http://mysite.com/member-{IMAGEVOTERIDS}.php"
to link to a member album displayed in a toplist. The strange thing is that a space is always inserted in the url after the varible, so it ends up looking like this:
a href="http://mysite.com/member-118%20.php"
The url still works but, the '%20' is bugging me. Do you know where it's coming from?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
voterids naturally contains a space-deliminated list of the member id numbers of people who have rated the image. The question is, why are you using it? It's certainly not a variable intended for display.
Experienced
Usergroup: Customer
Joined: Mar 31, 2004
Total Topics: 20
Total Comments: 83
Ahhhh, that was indeed the next question I figured you would ask.
I'm using a LOT of customization in the templates. Quick synopsis, I'm using the gallery in my pre-existing member profile system. The images just enhance the existing profile (images are not rated and, only members with profiles can add images). As discussed in an earlier thread, it is the member albums that contain their images so, I have had to be creative in how I link search results, etc., to the albums (accounting for existing members who haven't created an album but, still have a profile).
For this particular TOPLIST, the random images called link to the particular member album. The only reference to the particular member album I could find in any image 'link' was the {IMAGEVOTERIDS}. Since I do not allow any voting, that variable (should) only contain that member's album ID (right?).
How crazy does that sound? Seems to be working swell but, it was a quick fix using my sophmore imagination.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
The album id would be the category id of the image, {IMAGECATID}. And {IMAGEVOTERIDS} contains member ids, it has nothing to do with albums. Nothing lists member album ids of voters, you'd have to grab the voter's profile and get the albumid field of that.
Experienced
Usergroup: Customer
Joined: Mar 31, 2004
Total Topics: 20
Total Comments: 83
Got it working with {IMAGEOWNERID}, CATID was giving me problems (I think I know why but, if the below works fine, there's no need to change it). Don't know why I didn't see that ownerid in the links table.
Here's what is working for me now:
<!-- BEGIN TOPLIST 5 -->
<CONFIG>links,rand(),2,ascending,,,,1,0,1,0</CONFIG>
<td valign="top" class="link" align="center" width="230"><a href="members/member-{IMAGEOWNERID}.php" target="_blank" style="border:0;"><img src="thumbnail.php?id={IMAGEID}" alt="{IMAGEBOOKMARKTITLE}" style="border: 2px outset;"></a><br><br><br></td>
<!-- END TOPLIST 5 -->
Does that look better than using the voterid?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Well the owner's id is not the album id, but I guess you're accessing the albums through their owner's ids or something.
Experienced
Usergroup: Customer
Joined: Mar 31, 2004
Total Topics: 20
Total Comments: 83
Yeah, I've got a lot of htaccess rewrites and small hacks going on to make it work the way I want. That's what scares me about updating to the new version, I can't remember all the changes I've made to my version.