View Full Version : Assistance in determining the location to place the code ... (post content)
Elber
02-19-2012, 10:55 AM
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 1329737605 at 1329737605 ---------------
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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.