Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
IPB Snapback Removal Details »»
IPB Snapback Removal
Version: 1.00, by HuangA HuangA is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: 3.0.5 Rating:
Released: 01-08-2005 Last Update: Never Installs: 2
 
No support by the author.

Hi all;
First hack release, so excited
Ok... Anyways, so I imported from IPB 2.0 a few months back only to notice that it carried over the ugly [snapback]###[/snapback] from IPB. Since VB doesn't have such code built in, it's an eyesore to have it there and I finally decided to code a mini hack to remove it.

What this hack does is basically it goes through the list of posts in your database, checks for (unfortunetly only) the instance of [snapback]###[/snapback] appended at the end of each quote. I don't think it will remove multiple instance of it if someone did multi quote, but you can fix that by running this multiple times.

So, anyways, here's the hack and a short blurp on how to install it

Files to Upload: 1
Files to Edit: 1
Supported Version: UNHACKED VB3.0.5
Support Location: This thread

DO NOT FORGET TO BACK UP YOUR DATABASE BEFORE YOU USE THIS SCRIPT. ALL CHANGES MADE ARE UNREVERSABLE AND I WILL NOT BE HELD RESPONSIBLE FOR ANY SCRIPT FAILURES.

Supporters / CoAuthors

Show Your Support

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

Comments
  #2  
Old 01-09-2005, 09:31 PM
Brent H's Avatar
Brent H Brent H is offline
 
Join Date: Sep 2004
Location: Phoenix, AZ
Posts: 162
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great idea

I've been preparing to help an IPB2 board switch to vB and I always just made a custom bbcode to replace that with just a space. This seems much cleaner though.
Reply With Quote
  #3  
Old 01-09-2005, 09:45 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

At least you have seen the light and converted to the right program.
Reply With Quote
  #4  
Old 01-09-2005, 09:52 PM
HuangA's Avatar
HuangA HuangA is offline
 
Join Date: Jun 2004
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think this can also be used to strip other bb codes that you may have previously installed but does not get carried over. If I have time, I may be interested to see if I can also code it in such a way so it searches for [bbcode=BLAH] type of bbcode...

Erwin, I've been eyeing VB since forever; IPB had always been the free escape

Thanks for the input guys, greatly appreciate it. It'd be great if you click the install button if you install it
Reply With Quote
  #5  
Old 01-10-2005, 09:52 AM
Jerry's Avatar
Jerry Jerry is offline
 
Join Date: Jun 2003
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cleaner.php can take out static bbcode, I can parse snap back to the correct vB post id, though I need a IPB database with snapback in it to be able to dev it.
Reply With Quote
  #6  
Old 01-11-2005, 02:35 PM
HuangA's Avatar
HuangA HuangA is offline
 
Join Date: Jun 2004
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Jerry, what I tried to do with this script is to remove it from the quoted posts because the current vb doesn't have [snapback] as a default bbcode. Is it possible for you to modify the importer to remove it while importing? Currently it imports as such
Code:
[quote]blah blah blah, this text is quoted from a previous message
[right][snapback]_pid_of_quoted_message[/snapback][/right][/quote]
Blah blah blah, this is the replied text
I do believe I have my old IPB database still archived on the server; can you please PM me a way to drop the database file dump (.sql? .csv?) to you so you can look into updating the ImpEx?

Cheers.
Reply With Quote
  #7  
Old 01-11-2005, 02:45 PM
Jerry's Avatar
Jerry Jerry is offline
 
Join Date: Jun 2003
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PM sent.

Also you can use [ post ] tags
Reply With Quote
  #8  
Old 01-12-2005, 04:11 AM
HuangA's Avatar
HuangA HuangA is offline
 
Join Date: Jun 2004
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jerry
PM sent.

Also you can use [ post ] tags
last reply
https://vborg.vbsupport.ru/showthread.php?p=593515
(testing)

Edit:
Ah... I see... I don't know if I can update the current script to reflect it accordingly... Are postid's retained during the transfer? As far as I know (I may be wrong) the postid is an auto_increment value, which means if certain posts in between were deleted, the ladder ones will be one (or more) postid's off, right?

IE:
IPB Postid 1 / VB Postid 1: Hi blah blah blah
IPB Postid 2 / VB Postid 2: Hello, replying to postid1
IPB Postid 3 / -----------: @$%^ this board is @$% (Admin DELETE)
IPB Postid 4 / VB Postid 3: hey, I like this board
IPB Postid 5 / VB Postid 4: quote + snapback to (IPB) 4 I'll second that comment!

If you do a [post] for that one, would it not snap back to 4, which becomes itself?
Reply With Quote
  #9  
Old 01-12-2005, 08:14 AM
Brent H's Avatar
Brent H Brent H is offline
 
Join Date: Sep 2004
Location: Phoenix, AZ
Posts: 162
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Erwin
At least you have seen the light and converted to the right program.
LOL my INITIAL forum choice was vB I'm helping others see the light. Wooot.
Reply With Quote
  #10  
Old 01-13-2005, 01:04 AM
Jerry's Avatar
Jerry Jerry is offline
 
Join Date: Jun 2003
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HuangA
......which means if certain posts in between were deleted, the ladder ones will be one (or more) postid's off, right?........
ImpEx imports the import post id so this can be sorted out even if posts are deleted or moved as its linked to the imported post and not the counters.

Have a look at the post table for the id and the importpostid.

Its a 1-2-1 mapping from ImpExDatabase::get_posts_ids() to swap them out.
Reply With Quote
Reply

Thread Tools

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 01:58 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.04826 seconds
  • Memory Usage 2,296KB
  • Queries Executed 26 (?)
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_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete