![]() |
Removing vBMenu arrow?
How do you remove the arrow beside a popup menu? I have some code that uses the vBmenu class which adds that little down pointing arrow. I need to use the functionality, but since it will be activate over an image I can't have that little arrow show up, but only want to remove it for this one button image.
|
I believe the arrow gets added when you use vbmenu_register with your code. (I think... iirc.)
|
but do I not need to use that for the menu to work properly?
Heres the code chunk. When you use it, it makes the button but adds an arrow beside it. Code:
<!-- NEW EVENT BUTTON DROP DOWN --> |
You know, a real quick search gives this - https://vborg.vbsupport.ru/showthread.php?t=202383
|
thanks lynne.... I don't know how I missed it, but I also had no idea that adding ",true" would remove the friggin arrow.
Working awesome now thanks. My next question is going to be about regex and how to preg_replace this chunk of code where I need it. I can't seem to get a grasp on that. I have code already to determine if the code should be inserted or not, I just need to be able to replace a chunk. |
I'm not sure exactly what your question is or what you are trying to do next.
|
sorry, I was in a hurry this morning when writing that.
I'm using the vBEvents mod, and I have an events forum. This button we just got working will show on forumdisplay. It will replace "new thread" with "new event" but ONLY in event forums. Since I don't want to do this with a template conditional, or hardcoded forumid's vBEvents already has a plugin to determine if the forum is an event forum or not. By default the mod hardcodes an event type option in the ACP so that when a user presses new thread in an event forum, they are redirected to a new event posting with one of the 3 types (single, recurring, ranged). The type is set in the mod options (1,2,3) and can only have one choice. This button will replace that so in event forums it will be this nice little event type selector drop down box. What I need to do is use preg_replace to find 2 chunks of code in FORUMDISPLAY and replace them with my own 2 chunks of code respectively. I have no idea how to use preg_replace or regex, but I already have a plugin to put the code in. |
I usually use str_replace when I modify template code using that method. Sometimes it is easier to just modify the template though. Exactly what are you trying to find and then replace?
|
oh, maybe str_replace would work too.
I only have half of this sorted at the moment. I want to replace this Code:
<!-- controls above thread list --> Code:
<!-- controls above thread list --> Code:
<!-- controls below thread list --> Code:
<!-- controls below thread list --> The complications come into play because these buttons only need to be modified for certain forums, which are subject to change, so I need to be able to have it done through plugins to avoid having to modify a ton of templates if I want to add a new event forum or remove one etc. |
I would just do a template edit. That is way too much - along with a bunch of conditions - to be wanting to do a str_replace with.
|
All times are GMT. The time now is 08:10 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|