Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
  #1  
Old 06-24-2008, 06:20 PM
JulienT JulienT is offline
 
Join Date: Jan 2008
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 12-12-2008, 08:33 PM
JulienT JulienT is offline
 
Join Date: Jan 2008
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone would know about that one?
Still haven't found the solution.
Reply With Quote
  #3  
Old 12-12-2008, 09:34 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #4  
Old 12-12-2008, 10:20 PM
JulienT JulienT is offline
 
Join Date: Jan 2008
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what I need to know is where $displayUsers is defined so i can change the URL associated to a member.
Reply With Quote
  #5  
Old 12-12-2008, 11:57 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do a search in search.php for the variable and you'll find it.
Reply With Quote
  #6  
Old 12-13-2008, 07:41 AM
JulienT JulienT is offline
 
Join Date: Jan 2008
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #7  
Old 12-13-2008, 09:07 AM
Adam21 Adam21 is offline
 
Join Date: Apr 2005
Location: In The Network!
Posts: 299
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

$vboptions[base_url]
Reply With Quote
  #8  
Old 12-13-2008, 12:30 PM
JulienT JulienT is offline
 
Join Date: Jan 2008
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My problem is not the name of the variable I believe, but why it is not replaced in the URL with its value.
Reply With Quote
  #9  
Old 12-13-2008, 02:30 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try $vbulletin->options['homeurl']
Reply With Quote
  #10  
Old 12-13-2008, 03:45 PM
JulienT JulienT is offline
 
Join Date: Jan 2008
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:18 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05001 seconds
  • Memory Usage 2,245KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete