Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 01-29-2010, 11:21 AM
cagatayh cagatayh is offline
 
Join Date: Aug 2006
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default register_rules theme problem

Hi,

In register_rules theme, there is a problem with navbar ($navbar). In register.php, we can not see navbar.

Codes in register_rules like that:
Code:
.
.
.
<body>
$header
$navbar
.
.
.
Thanks
Reply With Quote
  #2  
Old 01-30-2010, 01:52 PM
cagatayh cagatayh is offline
 
Join Date: Aug 2006
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The problem continues
Reply With Quote
  #3  
Old 01-30-2010, 09:18 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There shouldn't be a $navbar variable in the register_rules template by default.
Reply With Quote
  #4  
Old 01-30-2010, 10:39 PM
cagatayh cagatayh is offline
 
Join Date: Aug 2006
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep, but I don't use header template, I put all codes(logo etc.) to the navbar template. So $navbar must be appear there. How can I do that ?

Thanks
Reply With Quote
  #5  
Old 01-30-2010, 10:42 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cagatayh View Post
Yep, but I don't use header template, I put all codes(logo etc.) to the navbar template. So $navbar must be appear there. How can I do that ?

Thanks
I'm not absolutely certain on this, but my hunch is that register.php would need to be edited, as I don't think it's called for that template. I don't think just putting the $navbar variable there will do it, unless someone knows something more about it.
Reply With Quote
  #6  
Old 01-31-2010, 09:26 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Best solution would be to put the logo etc where they belong: in the header template.
Reply With Quote
  #7  
Old 02-02-2010, 10:16 AM
cagatayh cagatayh is offline
 
Join Date: Aug 2006
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Marco van Herwaarden View Post
Best solution would be to put the logo etc where they belong: in the header template.
I edited the theme and I don't use the logo in the header theme anymore, and I asked here how can I do that ? You come and tell me put them where they belong... :down:

If you don't know please don't write to the topic, I don't want to know the "Best solution", I want to know the real solution !

Thanks
Reply With Quote
  #8  
Old 02-02-2010, 05:08 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Er, that that is the real solution. If you had stopped and thought about it, you'd realize that you can probably use your header for all your navbar code instead of your navbar template and it will look exactly the same. Take a look at all the custom styles that move the navbar for whatever reason, and you'll see that they've moved most everything to the header (Though I've not see one that eliminates one altogether). The reason why is that eliminating one usually creates problems just like the ones you having now, but I see no reason why you can't use both templates to maintain the style design you've created, nor do I see any reason for the hostility. Sometimes the real solution is not the one you wanted to hear, but it will still likely work. How could you differentiate the best solution from the real one? They're the same thing.
Reply With Quote
  #9  
Old 02-03-2010, 10:50 AM
cagatayh cagatayh is offline
 
Join Date: Aug 2006
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Digital Jedi View Post
Er, that that is the real solution. If you had stopped and thought about it, you'd realize that you can probably use your header for all your navbar code instead of your navbar template and it will look exactly the same. Take a look at all the custom styles that move the navbar for whatever reason, and you'll see that they've moved most everything to the header (Though I've not see one that eliminates one altogether). The reason why is that eliminating one usually creates problems just like the ones you having now, but I see no reason why you can't use both templates to maintain the style design you've created, nor do I see any reason for the hostility. Sometimes the real solution is not the one you wanted to hear, but it will still likely work. How could you differentiate the best solution from the real one? They're the same thing.

I think I asked a simple question. How can I show a $navbar in the register theme ? Is that simple enough ? I don't wanna hear, 'use them in the header theme, forget another way.

What I want to do is my choise. So I am asking again: How can I show a $navbar in the register theme ?

If somebody know that, they can write, I'm gonna be be pleased. Otherwise plese don't write any comment which is not a solution.

Thanks
Reply With Quote
  #10  
Old 02-03-2010, 11:40 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What I'm saying is, I don't think you can, without a editing a vBulletin core file. I don't think that's something you want to do, is it? Nor do I think it's something that can be done easily, not to mention voiding any official vBulletin support, as per the TOS. Maybe you can hire a PHP coder to look into it for you, but that seems to be going about it the hard way.

What I don't understand is what's the big deal with moving some code to the header? Maybe if we understood why your trying to avoid the header, we'd understand what you were trying to do better. As it stands, you seem to be dead set on going about this the more difficult way, the way that most likely won't work. Just saying that it's your choice, doesn't really mean it's possible. That's not how coding works.
Reply With Quote
Reply

Thread Tools
Display Modes

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 01:20 PM.


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.04891 seconds
  • Memory Usage 2,249KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete