The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Where is this template hidding? It's the only one left.
I have integrated VB with my existing website community.
So part of the fun is now to customize all templates so that links to user profiles are changed to links to my community profiles (as I also use a different userID in both systems). Using the template names in source code as well as the text search has helped me a lot and I covered nearly all of them. But I have one left and I just cannot find it's name. When you make a search on posts from user John, the posts result page start with "Search: Posts Made By: John". So where can I find the template to edit the link used for John. Thanks for help, this one is driving me nuts. |
#2
|
|||
|
|||
Anyone would know about that one?
Still haven't found the solution. |
#3
|
||||
|
||||
It looks like it's right here in search_results:
HTML Code:
<if condition="$starteronly">$vbphrase[threads_started_by]<else />$vbphrase[posts_made_by]</if>: $displayUsers </if> |
#4
|
|||
|
|||
what I need to know is where $displayUsers is defined so i can change the URL associated to a member.
|
#5
|
||||
|
||||
Do a search in search.php for the variable and you'll find it.
|
#6
|
|||
|
|||
Thanks, that's my answer. I was looking in templates instead of looking into the function code itself.
All good now --------------- Added [DATE]1229163729[/DATE] at [TIME]1229163729[/TIME] --------------- I still have an issue in here. As this is code related, I'm not so good at finding the reason. I found in search.php the code Code:
$display['users']["$userid"] = '<a href="member.php?' . $vbulletin->session->vars['sessionurl'] . "u=$userid\"><b><u>$username</u></b></a>"; Code:
$display['users']["$userid"] = '<a href="$vboptions[homeurl]/user.php?' . $vbulletin->session->vars['sessionurl'] . "iUsername=$username\"><b><u>$username</u></b></a>"; So the link becomes: http://forum.mydomain.com/$vboptions[homeurl]/user.php?iUsername=john instead of http://www.anotherdomain.com/user.php?iUsername=john Would you have an idea of the problem? |
#7
|
|||
|
|||
$vboptions[base_url]
|
#8
|
|||
|
|||
My problem is not the name of the variable I believe, but why it is not replaced in the URL with its value.
|
#9
|
||||
|
||||
Try $vbulletin->options['homeurl']
|
#10
|
|||
|
|||
Now it works. The code should have been:
Code:
$display['users']["$userid"] = '<a href="' . $vbulletin->options['homeurl'] . "/user.php?iUsername=$username\"><b><u>$username</u></b></a>"; |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|