vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=263)
-   -   Attachment BB code help (https://vborg.vbsupport.ru/showthread.php?t=314300)

gullbird 09-13-2014 11:20 PM

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

Lynne 09-14-2014 01:15 AM

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.

gullbird 09-14-2014 12:48 PM

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

gullbird 09-15-2014 05:04 PM

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

gullbird 09-18-2014 10:16 PM

Quote:

Originally Posted by Lynne (Post 2515102)
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

ozzy47 09-18-2014 10:42 PM

Quote:

Originally Posted by gullbird (Post 2515650)
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. :(

Lynne 09-19-2014 04:23 PM

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.

gullbird 03-11-2015 07:50 PM

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


All times are GMT. The time now is 10:23 PM.

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.02551 seconds
  • Memory Usage 1,726KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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