Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-21-2012, 07:08 PM
ils ils is offline
 
Join Date: May 2012
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Remove pasted image in posts.

I have a forum that has a post structure like the following.

[subject]
[blah forum name blah]
[posted on date user name]

OFFENDING IMAGE (spacer.gif)

[body]
[body]
[body]
[more body]
[etc]

I'm trying to get rid of the image, as it doesn't show on browsers, but we just got Forum Runner and it shows a huge grey box in its place.

Since it was pasted in, it doesn't count as an attachment.
759 match(es) inside table post
41 match(es) inside table postparsed
759 match(es) inside table searchcore_text
179 match(es) inside table thread

My version is vbulletin4.1.10p2

I was thinking of running a SQL query from the adminCP to get rid of it, but I'm not sure which column to put in place of 'value'.
UPDATE * SET value REPLACE(value, ‘spacer.gif’, ‘’);

Am I even on the right track?
Reply With Quote
  #2  
Old 08-22-2012, 01:46 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I guess you would update the post table and chang ethe pagetext column. Also, I don't know much about Froum Runner, but usually the posts are cached so you might not see the changes right away. But you can trucate the postparsed table to clear the cache.

But couldn't you just create a spacer.gif that's not a huge grey box? Or maybe your problem is that spacer.gif is missing from where the style is looking for it?
Reply With Quote
  #3  
Old 08-22-2012, 02:03 PM
ils ils is offline
 
Join Date: May 2012
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm just trying to get it out of the database. The image was copied from a forum we are about to move to, so I can avoid copying those into the new database.

I'll try running the SQL update on that particular column and post the results.
Reply With Quote
  #4  
Old 08-22-2012, 02:17 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ils View Post
I'm just trying to get it out of the database.
Ok, well, to be honest I'm not sure what will happen if you do that replacement. Did you look at any of the posts as they're stored in the db? I guess if they're stored as IMG bbcode tags, then they might disappear if the image name is blank. You might want to try it on one post first by finding the postid of one, then adding "WHERE postid = X" to your query.
Reply With Quote
  #5  
Old 08-22-2012, 02:20 PM
ils ils is offline
 
Join Date: May 2012
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, I didn't think of that. We're using wysiwyg, so I didn't consider the bb code.
Reply With Quote
  #6  
Old 08-22-2012, 02:51 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You really need to look in the post table at the pagetext for a specific post that has this image that you wish to remove. Look to see *exactly* what is in that field so you need what you want to remove/replace.
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 09:25 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.04131 seconds
  • Memory Usage 2,205KB
  • Queries Executed 11 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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