Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Oct 2000
Posts: 124
Member
Member
Offline
Joined: Oct 2000
Posts: 124
I ask as I get a lot of avatar requests and having to run a CP search just for a number is a pain, so I'd like to put something in ubb_library2.pl that would just display their number on the thread. Trouble is that number isnt stored in the profile itself.... So how could this be done?


Signatures suck. Thats why I dont have one.
Sponsored Links
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Couldnt you read it from the filename where the username is found. Maybe do a system call to grep to locate the username and store the filename into a variable, chopping off the extension and leading 0000's
Not sure if thats the best way to do it but it should work.


I can't afford a good signature editor frown
Joined: Oct 2000
Posts: 124
Member
Member
Offline
Joined: Oct 2000
Posts: 124
Yes that would probably work, unfortunatly I havent the faintest idea what the HELL you just told me to do. smile You couldnt have made me more confused if you'd posted in Japanese..... laugh


Is there any way that DOESNT require me to go away and learn perl first?


Signatures suck. Thats why I dont have one.
Joined: May 2001
Posts: 50
Member
Member
Offline
Joined: May 2001
Posts: 50
It wouldn't take a Perl guru long to get a hack for something like this written. Post a new hack request for it and be as polite as possible. I'd love to use it, too.



paste this BEFORE

$u = $ProfileNumber + 0; # rid extra zeros from member no.
$ProfileNumber = "Member # $u";

find:

$ThisStatus $AuthorExtra

replace with:

$ThisStatus
$ProfileNumber $AuthorExtra


DONE laugh

[ June 10, 2001 02:07 PM: Message edited by: hmiguelito ]
Joined: Jun 2001
Posts: 94
Member
Member
Offline
Joined: Jun 2001
Posts: 94
here we go then:
Open ubb_library2.pl

find:

$ThisThread .= qq(
Sponsored Links

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
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
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-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)