vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Add rel="next" and rel="prev" to <head> (https://vborg.vbsupport.ru/showthread.php?t=318051)

hilaryl 03-30-2015 11:08 PM

Add rel="next" and rel="prev" to <head>
 
If this has been done, please link me.

Otherwise, anyone know of a way I can achieve this?

If on page 3 of a thread it will show:
<link rel="next" href="http://www.example.com/article?1234-thread/page4" />
<link rel="prev" href="http://www.example.com/article?1234-thread/page2" />

Having a real hard time finding anything conclusive on this - which is very strange as I would have thought it's pretty important.

Cheers,
hilaryl

TheLastSuperman 03-30-2015 11:32 PM

1 Attachment(s)
So basically you want this (see attached) yet a simpler version only two links in your header template?

hilaryl 03-31-2015 12:27 AM

Yeah exactly.

I have looked at getting those variables into the header - as that would be the easiest way - but haven't had much luck.

hilaryl 04-01-2015 02:50 AM

Anyone have any ideas? Or have seen this done somewhere else?

kh99 04-01-2015 09:46 AM

I think this is what we were doing here: https://vborg.vbsupport.ru/showthread.php?t=306081. It looks like post #7 has the final code that works.

hilaryl 04-01-2015 10:02 PM

Thanks kh99 - I'm not sure why I wasn't able to find that thread.

I've Googled the heck out of all those keywords, and even done a search on this site - still nothing came up.

I've just had one more question in that thread.

Cheers,
hilaryl

kh99 04-02-2015 09:43 AM

Yeah, sometimes it's hard to find things using search. I had actually started to type a response then it was sounding familiar so I went back to find that thread. Anyway, I think I misled you in my above post in that you don't need to change the headinclude template manually since the plugin code adds on to it automatically. Sorry about that.

hilaryl 04-07-2015 09:24 PM

Yeah I noticed after changing the template and adding the plugin that I then had two instances of the block I needed - figured it out though.

The plugin method is a great way of doing this - thanks again for your help.

Cheers!


All times are GMT. The time now is 07:16 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
  • Page Generation 0.01012 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete