Welcome, Guest. Please Login or Register.
November 01, 2024, 03:27:20 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [code 1.51] Display Member Number in Posts « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [code 1.51] Display Member Number in Posts  (Read 3230 times)
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
[code 1.51] Display Member Number in Posts
« on: April 17, 2003, 06:15:48 PM »
Reply with quote

Someone in the other help section was asking about this, and I figured it out, so here it is. This will display the user's Member Number directly under "Posts:" in the posts.

In English.lng
Search For:
$txt[26] = 'Posts';

Add After:
$txt[2601] = 'Member Number';

In Display.php
Search For:
$postinfo = '';

Add After:
$membernum = '';

Search For:
$postinfo = $txt[26] . ': ' . $psts . '<br />'

Add After:
$membernum = $txt[2601] . ': ' . $muserID . '<br />';

Search For:
' . $postinfo . ';

Add After
' . $membernum . ';

See it in action: http://members.lycos.co.uk/oldiesmann/yabbse (Guests CAN post)
« Last Edit: April 17, 2003, 08:04:50 PM by oldiesmann » Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
smacktalk
Full Member
***
Posts: 236


No Personal Text!!

WWW
Re:[code 1.51] Display Member Number in Posts
« Reply #1 on: April 17, 2003, 07:11:04 PM »
Reply with quote

Cool, hey, maybe you can also give the code for Date Registered? ;D
Logged

As a well-spent day brings happy sleep, so a life well spent brings happy death.
thedanzone
Noobie
*
Posts: 23


I'm not a llama!

WWW
Re:[code 1.51] Display Member Number in Posts
« Reply #2 on: April 17, 2003, 07:52:57 PM »
Reply with quote

Quote from: thedanzone on April 17, 2003, 07:48:24 PM
Quote from: oldiesmann on April 17, 2003, 06:16:56 PM
Done!

Link: http://www.yabbse.org/community/index.php?board=158;action=display;threadid=21577

See it in action at: http://members.lycos.co.uk/oldiesmann/yabbse

I got it to work, thanks alot!

Here it is if you want to see it!

http://207.44.156.88/~admin3/yabbse/index.php

Also, in your last line of code...

' . $postinfo . ';

It should read...

' . $postinfo . '

The only difference being there is no semicolon!

Thanks Again!
Logged
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:[code 1.51] Display Member Number in Posts
« Reply #3 on: April 17, 2003, 08:05:19 PM »
Reply with quote

Oops! Sorry about that. I was kinda in a hurry earlier...
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
thedanzone
Noobie
*
Posts: 23


I'm not a llama!

WWW
Re:[code 1.51] Display Member Number in Posts
« Reply #4 on: April 17, 2003, 08:19:02 PM »
Reply with quote

No problemo!  Being new and all to this stuff, it tripped me up for a bit so I did a partial search and found it!
Logged
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:[code 1.51] Display Member Number in Posts
« Reply #5 on: April 17, 2003, 08:38:22 PM »
Reply with quote

Quote from: smacktalk on April 17, 2003, 07:11:04 PM
Cool, hey, maybe you can also give the code for Date Registered? ;D

Weeeeeellllll... I probably could if I fooled around with it a bit more, but the problem is that it's not as simple as the other thing, because the date is stored as a 10-digit integer, so I'll have to figure out how to decode it first. If I get time this weekend, I'll see what I can do.
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
smacktalk
Full Member
***
Posts: 236


No Personal Text!!

WWW
Re:[code 1.51] Display Member Number in Posts
« Reply #6 on: April 17, 2003, 10:11:47 PM »
Reply with quote

Quote from: oldiesmann on April 17, 2003, 08:38:22 PM
Quote from: smacktalk on April 17, 2003, 07:11:04 PM
Cool, hey, maybe you can also give the code for Date Registered? ;D

Weeeeeellllll... I probably could if I fooled around with it a bit more, but the problem is that it's not as simple as the other thing, because the date is stored as a 10-digit integer, so I'll have to figure out how to decode it first. If I get time this weekend, I'll see what I can do.

I hear ya. I had it for the 1.4.1 version with some help from another member. I'll look for that code and try to work it also...
Logged

As a well-spent day brings happy sleep, so a life well spent brings happy death.
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:[code 1.51] Display Member Number in Posts
« Reply #7 on: April 18, 2003, 02:19:21 PM »
Reply with quote

Yeah... Go ahead and do that, although the code from 1.41 is probably different than the code for 1.51. The other thing you can try is to look at the profile and try to get the code from there, because the Date Registered is displayed in the profile.
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
diversedesigns
Noobie
*
Posts: 32


<? wtf ?>

ICQ - 152924792 WWW
Re:[code 1.51] Display Member Number in Posts
« Reply #8 on: April 20, 2003, 10:50:52 PM »
Reply with quote

Fun! thx - worked fine for me :)
Logged

- Claire
//www.diversedesign.us
"Don't worry about the world ending today,  it's already tmwr in Australia"
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:[code 1.51] Display Member Number in Posts
« Reply #9 on: April 21, 2003, 02:19:56 PM »
Reply with quote

You're welcome. Always glad to help!
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:[code 1.51] Display Member Number in Posts
« Reply #10 on: July 03, 2003, 08:32:07 PM »
Reply with quote

This application killed the ubbc move function when a signature is created in userprofile and the move command is used.
Logged

BuildHome
Noobie
*
Posts: 35


WebMaster

ICQ - 139358747 WWW
Re:[code 1.51] Display Member Number in Posts
« Reply #11 on: July 04, 2003, 01:58:29 AM »
Reply with quote

Nice Mod!
Thanks
;)
Logged


 
oldiesmann
YaBB God
*****
Posts: 577


Jesus died for your sins... Have you thanked him?

oldiesmann@oldiesmann.us WWW
Re:[code 1.51] Display Member Number in Posts
« Reply #12 on: July 07, 2003, 10:32:09 PM »
Reply with quote

Quote from: Wiziwig on July 03, 2003, 08:32:07 PM
This application killed the ubbc move function when a signature is created in userprofile and the move command is used.


I don't see how that's possible. All this does is displays a value that's already in the database. It doesn't even mess with the ubbc stuff. All the UBBC stuff is defined in subs.php...
Logged

"I've sinned greatly, but Christ's for real, baby
It's a wonder He saved me and just didn't hate me
So won't you tell Him "Save me"
Please stand up, please stand up, please stand up..." - J. Jackson (More Info)
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [code 1.51] Display Member Number in Posts « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.058 seconds with 21 queries.