Question DBSEO - hook question

Status
Not open for further replies.
Hello

Im just migrating from VBSEO to DBSEO and have a quick question. I use a custom plugin to change the output of the canconical tag to have a -all.html at the end. We basically serve google a page which shows all the replies on one page.

This was easy in VBSEO I just had a hook on global_complete which did a str_replace on $output.

However I am struggling to manipulate $output with DBSEO as the execution order for the DBSEO hook is '65535' which i can't make higher for my plugin. The only solution I can think of is lower 65535 to 65534 but this feels a bit wrong.

Is there a better approach?
 
You can safely change the execution order, it's only to make sure other mods that modify the output runs before it. I don't believe that hook should modify the canonical tag, though :)
 
Oh sorry, the wording was wrong, I meant that my hook on global_complete shouldn't modify the canonical tag so there shouldn't be a conflict if you modify $output ahead of that hook.

Sorry for the confusion :(
 
Status
Not open for further replies.

Legacy DragonByte SEO

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
7,191
Customer rating
5.00 star(s) 1 ratings
Back
Top