TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 06:14:12 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,106
  • Total Topics: 21,213
  • Online today: 358
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online

TP Reviews module

Started by Megaforum, May 24, 2008, 04:25:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ken.

That's my sentiment as well ZP, I never allow guests to do anything beyond viewing.

" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

IchBin

Figured it out. Apparently using winzip does not work. I recompressed the zip with windows compression tool and the installer works without making the change. Not sure what tool you used to make the change on that install number, but I suspect that your tool saved the zip properly after you made the change. I agree about guests voting. It's going to require quite a bit of code change to allow it to work properly. And quite frankly, for only one person to suggest it I'm not sure it is worth it at this point.

Ken.

I use 7-Zip, it's free and to me it works better than winzip.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

lextalionis

#163
Thanks for the work and fixes Brad.  I definitally can't argue the guest rating thing.  I agreen with all here that there's value to having somone that really wants to rate an item to register.  I can definitally do without it, but again thanks for the effort.

I've had a very busy schedule and plan to update the files soon and do some testing.  The feature request or future "to-do" of adding the top rated item from each category to the front index of tp reviews is a very good one.

I'll chime in later once I do some more testing.

*Update:

Okay here's my testing results:

Guest can see and click on Rate it! even when TP Reviews Guest perms have only access reviews and search reviews enabled.  When they click on Rate it! it takes them to the lens summary page.  Perhaps either make it where tp reviews perms "rate lens as user" is unchecked the Rate it! doesn't show or when it's checked and the guest clicks Rate it! it brings them to forum registration?

Every other fix seems to have taken which is really nice.

Another thing I find odd is the item post and my forum tagging vs TP Reviews tagging.

Here are the tags avail. in regular forum posts:


Now here are the tags avail. in TP Reviews:



I'm either not using it right or it's not carrying over to the TP Reviews, but [html] tagging doesn't seem to be working even though it's enabled.  For example, how would I go about inserting this "Share This Button" script into a review item?  Like used in my PHP upper panel bloc here:  http://www.motleypixel.com/forum/index.php

<a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&pub=xa-4ace7f3f0a32b77e">
<img src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border-style: none; border-color: inherit; border-width: 0; float: right;"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pub=xa-4ace7f3f0a32b77e"></script>


The html tag works with this code in a normal forum post, in other words this code:

[html]<a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&pub=xa-4ace7f3f0a32b77e">
<img src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border-style: none; border-color: inherit; border-width: 0; float: right;"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pub=xa-4ace7f3f0a32b77e"></script>[/html]
produces this in a forum post: http://www.motleypixel.com/forum/index.php/topic,170.0.html
and this in the TP Reviews post:  http://www.motleypixel.com/forum/index.php?action=tpmod;rvws;sa=viewitem;id=3

In the end, I intend to emulate this review system:  http://www.fredmiranda.com/reviews/showproduct.php?product=303&sort=7&cat=27&page=3

Pretty close eh?  http://www.motleypixel.com/forum/index.php?action=tpmod;rvws;sa=viewitem;id=9

I do like the integer rating values of Fred Miranda aka Overall Rating 9.22, Price Rating 7.39, vs. the 4 out of 5 stars used in TP Reviews, but this is just a personal preference.  Maybe in the future an option for integer or star ratings could be available?

Now I just need to get my review item format ironed out and then I can start replicating it for each lens which is around 63 lenses at the moment.

Thanks,
Roy

IchBin

Fixed the "Rate It" link for quests.

The BBC buttons you reference in your post screen compared to the TPReviews screen are because the editor is not loaded from SMF per say. The editor is setup in the showBBC() function in the TPReviews.php file. If you want more options, you'll have to manually add more to that function.

Allowing to input HTML, I would rather not. Allowing HTML is a huge security risk. I'd rather just stick to allowing only BBC at this point.

I have added user avatar next to the item when viewing a category of items. I have also added a setting to show recent reviews on the frontpage. I haven't yet figured out how to show most high rated. That is going to be quite involved in figuring out how to tally up the rates because of the way everything is stored, so I'm not promising anything in that department yet. lol

I'll try to put a new package up soon.

Ken.

Quote from: IchBinâ„¢ on October 26, 2009, 03:08:13 AM
Fixed the "Rate It" link for quests.

The BBC buttons you reference in your post screen compared to the TPReviews screen are because the editor is not loaded from SMF per say. The editor is setup in the showBBC() function in the TPReviews.php file. If you want more options, you'll have to manually add more to that function.

Allowing to input HTML, I would rather not. Allowing HTML is a huge security risk. I'd rather just stick to allowing only BBC at this point.

I have added user avatar next to the item when viewing a category of items. I have also added a setting to show recent reviews on the frontpage. I haven't yet figured out how to show most high rated. That is going to be quite involved in figuring out how to tally up the rates because of the way everything is stored, so I'm not promising anything in that department yet. lol

I'll try to put a new package up soon.

Thank you for your continuing efforts IchBinâ„¢.  :up:
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

lextalionis

Very nice, thanks for the update.

So will it be intuitive enough for guests to know they have to register to post a review?  Thinking along the lines of how the system works here: http://www.slrgear.com/reviews/showproduct.php/product/77/cat/11  if you click "Post a Review" in the review stats box at the top it prompts you must be registered and then redirects to a registration page.

The user avatar fix is a nice touch...thanks for adding that.

Okay, so I'll need to find the showBBC() in the TPReviews.php file and add some stuff.  What I want to be able to post is this:  http://www.motleypixel.com/forum/index.php/topic,21.msg40.html#msg40  which consists of this code:

[table][tr][td][img]http://www.motleypixel.com/reviews/Canon%20Zooms/Canon%20EF%2070-200mm%20f2.8%20L%20IS/slides/canon_ef_70-200mm_f2.8_L_IS_13.jpg[/img][/td][td][iframe=120,240]http://rcm.amazon.com/e/cm?t=thmopidslerea-20&o=1&p=8&l=as1&asins=B00006I53X&fc1=000000&IS2=1&lt1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr[/iframe]
[/td][/tr][/table]

This thread is dedicated to comments, experiences, tips, and sample photos for the [b][u]Canon EF 70-200mm f/2.8 L IS USM[/u][/b] lens.  If you would like to have your photo or photos show-cased under the photo light-box stream here:  [url=http://www.motleypixel.com/reviews/index.htm?openfolder=Canon%20Zooms/Canon%20EF%2070-200mm%20f2.8%20L%20IS/]Canon EF 70-200mm f/2.8 L IS USM Sample Photo Stream[/url] then post them here!

[html]<a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&pub=xa-4ace7f3f0a32b77e">
<img src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border-style: none; border-color: inherit; border-width: 0; float: right;"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pub=xa-4ace7f3f0a32b77e"></script>[/html]


Two things are enabled in the normal forum that allows this which are html for admins and an iframe tag added to forum posts (iframe is needed for Amazon widgets and html for the sharethis button bar).

Thinking about it, I have the "sharethis" modification installed which incorporates the sharethis social bookmarking throughout the site, but it seems that TPReviews is immune to this mod.  No biggie, adding it manually to each review is prefered since each review item will be duplicated in a similiar format.

Do you know what file in the current theme or default them dirs that I need to get the code which allow these functions in normal posts to copy over to the showBBC() function for TPReviews.php?

Thanks,
Roy

IchBin

I think the Post.template.php file is where the BBC stuff is setup if you want to look at it. As for other mods like your Social bookmarking. Just remember that this is a module. Mods for SMF do not alter other mods. If you want a mod to work inside another mod or module, there is going to be some manual coding to make those customizations work.
I don't know how the [html][/html] tags work. So I'll see if I can find that out and incorporate it. Just know that it will ONLY be an admin permission. No other users will be able to use that tag.

lextalionis

Thanks Brad, yep I've only enabled html tagging for admins which by itself is good, but in my case, no one but admins will be authorized to add new reviews.  I'm controlling this as I have a unique single review site which is DSLR Camera Lens Reviews only.

I'll try looking at the post.template.php some later to see if I can get the post for a review to run like my normal forum posts.

-Roy

lextalionis

Brad,

Curious if you have updated the OP files per your reply # 164?

I'm pretty sure I don't have the features you added.  Here's the final look at how a review will look for camera lenses.  I was never able to get the html tag to work w/in this mod so I'm having to use bbc only which takes a hit for me since I can't use two components:  http://www.motleypixel.com/forum/index.php?action=tpmod;rvws;sa=viewitem;id=3

Just now revisiting this but it seems like a user can access the rate it more than once but it just doesn't record the rating, so effectivly you can keep rating but only the first takes effect. 

Thanks,
Roy