NovoCiv
11-07-2010, 07:18 PM
I have taken to modifying the source code within various files such as newthread.php to make my forums do what I like. For example, I've changed the ban system to allow bans as low as 1 hour long, as well as giving the moderators the ability to input the length of the ban rather than choose from a list of predefined lengths.
Normally to make this work I dig around files looking for whatever makes things work, then tinker with the code until I get it to do what I want. Sometimes I can't figure out which files do what I want.
-One of the things I'm stuck on is this nasty message: The message you have entered is too short. Please lengthen your message to at least 1 characters.
My forums are relaxed and our rules allow for users to simply quote or blankpost without adding anything to the discussion. Right now the members have to put effort into blankposting by adding a broken image, changing the color of their text, or typing S02;, and these methods aren't perfect. (Broken image shows up in quote, colored text shows up on highlight or different theme, alt-code shows up as box in chrome). I want users to be able to just press quote and reply, or to just press reply and post a blank message. I spent some time reading through newreply.php, and I think I might get by with a line like:
$newpost['message'] = 'blank.png';
But I feel like that wouldn't work well and I'd rather just remove whatever code generates an error when a message is empty. I couldn't find what file has this code, any suggestions?
-Another thing I am trying to figure out is a suggestion by one of my members:
"On threads where there are unread posts, can we get the little piece of paper on the top left corner of each post to be highlighted? It would be nice to have some clear visual distinction between read and unread without checking the time."
If I figure out what part of code decides if a post is "new" or "old", I could probably put in an if statement that changes the icon to a new highlighted one, but I have no idea where this code would be located.
-Another request by a member:
"When you choose to add someone as a friend, it asks you if you want to send them a friend request, in addition to saving their contact information. I feel that this is unnecessary, as everyone's intentions were probably to send them a friend request in the first place. Is it possible to just skip this and just send a request to the person without having to click that extra button?"
If someone could tell me which file to dig through I'm sure I could figure the rest of this one out on my own :)
-One member asked for more noticeable notifications. I think https://vborg.vbsupport.ru/showthread.php?t=232032 would be great for the member, but most members would prefer it the way it is now. How can I add this as an option in site display options so that some members can have one style and others can use the new one?
That's all I can think of right now. I'll update with more as I think of them!
Normally to make this work I dig around files looking for whatever makes things work, then tinker with the code until I get it to do what I want. Sometimes I can't figure out which files do what I want.
-One of the things I'm stuck on is this nasty message: The message you have entered is too short. Please lengthen your message to at least 1 characters.
My forums are relaxed and our rules allow for users to simply quote or blankpost without adding anything to the discussion. Right now the members have to put effort into blankposting by adding a broken image, changing the color of their text, or typing S02;, and these methods aren't perfect. (Broken image shows up in quote, colored text shows up on highlight or different theme, alt-code shows up as box in chrome). I want users to be able to just press quote and reply, or to just press reply and post a blank message. I spent some time reading through newreply.php, and I think I might get by with a line like:
$newpost['message'] = 'blank.png';
But I feel like that wouldn't work well and I'd rather just remove whatever code generates an error when a message is empty. I couldn't find what file has this code, any suggestions?
-Another thing I am trying to figure out is a suggestion by one of my members:
"On threads where there are unread posts, can we get the little piece of paper on the top left corner of each post to be highlighted? It would be nice to have some clear visual distinction between read and unread without checking the time."
If I figure out what part of code decides if a post is "new" or "old", I could probably put in an if statement that changes the icon to a new highlighted one, but I have no idea where this code would be located.
-Another request by a member:
"When you choose to add someone as a friend, it asks you if you want to send them a friend request, in addition to saving their contact information. I feel that this is unnecessary, as everyone's intentions were probably to send them a friend request in the first place. Is it possible to just skip this and just send a request to the person without having to click that extra button?"
If someone could tell me which file to dig through I'm sure I could figure the rest of this one out on my own :)
-One member asked for more noticeable notifications. I think https://vborg.vbsupport.ru/showthread.php?t=232032 would be great for the member, but most members would prefer it the way it is now. How can I add this as an option in site display options so that some members can have one style and others can use the new one?
That's all I can think of right now. I'll update with more as I think of them!