The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Problem with tabip
Hi everyone,
I'm having a little problem to mark some tabs as active. I've reorganized the links to eliminate the "what's new" tab and moved the links to "Forum". I also moved some Links from "Forum" to a new tab "My area". There are no new links, only the links from the stock menu. To set the moved tab active I added tabid=xxx to the URL and in most cases it works fine. But there are a few links where it didn't work or gives you an error message. Here are some examples: Private messages: private.php{session.sessionurl_q}&tabid=97 Error message: The requested URL /vbtest/private.php&tabid=97 was not found on this server. Aktivit?ten activity.php{session.sessionurl_q}&tabid=49 Error message: The requested URL /vbtest/activity.php&tabid=49 was not found on this server. Picures album.php{session.sessionurl_q}&tabid=97 Error message: The requested URL /vbtest/album.php&tabid=97 was not found on this server. Today's topic search.php?{session.sessionurl}&do=getdaily&co ntenttype=vBForum_Post&tabid=49 Ignoring tabid and "What's new" is still active. Anyone here, who has an idea how to fix this? Thank you in advance. Cheers, Andre |
#2
|
|||
|
|||
It's because when you add a parameter to an URL and it's the first one, you have to use a question mark ? and not the ampersand &.
|
#3
|
|||
|
|||
So it must be: private.php{session.sessionurl_q}?tabid=97 ?
|
#4
|
|||
|
|||
Try:
private.php?{session.sessionurl}tabid=97 Note that I changed sessionurl_q to sessionurl and left out the ampersand/question mark completely. |
#5
|
|||
|
|||
private.php{session.sessionurl_q}?tabid=97 This one worked. But to understand what you said, what is the difference between sessionurl and sessionurl_q?
And how do I have to modify this URL? search.php?{session.sessionurl}do=getdaily&con tenttype=vBForum_Post&tabid=49 |
#6
|
|||
|
|||
sessionurl contain "s=sessionhash&"
sessionurl_q contains "?s=sessionhash" sessionurl_js contains "s=sessionhash&" In case you weren't using any other parameters, sessionurl_q would of been fine to use but since you want to add another parameter to the URL and you don't know whether the sessionurl is set or not, you have to make use of sessionurl so you're sure the URL will come out the right way. The search.php URL should work like this: search.php?{session.sessionurl}do=getdaily&con tenttype=vBForum_Post&tabi d=49 |
Благодарность от: | ||
280ZX |
#7
|
|||
|
|||
Thank you for the explanation.
No, that didn't work. The search is ok, but the wrong tab is active. |
#8
|
|||
|
|||
Why doesn't it work? What's the URL in your address bar?
Maybe you put the wrong tabid in the URL. |
#9
|
|||
|
|||
The search result is alright, but the wrong tab is activated. tabid=49 is right, it is the same tab I used for the other links and there it worded fine. The URL shown in the address bar after clicking the link is: .../vbtest/search.php?searchid=1736
|
#10
|
|||
|
|||
That's because when you search something, vBulletin stores all the search information in the database for caching purposes and then redirects you to that URL.
You will not be able to fix that with a template modification, not entirely sure if it's possible with a hook in vBulletin either. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|