[2.0.16] Member ID in viewtopic

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
2
33%
Very Good
3
50%
Good
1
17%
Fair
0
No votes
Poor
0
No votes
 
Total votes: 6

Extensions Robot
Extensions Robot
Extensions Robot
Posts: 28009
Joined: Sat Aug 16, 2003 7:36 am

[2.0.16] Member ID in viewtopic

Post by Extensions Robot » Thu Jun 30, 2005 7:14 pm

MOD Name: Member ID in viewtopic
Author: volf
MOD Description: This modification will display the member id in viewtopic under the rank.


MOD Version: 1.0.3

Download File: Member_ID_in_viewtopic_1.0.3.zip
mods overview page: View
File Size: 1559 Bytes

Security Score: 0
Last edited by Extensions Robot on Mon Apr 30, 2007 12:28 am, edited 1 time in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)

ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

Post by ycl6 » Fri Jul 01, 2005 12:19 pm

MOD Validated/Released

Notes:
This is a simple MOD that display member ID(s) in viewtopic beside each post below the rank images.

ninosportif
Registered User
Posts: 220
Joined: Mon Apr 19, 2004 12:07 pm
Location: United Kingdom
Contact:

Post by ninosportif » Mon Jul 04, 2005 10:27 am

Is there a demo?
All rights reserved to Gamers SportCast Network (2004). The site is poweredby Canaca.com.
Image

User avatar
volf
Registered User
Posts: 217
Joined: Fri Feb 27, 2004 12:27 pm
Location: Finland
Contact:

Post by volf » Mon Jul 04, 2005 2:17 pm

I don't have a demo board but here is a Screenshot

SeraphicGate
Registered User
Posts: 207
Joined: Tue Dec 23, 2003 6:54 am

Post by SeraphicGate » Mon Jul 04, 2005 8:30 pm

I tried to install this on my forum but wasn't able to get it working.

User avatar
volf
Registered User
Posts: 217
Joined: Fri Feb 27, 2004 12:27 pm
Location: Finland
Contact:

Post by volf » Mon Jul 04, 2005 9:32 pm

SeraphicGate wrote: I tried to install this on my forum but wasn't able to get it working.

Could you provide a few more details?

SeraphicGate
Registered User
Posts: 207
Joined: Tue Dec 23, 2003 6:54 am

Post by SeraphicGate » Mon Jul 04, 2005 9:41 pm

The details are I made one small error, got it working now. But why does it start at #2? I'm the first user and admin shouldn't it be #1, or is the anonymous for guests #1?

User avatar
volf
Registered User
Posts: 217
Joined: Fri Feb 27, 2004 12:27 pm
Location: Finland
Contact:

Post by volf » Mon Jul 04, 2005 9:51 pm

Yep the guest (Anonymous) is the first member in the user table.

ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

Post by ycl6 » Tue Jul 05, 2005 12:28 am

volf wrote: Yep the guest (Anonymous) is the first member in the user table.

Although that's the case, you can easily take care of this by subtracting 1 from the userid.

~Mac

User avatar
volf
Registered User
Posts: 217
Joined: Fri Feb 27, 2004 12:27 pm
Location: Finland
Contact:

Post by volf » Tue Jul 05, 2005 12:47 am

ycl6 wrote:
volf wrote:Yep the guest (Anonymous) is the first member in the user table.

Although that's the case, you can easily take care of this by subtracting 1 from the userid.

~Mac

Do you mean to run an sql to substract 1 from all id's?

rabbethan
Registered User
Posts: 6
Joined: Sun Feb 24, 2002 3:43 am
Contact:

Post by rabbethan » Tue Jul 05, 2005 1:30 pm

no, i think he means having the mod subtract 1 before it displays the number

User avatar
volf
Registered User
Posts: 217
Joined: Fri Feb 27, 2004 12:27 pm
Location: Finland
Contact:

Post by volf » Tue Jul 05, 2005 4:57 pm

rabbethan wrote: no, i think he means having the mod subtract 1 before it displays the number

If thats the case then the displayed number would nolonger be the correct id, it would just be a number

ninosportif
Registered User
Posts: 220
Joined: Mon Apr 19, 2004 12:07 pm
Location: United Kingdom
Contact:

Post by ninosportif » Wed Jul 06, 2005 1:46 am

seems like another additional mod for user profile. this is quite cool.
All rights reserved to Gamers SportCast Network (2004). The site is poweredby Canaca.com.
Image

SeraphicGate
Registered User
Posts: 207
Joined: Tue Dec 23, 2003 6:54 am

Post by SeraphicGate » Wed Jul 06, 2005 11:55 pm

This mod seen below uses -1, this makes the count start at 1 rather 2. Could that work here?

Code: Select all

# note: if you want to start the post count at 2 (the normal default) remove
# the -1's in the following code
#
'POSTER_UIN' => ( $profiledata['user_id']-1 ) ? $profiledata['user_id']-1 : ' ',
Last edited by SeraphicGate on Thu Jul 07, 2005 2:01 am, edited 1 time in total.

User avatar
volf
Registered User
Posts: 217
Joined: Fri Feb 27, 2004 12:27 pm
Location: Finland
Contact:

Post by volf » Thu Jul 07, 2005 12:45 am

Sure you can substract 1. I don't se why you would want to do that thou.
well anyway those who want to do it:

Code: Select all

#
#-----[ OPEN ]---------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]---------------------------------------------
#

      'POSTER_ID' => $poster_id,

#
#-----[ REPLACE WITH ]------------------------------------------
#

      'POSTER_ID' =>( $poster_id-1 ),

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM

Post Reply

Return to “[2.0.x] MOD Database Cleanup”