Previous Thread
Next Thread
Print Thread
Rate Thread
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?

Sponsored Links
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
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
Cool man, thanks

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
Offline
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?

Sponsored Links
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
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
Thanks


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,575
Posts293,930
Members13,823
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)