vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   no userid available in navbar/navtab since upgrade 4.2.0PL3 -> 4.2.1 (https://vborg.vbsupport.ru/showthread.php?t=298131)

stardotstar 05-14-2013 04:06 AM

no userid available in navbar/navtab since upgrade 4.2.0PL3 -> 4.2.1
 
Hi Guys,

Need guidance on this as, unlike my previous issue yesterday it has not resolved with rebuilding bitfields and general templates.

I have had two navbar navigation tabs in use for ages.

My Posts - setup in the navbar with
Code:

search.php?{vb:raw session.sessionurl}do=finduser&userid={vb:raw bbuserinfo.userid}&contenttype=vBForum_Post&showposts=1
forms the url:
search.php?do=finduser&userid=&contenttype=vBForum _Post&showposts=1
and returns the error:
Quote:

Please add more constraints to your search. Searches that return all or most of the database are a bad idea.
I note that the url that is formed is without the userid resolving.
If I manually insert my UID it works:
search.php?do=finduser&userid=1&contenttype=vBForu m_Post&showposts=1

Now in the main top header where the login and profile block is the UID is correctly called because if I click my name it creates the member.php url:

member.php?u=1

So it is not a syntax change or variable name is it?

This only happened after 4.2.0PL3 up to 4.2.1

I have started digging around in the navigation manager and swapping out the url formation code to no avail.

I have also looked in the nav* templates

This is also happening with the default vB4 template.

Any suggestions guys?
W

Lynne 05-14-2013 03:08 PM

That is your code in the Navigation Manager? You shouldn't be using {vb:raw..} in there.

HTML Code:

search.php?{session.sessionurl}do=finduser&userid={bbuserinfo.userid}&contenttype=vBForum_Post&showposts=1

stardotstar 05-14-2013 10:54 PM

That fixes it Lynne, thank you very much. I had that from previous incarnations of my boards. I'm glad that I've got that raw code out of the template. There is another instance of that for the My Threads code that is embedded in the second row of the navbar that I can't seem to find. But I'll keep looking and report back if I find it.
If you happen to look back here and can easily point me to the second row of the navbar code I'd appreciate a tip.
I very much appreciate the help Lynne!

Best regards,
Will

--------------- Added [DATE]1368580129[/DATE] at [TIME]1368580129[/TIME] ---------------

OK, found it - I can't believe how much time I wasted with searches that didn't turn up the fact that to get the second row or subnav bar items to show you have to open and save the main index tab and then they appear. Its all fixed.
thanks Lynne,
WIll


All times are GMT. The time now is 11:41 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.01002 seconds
  • Memory Usage 1,720KB
  • 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)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (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