2018-01-03, 06:37 AM
Hey guys,
I'm currently working on utilizing my warning system in a way that I can use it to store a log of the currency our players have earned on site. I've edited the warning form template to look how I want it - What we want to do is to make the 'notes' box where we store the information. So the template itself is pretty simple: I have the notes/pm notify and the 'warn' button.
I removed the coding for the custom warning type coding out of the template as I just want to utilize the notes box only. However - I am having some difficulties actually getting JUST the notes box to appear. What I would like to have is that when a user views their list of 'warnings' they can see the details box - which I believe is the Administration Notes section..
I attempted to utilize the 'Custom warning' so that it would show on the front of their warnings list - as for some reason when I change the front of the warnings list to display {$notes} it doesn't work, but the box is only a single line, despite any type of attempts I have to code it into a textarea. In addition - the submit button still requires you to have a 'administration note' put in in the box above. So I can utilize the warning system like this without much issue. (I've had to add a 'custom' warning to it because the php throws an error if I don't have something selected..So I've added a 'addition/subtraction' set of radio buttons that are there only to make the error message happy.)
I have added an image of what I'd /like/ to have the front page of this warning section look like - but I am uncertain as to how I need to code the template so it Shows what I have coded for the the warning _detail_ on the front page with the multiple warnings. I'm not sure if I have to go in and do some php code edits so that it spins through the array and outputs that into the $warnings that the first one pulls.
I have some images of what I'd like to have the front warning box look like - and what I have the 'detail view' of the individual warnings coded like... Which obviously works. But I can't get it to translate to the main warnings page.
This is what the 'detail' of the individual warning looks like - this information is pulled from the {$notes} section in the first image. Formatted how we want to have it on the site. Ideally - this would be separated from the next warning entry by a hr tag, and the formatting would repeat. An image of what I was thinking is below.. Please forgive the horrible colors - it's what I happened to pick for the different sections.
This is what it looks like from the 'front page' of the warning log.
So I guess my question is - How do I get the {$notes} to show up on the front page of the users warning log, with multiple entries per page?
I'm currently working on utilizing my warning system in a way that I can use it to store a log of the currency our players have earned on site. I've edited the warning form template to look how I want it - What we want to do is to make the 'notes' box where we store the information. So the template itself is pretty simple: I have the notes/pm notify and the 'warn' button.
I removed the coding for the custom warning type coding out of the template as I just want to utilize the notes box only. However - I am having some difficulties actually getting JUST the notes box to appear. What I would like to have is that when a user views their list of 'warnings' they can see the details box - which I believe is the Administration Notes section..
I attempted to utilize the 'Custom warning' so that it would show on the front of their warnings list - as for some reason when I change the front of the warnings list to display {$notes} it doesn't work, but the box is only a single line, despite any type of attempts I have to code it into a textarea. In addition - the submit button still requires you to have a 'administration note' put in in the box above. So I can utilize the warning system like this without much issue. (I've had to add a 'custom' warning to it because the php throws an error if I don't have something selected..So I've added a 'addition/subtraction' set of radio buttons that are there only to make the error message happy.)
I have added an image of what I'd /like/ to have the front page of this warning section look like - but I am uncertain as to how I need to code the template so it Shows what I have coded for the the warning _detail_ on the front page with the multiple warnings. I'm not sure if I have to go in and do some php code edits so that it spins through the array and outputs that into the $warnings that the first one pulls.
I have some images of what I'd like to have the front warning box look like - and what I have the 'detail view' of the individual warnings coded like... Which obviously works. But I can't get it to translate to the main warnings page.
This is what the 'detail' of the individual warning looks like - this information is pulled from the {$notes} section in the first image. Formatted how we want to have it on the site. Ideally - this would be separated from the next warning entry by a hr tag, and the formatting would repeat. An image of what I was thinking is below.. Please forgive the horrible colors - it's what I happened to pick for the different sections.
This is what it looks like from the 'front page' of the warning log.
So I guess my question is - How do I get the {$notes} to show up on the front page of the users warning log, with multiple entries per page?