|
Joined: Jun 2001
Posts: 165
Content King
|
Content King
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
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
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
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
Joined: May 2001
Posts: 6,708 |
|
|
|
|
Joined: Jun 2001
Posts: 165
Content King
|
Content King
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
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
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
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
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
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
Joined: Jun 2001
Posts: 165 |
Are you working on the mod to update the user profiles?
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
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
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?
|
|
|
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.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|