Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 10-23-2006, 06:09 AM   #1 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,693
redhead is on a distinguished road
Update of the forum??

Hey Mike,

Did you update the forum or something ?? Or did it just get a facelift, it seems different...

Hey hey.. My sig is back... You did something...

Now, was it a good thing(tm)... Because I see every users sigs displayed even ones with only 1 single post.. Eventho they contain direct links etc..

Ahhh.. .the beauty of USER infraction.. How we missed it...
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 10-23-2006, 06:55 AM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
good eye =D

yeah, i updated and they added some signature functionality but not the functionality i would really like.

for example, within the control panel, you can modify signature setting by group. an example of groups are: registered users, moderators, administrator, etc... not to be confused with titles.

this may have made it possible to write a plugin based on posts, but i haven't looked into it that far yet. i think the signature logic they added does give me a better chance at writing a plugin than i had before. looking into that is the next step.
__________________
Mike
sde is offline   Reply With Quote
Old 10-23-2006, 07:03 AM   #3 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,693
redhead is on a distinguished road
It could be possible, to say something like
Code:
if(usergroup == "Registered user" && post > 50)
   move user to usergroup "accepted user"
And then have some restrictions to say
Code:
if(usergroup == "Registered user")
  hide signature
And just have the "accepted user" group with the exact same restrictions as the "registered user".

I know it would be alot of checking on userprofiles, but it would give us some potential in user management...

//edit
hmm... the AJAX "quick-reply" and "edit" feature seems borked in FF 1.0.5...
For a quick-reply it gives you the "posting reply" and then stops without reloading the page, so you dont know if your reply has been accepted, and with the "edit" you have to press it twice, yet that will direct you to the "Advanced editing" instead of the "in-thread" editing...
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 10-23-2006, 07:12 AM   #4 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
yeah, logically it seems pretty easy. the restrictions i force myself to work with is to not modify the PHP code itself so that when it comes time to upgrade, i can do it before i go to bed without having to worry about staying up all night

the problem last time was that i had to put the logic in the template. the post count number was formatted with a comma and the templating system did not know how to handle the check when a post count was greater than 1,000 (because of the comma)

i'll update the postbit template tonight (templates do not upgrade unless you force them to) to see if they added more things to play with.

if i have no luck, then i will look into if there is anything i can do at the plugin level again.
__________________
Mike
sde is offline   Reply With Quote
Old 10-23-2006, 07:14 AM   #5 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
ok, i just re-read your post. you may be onto something if the other method does not work.

i can do what you suggested and just run the script nightly.
__________________
Mike
sde is offline   Reply With Quote
Old 10-23-2006, 08:47 AM   #6 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
funny enough shortly after writing the promotion script and adding it to the 'scheduled scripts' area of the admin cp, i saw another scheduled script named 'promote users'

there is already functionality automate the promotion of users to different groups based on posts, days registered, or reputation.

it's scheduled to run every 45 minutes so within 45 minutes of this post all registered users with 50 or more posts should be promoted to 'regular users'.
__________________
Mike
sde is offline   Reply With Quote
Old 10-23-2006, 09:08 AM   #7 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,693
redhead is on a distinguished road
lets just hope, it dosnt include the "comma error" feature, which was so problematic in our previus solution.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 10-23-2006, 09:17 AM   #8 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
i'm sure they are processing the data of php/mysql queries and not restricted to managing the logic in the template as i was trying to do.

furthermore, it looks like the script has run and members with over 50 posts should now be in the 'regular users' group. again, not to be confused with the user titles. i changed them recently too.
__________________
Mike
sde is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Want to see a new forum category? sde Feedback 1 06-19-2006 06:40 AM
yum update problems sde Linux / BSD / OS X 2 05-07-2005 11:40 AM
Forum newbie. greetz. Pussnuts Lounge 2 02-08-2003 07:36 PM


All times are GMT -8. The time now is 08:34 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting