vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Adminbit Question (https://vborg.vbsupport.ru/showthread.php?t=86039)

Sanctum 01-19-2003 03:43 AM

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?

Sanctum 01-19-2003 04:11 AM

1 Attachment(s)
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.

Sanctum 01-20-2003 11:41 AM

anyone?

Sanctum 01-21-2003 10:23 AM

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 :(

Cypher720 01-21-2003 12:54 PM

i have no clue...thats why im not responding....ask filbie - he night know

Brad 01-21-2003 10:52 PM

i belive it requires hacking showgroups.php or some code in the phpinclude template to show custom feilds on that page.

Sanctum 01-22-2003 11:24 AM

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.

Sanctum 01-26-2003 06:45 AM

shameless bump for a reply

Sanctum 01-26-2003 12:04 PM

well doesnt matter i abandoned the idea. no way to figure it out

filburt1 01-26-2003 02:24 PM

Editing bits almost always requires hacking.


All times are GMT. The time now is 03:06 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.01057 seconds
  • Memory Usage 1,723KB
  • 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
  • (1)bbcode_code_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