The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Navigation Manager
For some unknow reason, in 4.2 with the Navigation Manager if you delete a item, it leaves behind the record in the navigation table and in the phrase table.
I have found a way to delete the record in the navigation table by adding this code via a plugin to the navigation_admin_dodelete hook. PHP Code:
Thanks |
#2
|
||||
|
||||
Did you put in a bug report about this?
|
#3
|
|||
|
|||
Hi Lynne their is already something in JIRA http://tracker.vbulletin.com/browse/VBIV-15177
But that don't help me at the moment. Thanks |
#4
|
|||
|
|||
I'm the one that filed that report and just about fell out of my chair when I saw it marked "As designed" and "Resolved".
I would have to double check it, but the reason you can't delete the phrase is there isn't any id that links them to the navigation item. You need to know the full name of the phrase and delete it using that phrase. The standard phrases for navigation items are... Code:
FOR MENUS: vb_navigation_menu_' . $name . '_text' FOR TABS: vb_navigation_tab_' . $name . '_text' FOR LINKS: vb_navigation_link_' . $name . '_text' |
Благодарность от: | ||
Simon Lloyd |
#5
|
||||
|
||||
I'm soooo glad i haven't moved to vb4 beta wonder if vb5 will still be in constant beta mode?
|
#6
|
|||
|
|||
Quote:
Thanks |
#7
|
|||
|
|||
Get the name from the navigation table prior to deleting it. Then use the name (varname) to delete the phrase from the phrase table.
|
#8
|
|||
|
|||
I tried something like that but I don't think I write it correctly, when I would delete a item via the navigation manager, it would delete the item in the db just fine but not the phrase, so I don't know how to code it to do that.
|
#9
|
||||
|
||||
Post your code so we can try to see what was wrong.
|
#10
|
|||
|
|||
Hi Lynne, actually I tried so many different things I deleted the whole thing and then just wrote the part to remove the item from the navigation table. I know that don't help you but I tried looking back on my text files and don't have what I wrote anymore.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|