|
|
Joined: Jan 2004
Posts: 79
Power User
|
Power User
Joined: Jan 2004
Posts: 79 |
How do I get members I.D numbers to display on members posts, preferably under there username?
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
Since I just did a few things for you I just did it for you.
But basically you put something like this down where the postrows are defined in showflat.tmpl
$postrow[$i]['Usernumber'] = " User #$usernum";
and then in the showflat.tmpl
underneath this
<b>{$postrow[$i]['Username']}{$postrow[$i]['UserStatus']}</b>
place this
<br /> {$postrow[$i]['Usernumber']}
|
|
|
|
Joined: Jan 2004
Posts: 79
Power User
|
Power User
Joined: Jan 2004
Posts: 79 |
|
|
|
|
Joined: Jan 2004
Posts: 79
Power User
|
Power User
Joined: Jan 2004
Posts: 79 |
Sence I lost everything, I need to do this again. I cant find where to put this [:"red"] $postrow[$i]['Usernumber'] = " User #$usernum"; [/] I found where the second set goes, just not this one.
I beleave it goes in this part of the show flat.tmpl, but not sure. I played with puting it where I thought it sould go and I get; Admin[] Array ['Usernumber'] = " User #3"; stranger So I guess I cant find where it should go. Point in to the spot, and it will help me learn this stuff quicker.
<!-- for($i=0;$i<$postrowsize;$i++) { //UBBTREMARK --> <!-- echo <<<UBBTPRINT --> <tr> <td rowspan="2" width="17%" valign="top" class="darktable"> <a name="Post{$postrow[$i]['Number']}"></a> <b>{$postrow[$i]['Username']}{$postrow[$i]['UserStatus']}</b> [:"red"] <br /> {$postrow[$i]['Usernumber']} [/] <br /> <span class="small"> {$postrow[$i]['Title']} <br /> {$postrow[$i]['Rating']} <br /> {$postrow[$i]['Picture']} <br /> {$postrow[$i]['Registered']} <br /> {$postrow[$i]['TotalPosts']} <br /> {$postrow[$i]['Location']} </span> </td> <td width="83%" class="{$postrow[$i]['subjectclass']}"> <table width="100%" class="{$postrow[$i]['subjectclass']}" border="0" cellpadding="0" cellspacing="0"> <tr>
|
|
|
|
Joined: Dec 2000
Posts: 1,471
Addict
|
Addict
Joined: Dec 2000
Posts: 1,471 |
You'll have to put the first row " $postrow[$i]['Usernumber'] = " User #$usernum"; " into showflat.php. Just add it beneath the lines, where all other "postrows" are set. If you need the exact line, what version are you running?
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
Dan I will get that back up for ya.
|
|
|
|
Joined: Jan 2004
Posts: 79
Power User
|
Power User
Joined: Jan 2004
Posts: 79 |
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|