Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 Programming Discussions
  #1  
Old 09-13-2014, 11:20 PM
gullbird gullbird is offline
 
Join Date: Jan 2014
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Attachment BB code help

i have some threads where attachments were added as
Code:
[attachment=223]tigeraugusta.jpg[/attachment]
223 is threads id which do not exist any more as ids got changed during a custom made database import
files are hosted on server
is there a way to replace "=123]" with "]" as we used in vb4 cleaner.php
or any other mean creating bbcode based on above so it become an IMG bb code
Reply With Quote
  #2  
Old 09-14-2014, 01:15 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Even if you could change it to
Code:
[attachment]tigeraugusta.jpg[/attachment]
That isn't going to link to anything. In fact, that isn't even valid BBCODE in vbulletin. vbulletin would use [ATTACH], not [ATTACHMENT] and it would use a number that identifies a specific attachment in the database table. So really, if that is what you have in the posts, you will want to remove the whole thing, not change it.
Reply With Quote
Благодарность от:
tbworld
  #3  
Old 09-14-2014, 12:48 PM
gullbird gullbird is offline
 
Join Date: Jan 2014
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
[attachment]tigeraugusta.jpg[/attachment]
if i can have something like above and able to remove IDs so i can make a custom BBCODE
Files are located on server and file names are under bbcode
so with custom bbcode it could be
Code:
[IMG] <server URL>/bbcode-filename[/IMG]
is it not possible ?

--------------- Added [DATE]1410730780[/DATE] at [TIME]1410730780[/TIME] ---------------

any help how i can remove or change this bbcode
Reply With Quote
  #4  
Old 09-15-2014, 05:04 PM
gullbird gullbird is offline
 
Join Date: Jan 2014
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i found a query from vb3 this is and i edited it with vb5 table name
Code:
UPDATE text SET rawtext = replace(rawtext,  '=223]', ']');
it will work ?
if so how i can setup this to find numbers because my 223 represents post ID of my old table
Reply With Quote
  #5  
Old 09-18-2014, 10:16 PM
gullbird gullbird is offline
 
Join Date: Jan 2014
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Even if you..
wondering what are you doing here how much your 40k posts helped??
that's why i usually do not recommend vbulletin

regarding my question [tag=123] =123 will not create any problem if we set options to YES in custom BB Code
Reply With Quote
  #6  
Old 09-18-2014, 10:42 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gullbird View Post
wondering what are you doing here how much your 40k posts helped??
that's why i usually do not recommend vbulletin

regarding my question [tag=123] =123 will not create any problem if we set options to YES in custom BB Code
That's not a very nice response, and not the best way to get someone to help you in their spare time, on a voluntary basis.
Reply With Quote
Благодарность от:
tbworld
  #7  
Old 09-19-2014, 04:23 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know the answer to your question off the top of my head. I would need to google it. I was hoping someone who is better at writing queries would be able to help you.

You do realize that vbulletin.org is run by volunteers, don't you? We aren't required to be here to help people. We do this in our spare time.
Reply With Quote
Благодарность от:
ozzy47
  #8  
Old 03-11-2015, 07:50 PM
gullbird gullbird is offline
 
Join Date: Jan 2014
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahh yes i am sorry Lynne really it was not a nice response by me
Reply With Quote
Reply

Thread Tools
Display Modes

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:44 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.04393 seconds
  • Memory Usage 2,236KB
  • Queries Executed 13 (?)
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
  • (5)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (3)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete