Helpful Information
 
 
Category: vbArticles
[Answered] Extra attachments question.

Hello again..

I'm just curious if there's a way to prevent the extra attachments from showing up at the bottom of an article and just being under the "More Images Here" link?

I looked in the template but I can only see, "$showcontent" which I obviously don't want to remove.. haha. I also looked in articles.php to see if there were a few lines that I could comment out, but I got lost on that one.

Thanks,

I presume you mean when submitting an article through the 'submit new article' link and adding images to the article.

That would require a code change.
Let me know if you really want to make that change and I will let you know which lines in articles.php you need to change.

Correct. The added images that you would attach at the bottom of the article.. They show up at the bottom of the posted article content and I would like to prevent them from appearing there.

Hope that makes sense?

I will make it an option ( to enable or disable the appending of upload images to the article's content ) in the next revision.

Sounds good to me.

Is there a quick way to avoid this in the mean time? It's not a HUGE deal, but if it's not too hard I'd like to apply it.

Around line 410 of articles.php

FIND

if($addimages!='')
{
$newcontent = $message.'<br><br>'.$addimages;
$newcontent = addslashes($newcontent);
$DB_site->query("UPDATE " . TABLE_PREFIX . "articles_article SET content='$newcontent' WHERE articles_articleid='$artid'");
}


Comment that section of code out for the time being.

Perfect. Thank you.










privacy (GDPR)