vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Assistance in determining the location to place the code ... (post content) (https://vborg.vbsupport.ru/showthread.php?t=278815)

Elber 02-19-2012 10:55 AM

Assistance in determining the location to place the code ... (post content)
 
Hi,

in which the plug can add code to retrieve content [code] from the posts content and where the variable is stored contents post ?

Abhik 02-19-2012 11:31 AM

Posts are stored in 'post' table, but what exactly you want to retrieve?

Elber 02-19-2012 11:38 AM

In tags [code] I have a constant content and I want to do with the link and show the above [code]

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

help please

Lynne 02-20-2012 05:10 PM

I don't understand what you want to do.

Elber 02-20-2012 06:30 PM

:) Sorry to my English ;)

Look, In post I have:

content
content
content
content
[.code]Something_Content[/.code]

and i want make:

content
content
content
content
<a href="Something_Content">Something_Content</a> <- This content is from [.code][./code]
[.code]Something_Content[/.code]


In which the plug-in add my PHP code ??

Plug-in for me is for example global_start or showthread_start or postdata_start

Now You understand ?

Lynne 02-20-2012 08:45 PM

Why not just edit the bbcode_code template and add that to the top of it?

Elber 02-20-2012 09:10 PM

because I have a lot of such messages :)

Lynne 02-21-2012 01:44 AM

So you want to show a different message all the time whenever someone uses the code tag? Can you do a str_replace on it? I'm really not understanding exactly what you are trying to do so it's hard to recommend something for you to do. If you are replacing something in the postbit though, I'd use a postbit_display_* hook.


All times are GMT. The time now is 11:32 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.00965 seconds
  • Memory Usage 1,716KB
  • 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
  • (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