Previous Thread
Next Thread
Print Thread
Rate Thread
#124518 12/12/2001 1:46 AM
Joined: Jun 2001
Posts: 165
Content King
Content King
Offline
Joined: Jun 2001
Posts: 165
Hi all,

I just wrote a hack to add 3 custom titles based on number of user posts. So now it goes from Jr. Member to Member to L2Member, L3, and L4.

The code works fine but I cannot figure out how to get the user profiles to update with the new titles. I can see that field 7 is the number of posts and field 8 is the title in the user profile file. I have tried clearing the cache, rebuilding user stats and history files and rebuilding all forums. Nothing seems to update the user profiles... am I missing something, or is this a bit of code I need to write? If so, can anyone give me a nudge in the right direction?

Finally, is this a hack anyone would be interested in??

Thanks in advance for the help!

Chris

Sponsored Links
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Can you post a URL to the readme of the hack you installed please?

Joined: Jun 2001
Posts: 165
Content King
Content King
Offline
Joined: Jun 2001
Posts: 165
This was just done as a mod request from my members. No readme... just did it on the fly. I could probably write one when I get a free minute. What did you need to know?

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
All The code you added.

Joined: Jun 2001
Posts: 165
Content King
Content King
Offline
Joined: Jun 2001
Posts: 165
OK, LD, sorry about the confusion... didn't put "readme" together with the actual hack code.

Here is the file:
http://www.mythosproductions.com/CustomTitlesHack.txt

Seems to be working well so far. As a member posts, his/her profile gets updated correctly. I just want to be able to update them as part of the hack install.

Thanks for the input,

Chris

Sponsored Links
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
I'll get the code for you to add in public_display_profile.pl.

Joined: Jun 2001
Posts: 165
Content King
Content King
Offline
Joined: Jun 2001
Posts: 165
Much obliged. Does the hack look OK? Seems there must be a more OO way of doing the extended selection statements but I just wanted to get it done.

Joined: Jun 2001
Posts: 165
Content King
Content King
Offline
Joined: Jun 2001
Posts: 165
Hey LD,

Any luck getting that code bit done? Just wanted to be sure you didn't forget!

Cheers,

Chris

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
No I haven't yet. I've tried a few things but they haven't worked...

Joined: Jun 2001
Posts: 165
Content King
Content King
Offline
Joined: Jun 2001
Posts: 165
Are you working on the mod to update the user profiles?

Sponsored Links
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
No. I was just trying to help you with your problem.

Joined: Jun 2001
Posts: 165
Content King
Content King
Offline
Joined: Jun 2001
Posts: 165
Well, like I said, everything seems to have worked just fine. It is just that the user profile files do not get updated until a user posts. I thought there would be a control panel function to address that but none of them seemed to do the trick.

Should one of them update the user profiles?


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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 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
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 20240506)