![]() |
|
Thread Tools |
#1
|
|||
|
|||
VB5 Register Meta
I have a ton of Dynamic pages running inside a custom VB4 frame and of course part of the dynamic is altering the page title/Keywords and description then also adding my own meta values.
This does not seem to work under VB5 using the PHP module. Can we no longer alter data before page generation as searching I found no answers other than to change title in page builder, and that surely is not dynamic! No members have liked this post.
|
#2
|
||||
|
||||
Use the hookFrontendBeforeOutput hook function to do what you want.
There are sample products utilizing hooks in the do_not_upload/development directory.
__________________
Glenn Vergara, an ex-vB Developer, now a vB Mod Developer ![]() GIPHY for vB5 | AutoLinker | Video Attachments Player | New Registered Users Module | Clear System Cache Cron | DragNDrop Upload | Topic AJAX AutoUpdate | Force Read Topic No members have liked this post.
|
#3
|
|||
|
|||
Thanks! Ill start digging. Ill register during PHP module then replace / add here.
--------------- Added 20 Oct 2018 at 21:41 --------------- Maybe I missed this but this is not an actual hook location correct? Created a product, then went to use this hook in add hooks but not listed, just template hooks unless I am completely missing this. Version 5.4.4 No members have liked this post.
|
#4
|
|||
|
|||
OK, Not finding any info on this other than the text. Is this a extra test package I need to install for this hook?
No members have liked this post.
|
#5
|
|||
|
|||
Feeling like Im missing the boat. ALl docs on this are not showing it as an actual hook, I created the product, then went to set hook location and this is not an option, and this would be great but I could inserialize the data before generation as well in index.php modify and re-serialize but that's not very pretty.
No members have liked this post.
|
#6
|
||||
|
||||
You could use the php-hooks with a new mod/ package. Like Glenn mentioned, there is an example-package within the do_not_upload folder. You will not find the hooks in the templatehooks. Iam working on a mod to change every page or channel-meta to your own needs.
__________________
vBulletin-Forum.de closed! ![]() No members have liked this post.
|
#7
|
||||
|
||||
Originally Posted by delicjous
Search engines couldn't care less about meta data. They don't even look for it anymore. This is from Google five years ago: https://www.youtube.com/watch?v=W4gr88oHb-k
![]()
No members have liked this post.
|
#8
|
||||
|
||||
Originally Posted by In Omnibus
google checks for nofollow and noindex right now. But I don't know how long they will still do that. Content is king an will be in the future. But like the googleguy said, if you haven't a unique meta tag, you should delete it... and thats not possible with vB right now.
![]()
__________________
vBulletin-Forum.de closed! ![]() No members have liked this post.
|
#9
|
||||
|
||||
Originally Posted by delicjous
Even if you delete the metadata Google uses the first 300 characters for the snippet so that's where the important information should be located. But, yes, you are correct in that there should be no duplicate metadata.
![]()
No members have liked this post.
|
#10
|
|||
|
|||
Google still uses my descriptions in snippits
--------------- Added 23 Oct 2018 at 04:57 --------------- Back to the question though, I see in the docs the hook, but this in not the same as the select hook location right? I know I want that hook described but its not in the available hooks when i go to add hook? I have never created a product for VB before, I have done all my code outside of it within a wrapper. No members have liked this post.
|
#11
|
||||
|
||||
The one you were referring to is the Template hook. That's not what you need. What you need is to create a PHP hook. PHP hook != Template hook but you can have a product that has both a PHP hook and a template hook.
__________________
Glenn Vergara, an ex-vB Developer, now a vB Mod Developer ![]() GIPHY for vB5 | AutoLinker | Video Attachments Player | New Registered Users Module | Clear System Cache Cron | DragNDrop Upload | Topic AJAX AutoUpdate | Force Read Topic No members have liked this post.
|
#12
|
|||
|
|||
OK This is where IM not getting it. So I really do not need a template hook at all, simply create a product, and in the product I can call hookFrontendBeforeOutput($params)
That returns the $params['pageHtml']; , that I can then edit directly correct No members have liked this post.
|
#13
|
||||
|
||||
Correct.
__________________
Glenn Vergara, an ex-vB Developer, now a vB Mod Developer ![]() GIPHY for vB5 | AutoLinker | Video Attachments Player | New Registered Users Module | Clear System Cache Cron | DragNDrop Upload | Topic AJAX AutoUpdate | Force Read Topic No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 01:31.