vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - [OzzModz] Reviews (https://vborg.vbsupport.ru/showthread.php?t=304317)

ozzy47 11-08-2013 11:00 PM

[OzzModz] Reviews
 
Another mod brought to you by,
https://vborg.vbsupport.ru/external/2015/01/1.png


First off this mod, [Chris] Reviews, has been taken over by me. It did belong to Christos Teriakis. He has since given me full rights to the mod, so I am releasing it here. Only thing I have changed as of yet is the title, so it is basically the same mod.To upgrade from that mod is the same as any other time, unzip the files, load them to your server, overwriting the old files, then import the new xml. Please remember, this mod is as new to me as anyone installing it, so we are both on a learning curve. :)


1.- What's this mod?


It's better to say what it is NOT :). It is a Reviews system for those admins who want to review one type of items (eg Games, Books, Autos etc) and only one group of rating questions is acceptable for them. With the help of extra fields and a bit works from your side to configure it, you can have a very good reviews section in your site.
  • Supports unlimited categories.
  • You can set the word that will be use in the pages to identify the type of your reviews (eg Game - Games, Book - Books etc).
  • Supports Extra fields (but not searchable).
  • Supports one group of rating questions (but unlimited questions).
  • Supports users' reviews and overall rating.
  • Supports Headline, review text, positive points, negative points.
  • Supports Product photos or YouTube video if exists.
  • Has PM templates for:
    • PM user when admin approves his Review.
    • PM user when admin rejects Review.
  • Reviewer can temporary hide the review and a later time he can activate it again.
  • There are listings for:
    • Category Reviews.
    • Time-frame (What's New) Reviews.
    • User Reviews.
    • Search Results.
  • In view Review page the visitor can also see:
    • Editor Rating.
    • Community Rating.
    • Lowest Rating.
    • Highest Rating.
    • Editor other reviews on sidebar.
  • In all pages there are available the follow blocks having the appearance of widgets:
    • Category Menu.
    • Search Form.
    • Statistics.
    • Top Editor Products (Games, Books, etc).
    • Top Community Products.
    • New Reviews.
    • New Community Ratings.
  • RSS Feeds for latest 10 reviews.
  • Facebook Like Advanced (Shows users who liked a review).
  • ver.1.1.0 Added a setting to allow or not Audio files (in case that you want to review music). Default is OFF. If you turn on then the users can hear the audio file with the included (simple) audio player.
2.- Installation
  1. Download and unzip the files.
  2. Upload the content of upload folder to the directory where your vB installation is. To be sure: reviews.php must be on the same directory as global.php, forum.php etc.
  3. CMOD 777 the directories:
    1. christeris/reviews/photos
    2. christeris/reviews/photos/thumbs
    3. christeris/reviews/photos/tmp
  4. Go to ACP --> Plugins & Products --> Manage Products, and import product-reviews.xml.
  5. Set the various settings in Reviews --> General Options.
  6. Set usergroup permissions.
  7. Check and modify Pm templates, Reviews --> PM Templates.
  8. Set Categories, Reviews --> Reviews Categories.
  9. Set Extra Fields, Reviews --> Review Extra Fields (in case that you want them).
  10. Set Rating Questions, Reviews --> Rating Questions.
  11. *** ATTENTION *** Double check that rating questins are ok before starting adding reviews. After the first review you CAN'T Add/Edit/Delete questions.

3.- SEO URLs
  • If you're using vbSeo open the file Reviews_vBSEO_Custom_Rewrite_Rules.txt and add them to your vbSeo installation.
  • If you're using .htaccasse file copy the contents of htaccess.txt and add it to your current .htaccess files. If you don't have such file and your server is compatible with such files, upload htaccess.txt to your vB directory and rename it to: .htaccess.
4.- CMS Widget / Forum Sidebar block for Latest Reviews
  1. Pre-Installation:
    1. Shows latest 5 Reviews. If you want to change the number to another value change at 1st line: $maxreviews = 5;
  2. Installation as CMS Widget
    1. Goto Admincp-> vBulletin CMS-> Widgets.
    2. Click "Create New Widget" at the list bottom.
    3. Set Widget Type: PHP Direct Execution.
    4. Give a Title which appears at the widget. eg Last Reviews, or.. Last 5 Reviews etc.
    5. Click SAVE.
    6. Find in the list the new widget and click configure at the right side.
    7. Replace the example code, with the code from Widget_Block_Latest_Reviews.txt.
    8. Click Save.
    9. Goto Layout and add it in any section you want.
    10. Click Save (Layout).
  3. Installation as Forum sidebar Block
    1. Goto Admincp-> Forums & Moderators -> Forum Block Manager.
    2. Click Add Block.
    3. In the next screen "Select block type: Custom HTML/PHP.
    4. Click Continue.
    5. Title: Latest Reviews.
    6. Content Type: PHP.
    7. Content: Copy & Paste the code from Widget_Block_Latest_Reviews.txt.
    8. Click Save. The block will be now visible to your forum sidebar.
-------------------------------------------------------------------------------------------

If you like this mod please hit the https://vborg.vbsupport.ru/external/2015/08/1.png button to the right ---->

Please remember to click the, https://vborg.vbsupport.ru/external/2015/08/2.png button to the right if you installed the mod ---->

What does 'Marking As Installed' do ?

* It helps you to stay on top of updates - members who have installed modifications will be notified whenever new updates are available.

* For security issues - vbulletin.org will contact all members who have installed a modification whenever a security issue is brought to their attention.

* Marking a modification as installed also helps me know how many people are using my work, giving me extra incentive to provide more features and new modifications.

I appreciate the support!
-------------------------------------------------------------------------------------------

v1.4.0 Initial release.

v1.4.1 Fixed the following errors, Warning: Invalid argument supplied for foreach() in ..../reviews_usercp.php on line 695 AND Warning: Division by zero in ..../reviews_usercp.php on line 706

v1.4.2
Patched some vulnerability's that was found in the mod. No sites were affected by this, it was just found by a user and now is patched.

v1.4.3
Patched some more vulnerability's that were found in the mod, during the security check. No sites were affected by these, they were just found and patched.

-------------------------------------------------------------------------------------------

Contributions Received (members who clicked on, and followed through with the Support Developer button)

jjohns12


-------------------------------------------------------------------------------------------

ozzy47 11-09-2013 01:16 AM

Reserved.

jjohns12 11-09-2013 01:58 AM

Thats Great I use this mod and its great you picked it up! Is there a chance you will take over his Classifieds to.

Can't wait to see what you will improve on in this!:)

ozzy47 11-09-2013 02:00 AM

Yes I will be picking up on that too, but I have to pace myself on the releases, as all these mods are new to me.

Thanks for marking as installed. :)

tbworld 11-09-2013 02:53 AM

Thanks for undertaking this @Ozzy47. This should keep you busy. :)

ozzy47 11-09-2013 03:01 AM

Yeah I have about 20 mods to do now. :)

Mariner1 11-09-2013 05:26 AM

Great mod,thank you.
One problem though.Ive installed it on vb 4.2.2..Ive done a couple of test posts and when approving a review i get

Warning: Invalid argument supplied for foreach() in ..../reviews_usercp.php on line 695

Warning: Division by zero in ..../reviews_usercp.php on line 706

The review still posts though

ozzy47 11-09-2013 11:15 AM

Ok I will check it out as soon as I have a chance. What is it you were doing to trigger those errors?
What version of php and vBulletin are you running?

Mariner1 11-09-2013 11:58 AM

Hi Ozzy

Im using vbulletin 4.2.2 and php 5.3
I was approving a test review i made when i get the errors

ozzy47 11-09-2013 12:02 PM

Ok load this file to your forum root, overwriting the one that is there and see if you still get the error.

qpurser 11-09-2013 12:44 PM

Thanks for taking this mod in your hands.
I noticed some cosmetic issues which I could post later but for now the biggest issue I have is when a user want to write his review to an already posted review and clicks on the "write a review" image it ends up with a blank page.
Noticed the image links to (replaced my domain name with mydomain.com): http://mydomain.com/V4backup/forums/#

ozzy47 11-09-2013 12:47 PM

I'll have to set up a testing environment and see if I am able to replicate that, I will try to get that done as soon as I have a chance.

Mariner1 11-09-2013 12:48 PM

ok ive tried that and i get this now when approving

Invalid argument supplied for foreach() ..../reviews_usercp.php on line 695

ozzy47 11-09-2013 12:50 PM

Quote:

Originally Posted by Mariner1 (Post 2459406)
ok ive tried that and i get this now when approving

Invalid argument supplied for foreach() ..../reviews_usercp.php on line 695

Ok I will check on that also, gonna be a bit though, I am kinda backlogged at the moment.

Mariner1 11-09-2013 12:52 PM

no worries,thanks for looking into it

ozzy47 11-09-2013 12:55 PM

Actually try that file one more time please, with this one.

ozzy47 11-09-2013 07:11 PM

New version is available.

v1.4.1
Fixed the following errors, Warning: Invalid argument supplied for foreach() in ..../reviews_usercp.php on line 695 AND Warning: Division by zero in ..../reviews_usercp.php on line 706

jjohns12 11-09-2013 09:52 PM

Thanks for the fix! I upgraded to VB 4.22 and works so far

I ran into one big issue for me I forgot about his Classifieds :mad: and now i am getting

Warning: Assigning the return value of new by reference is deprecated in ..../christeris/classifieds/includes/functions.php on line 1166

and the css on Post Classifieds pages for sale and wanted etc will not display correct.

I know this is not the place this but have know way to contact you.

Thanks

ozzy47 11-09-2013 11:03 PM

Is that this mod that causes issues with classifieds, or does it happen on it's own?

jjohns12 11-10-2013 01:44 AM

Seems to be with the Classifieds only I do know when I orig tried to upgrade VB I had both Classifieds and the reviews spit out a errors but all seems fine with reviews what ever you fixed with it. I had errors with other mods that have been fixed now. I like this mod and need to get it back up and running.

Vb packaged panjo Classifieds with the upgraded version of 4.22 and had to uninstall it due to both use classifieds.php and reinstalled your future release of his Classifieds

ozzy47 11-10-2013 02:03 AM

Yeah the classifieds mod is next on my to do list, but I need to change quite a few things so it don't get overwritten by the panjo mod.

For now you can edit that file, look for this line:
Code:

$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
And change it to this:
Code:

$parser = new vB_BbCodeParser($vbulletin, fetch_tag_list());
BTW, thanks for the donation, it is much appreciated. :)

jjohns12 11-10-2013 02:20 AM

Again Thank you!
All working with edit Your the man!

css all cleared up also.

THANKS

P.S. Your welcome!

ozzy47 11-10-2013 02:39 AM

Not a problem, glad to help. I should have Classifieds released within the next week.

Lustikus 11-10-2013 04:21 AM

Very good mod, installed!

For future improvements: community want to rate grafics, music, style as well. In the same way as the Editor. Maybe this will be part in upcoming versions :-)

Lustikus 11-10-2013 12:40 PM

i cant use your rss feed, it is probably a good idea to post new reviews to own forums...

Quote:

Reviews XML-Fehler: Invalid character in row 18

RPSmedia 11-10-2013 12:41 PM

I don't see where the member (or myself) can add a new review? Looks great so far!

ozzy47 11-10-2013 12:52 PM

Quote:

Originally Posted by RPSmedia (Post 2459667)
I don't see where the member (or myself) can add a new review? Looks great so far!

Click on the Reviews Tab in the navbar. Make sure you have set up usergroup permissions in Usergroup Manager.

ozzy47 11-10-2013 12:53 PM

Quote:

Originally Posted by Lustikus (Post 2459666)
i cant use your rss feed, it is probably a good idea to post new reviews to own forums...

What was it you did to produce that error?

Lustikus 11-10-2013 12:57 PM

tried to setup a new rss feed in vbulletin

http://www.xo-forum.de/reviews.php?do=feeds

ozzy47 11-10-2013 01:01 PM

The feed looks ok to me, I see 10 reviews in that feed.

Lustikus 11-10-2013 01:09 PM

Quote:

Originally Posted by ozzy47 (Post 2459674)
The feed looks ok to me, I see 10 reviews in that feed.

but i cant post the feed in vbulletin forums, but it could be a problem with the board as well:erm:

ozzy47 11-10-2013 01:16 PM

I have your feed set up on my test forum, we'll see what happens.

ozzy47 11-10-2013 01:34 PM

Hmmm I see the error, but it is a different line number, I have no clue why it would not work. I will have to do some research on it.

bosanci28 11-10-2013 02:44 PM

I am trying to install and test this, looking at the info instructions it say: reviews.php must be in same directory as : global.php,forum.php ! , i do have in root global.php and the reviews.php is there also , but do not have the forum.php there is this okay? with only the global file?
Thanks.

RPSmedia 11-10-2013 02:47 PM

I'm on the reviews.php page and I setup the admin usergroup to yes on all the reviews permissions but I still don't see where you can add a review?

ozzy47 11-10-2013 03:40 PM

Quote:

Originally Posted by bosanci28 (Post 2459698)
I am trying to install and test this, looking at the info instructions it say: reviews.php must be in same directory as : global.php,forum.php ! , i do have in root global.php and the reviews.php is there also , but do not have the forum.php there is this okay? with only the global file?
Thanks.

There should be a forum.php in there, that is what your forum uses. What about activity.php, ajax.php

ozzy47 11-10-2013 03:42 PM

Quote:

Originally Posted by RPSmedia (Post 2459699)
I'm on the reviews.php page and I setup the admin usergroup to yes on all the reviews permissions but I still don't see where you can add a review?

Did you also follow these steps?
  • Set Categories, Reviews --> Reviews Categories.
  • Set Extra Fields, Reviews --> Review Extra Fields (in case that you want them).
  • Set Rating Questions, Reviews --> Rating Questions.

bosanci28 11-10-2013 03:55 PM

Quote:

Originally Posted by ozzy47 (Post 2459704)
There should be a forum.php in there, that is what your forum uses. What about activity.php, ajax.php

Hi, I don't have forum.php , i think if i remeber , i rename it from forum.php to index.php ... i think when some comes to our forum to go straight to index...

I see in my root , i do have a index.php_old so that meants i did rename the forum.php.

As for activity.php, ajax.php , yes they are in root.

I have installed the mod ,but looks like is not showing the info! only the title, no picture,youtube links...hmm

link here.

Also i need to change that word: "Game" with something else.(
About this Game)(Game Link:)

Thank you.

(If you want to check i think you have an user name at my forum? ozzy22?)

RPSmedia 11-10-2013 03:57 PM

Quote:

Originally Posted by ozzy47 (Post 2459706)
Did you also follow these steps?
  • Set Categories, Reviews --> Reviews Categories.
  • Set Extra Fields, Reviews --> Review Extra Fields (in case that you want them).
  • Set Rating Questions, Reviews --> Rating Questions.

Yes, I did those things.

ozzy47 11-10-2013 04:01 PM

Quote:

Originally Posted by RPSmedia (Post 2459712)
Yes, I did those things.

Link to the site please.


All times are GMT. The time now is 05:54 AM.

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.02005 seconds
  • Memory Usage 1,841KB
  • 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
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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