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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,911
  • Total Topics: 21,307
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 824
  • Total: 824

TP Reviews module

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

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Ken.

#120
My suggestion would be to un-check the guest rate permission and save... then re-check the permission and save.
If that is not a fix then we will likely need coding help and at this point I'm not sure that it's going to be available.


EDIT: Have you tried this in the SMF Core Default theme to see if it works there?
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

lextalionis

#121
Oh boy, well that didn't work either...hummm.  Maybe I can see by adjusting a guest forum perms to the same as a user and slowly remove perms until it stops working?

Also, I when viewing the index of reviews:  http://www.motleypixel.com/forum/index.php?action=tpmod;rvws  I would really like to change the header column descriptions by changing Name to: Select Lens Manufacturer and Type   and change  Item to:  Lens Count.  This would be a custom code edit that I "think" shouldn't be too hard.  I tried editing tpreviews.english.php and it didn't work.  I guess just to give it more of a "Review" site feel?

Thanks,
Roy

IchBin

In the language file you are probably looking to change these:
$txt['tp_rv_name'] = 'Name';
$txt['tp_rv_items'] = 'Items';

lextalionis

Thanks IchBin...I've changed it to:

$txt['tp_rv_name'] = 'Lens Reviews';
$txt['tp_rv_items'] = 'Lens Count';

Cleared my cache and it still show Name and Item, does it say this for you?  http://www.motleypixel.com/forum/index.php?action=tpmod;rvws

-Roy

IchBin

I can't remember how these packages work, but I think they make a copy of the files to the SMF folders. Which file are you editing? The one in the tp-files folder, or the one in the Themes folder? If the file exists in both places, try editing the other and see if that is the file it's using.

lextalionis

I'm only editing the one in the tp-files folder, the Settings.english.php in both the current Theme and default folders don't contain these text strings.  I guess I could add them to the settings.english.php in both the default and current theme language folder and see?

-Roy

IchBin

No there should be a TPReviews.english.php file in your languages folder for the default theme. I'm not sure which files is getting loaded, so I would check that first. There's no reason to add anything to the settings.english file.

lextalionis

#127
Okay, you are right, there is a tpreviews.english.php in my default languages folder and I've updated it to reflect:

$txt['tp_rv_name'] = 'Lens Reviews';
$txt['tp_rv_items'] = 'Lens Count';

Yet it still doesn't show.  I even reverted the site back to the default SMF theme just to check and it still doesn't change anything.  Is there any way to find out which language file is being loaded...like ?debug=y or something?

Thanks,
Roy

IchBin

Perhaps remove both of the language files, and then check to see if that text shows up on your page. Then add one at a time to see when the text appears. Then you can do know which files shows the text. That may not be the text, so search the rest of the file as well to see if that is indeed the text.

lextalionis

#129
Okay, I figured some stuff out...want to share it here for others considering or currently using this module:

1.  Even if the perms for guest are set to the same as a regular member, a guest currently can not rate as user or critic even if all TPReviews permissions are checked.  I kindof need this one as I would like to make it as easy as possible for users to rate.

2.  On the index of reviews that top table header "Name" and "Items" are not translated via tpreviews.english.php; rather, it acutally in the TPReviews.template.php in the Themes\default root:

Find:
<tr class="titlebg">
<td width="95%">Name</td>
<td>Item</td>
</tr>';


Replace With:
<tr class="titlebg">
<td width="85%">Watever you want it to say</td>
<td>Custom Item</td>
</tr>';


3.  The TPReviews.english.php copied to your current Theme Language folder and edited will reflect changes after the Reveiew Index page.

So far so good with this review module.  I do hope Dragoon will resume further developement of this review module.

Here's where I stand now which show some of these column name changes:  http://www.motleypixel.com/forum/index.php?action=tpmod;rvws

Thanks for the help Brad and Ken...I'll chime back in when I have several products fully entered for review.

-Roy

This website is proudly hosted on Crocweb Cloud Website Hosting.