Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-16-2014, 02:40 PM
huskermax huskermax is offline
 
Join Date: Mar 2010
Location: Cincinnati
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 09-16-2014, 06:29 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 -->
Reply With Quote
  #3  
Old 09-16-2014, 11:34 PM
huskermax huskermax is offline
 
Join Date: Mar 2010
Location: Cincinnati
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tbworld View Post
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.
Reply With Quote
  #4  
Old 09-16-2014, 11:47 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by huskermax View Post
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.
Reply With Quote
  #5  
Old 09-16-2014, 11:53 PM
huskermax huskermax is offline
 
Join Date: Mar 2010
Location: Cincinnati
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tbworld View Post
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?
Reply With Quote
  #6  
Old 09-17-2014, 12:38 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 09-17-2014, 09:20 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why not just use:

Code:
http://forum.huskermax.com/vbbs/forum.php#footer_time
Reply With Quote
  #8  
Old 09-17-2014, 11:22 AM
huskermax huskermax is offline
 
Join Date: Mar 2010
Location: Cincinnati
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks both ideas work.
Reply With Quote
Благодарность от:
ozzy47
  #9  
Old 09-17-2014, 11:49 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, I just gave you a alternative to adding additional code to the template.
Reply With Quote
  #10  
Old 09-17-2014, 11:35 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
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.
Reply With Quote
Благодарность от:
ozzy47
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:08 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04828 seconds
  • Memory Usage 2,263KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (6)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete