|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
I wanted to set my post count to "1" permanently so I found this in ubb_lib_posting.cgi if ($vars_display{author_post_total} eq 'yes') { $post_total_line = qq( <a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=recent_user_posts;u=$this_user_number" style="color: $vars_style{TextColor}; text-decoration: none;">$vars_wordlets{author_posts} <b>$user_profile[7]</b></a> ); push (@author_extra, $post_total_line); } and I replaced that with; if ($vars_display{author_post_total} eq 'yes') { if ($u eq '1') { $post_total_line = qq( <a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=recent_user_posts;u=$this_user_number" style="color: $vars_style{TextColor}; text-decoration: none;">$vars_wordlets{author_posts} <b>1</b></a> ); } else { $post_total_line = qq( <a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=recent_user_posts;u=$this_user_number" style="color: $vars_style{TextColor}; text-decoration: none;">$vars_wordlets{author_posts} <b>$user_profile[7]</b></a> ); } push (@author_extra, $post_total_line); } Is this going to be an issue at all?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
there shouldn't be any extra hit. because your member file is already opened
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
Thanks for the idea Al, makes things much easier.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
you could also go into ubb_new_reply.cgi, ubb_new_topic.cgi, and ubb_poll.cgi and make it so posting doesn't even add to your post count. You could look at the Posts don't count mod to find where to do the editing
|
|
|
|
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
|
Spotlight Winner
Joined: Jun 2001
Posts: 2,849 |
Ooooh, that would be a lot better.
|
|
|
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: 417
Joined: November 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|