Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
rrclansite
Regular
Regular



Joined: Jan 18, 2011
Posts: 86

PostPosted: Wed Dec 07, 2011 1:08 pm Reply with quote

Hello all,

I'm currently working on a new website. My first ever Raven's PHP-Nuke website was all configured by hand including the forum titles etc. However, I'm a bit fed up with having to manually add titles to people on the forums.

(I mean the newby title which is shown by default / site admin for the god account)

I was wondering if there is any way to make this group related. I managed to set forum permissions to groups so that I don't have to give them permissions for the forums by hand, but titles would be a sweet add aswell.

Hope that some1 can point me in the right direction
best regards,
actnreactgaming / rrclansite
 
View user's profile Send private message
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sat Dec 10, 2011 10:14 am Reply with quote

Forum user titles (really called "ranks") are really based upon user's post counts. So, as you post more, your title changes as the post count crosses the threshold. This is standard phpBB2 function, so one would have to change the code around the display of the user's "rank".

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
rrclansite







PostPosted: Sat Dec 10, 2011 10:20 am Reply with quote

I'm not sure if I'm completely comprehending what you are writing. Would you suggest changing a bit of the source code of the phpbb forums to adapt it so that whenever a person is put in a group in combination with having (lets say) at least 1 post they get the rank which you have desired to be?

Sounds like a lot of work to change such a line of code.
The problem I'm having (thats just personal preference I sppose) is that I do not want anyone to have the rank of member by post count. Lets say I would have a member which would want the member title (but I'm not willing to go over the hassle of having to change the users title all the time) but they do not have enough posts. Another user on my website has more posts than my member whilst this other user is not a member of our website. That person mentioned above would then be acquiring the member status through post count.

See my dilemma?

Hope this clarifies one or another and that you (or someone else) can come up with a solution, because I'm not seeing it Smile

best regards,
actnreactgaming / rrclansite
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Sat Dec 10, 2011 11:33 am Reply with quote

Since no script can anticipate your needs, you have no option but to do this manually unless you can figure out a specific set of fixed rules that a script can work from.
 
View user's profile Send private message Send e-mail
rrclansite







PostPosted: Sat Dec 10, 2011 12:08 pm Reply with quote

rules:


  1. Only members in the group called Clan Members can have the rank Clan-Member
  2. minimum amount of posts for the rank Clan-Member is going to be set to 1


I do not know if this is possible to translate into PHP scripting.

best regards,
actnreactgaming / rrclansite
 
Doulos
Life Cycles Becoming CPU Cycles



Joined: Jun 06, 2005
Posts: 732

PostPosted: Sun Dec 11, 2011 2:12 am Reply with quote

It seems to me, one way, or another, you have to do something manually. Either change user rank, or execute a script to change it. Unless you are changing the rank of many users at one time, it seems easier to just do it manually via the ACP.
 
View user's profile Send private message
rrclansite







PostPosted: Sun Dec 11, 2011 8:41 am Reply with quote

yes I will be changing the rank of many users at one time. Also whenever I remove them from a certain group, they get fewer permissions (because they are no longer a member or something in the like). That also means they would no longer be having the rank of Clan-Member, because either they left the clan or we kicked them out.

So for the time being I'm still in search for a possible solution.

best regards,
actnreactgaming / rrclansite
 
montego







PostPosted: Sat Dec 17, 2011 6:47 am Reply with quote

rrclansite wrote:
So for the time being I'm still in search for a possible solution.


What you are searching for is not a simple configuration change or few line coding solution. This is more custom than that.

You will need need to add code around the group edit / assignment function(s) to cover the events where you add/remove members from a particular group.

Then you will also need to change the rank display code to check for the member's group and associated rank text.
 
rrclansite







PostPosted: Sat Dec 17, 2011 2:39 pm Reply with quote

well as I'm totally clueless on how to write any PHP script (at most I can debug it for certain special characters missing) I wouldn't know where to begin.

Anyone care to take a crack at it?

best regards,
rrclansite / actnreactgaming
 
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Sat Dec 17, 2011 3:19 pm Reply with quote

If you truly want to develop a cms of be able to modify code for a cms, you should start to learn php. There are many free sources on the internet that can help you learn to use php. What I did to learn php is to start playing around on a local server like xampp. If I boogered it up super bad (which I did many times), I just started over and did it again until i understood what my mistakes were. There are many answers to question you may have in these very forums. You could start by reading things like:

http://php.net/manual/en/tutorial.php
http://www.developphp.com/list_php.php
http://www.w3schools.com/php/

There are many more examples just by using google. My advise would be start simple and dream big. Start with simple examples of php and move towards using mysql querys in you scripts. If it is something you enjoy, it will become increasingly easier. Just don't give up and don't be afraid to use cheat sheets....

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
rrclansite







PostPosted: Sun Dec 18, 2011 9:52 am Reply with quote

I might do that once I get myself a more solid lifestyle Wink

I'm currently still studying, thus I'm not living on my own etc etc. I currently do not have the time to learn PHP (something which I would like to in the future if I have some more time on my hands in a more stable lifestyle)

for the moment I will stick to whatever is possible to be provided by others and perhaps making some video tutorials for the other people out there who are having problems with understanding how to roll this wonderfull CMS.

best regards,
rrclansite / actnreactgaming
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©