vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   How to position the post# links when visiting? (https://vborg.vbsupport.ru/showthread.php?t=319263)

Xarwin 06-28-2015 10:14 AM

How to position the post# links when visiting?
 
Hello everyone.

I recently finished my own custom theme for vBulletin but I'm stuck with something I can't find.
It's also a bit hard to explain but I'll try. Sorry if the title is a bit off but I couldn't think of how to describe it.

Basically I want to change the position the website loads after following/clicking a post link.

Example:
Clicking this link will get you to the post instantly. But how could I position exactly that? Like let's say, I want that it goes to the post + 1em added to the top for positioning. I used the official website as example, I'm using vBulletin 4.x myself.

Why am I asking
I have a banner which sticks to the top all the time.
This banner takes a part away of my posts when following the links. I want to fix this.
For example, this is what happens when going to a post: http://puu.sh/iFFJU/2cc9116444.jpg

Hopefully I can find an answer here, I didn't even knew how to ask this one lol.
Thanks in advance!

kh99 06-28-2015 10:32 AM

I think that's what's being asked here: http://stackoverflow.com/questions/4...n-page-anchors so maybe one of those solutions will work for you. If you scroll down a few on that page, one answer starts with "If you can't or don't want to set a new class, in css...", so if that works it might be easier than having to change the anchors.

Xarwin 06-28-2015 12:01 PM

Oh, many thanks!

It worked great :).


All times are GMT. The time now is 03:05 PM.

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.01063 seconds
  • Memory Usage 1,713KB
  • 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
  • (3)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