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-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.


All times are GMT. The time now is 07:24 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.01882 seconds
  • Memory Usage 1,741KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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