The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Two questions
Two questions:
1) I'm trying to add a link to a nav item and have it point at a tab on the members profile page, now in a template I'd use {vb:link member, {vb:raw userinfo}}&tab=mytab, but what can I use in the navigation manager. 2) I can't get the check version bit of code to work, for whatever of reasons it refuses to work, are there any characters that can't be used as part of a product id? |
#2
|
|||
|
|||
There is no way to have any kind of variables in the url for the navigation manager. Maybe you could do something like create a plugin using hook member_start and code like:
Code:
if ($vbulletin->GPC['userid'] == 0) { $vbulletin->GPC['userid'] = $vbulletin->userinfo['userid']; } then if you use a url that's just "member.php", it will go to the current user. This version check url seems to work: Code:
https://vborg.vbsupport.ru/misc.php?do=productcheck&pid=YaAS4-40 |
#3
|
||||
|
||||
Quote:
Quote:
Code:
Version check failed. No version number was found at this location. The URL for the version check may be incorrect, or the server may be experiencing problems. Please try again later. |
#4
|
|||
|
|||
Quote:
Code:
if ($vbulletin->GPC['userid'] == 0 && $_GET['self']) { $vbulletin->GPC['userid'] = $vbulletin->userinfo['userid']; } Quote:
|
#5
|
||||
|
||||
Quote:
Quote:
|
#6
|
|||
|
|||
Quote:
Quote:
Also, I of course misspoke above - it's not the <version>...</version> tags, it's the <product productid="..."> at the top. |
#7
|
||||
|
||||
Quote:
Quote:
|
#8
|
|||
|
|||
I see. Well, I'm afraid I'm not sure what you can do (which doesn't mean there's no way around it, only that I don't know). I think there may be no choice but to change the id or do without the version check (or implement your own check url on your server, and return the productid you're using).
Edit: ..or write install code that copies any data that you need from the 'other' product. I'm assuming there's data and/or settings you're concerned about, or of course you could just ask users to uninstall the old version. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|