That query wont work but I made one that does... lol along the same lines.
In the calendar addon they only need change one line in the addpost script so that E_Date also includes the time from E_Time.
This will allow for the events to be displayed as they happen. Otherwise the time display will not be in order. It will also be an option to show the location along with the subject in the dispaly []https://www.ubbdev.com/threads/php/images/icons/smile.gif[/]
My test site is 5.5 only... I am waiting for the 6.0 before upgrading my main site then I'll set the test site up with that. For the time being just kicking 5.5 around... lol []https://www.ubbdev.com/threads/php/images/icons/wink.gif[/]
Looking at this again, I'm confused here... why the complicated first part? Are you doing anything more than checking whether B_Calendar is equal to Y ?
How about simply
$query = " DELETE FROM w3t_Events WHERE E_Number = '$Number' "; $dbh -> do_query($query);
no if conditions, no double queries, just delete if you find it... why the rest of the stuff - am I missing something?
- The default view now has both the calendar as well as the posts. - Changed terminology as a result (show/hide calendar, instead of change views) - Several small bug fixes - Reworked code in postlist.php to make it much easier to upgrade in the future - Included small graphics to navigate from month to month - Event seperator is no longer browser-specific (the small > were previously only working in Explorer)
Were you going to make that change in the E_Date variable to include the time also? This doesn't seem to affect the display order for "days" and helps when sorting with time specific orders. []https://www.ubbdev.com/threads/php/images/icons/smile.gif[/]
I'm not sure which change you mean... is it this one, which calculates the date differently, or this one, where I think you're talking about modifying the fields? Or did I misunderstand the latter, are these two one and the same?
I had to remove the linked zip files from the thread as they violate copyright rules by including the full ubbthreads files modified to include the calendar modification. Sorry for any inconvenience.
As per my PM: would a possible solution entail "replacement" texts for each of the original scripts? Ie if an original script has a hundred lines, maybe the hack should say "replace lines 2 to 99 with the following" ... would that work for your copyright lawyer?
The only problem with using line numbers would be if they had already modified their files, then the numbers would be off. The same problem would occur if they just uploaded the files previously presented and had other modifications involved. Errors would most likely occur if there were conflicts []https://www.ubbdev.com/threads/php/images/icons/smile.gif[/]
The way I'm proposing to do it, I don't think that there could be many errors. In concept, I'm proposing:
In addpost.php, find the section that starts with:
# Note: if you modify ANY code within UBBThreads, we at Infopop Corporation # cannot offer you support-- thus modify at your own peril []https://www.ubbdev.com/threads/php/images/icons/smile.gif[/] # --------------------------------------------------------------------------- */
and that ends with:
$html -> send_footer(); ?>
And replace it with the attached file.
I'm not being facecious... would the above address your copyright lawyer's concerns?
And your newer example is still basically the whole file, minus the copyright info.. heheh... we've always used just 1-2 lines above or below the code section needing to be replaced, it keeps us in copyright heaven and doesn't delete the 2 rows of post icons I see above this message box []https://www.ubbdev.com/threads/php/images/icons/smile.gif[/] (it makes modifications minimally conflict with other modifications).
I'll ask Rick to look at this and post his thoughts... thanks for being patient.
If it would help, I can write one based on the currently available modification and show all developers how it should be done... would help with questions in the future.
What we are trying to do here is prevent those who have not paid for the rights to use the board to collect a majority of the files freely. If you send me your edited code, I can toss em in Beyond Compare and make an update text for all the differences and you can publish that.
Sorry, I thought the primary concern was a copyright concern, as opposed to the collection of the files by people who have not paid for the software.
I understand now.
I guess the best way would be to all agree on a utility to install hacks. I've never used Beyond Compare, but that might be an option - Allen mentions Multihack above. I hope we can find one which is open source, and that makes it easy to achieve the necessary pupose.
A much simpler way might be to restrict access to the hack board to those who have a current license. If you have a valid licence, you belong to a user group who has read/download privileges, otherwise you don't.
Someone mentioned diffs, as in deleting everything except the differences and 1-2 lines above and below. I had never thought of that before, but using Beyond Compare would make it extremely simple to copy those changes into the user's files. Should be fine with Rick as well and not violate any copyright concerns. I'll give it a shot with the calendar scripts you posted and see how well Beyond Compare handles it. []https://www.ubbdev.com/threads/php/images/icons/smile.gif[/]
hmmm.. the problem with that method is BC wants things to match up, so it will put pieces matching in the wrong place just so it does match. We may need 4-5 lines to get the differences to line up like they should, then we run into more possible conflicts. I'll look at it some more, any other ideas welcomed as well []https://www.ubbdev.com/threads/php/images/icons/smile.gif[/]
Ok I have tried and checked everything but this dosnt seem to work for me, I am on 5.5.1 I have checked all the changes have been made to the DB and they have I have created a new forum and checked a dump of the DB to check that the Calender flag is set and it is. When you post in the forum the only change I see is the header for the main box is 'Detailed Event Description', if you reply I see no changes and when you view the post it displays as normal? I have definetly changed the 5 files that come with the zip. Can anyone suggest what I may be wrong.
I would respectfully suggest that you/Scream/Infopop have to figure out what it is you're protecting yourselves against.
If it's copyright issues that you're worrying about, then I do suggest you get a copyright lawyer to draft up a standard agreement which covers derivative works, otherwise people posting hacks may have a claim to their work, regardless of the mechanism used to communicate these hacks to others.
If it's access to the scripts that you're worried about, then I would argue that a restricted-access board for certain hacks may be the easiest & most expedient solution.
Max, I really appreciate the work you put in and shared, but I don't understand what is difficult to understand about this. The files are copyrighted and as such cannot be redistributed to anyone:
# You may not distribute this program in any manner, modified or otherwise, # without the express, written written consent from Infopop Corporation.
That is at the top of every file included with threads. You've been around a while now, Rick has stated he didn't allow posting of complete files any time recently.
Restricted access to forums where files can be posted is impossible anytime soon as well - we do not have access to members area data and will not be getting it. Anything short of that will be circumvented quite easily.
We have been posting text files of changes to be added for a while now, it does take some time - if you'd like for me to do the first one, no problem, then you can edit it to update it for any future changes.
This copywrite arguement seems a bit silly to me, my point being that you can go to many serial/hack type site and download the whole version but you cant go to the official site and download a modified [no warrenty given] file !
It could be that the MySQL statement to turn on the calendar was inputted wrong. I was confused on this at first and found that the script wanted the Displayed name of the board, not the hidden name.
Here is the SQL Statement I ran: UPDATE w3t_Boards SET Bo_Calendar = 'Y' WHERE Bo_Title = 'TSCalendar' ;
The field is set to Y. if you look at the sql dump here: INSERT INTO w3t_boards VALUES ('Turbosport Calendar','The Turbosport Calendar','TSCalendar',NULL,2,1014130982,'Off','Off',47,1014112870,0,'Off','yes',2,'-1-','-1-',1,NULL,'General Discussion',0,'Slim',',CossieClint,','-1-',NULL);
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.