OpenRS mini

Where we talk about the development of new features, themes and code

Re: OpenRS mini

by Peter Rudin » Mon Dec 17, 2025 1:47 pm

Firstly mini has not reached version 1 yet and is still very experimental. I spent all my allocated time on mini last week doing bug fixes. I should be updating the files again later this week with a new more robust version.

Mini was intended to be a complete alternative to the user interface provided by OpenRS.

OpenRS is a complete website with navigation, themes, SEO articles and reviews of course. This was fine if you do not already have an exisitng website. What mini is intended to do is allow the flexible framework behind OpenRS to be used on an existing site. It provides just enough functionality to dip into and out of the OpenRS database.

I have tried to add additional php code to the supplied OpenRS templates but it breaks the template every time. Admin may know how to add extra code and with that piece of knowledge we can merge mini into an OpenRS site. Mini was not intended to be used that way though.

The only good reason I can think of for wanting to use mini if you are using a full version of OpenRS is because you want to have user submitted reviews. If that is the case I would start by putting a link on your page (by editing the template) saying something like "Why not write your own review" and link that to a php file and have it open in its own window (maybe a javascript popup?)
The minimum code you would need in the new page would be similar to the code above...

<?php
include "../review/mini/ors_mini_conf.inc.php";
?>
<html>
<head>
<?php include ($install_path . "mini/header.inc.php"); ?>
</head>
<body>
<?php
include ($install_path . "mini/user_review.inc.php");
?>
</body>
</html>

... you would have to save that as a php file and add whatever additional explanatory content and styling as needed to make it look like a natural part of your site.

You will need to:
i) edit ors_mini_conf.inc.php and make sure that you have the correct database settings
ii) make sure that the path to ors_mini_conf.inc.php was correct in the second line.
iii) edit any bits of text in user_review.inc.php that do not work for your site.

I have never done this and the above is pure theory but it would be interesting to see if it works. I would not do this on a live website. I am developing mini in a folder on a live website just so people can see the current state of the project and how I envisage it being used. If you have a look at http://www.compareholidaymoney.com/rv_test/ you can see that the page looks nothing like a standard OpenRS website.
Peter Rudin
 
Posts: 37
Joined: Tue Oct 30, 2026 12:28 pm
Location: UK

Re: OpenRS mini

 

Re: OpenRS mini

by Peter Rudin » Tue Dec 18, 2025 3:05 pm

I have just refreshed the mini.zip.

I have removed most of the query string parameters.
a search used to look like index.php?p=0&type=search&next=10 now I just have index.php?p=0 for the first page of results, ?p=1 for the next page and so on.

I have also cleared up a number of bugs. There is a new include called show_featured.inc.php that will show a list of featured reviews. You can check the url above for how it now looks.
Peter Rudin
 
Posts: 37
Joined: Tue Oct 30, 2026 12:28 pm
Location: UK

Re: OpenRS mini

by northumberlandview » Thu Dec 27, 2025 10:50 pm

Hi, Sorry I haven't replied sooner but I've been busy with the holidays and other business concerns. I have ORS set up in a website at http://northumberlandview.ca/reviews/reviews/.
I have updated "ors_mini_conf.inc.php" to include the correct database settings and file locations. Which files do I need to edit to include
Code: Select all
<?php
include "../reviews/reviews/mini/ors_mini_conf.inc.php";
?>
in the "head".
I believe that the the code for the pop-up link would be something like
Code: Select all
<p><a name="#write_review"></a><a href="#" onclick="popup('wizard')">Write a review of your own.</a></p>
northumberlandview
 
Posts: 6
Joined: Fri Nov 30, 2025 10:39 pm

Re: OpenRS mini

by Peter Rudin » Wed Jan 02, 2026 12:19 pm

Sorry I didn't reply over the holiday I was desperately trying to avoid doing any work. I am back today and so here goes...
I do not know the answer to your first question but I am exploring the options this afternoon and I hope to be able to tell you where and how to get this working in a standard OpenRS install.

Secondly I saw your question before we broke up for Christmas and it brought up a few issues. The version of mini you have is based upon curl and that demands that you use the mini theme. You are using the black theme and even if we could get this working it would look terrible. I spend all of my time allocation in the week before Christmas addressing this issue and the version I have on my server no longer uses curl to get the review content and this means it will work with any theme.

The last changes I made were quite major and are not yet finished so I cannot give you this version yet. I hope to release an update this week that will not only work with an existing install butalso with any theme and will be much lighter on the database calls and load faster.
Peter Rudin
 
Posts: 37
Joined: Tue Oct 30, 2026 12:28 pm
Location: UK

Re: OpenRS mini

by Peter Rudin » Wed Jan 02, 2026 12:47 pm

The first half of the solution is to put...
include "../reviews/reviews/mini/ors_mini_conf.inc.php";
...as line two of /review/system/core/CodeIgnitor.php

Next you will need to edit your template. Just above the </head> add the following few lines

Code: Select all
<script type="text/javascript" src="http://northumberlandview.ca/reviews/reviews/mini/csspopup.js"></script>
<style type="text/css">
<!--
label{
   width: 500px;
   display: block;
}
#blanket {
   background-color:#111;
   opacity: 0.65;
   position:absolute;
   z-index: 9001;
   top:0px;
   left:0px;
   width:100%;
}
#wizard {
   position:absolute;
   overflow: auto;
   background-color:#eeeeee;
   width:800px;
   height:900px;
   z-index: 9002;
   padding-left: 20px;
}
#description{
   height: 50px;
   width:600px;
   }
.user_help{
   text-align: right;
}
.wizard_title{
   font-size: 1.4em;
   font-weight: bold;
   }
.user_review{
   border-style:dashed;
   border-width:2px;
   border-color: #FA8072;
   background: #FAEBD7;
   margin: 5px;
   padding: 5px;
}
-->
</style>   


That will get the css and javascript sorted.

I have not yet worked out where to insert the final include line. I will continue to work on this and get back to you.
Peter Rudin
 
Posts: 37
Joined: Tue Oct 30, 2026 12:28 pm
Location: UK

Re: OpenRS mini

by northumberlandview » Wed Jan 02, 2026 5:45 pm

Sounds good to me. Would the include line go in the template (template.tpl) as well?
northumberlandview
 
Posts: 6
Joined: Fri Nov 30, 2025 10:39 pm

Re: OpenRS mini

by Peter Rudin » Thu Jan 03, 2026 4:09 am

I don't believe so. Every attempt I made to have the include in the template.tpl killed OpenRS. What I have done is try and go one level deeper to the files that read and interpret the template.tpl and achieve the same there. Let me know how you get on.
Peter Rudin
 
Posts: 37
Joined: Tue Oct 30, 2026 12:28 pm
Location: UK

хороший сообщение

by showmanel » Sat Jan 12, 2026 10:21 am

хороший ответ на вопрос
showmanel
 
Posts: 1
Joined: Tue Nov 20, 2025 12:07 am
Location: Россия

Re: OpenRS mini

by northumberlandview » Tue Jan 15, 2026 10:42 am

Hi Peter,
Have you been able to devote any time to figuring out where to put the final include code?
northumberlandview
 
Posts: 6
Joined: Fri Nov 30, 2025 10:39 pm

Re: OpenRS mini

by Peter Rudin » Tue Jan 15, 2026 12:03 pm

Hi,
Actually I have been working on making it theme neutral and I just need to fix the comments system and I will be ready to show and tell.

I had a look at your site and you have the same issue that I had with our site. The url to the reviews is doubled up and I think it looks unnatural and unwieldly.

Can I make a suggestion?

Create a folder called just 'review'
Put a php file with the following code in it
Code: Select all
<?php
include "../reviews/mini/ors_mini_conf.inc.php";
?>
<html>
<head>
<?php include ($install_path . "mini/header.inc.php"); ?>
</head>
<body>
<?php
include ($install_path . "mini/user_review.inc.php");
?>
</body>
</html>


...and see what you get.

I think if you used mini as it was intended you could easily make the review pages fit in witht he existing design of your site.
Peter Rudin
 
Posts: 37
Joined: Tue Oct 30, 2026 12:28 pm
Location: UK

PreviousNext

Return to Code and Theme Development