PDA

View Full Version : [Answered] Extra attachments question.


KTBleeding
02-25-2005, 02:36 PM
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,

cinq
02-26-2005, 11:53 PM
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.

KTBleeding
02-27-2005, 12:39 AM
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?

cinq
02-27-2005, 12:49 AM
I will make it an option ( to enable or disable the appending of upload images to the article's content ) in the next revision.

KTBleeding
02-27-2005, 01:03 AM
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.

cinq
02-27-2005, 01:10 AM
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.

KTBleeding
02-27-2005, 01:34 AM
Perfect. Thank you.