Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > vbArticles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
if an article hasn't an image, how to keep red x from showing up in IE Details »»
if an article hasn't an image, how to keep red x from showing up in IE
Version: , by drex drex is offline
Developer Last Online: Dec 2017 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-10-2005 Last Update: Never Installs: 0
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-10-2005, 01:13 PM
iamboard iamboard is offline
 
Join Date: Feb 2005
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 03-10-2005, 01:47 PM
drex drex is offline
 
Join Date: Feb 2005
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #4  
Old 03-13-2005, 11:57 PM
twoseven twoseven is offline
 
Join Date: Jan 2004
Location: in floris' pants
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 03-15-2005, 12:40 PM
cinq's Avatar
cinq cinq is offline
 
Join Date: Oct 2002
Posts: 1,398
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:48 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06607 seconds
  • Memory Usage 2,235KB
  • Queries Executed 18 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete