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 01-19-2003, 03:43 AM
Sanctum Sanctum is offline
 
Join Date: Oct 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Adminbit Question

Code:
<tr>
	<td bgcolor="$backcolor" nowrap><normalfont>
$onlinestatus</normalfont></td>
	<td bgcolor="$backcolor" nowrap 
width=100%><normalfont><b>
<a href="member.php?s=$session[sessionhash]&action=
getinfo&userid=$user[userid]">$user[username]
</a></b><br>$user[avatar]</normalfont></td>
<td bgcolor="$backcolor" nowrap><normalfont>$user[location]
</normalfont></td>
<td bgcolor="$backcolor"nowrap><normalfont>
$sendpmlink</normalfont></td>
</tr>

where its says $ user [userid ] how can I substitute this for a $ userinfo [ field x ] and get the information to show up?
Reply With Quote
  #2  
Old 01-19-2003, 04:11 AM
Sanctum Sanctum is offline
 
Join Date: Oct 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I sorta figured out my own answer my next question would be this instead of the one previous. where it says [ location ] for the user how do i define the fields in the addtional fields area. Better yet what template are the default field names like location, intrests etc on.

See what I did was edit a few templates to get to this point now the problem is getting the information there that I want.

The additonal information like in the mod I undertook relies on the additonal profile fields you make yourself for the user. Ive tried simply putting in $ userinfo [ field 1 ] but it doesnt work.

Look at the attached image and youll see what Im looking for. Instead of the "username" I want to show a field called "Main" for the username currently there. Then I want to add in other fields as you can tell. If I cant get a direct link using the profile field parameters is there a way to have them included? I have papi installed also so is there a way use papi to do what Im wanting? Please any insight would be greatly appreciated.

By the way this is the "groups" template area Im editing.
Attached Images
File Type: jpg groups.jpg (17.3 KB, 0 views)
Reply With Quote
  #3  
Old 01-20-2003, 11:41 AM
Sanctum Sanctum is offline
 
Join Date: Oct 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone?
Reply With Quote
  #4  
Old 01-21-2003, 10:23 AM
Sanctum Sanctum is offline
 
Join Date: Oct 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I include the "commands" so That I can use the $userinfo[field x] includes on the groups area of the forums. Please look at the pic. I have been able to use [user] [location] etc but not the field paramters HELP PLEASE
Reply With Quote
  #5  
Old 01-21-2003, 12:54 PM
Cypher720's Avatar
Cypher720 Cypher720 is offline
 
Join Date: Aug 2002
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have no clue...thats why im not responding....ask filbie - he night know
Reply With Quote
  #6  
Old 01-21-2003, 10:52 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i belive it requires hacking showgroups.php or some code in the phpinclude template to show custom feilds on that page.
Reply With Quote
  #7  
Old 01-22-2003, 11:24 AM
Sanctum Sanctum is offline
 
Join Date: Oct 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm I dont think it requires hacking any php code. Papi helps bypass alot of that. What I was thinking is finding out exactly which template defines the default [user][username][location] fields and changing / redefining them. If I can do that I can post to here what the php is. OR I can just add the [field x] parameters.
Reply With Quote
  #8  
Old 01-26-2003, 06:45 AM
Sanctum Sanctum is offline
 
Join Date: Oct 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

shameless bump for a reply
Reply With Quote
  #9  
Old 01-26-2003, 12:04 PM
Sanctum Sanctum is offline
 
Join Date: Oct 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well doesnt matter i abandoned the idea. no way to figure it out
Reply With Quote
  #10  
Old 01-26-2003, 02:24 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Editing bits almost always requires hacking.
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 10:06 AM.


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.08012 seconds
  • Memory Usage 2,262KB
  • Queries Executed 12 (?)
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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (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_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
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete