Solutions
-
djitsz's post in Coding a Facebook Wall / Feed type script. A question of best methods, efficiency and scaling. was marked as the answerCreating feed tables for each user would be very bad as you are duplicating a lot of content in your database (i.e., if one user adds a new post this would need to be written to the feeds of each user who should see this post).
You would also not query all the tables together in one query unless these tables represent entities which are linked (such as a Post and a User). Joining tables which are not linked in this way creates a Cartesian product of all these tables (i.e., combining all elements from one table with all elements from another table) which leads to huge results with lots of duplicate content.
You would need to write separate queries for each type of content to be included in the feed, i.e., "SELECT * from `articles` where `articles`.`category` in (
);", "SELECT * from `posts` where `post`.`userID` in ();" etc.
You then use whatever scripting language you use to present the results from these different queries in whatever way you see fit.
-
djitsz's post in Save my sanity! jquery validation. was marked as the answerThe browser is not actually loading your script because it is preceded by a self-closing script tag. You should use <script></script> rather than <script />. If you change:
<script src = "http://code.jquery.com/jquery-1.11.0.min.js" /> <script type = "text/javascript" src = "validation.js"></script>
To
<script src = "http://code.jquery.com/jquery-1.11.0.min.js"></script> <script type = "text/javascript" src = "validation.js"></script>
It should load your script and hopefully work.
Good luck!
-
djitsz's post in How can I convert a Joomla website to a html Website was marked as the answerHi weballtheway,
All joomla websites are already HTML websites as Joomla is a content management system which generates HTML pages. Depending on the size of the site, you could simply save each individual page as HTML using your browser in a new directory. Once you've saved all pages, you would then need to check all the links within each page to make sure it points to the saved HTML page rather than the joomla dynamically generated page.
However, as the site appears to be a ecommerce site, you would lose all functionality for managing the shopping cart and buying products as this depends on the Joomla back-end to function. I assume that your client would not want to lose this functionality.
Do you know why they want to convert a dynamic content managed site in Joomla to a simple static site in HTML? I can't think of many reasons why one would want to do this as it makes maintaining the site so much harder and doesn't have many benefits. Depending on why they want HTML there might be a better solution out there.
Best
Jitse