vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Portal Software - [Chris] Reviews (https://vborg.vbsupport.ru/showthread.php?t=298223)

CharlieDelta 05-27-2013 06:36 PM

Quote:

Originally Posted by Christos Teriakis (Post 2423909)
Then disable the Reviews Widget and/or Reviews Forum sidebar block. Only at that point there is this code. But again it's how the template treats the code. Has nothing to do with what they said there. In programming (if its coding error) it appears always and not sometimes appears and sometimes not. To appear sometimes and sometimes not has to do with the template or special code.
In final word.... does it appears with the your default template (even ...sometimes)?

Chris

Thanks Chris. Disabling the forum side block has worked. And yes it did appear in the default template.

Christos Teriakis 05-28-2013 04:37 AM

Quote:

Originally Posted by CharlieDelta (Post 2424513)
Thanks Chris. Disabling the forum side block has worked. And yes it did appear in the default template.

If it appears even in your default template, then is better to keep my mouth close, and not because I admit that there is something wrong in my code.

In anycase, as I don't like to let you in the middle of the way, you can use the follow procedure to have the the widget/block appearing in your site:

1.- At Admincp-> Styles & Templates-> Style Manager-> Edit Templates-> CSS Templates add to additional.css
Code:

.minigraph {
    float:{vb:stylevar left};
    background-color:#cecece;
    border: 1px solid #003366;
    position:relative;
    width:70px;
    padding:0
}
.minigraph .minibar {
    display:block;
    position:relative;
    background-image:url(christeris/reviews/images/bargraph.gif);
    background-position:{vb:stylevar left} center;
    background-repeat:repeat-x;
    border-{vb:stylevar right}:1px solid #003366;
    text-align:center;
    color:#fff;
    height:14px;
    font-family:Arial, Helvetica, sans-serif;
    font-size:8pt;
    line-height:1.4em
}
.minigraph .minibar span {
    position:absolute;
    {vb:stylevar left}:1em
}

2.- Forget the code that exists in Widget_Block_Latest_Reviews.txt and use the code:
Code:

$maxreviews = 5;
global $db, $vbulletin, $vbphrase, $vboptions;
ob_start();
$qry = $vbulletin->db->query_read("SELECT * FROM ".TABLE_PREFIX."reviews_reviews WHERE active=1 AND status=1 AND logo<>'' ORDER BY postdate DESC LIMIT $maxreviews");
while ($row = $db->fetch_array($qry)) {
        $thisreviewid = $row["id"];
        $thisreviewtitle = htmlspecialchars_uni($row["title"]);
        $thisreviewlink = 'reviews.php?do=viewreview&reviewid='.$row["id"].'';
        $thisreviewlogo = 'christeris/reviews/photos/thumbs/'.$row["logo"].'';
        $thisreviewbarwidth = intval($row["adminrating"] * 10);
        $thisreviewrating = intval($row["adminrating"]);
        $thisreviewratingtitle = $vbphrase["reviews_rating_".$thisreviewrating.""];
        $html .= '<div class="cms_widget_post_bit widget_post_bit">
                <div class="cms_widget_post_userinfo widget_post_userinfo">
                <div class="cms_widget_post_useravatar widget_post_useravatar">
                <a class="comments_member_avatar_link" href="'.$thisreviewlink.'">
                <img src="'.$thisreviewlogo.'" alt="'.$thisreviewtitle.'" /></a>
                </div></div><div class="cms_widget_post_comment widget_post_comment">
                  <h4 class="cms_widget_post_header widget_post_header">
                <a href="'.$thisreviewlink.'">'.$thisreviewtitle.'</a></h4>
                '.$thisreviewratingtitle.'
                <span class="rating" style="float:right;">
                <div class="minigraph">
                <strong class="minibar" style="width:'.$thisreviewbarwidth.'%"><b>'.$thisreviewrating.'</b></strong>
                </div></span></div></div>';
}
$output = $html;
ob_end_clean();


Christos Teriakis 06-07-2013 07:12 AM

Hello,

I want to ask those who have installed SL Reviews, if a modification which most probably will makes the new version incompatible with the previous one, will causes them problems. What I'm trying to say is "Are you using it in a live site?".

What I want to change is the way that rating questions are currently working. As you know, in the current version the Administrator setup the questions which are global for all reviews. Now it came in my mind to move it to the Reviewer. Independed of category the Reviewer will be able to set his own rating questions.

Example: I'm posting a Review for a game and I want to add only: Sound quality, Playbility and Value for money as rating questions, while you, posting a similar review you want to add much more questions.

Please note that the average rating will remains the same as the calculation is the same (Total points / Total questions).

I believe that this way you'll have the freedom to use different types of reviews with the same installation.

I'll appreciate if you click "Like" to this post as a way to determine how many you agree with this plan.

Christos

fxdigi-cash 06-07-2013 08:01 AM

I believe this is the best mod so far I ran into... great job Christos Teriakis

Thanks a lot.

And Yes, that new idea you mention is great. I totally agree with you :)

Thanks again

albibak 06-07-2013 10:12 AM

Goog idea Chris, but the admin can have the possibility to activate or not this feature.
It will be nice if the admin can purpose some questions for specific review.

For example, a review for a game, the reviewer have quetion like: sound, graphics..
If it's a film's review, it wmust be : graphics, history...

You know what I mean?

Christos Teriakis 06-07-2013 01:54 PM

Quote:

Originally Posted by albibak (Post 2426345)
Goog idea Chris, but the admin can have the possibility to activate or not this feature.
It will be nice if the admin can purpose some questions for specific review.

For example, a review for a game, the reviewer have quetion like: sound, graphics..
If it's a film's review, it wmust be : graphics, history...

You know what I mean?

Yes, I got your meaning but unfortunatelly is something that can't be done. It's different database structure between these 2 options. That's why I said that will not be compatible with the earlier version.

jshallo 06-08-2013 08:06 PM

Hi Christos, Just installed this on my site and did a test post. I'm looking to use it for cruise ship reviews. Some of what I see in this mod and others is alittle too complicated for my needs. For example, I don't need a Editors Review for each ship.. so I guess I would need a more slimmed down version.

I like what you have in place for the categories and use of the CMS, user panel. I just would want a more simple version. I'll give you a brief overview of how I would like to use your software.

1. Users goes to Cruise Reviews section.

2. User Wants to Post a Review.

3. User Selects from parent category (Cruise Lines). Then picks ship to review.
(ie. Carnival Cruise Lines, Carnival Breeze. The review would actually be written on the Carnival Breeze. The present options make this alittle bulky.

This same format could be used for other products, restaurants, hotels, etc.
For example. Parent category> Restaurants>Country>State>City>Restaurant Name. or even
Hotels>Country>State>City>Hotel Name. My point is the admin would set that the items in the last category are the items to be reviewed.

4. I don't need editorial reviews at the top, as I want USER reviews from the community. If I had a heading it could include a photo of the ship, company logo, ship history text, etc. However, with 100's of ships an editorial heading is not ideal. I also this a more basicly (non editorial heading).. just a product head,custom questions, basic 1-10 star rating, and CMS article like narative where the user can add images, stylized text, embed YouTube videos would be wonderful and flexible.

5. I could use the PRO's / CON's section.. and maybe some fixed questions as your proposing but as options.

6. A rating 1-10 stars or other system would be nice as you have already for each user review.. so then someone looking reviews for Carnival Breeze.. can see that out of 100 reviews.. the community has given this ship 8 out of 10 stars, etc.

This is just my five cents. Its not far from what I would love to see.

digitard 06-12-2013 04:12 PM

I'd love to see an "Administrator" option to create products with the information, but not need to actually input a 1-10 review.

For example I'd be able to create the name, keywords, a link to the manufacturer site, image, use the review box to put in information about the product (like the official what it has, cost, etc), and the production year. Then submit it, and my users sub-reviews can create the actual star rating.

This would be good for things like store/site reviews of things that aren't 100% products or if we want to remain "out of the game".

Christos Teriakis 06-12-2013 04:37 PM

Quote:

Originally Posted by digitard (Post 2427694)
I'd love to see an "Administrator" option to create products with the information, but not need to actually input a 1-10 review.

For example I'd be able to create the name, keywords, a link to the manufacturer site, image, use the review box to put in information about the product (like the official what it has, cost, etc), and the production year. Then submit it, and my users sub-reviews can create the actual star rating.

This would be good for things like store/site reviews of things that aren't 100% products or if we want to remain "out of the game".

There is a global misunderstanding on Reviews scripts, and I can admit that it gots me long time (actually years) to understand how these scripts are working. Well when I was talking for reviews, I had in mind exactly what you wrote. Admin posts something (eg an article) and users rate/review it.

Unfortunatelly what I was (and you ... and many others) thinking about reviews are not reviews script. Are rating scripts. The normal Reviews scripts (just like this) are scripts where the author has reviewed something and posts his final review for reading (mostly) and rating by the users.

A good example to understand it, is the reviews that most magazines are posting. eg Let's say a Mobile phones magazine posts some reviews for the new models. The author checks the new model and then he post the reviews. Users are reading the review and usally they post replies with their opinions, or adding a global rating.

What you asked for are Rating scripts, which are most common (in my opinion). eg You want to operate a Hotels directory and you're posting some dozens of Hotels (in most cases you never seen them), expecting that users who know these hotels will post reviews.

Am I right? Pitty, but this mod has been developed scoping the first way. Even if can be modified to work like you want, I don't suggest it, as most probably will be a waste of time.

Chris

Christos Teriakis 06-12-2013 04:43 PM

Quote:

Originally Posted by jshallo (Post 2426726)
........
1. Users goes to Cruise Reviews section.
2. User Wants to Post a Review.
.....

Have you a site relevant to Travel business?:) I had a Travel Office for 17 years, but I closed it last year.... Internet is good, but kills some professions...

Well, it's 5 years that I've coded a Travel portal. Does what you wrore and many more. Not only reviews, but tours and many...many others... The problem is that is for vB3. It was very big project (around 100+ php files, same amount of templates etc), and never had the time to port it to vB4.

So, the only that I can say is what I replied to @digitard before. You need a rating script. This is a review script.

Chris


All times are GMT. The time now is 11:03 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01242 seconds
  • Memory Usage 1,785KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete