PDA

View Full Version : no userid available in navbar/navtab since upgrade 4.2.0PL3 -> 4.2.1


stardotstar
05-14-2013, 04:06 AM
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

search.php?{vb:raw session.sessionurl}do=finduser&userid={vb:raw bbuserinfo.userid}&contenttype=vBForum_Post&showpo sts=1


forms the url:
search.php?do=finduser&userid=&contenttype=vBForum_Post&showposts=1
and returns the error:

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=vBForum_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.

search.php?{session.sessionurl}do=finduser&userid= {bbuserinfo.userid}&contenttype=vBForum_Post&showp osts=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 1368580129 at 1368580129 ---------------

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