vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - Rate my Photo (HotOrNot Clone) (https://vborg.vbsupport.ru/showthread.php?t=319323)

TheAdminMarket 07-02-2015 09:00 PM

Rate my Photo (HotOrNot Clone)
 
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

Quote:

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

Quote:

Originally Posted by mansonklan (Post 2549277)
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:
Code:

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

Quote:

Originally Posted by badstraw (Post 2549368)
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

Quote:

Originally Posted by badstraw (Post 2549374)
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:
PHP Code:

 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:
  1. Download latest release
  2. Upload photorate_usercp.php
  3. Import (optional) product_photorate.xml to update version number

TheAdminMarket 07-05-2015 06:02 AM

Quote:

Originally Posted by badstraw (Post 2549378)
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
PHP Code:

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

Quote:

Originally Posted by badstraw (Post 2549382)
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

Quote:

Originally Posted by badstraw (Post 2549386)
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

Quote:

Originally Posted by badstraw (Post 2549437)
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

Quote:

Originally Posted by badstraw (Post 2549449)
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

Quote:

Originally Posted by RichieBoy67 (Post 2549452)
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

Quote:

Originally Posted by NickTheGreek (Post 2549450)
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

Quote:

Originally Posted by badstraw (Post 2549493)
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

Quote:

Originally Posted by Manoel J?nior (Post 2549603)
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

Quote:

Originally Posted by badstraw (Post 2549595)
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

Quote:

Originally Posted by NickTheGreek (Post 2549663)
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

Quote:

Originally Posted by badstraw (Post 2549732)
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

Quote:

Originally Posted by badstraw (Post 2549812)
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:
  1. Image Watermark
  2. Moderators can delete photos in frontend
To upgrade:
  1. Download and Unzip RateMyPhoros_1_0_2.zip
  2. Upload photorate.php and photorate_usercp.php to your installation
  3. Import product-ratemyphoto.xml
  4. If you plan to use photo watermark goto admincp-> Rate My Photo-> General Options and set the last 4 settings.


All times are GMT. The time now is 03:09 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.01438 seconds
  • Memory Usage 1,849KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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