Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued Products: Article Manager 1 Add-ons:
VB add-on does not publish the image.

 

 


Motozine
User

Dec 2, 2002, 9:31 PM

Post #1 of 7 (3812 views)
Shortcut
VB add-on does not publish the image. Can't Post

I am really happy with the AM add-on that allows our members to discuss our stories posted with AM.

My only complaint is that when an image is posted with AM that image is not carried over to the VBulletin post.

Example:

AM Story:
http://www.motozine.com/article_81.php

VB Post:
http://www.motozine.com/forums/showthread.php?s=&threadid=29977

(Yes, I have HTML turned on in the forum that the AM story is posted in).



---
Robert Basil - CTO
Fieldsheer Motorsport Apparel
http://www.fieldsheer.com
http://www.motozine.com - (My ArtMan website)



(This post was edited by Motozine on Dec 2, 2002, 9:32 PM)


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 10, 2002, 4:12 PM

Post #3 of 7 (3757 views)
Shortcut
Re: [Luke] VB add-on does not publish the image. [In reply to] Can't Post


In Reply To
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,

I can make the mods to the cgi script, but I was not sure if it would be allowed. :)

If you want to change it for everyone the following code would work the best as it would not require HTML to be turned on in the forum that the story is posted to.

Just change:


Code
 ***image placeholder***


to:


Code
 [i-m-g]http://www.yourdomain.com/uploads/imagename.jpg[/i-m-g]


(Replace i-m-g with img)



---
Robert Basil - CTO
Fieldsheer Motorsport Apparel
http://www.fieldsheer.com
http://www.motozine.com - (My ArtMan website)



(This post was edited by Motozine on Dec 10, 2002, 4:13 PM)


Luke
Staff / Moderator


Dec 17, 2002, 3:47 PM

Post #4 of 7 (3727 views)
Shortcut
Re: [Motozine] VB add-on does not publish the image. [In reply to] Can't Post

Hi Robert,


Quote
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 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


In Reply To
Hi Robert,


Quote
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:


Code
  ...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


Code
  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.


Code
<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.


Code
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

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4