vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Have bbs load bottom of page instead of top from outside URL (https://vborg.vbsupport.ru/showthread.php?t=314343)

huskermax 09-16-2014 02:40 PM

Have bbs load bottom of page instead of top from outside URL
 
How would I go about loading forum.php so when you click on the link it loads the page from the bottom first with an anchor? So the link would look like www.mydomain.com/bbs folder/forum.php#footer

tbworld 09-16-2014 06:29 PM

I am not sure I understand your question, it is a bit unclear.

When forum.php is executed it loads template FORUMHOME. So you could place an anchor in "FORUMHOME right above the footer template variable. You could also place your anchor in the "footer template" directly, thus making it available on all pages.

Not sure if this is what you are looking for. :)

Code:

  <a href="#footer"></a>
  {vb:raw footer}  <!-- footer template variable -->


huskermax 09-16-2014 11:34 PM

Quote:

Originally Posted by tbworld (Post 2515404)
I am not sure I understand your question, it is a bit unclear.

When forum.php is executed it loads template FORUMHOME. So you could place an anchor in "FORUMHOME right above the footer template variable. You could also place your anchor in the "footer template" directly, thus making it available on all pages.

Not sure if this is what you are looking for. :)

Code:

  <a href="#footer"></a>
  {vb:raw footer}  <!-- footer template variable -->


If I can link to that and it loads the page and takes the user to the footer part that is what I want. so the URL to the bbs would be www.mydomain.com/bbsfolder/forum.php#footer

That would load the footer part of the page if one would follow that link. That is what I am trying to do. Sorry to be confusing.

tbworld 09-16-2014 11:47 PM

Quote:

Originally Posted by huskermax (Post 2515423)
That would load the footer part of the page if one would follow that link. That is what I am trying to do. Sorry to be confusing.

Should work, give it a try. As long as the user has access/permission to the page. :)

huskermax 09-16-2014 11:53 PM

Quote:

Originally Posted by tbworld (Post 2515426)
Should work, give it a try. As long as the user has access/permission to the page. :)

In fourmhome template I see the {vb:raw footer} code. I put the <a href="#footer"></a>

just above it and it did not work. Do I wrap that href code around something?

tbworld 09-17-2014 12:38 AM

It works, but you will have to reposition the anchor to the top of your shoutbox or the template hook that it uses. :)

Code:

  http://forum.huskermax.com/vbbs/forum.php#footer
--------------- Added 16 Sep 2014 at 18:56 ---------------

You could try sticking the anchor above:

Code:

  {vb:raw template_hook.forumhome_below_forums}
In the FORUMHOME template.

ozzy47 09-17-2014 09:20 AM

Why not just use:

Code:

http://forum.huskermax.com/vbbs/forum.php#footer_time

huskermax 09-17-2014 11:22 AM

Thanks both ideas work. :)

ozzy47 09-17-2014 11:49 AM

Yeah, I just gave you a alternative to adding additional code to the template. :)

tbworld 09-17-2014 11:35 PM

Quote:

Originally Posted by ozzy47 (Post 2515470)
Why not just use:
Code:

http://forum.huskermax.com/vbbs/forum.php#footer_time

Good suggestion, but he really needed below the forums, not above the footer. His explanation was in reverse notation. I think the correct lesson here is that you can use any existing #ID field on an HTML element as it is also a destination anchor. :)


All times are GMT. The time now is 11:24 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.01765 seconds
  • Memory Usage 1,737KB
  • 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
  • (6)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete