 |

Luke
Staff
/ Moderator

Dec 10, 2002, 4:03 PM
Post #2 of 7
(3758 views)
Shortcut
|
|
Re: [Motozine] VB add-on does not publish the image.
[In reply to]
|
Can't Post
|
|
Hi Robert, Sorry for the wait in getting back to you. With the way goforum.cgi is designed it doesn't copy over the image tag, but the placeholder instead. It might be possible to change this by making some modifications in the programs source code. 1. If it copied over the image tag instead of the placeholder would this work for you? 2. How would you like to see this work, any additional information would be great? :) Luke Holzken Product Development
|
|
|  |
 |

Motozine
User
Dec 17, 2002, 4:16 PM
Post #5 of 7
(3725 views)
Shortcut
|
|
Re: [Luke] VB add-on does not publish the image.
[In reply to]
|
Can't Post
|
|
Hi Robert, I can make the mods to the cgi script, but I was not sure if it would be allowed. :) We don't mind at all. Please feel free to make any changes you want to goforum.cgi. I would be interested to see it in action once you've made the changes. :) Luke, Great! What is the image name variable so I can pass it to the script? And how do you handle multiple images? --- Robert Basil - CTO Fieldsheer Motorsport Apparel http://www.fieldsheer.com http://www.motozine.com - (My ArtMan website)
|
|
|  |
 |

dlo_itools
Staff

Dec 20, 2002, 3:30 PM
Post #6 of 7
(3699 views)
Shortcut
|
|
Re: [Motozine] VB add-on does not publish the image.
[In reply to]
|
Can't Post
|
|
To pass the image information to goforum.cgi, do the following: 1. In your article template, change the link to goforum to look something like this:
...goforum.cgi?id=$art_num$&img1=***image1:url***&img2=***image2:url*** This passes the image URLs to the goforum script. Note that each image has to be passed manually like this. 2. In your goforum.cgi file, add a line in the main subroutine (around line 118) after the my $forum_body=... line
1 while ($forum_body =~ s|\*\*\*image(\d+)(:\w+)?\*\*\*|'[i-m-g]'.$in{img$1}.'[/-i-m-g]'|sige); This changes the ***imageN*** placeholders to the corresponding URLs. /Dave Lo
(This post was edited by dlo on Dec 20, 2002, 3:32 PM)
|
|
|  |
 |

dlo_itools
Staff

Dec 23, 2002, 9:28 AM
Post #7 of 7
(3672 views)
Shortcut
|
|
Re: [dlo] VB add-on does not publish the image.
[In reply to]
|
Can't Post
|
|
There is a better way of accessing images from the goforum script which does not involve passing the actual image URL around. 1. The call to goforum.cgi remains the same as originally i.e.
<a href="...goforum.cgi?id=$art_num$">Discuss this article</a> 2. The line to add is at the same as the previous method, but instead of refering to $in{'img'}, we refer to $rec{'ufile_image'} which is the filename of your image. You will need to customize the path to your upload directory.
1 while ($forum_body =~ s|\*\*\*image(\d+)(:\w+)?\*\*\*| '[i-m-g]http://www.yoursite.com/artman/uploads/'.$rec{"ufile_image$1"}.'[/-i-m-g]'|sige); Just like Perl, there's more than one way to do it! /Dave Lo
|
|
|  |
|