Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-24-2008, 11:11 AM
schneberger schneberger is offline
 
Join Date: Nov 2007
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default a little programing problem regarding memberlink

Hello there..

i am working on a littlebit of a garagemod for our site , wich uses profilepics and interactive profiles. i have tried to search my templates for this code that i am looking for but i can´t seem to find it.

ok here it goes.

When you are in the memberlist , a thread or just anything u can click on a users name and you are sent to this persons profile, what i have done is that i have taken the member.php renamed it a i make it call on a template called memberinfo2 isntead of memberinfo. i think i did right thing as far as that goes. what i want is a link in the regular profile that calls on the member2.php. BUT this is my big but. i cant find the code anywhere of how i should code it so it does opens the member2.php in the current users name. in other words the same code that is everywhere else on the site where you can click on a username an be redirected to this persons profile. i need this code because i think i can use the same code with the same variables but just change the pagename its calling to member.php.

i hope you understand what i mean. and can help me with that code.

thanks in advance..
markus
Reply With Quote
  #2  
Old 02-24-2008, 03:37 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So you want it so everywhere it used to call member.php, you want it to call member2.php? It might be easier to just rename your member2.php to member.php and then everything will work without you changing any templates.

If you do decide you want to change the templates instead, go to your admin cp > templates & styles and click on search in templates and enter "member" or "member.php" and all the templates that use it will get listed. You can then click on the template and change member.php to member2.php
Reply With Quote
  #3  
Old 02-24-2008, 06:07 PM
schneberger schneberger is offline
 
Join Date: Nov 2007
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i think i described my problem a little bad.

on all the places where it calls on the member.php it should call the member.php.. but i want to have a link in the users profile that callson member2.php and calls the member2.php for the specifik users profile that iam in . a little like having two profiles with separate templates.

as for now i have a link that calls upp member2.php in the profile
its like this <a href="member2.php?u=1></A> but that makes it a fixed call.. i want the same link to link to that user in whos profile i am in..

i think that i might be descibing my issue bad but i try as good as i can..i hope you understand what i am trying to achive
Reply With Quote
  #4  
Old 02-24-2008, 06:51 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You didn't say where in the member page you want to put the link, but I believe the code would be along the lines of:

Code:
<a href="member2.php?u=$userinfo[userid]" rel="nofollow">Member2 Page</a>
I'm not sure if you need a "do=something" in there at all since you didn't talk about any parameters in your new page.
Reply With Quote
  #5  
Old 02-24-2008, 06:59 PM
schneberger schneberger is offline
 
Join Date: Nov 2007
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for the reply.. you desciped it like i fell over it in the profile gallery thread..

my issue is solved so now i will just make the garage and i think i will uppload it as a mod here..i think it can be very cool

thanks for takin the time to help me out
Reply With Quote
Reply


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:41 PM.


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.11324 seconds
  • Memory Usage 2,196KB
  • Queries Executed 11 (?)
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
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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_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