vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Where is this template hidding? It's the only one left. (https://vborg.vbsupport.ru/showthread.php?t=183421)

JulienT 06-24-2008 06:20 PM

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.

JulienT 12-12-2008 08:33 PM

Anyone would know about that one?
Still haven't found the solution.

Lynne 12-12-2008 09:34 PM

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>


JulienT 12-12-2008 10:20 PM

what I need to know is where $displayUsers is defined so i can change the URL associated to a member.

Lynne 12-12-2008 11:57 PM

Do a search in search.php for the variable and you'll find it.

JulienT 12-13-2008 07:41 AM

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>";
I want to replace it to point to the correct URL, so I edited it to be
Code:

$display['users']["$userid"] = '<a href="$vboptions[homeurl]/user.php?' . $vbulletin->session->vars['sessionurl'] . "iUsername=$username\"><b><u>$username</u></b></a>";
However, when I do that, $vboptions[homeurl] is not understood and instead it is included after the forum root URL.
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?

Adam21 12-13-2008 09:07 AM

$vboptions[base_url]

JulienT 12-13-2008 12:30 PM

My problem is not the name of the variable I believe, but why it is not replaced in the URL with its value.

Lynne 12-13-2008 02:30 PM

Try $vbulletin->options['homeurl']

JulienT 12-13-2008 03:45 PM

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>";
Thanks for your help


All times are GMT. The time now is 09:19 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.01058 seconds
  • Memory Usage 1,728KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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