vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vbArticles (https://vborg.vbsupport.ru/forumdisplay.php?f=106)
-   -   if an article hasn't an image, how to keep red x from showing up in IE (https://vborg.vbsupport.ru/showthread.php?t=77847)

drex 03-10-2005 08:51 AM

if an article hasn't an image, how to keep red x from showing up in IE
 
<a href="http://x5world.com/articles.php?action=viewarticle&artid=3" target="_blank">http://x5world.com/articles.php?acti...rticle&artid=3</a>

if there isn't an image, can we just skip the article images box?

also, is there a way to turn it off (the article images box)?

thanks

CINQ -- great hack. loving it!

iamboard 03-10-2005 01:13 PM

Basically same question. Is there a way to post articles without images.

It is likely people may want to supply newspaper type articles without supplying images.

drex 03-10-2005 01:47 PM

iamboard-- good question too.

i am interested in posting an article with one image -- the image icon, and hot linking to an already set directory elsewhere in line for the other images.

i just want to "turn off" the box with the red X -- meaning the entire Article Image box on the right.

Does anyone know where in the code to look? I tried several attempts at changing article.php but I think its more a template issue.

Thanks

I FOUND IT!!

template article_view

remove the following:

<tr><td class="thead" align="center">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('articleimgs');"><img id="collapseimg_articleimgs" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_articleimgs].gif" alt="" border="0" /></a>
$vbphrase[vbart_artimgs]</td></tr>
<tbody id="collapseobj_articleimgs" style="$vbcollapse[collapseobj_articleimgs]">
<tr>
<td class="alt1" align="center">//
$screen
<br>
<span class="smallfont"><a href="articles.php?action=viewallimg&artid=$artid& title=$tagtitle">$vbphrase[vbart_moreimgs]</a><br>($vbphrase[vbart_total]: $totalimages)</span>
</td></tr>
</tbody>

gets rid of the block, and the errors.......

yeah!

twoseven 03-13-2005 11:57 PM

but what would be a nicer way to check to see if there is a screen shot there or not to decide wether to display the block or not

cinq 03-15-2005 12:40 PM

Quote:

Originally Posted by twoseven
but what would be a nicer way to check to see if there is a screen shot there or not to decide wether to display the block or not

That's how i plan to do it in 2.1 :)


All times are GMT. The time now is 01:58 AM.

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.03500 seconds
  • Memory Usage 1,716KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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