Log in

View Full Version : Major Additions - Rate my Photo (HotOrNot Clone)


TheAdminMarket
07-02-2015, 09:00 PM
Since 2006 I was serving community members with my Free Mods
But as this site will starts operating by the company,
I'm no willing to support them

** File Removed **


Rate my Photo
A HotOrNot Clone for your Forum



I'm offering my hard work for free, without even a single copyright line in footer, expecting that some of you will appreciate the time that I spent for coding it and they will donate something.
Demo: http://www.teriakis.com/vb423/photorate.php


1.- What's this?

For first is better to say what is not! This is not a Gallery AddOn. Even if I've added the ability to search and list photos by specific criteria, still it can't be used a Gallery. RateMyPhoto is a HotOrNot Clone, where users post photos to be rated by other members. Normally the rater does not knows the current rating to avoid giving the same. Also rating just specific photo(s) is not possible. All photos appear on the queqe even if there is a choice to skip a photo to rate it at a later time. Double rating is restricted.

2.- Features

Unilimited (one level) categories
Photos appearing in queqe for rating
User can skip a photo to rate it at a later time
User can select to rate all photos from all categories, or specify a category.
Helpful counter on how many unrated photos has the user (Total and by Category)
Browsing Photos by specific criteria is possible:

By Category
Mimimum amount of votes
Min-Max rating
Post last XX days
By Username
Show all photos, or photos that user has rated, or photos that user hasn't rated yet.


Listing can be ordered by:

Rating
Number of Votes
Username
Post date
For all above can be Ascending or Descending


Special Tab in user profile with all photos that he has post for rating with statistics
My Photos section in Usercp with rating statistics and options for:

Edit (Photo can't be changed)
Hide
Activate
Delete


Sidebar Statistics block
Moderator can Approve/Reject/Edit Photos in ModCP
Usergroup Permissions:

Can View Photos
Can Rate Photos
Can Post Photos for Rating
Photos need approval or not.
Can Moderate photos

TheAdminMarket
07-03-2015, 12:35 PM
.....More Photos......

mansonklan
07-03-2015, 10:20 PM
This is not a new release...

ozzy47
07-03-2015, 11:23 PM
And your point?

TheAdminMarket
07-04-2015, 03:31 AM
This is not a new release...

It's totally new release just like Memberlist. The code has been rewritten from scratch. I just kelp the same names for the mods.

mansonklan
07-04-2015, 02:05 PM
Ahh thats my point! I had this mod back in 2012

badstraw
07-05-2015, 03:57 AM
Im getting all these errors:
Warning: Illegal string offset 'pm_messagelist' in ..../includes/class_core.php(4715) : eval()'d code on line 146

Warning: Illegal string offset 'pm_newpm' in ..../includes/class_core.php(4715) : eval()'d code on line 151

Warning: Illegal string offset 'pm_trackpm' in ..../includes/class_core.php(4715) : eval()'d code on line 152

Warning: Illegal string offset 'pm_editfolders' in ..../includes/class_core.php(4715) : eval()'d code on line 153

Warning: Illegal string offset 'substhreads_editfolders' in ..../includes/class_core.php(4715) : eval()'d code on line 169

Warning: Illegal string offset 'profile' in ..../includes/class_core.php(4715) : eval()'d code on line 180

Warning: Illegal string offset 'avatar' in ..../includes/class_core.php(4715) : eval()'d code on line 190

Warning: Illegal string offset 'signature' in ..../includes/class_core.php(4715) : eval()'d code on line 197

Warning: Illegal string offset 'privacy' in ..../includes/class_core.php(4715) : eval()'d code on line 204

Warning: Illegal string offset 'password' in ..../includes/class_core.php(4715) : eval()'d code on line 216

Warning: Illegal string offset 'options' in ..../includes/class_core.php(4715) : eval()'d code on line 217

Warning: Illegal string offset 'connections' in ..../includes/class_core.php(4715) : eval()'d code on line 220

Warning: Illegal string offset 'ignorelist' in ..../includes/class_core.php(4715) : eval()'d code on line 232

Warning: Illegal string offset 'paid_subscriptions' in ..../includes/class_core.php(4715) : eval()'d code on line 235

Warning: Illegal string offset 'buddylist' in ..../includes/class_core.php(4715) : eval()'d code on line 247

Warning: Illegal string offset 'event_reminders' in ..../includes/class_core.php(4715) : eval()'d code on line 252

Warning: Illegal string offset 'attachments' in ..../includes/class_core.php(4715) : eval()'d code on line 262

Warning: Illegal string offset 'deleteditems' in ..../includes/class_core.php(4715) : eval()'d code on line 276

Warning: Illegal string offset 'moderateditems' in ..../includes/class_core.php(4715) : eval()'d code on line 314

Warning: Illegal string offset 'newitems' in ..../includes/class_core.php(4715) : eval()'d code on line 367

even on users profile.

Do you know how I can fix that?

TheAdminMarket
07-05-2015, 04:08 AM
Im getting all these errors:

even on users profile.

Do you know how I can fix that?

Most probably you're using vB 4.2.3. If you see the details for this mod it says version: 4.2.2.
I'm working to find the reason why these warnings appear in version 4.2.3 and fix them.

PS: Are you getting these warning in places other than usercp? Because for me they appear only in usercp. I mean all the pages that belongs to usercp.

badstraw
07-05-2015, 05:20 AM
thanks for your reply, actually im using vBulletin 4.2.2, this warning only appears on usercp :Warning: Illegal string offset 'userid' in ..../includes/class_core.php(4715) : eval()'d code on line 42 and the previous error messages appear when I click on publish your photo.

What am I doing wrong?

badstraw
07-05-2015, 05:31 AM
Another thing is that I can't see how to rate my own photos.. I already changed the permissions..

TheAdminMarket
07-05-2015, 05:39 AM
Another thing is that I can't see how to rate my own photos.. I already changed the permissions..
You can't rate your own photos.
PS: I've fixed the bug and I'm attaching it here in case that you're in rush.

TheAdminMarket
07-05-2015, 05:47 AM
If it's so important to be able to rate your photos, you must edit photorate.php.

From lines: 80, 85, 91, 94 remove:

AND userid<>$userid

but pay attention to have a space between the left conditions.

badstraw
07-05-2015, 05:53 AM
great!!!! im no longer getting all the error messages if I try to upload a photo, but if I click on any user Im still getting this error:

Warning: Illegal string offset 'userid' in ..../includes/class_core.php(4715) : eval()'d code on line 42

thanks for the help. :)

TheAdminMarket
07-05-2015, 05:59 AM
Version 1.0.1 released to be compatible with vB4.2.3

To upgrade:

Download latest release
Upload photorate_usercp.php
Import (optional) product_photorate.xml to update version number

TheAdminMarket
07-05-2015, 06:02 AM
great!!!! im no longer getting all the error messages if I try to upload a photo, but if I click on any user Im still getting this error:

Warning: Illegal string offset 'userid' in ..../includes/class_core.php(4715) : eval()'d code on line 42

thanks for the help. :)

Do you mean links that point to user profile?? Can you try to add at the top of config.php (includes/config.php), just below the first line <?php

define('SKIP_ALL_ERRORS', true);

badstraw
07-05-2015, 06:18 AM
exactly, if I click on the username that sends me to the user profile I get the error message on top, now It doesn't show any error after I added that line of code.

Another thing, If you allow me I'd like to help you to translate your mod to spanish. What file do I need to modify?

edit: How do I access the "photos waiting approval" menu?

thanks man, this mod is awesome!

TheAdminMarket
07-05-2015, 06:40 AM
exactly, if I click on the username that sends me to the user profile I get the error message on top, now It doesn't show any error after I added that line of code.

Another thing, If you allow me I'd like to help you to translate your mod to spanish. What file do I need to modify?

edit: How do I access the "photos waiting approval" menu?

thanks man, this mod is awesome!

1.- Believe it or not, I never translated any mod even in Greek. I believe that you must go to:
admincp-> Language & Phrases-> Download/Upload Language and then Download the Product: Photorate

2.- Click on Mod link at the bottom of page (ModCP).

badstraw
07-05-2015, 07:05 AM
thanks , once I download the product : rate my photo , I would need to import the XML file, correct? but it gives me an invalid file message if I try to import it... weird.

Another thing, If I go to the "photos waiting approval" menu I get a blank page that says:

404
Not Found
The resource requested could not be found on this server!

I already CMOD 777 the directories ratemyphoto/photos and ratemyphoto/photos/thumbs

TheAdminMarket
07-05-2015, 07:46 AM
404
Not Found
The resource requested could not be found on this server!

I already CMOD 777 the directories ratemyphoto/photos and ratemyphoto/photos/thumbs

When this happen? When you click "Update Photo Status" or when you click "Edit"?
......or when you click the menu on the lefy? If this is the case, maybe you've renamed the modcp directory?

badstraw
07-05-2015, 09:32 AM
Thanks, I've been playing with the mod and I love it!!!

When I click on the approve photos button , located below " rate photos " is when I get the 404 not found error.

I renamed the admincp folder, but modcp still has the same name.

badstraw
07-05-2015, 09:08 PM
humm, I was checking the folders and I indeed renamed modcp to a different name.. But even if I rename the folder back to modcp and modify the config.php now all I get is a blank screen when I click on the "approve photos" button, do you know how can I make it work?

I appreciate your help a lot!

TheAdminMarket
07-06-2015, 03:20 AM
humm, I was checking the folders and I indeed renamed modcp to a different name.. But even if I rename the folder back to modcp and modify the config.php now all I get is a blank screen when I click on the "approve photos" button, do you know how can I make it work?

I appreciate your help a lot!

I'm out of home to be able to test it right now, but be sure that I've tested it before release. Most probably should be some cache. Have you cleared your browser's cachec and also the system cache from admincp?

badstraw
07-06-2015, 04:39 AM
I already cleared the browser's cache and the system cache from the admincp but unfortunately Im still having a blank page when I click on "approve photos"..

thanks for the help :)

TheAdminMarket
07-06-2015, 05:12 AM
I already cleared the browser's cache and the system cache from the admincp but unfortunately Im still having a blank page when I click on "approve photos"..

thanks for the help :)

Please rename the file: modcp/ratemyphoto.php to photorate.php and should works. I forgot that before release I renamed the php files from ratemyphoto to photorate.

RichieBoy67
07-06-2015, 05:41 AM
Nice work again Nick! I am not sure if I can use this or not on my particular site but I still think it's awesome!

TheAdminMarket
07-06-2015, 05:53 AM
Nice work again Nick! I am not sure if I can use this or not on my particular site but I still think it's awesome!

Simple and Funny for users to enjoy some of their free time in communities.

Today I'll release a Media Gallery (Photos, Audio, YouTUBE). Simple one, but I love it. I was looking for something like this here but I found only complicated mods.

badstraw
07-06-2015, 03:14 PM
Please rename the file: modcp/ratemyphoto.php to photorate.php and should works. I forgot that before release I renamed the php files from ratemyphoto to photorate.

Thank you Nick, now it shows the picture for approval but when I click on "update photo status" to approve it, it redirects me to the home page but it doesn't do anything.

maybe Im doing something wrong..

TheAdminMarket
07-06-2015, 03:36 PM
Thank you Nick, now it shows the picture for approval but when I click on "update photo status" to approve it, it redirects me to the home page but it doesn't do anything.

maybe Im doing something wrong..

Upload the attached file to modcp/
Be careful to not upload at the forum directory as there is another file with the same name therel.

badstraw
07-06-2015, 09:14 PM
great!! I think it's working now, but is there a way to delete the photos manually?

I created a test user, I uploaded a photo with that user but now that it's approved I can't delete it because the user who uploaded the pic has been deleted from the database.

thanks for your help Nick, I really love the mod.

badstraw
07-07-2015, 08:00 PM
I deleted the photo and the mod works great, the only thing that I have to say about the mod is that I would add a delete button for admins, so If a photo gets approved by mistake you can delete it easily, other than than its awesome!

Manoel J?nior
07-08-2015, 12:46 AM
I Love this mod NickTheGreek!

But i wait for version 4.2.3 and one question:

Rate my Photo is compatible with vBGallery by Scandal?

Thanks

TheAdminMarket
07-08-2015, 02:58 AM
I Love this mod NickTheGreek!

But i wait for version 4.2.3 and one question:

Rate my Photo is compatible with vBGallery by Scandal?

Thanks

Thank you. Version 1.0.1 is compatible with vB 4.2.3
Don't know Scandal's vBGallery. I'll release my own Media Gallery AddOn today or tomorrow.

Manoel J?nior
07-08-2015, 12:25 PM
Thanks friend, I'll see how it will be their version of the image gallery.

Thanks

TheAdminMarket
07-08-2015, 01:41 PM
I deleted the photo and the mod works great, the only thing that I have to say about the mod is that I would add a delete button for admins, so If a photo gets approved by mistake you can delete it easily, other than than its awesome!

Usally I've this feature in most of my Mods. Is one View page and is visible only to those with permissions "Can Moderate". Maybe I've forgot to add it in this mod. I'll check it and if is missing I'll release an update tomorrow.

badstraw
07-09-2015, 01:39 AM
Usally I've this feature in most of my Mods. Is one View page and is visible only to those with permissions "Can Moderate". Maybe I've forgot to add it in this mod. I'll check it and if is missing I'll release an update tomorrow.

Thanks Nick that would be great!! Let me ask you something..

Is there a way to prevent visitors to vote twice?

TheAdminMarket
07-09-2015, 04:36 AM
Thanks Nick that would be great!! Let me ask you something..

Is there a way to prevent visitors to vote twice?

Do you allow Guest to Vote? That's wrong. It's like allowing guest to post in forums. You'll mess everything. Even if technically guests, depending on your settings can do anything that you'll allow them to do, the normal settings is to allow only read/view permissions.

So, no, there is no such possibility.

badstraw
07-10-2015, 01:58 AM
I know.. But it would be really interesting if the visitors vote for the pictures, because that would make the traffic grow in my opinion .

So it's unsafe to allow the visitors to vote? Not to upload pictures because that wouldn't make any sense at all, just to vote.

TheAdminMarket
07-10-2015, 06:03 AM
I know.. But it would be really interesting if the visitors vote for the pictures, because that would make the traffic grow in my opinion .

So it's unsafe to allow the visitors to vote? Not to upload pictures because that wouldn't make any sense at all, just to vote.

To make vote available to guests needs code change to restrict double votes by IP and not by userid, and is not an easy job.

Maybe guest voting increases a bit the traffic, but user registrations is what counts for a community.

badstraw
07-17-2015, 01:16 PM
Hey nick I've been using the mod and I like it a lot!! Is there a possibility that you can add a delete button for already posted photos?

Thanks man, this thing is awesome !

TheAdminMarket
07-18-2015, 06:22 AM
Rate My Photo ver. 1.0.2 released with 2 new features:

Image Watermark
Moderators can delete photos in frontend To upgrade:

Download and Unzip RateMyPhoros_1_0_2.zip
Upload photorate.php and photorate_usercp.php to your installation
Import product-ratemyphoto.xml
If you plan to use photo watermark goto admincp-> Rate My Photo-> General Options and set the last 4 settings.

badstraw
07-18-2015, 08:01 AM
thanks Nick the update rocks, it works wonders..

I was testing the delete button and it works perfectly, but wouldn't be easier to add the delete button for already approved and rated photos? Im just saying because the only way you can delete any photo now as an admin is before you vote for them, once you vote there's no going back. It would be great to have better control. :)

TheAdminMarket
07-18-2015, 08:08 AM
..... before you vote for them, once you vote there's no going back. It would be great to have better control. :)

I know this that's why I had doubts if it was good to add it or not. Finally I decided to add it just to have the PHP code ready, and when I'll find some free time I'll move the button in another place. The problem is to find a place which is always available with or without vote.

badstraw
07-18-2015, 08:16 AM
great, thanks for the explanation, Ill wait for the update.. !

Just another quick question.. Is there a possibility to know how many participants have uploaded their photos?

badstraw
07-18-2015, 07:13 PM
I just want to let you know that now when you click to delete your own photo it doesn't work, the button doesn't do anything. But if you click on the delete button as an admin it works.

And Is there a possibility to know how many participants have uploaded their photos?

TheAdminMarket
07-26-2015, 07:25 AM
RateMyPhoto ver. 1.0.3 released to fix a PHP warning which messes the User Profile screen. Please note that this bug appears only to those using vB 4.2.3

To upgrade download ver.1.0.3, unzip and import product-ratemyphoto.xml

badstraw
07-26-2015, 09:24 PM
Hey Nick I hope you can help me pelase..

I have 18 photos awaiting approval, When I click update photo status I get this error message :

Fatal error: Class 'DBTECH_GALLERY' not found in public_html/dbtech/gallery/hooks/navigation_tab_complete.php on line 33

When I uploaded just a couple of pictures to test the mod it was working great, but it seems that now that the users uploaded more that a few photos it doesn't work. I would really appreciate your help man i really need it.

I tried to disable dbtech gallery but that doesn't make any difference, I would really like to make it work..

badstraw
07-26-2015, 10:40 PM
I commented these lines on /dbtech/gallery/hooks/navigation_tab_complete.php :



// $galfile = DBTECH_GALLERY::fetch_file_path(0, 'plain', $gal);

// foreach ((array)DBTECH_GALLERY::$instances as $instance)
{
if ($instance['navbar'] == 1)
{
$gallink = $galfile . '?gal=' . $instance['shortname'];
$tabname = 'dbtech_gallery_' . $instance['shortname'];
$submenu = array();

if (DBTECH_GALLERY::fetch_gallery_perms('view', $instance) || DBTECH_GALLERY::fetch_gallery_perms('admin', $instance))
{
$submenu['view'] = array(
'root' => $tabname,
'type' => 'link',
'url' => $gallink . '&amp;do=main',
'title' => $vbphrase['dbtech_gallery_nav_main'],
'name' => 'dbtech_gallery_view',
'children' => 0
);

Now the error code is gone but nothing happens when I click on update photo status... maybe a bug?



I would really appreciate your help..

RichieBoy67
10-27-2015, 03:22 AM
I commented these lines on /dbtech/gallery/hooks/navigation_tab_complete.php :



// $galfile = DBTECH_GALLERY::fetch_file_path(0, 'plain', $gal);

// foreach ((array)DBTECH_GALLERY::$instances as $instance)
{
if ($instance['navbar'] == 1)
{
$gallink = $galfile . '?gal=' . $instance['shortname'];
$tabname = 'dbtech_gallery_' . $instance['shortname'];
$submenu = array();

if (DBTECH_GALLERY::fetch_gallery_perms('view', $instance) || DBTECH_GALLERY::fetch_gallery_perms('admin', $instance))
{
$submenu['view'] = array(
'root' => $tabname,
'type' => 'link',
'url' => $gallink . '&amp;do=main',
'title' => $vbphrase['dbtech_gallery_nav_main'],
'name' => 'dbtech_gallery_view',
'children' => 0
);Now the error code is gone but nothing happens when I click on update photo status... maybe a bug?



I would really appreciate your help..

Think you are posting in the wrong thread,

RichieBoy67
10-27-2015, 03:24 AM
Nick,

I think it would be a good idea to bold and align the nav links(post photo and my photos) to the left. Will be easier to see.

RKLounge
11-07-2015, 11:07 PM
Anyone know why this is happening?

On the Rate Photo's page the PNG image you're rating is wider than the sidebar displaying the filter.

See IMG for example. How do i fix this? I can size the max width of the photo to 600 to make it fit, but then this downscales the image and makes it look poor quality and hard to see. Is there a way the image can open like the other thumbnails do in the other pages?

https://vborg.vbsupport.ru/external/2015/11/48.png

RichieBoy67
11-13-2015, 06:06 AM
Anyone know why this is happening?

On the Rate Photo's page the PNG image you're rating is wider than the sidebar displaying the filter.

See IMG for example. How do i fix this? I can size the max width of the photo to 600 to make it fit, but then this downscales the image and makes it look poor quality and hard to see. Is there a way the image can open like the other thumbnails do in the other pages?

https://vborg.vbsupport.ru/external/2015/11/48.png
What was the size of the image to start with?

TheAdminMarket
06-03-2016, 04:53 AM
From today Support will be available as paid service only in my site.
Bug fixes will be still available here.

Regards
Christos