vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vbArticles (https://vborg.vbsupport.ru/forumdisplay.php?f=106)
-   -   [Answered] Extra attachments question. (https://vborg.vbsupport.ru/showthread.php?t=77025)

KTBleeding 02-25-2005 02:36 PM

[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,

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
PHP Code:

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.


All times are GMT. The time now is 05:00 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01090 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete