vBulletin Mods

The Official vBulletin Modifications Site

by diades
17 Jan 2012 09:12


Has anyone had occasion to use the <vb:comment> tag? Can anyone give me an example of its use? I want to drop it into a product via a plugin to 'erase' part of the page but just get an error which means that I have no idea. :)

Yellow Slider 17 Jan 2012 11:11

No one's gonna be able to help you if you don't post the actual code.

kh99 17 Jan 2012 11:14

You just put <vb:comment> ... </vb:comment> in a template, around the part that you want to comment out. If you're doing a str_replace or the like on a cached template that won't work, because the cached template has already been compiled so you can't use <vb: tags. The cached template is php, so you might be able to put in /* and */ as long as you make sure you're not putting them in the middle of a string.

All times are GMT. The time now is 19:32.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.