You are not logged in. Please login or register.
Active topics Unanswered topics
Search options
yes, sorry, i just realised what was wrong - i made a script to delete a user. it just deleted the username row from the user table... i didn't realise that u had to set all their posts to guest for them to be displayed.
sorry about that...
thanks for your help - everything is working now
k, yea, i think i saw that encryption stuff in functions.php
ill just remove the SHA1 stuff. is there much point in encrypting in SHA1?
and about the deleted users. at the moment, when i delete a user their posts are no longer displayed. but i want to keep displaying the deleted users posts...
oh, and i have another problem too...
my site uses the same usernames and passwords as the forums. the weird thing is that this was working fine on my apache test server, but when i uploaded, as soon as you log into the forum the password gets changed. i assumed that the passwords stored are md5 encrypted. the odd thing is that the login works with the md5 password my sign up form generates and the new 'thing' that it gets replaced with. however, you can no longer log into the main site.
anyone know what it is doing?
how can i make it so that deleted user's posts are not deleted?
i had a look but i couldn't work it out... i know that the post dont get deleted, so i assume that there simply a query or if statement that needs changing. could someone point me in the right direction please?
Thanks
MrBarby
well, i have the index page sorted, but i can figure out how to hide them from the search... i think ill just disable it.
Hi,
I have managed to add some basic permissions to punBB by adding an extra column to the users and forums tables called user_level. if($cur_user['user_level']<$user_level (taken from forum database)) then display error. so each column contains the user_level - 0 is lowest, 9 is highest.
however, i have two questions. How can i hide forums from ppl without sufficient permissions on the index page?
Looking at index.php i think i need to change this:
$extra_sql = ($cur_user['status'] < PUN_MOD) ? ' WHERE f.admmod_only=\'0\'' : '';
but how can i add an extra command to that?
How can i hide these forums from the search (i.e. dont display topic names in the search field that people aren't supposed to be able to see)?
No idea how to do this...
Thanks
MrBarby
Posts found: 6