PhotoPlog

PhotoPlog (http://www.photoplog.com/forum/index.php)
-   Hacks & Modifications (http://www.photoplog.com/forum/forumdisplay.php?f=15)
-   -   PM notification about new pictures (http://www.photoplog.com/forum/showthread.php?t=281)

Sir_Yaro 05-28-2006 10:39 AM

PM notification about new pictures
 
to add pm notification:
in forumhome/photoplog/upload.php

below:
Code:

                        else
                        {
                                $photoplog_large_thumb = photoplog_create_thumbs(
                                        $photoplog_file_check, $photoplog_directory_name, $photoplog_file_name,
                                        $vbulletin->options['photoplog_large_size'],
                                        $vbulletin->options['photoplog_jpg_quality'], 'large'
                                );
                                $photoplog_medium_thumb = photoplog_create_thumbs(
                                        $photoplog_file_check, $photoplog_directory_name, $photoplog_file_name,
                                        $vbulletin->options['photoplog_medium_size'],
                                        $vbulletin->options['photoplog_jpg_quality'], 'medium'
                                );
                                $photoplog_small_thumb = photoplog_create_thumbs(
                                        $photoplog_file_check, $photoplog_directory_name, $photoplog_file_name,
                                        $vbulletin->options['photoplog_small_size'],
                                        $vbulletin->options['photoplog_jpg_quality'], 'small'
                                );

add:
Code:

  // Admin NOTE: CHANGE THE USER NAME Sir_Yaro TO YOUR OWN USER NAME !!!
  $botpermissions['adminpermissions'] = 2;
  $pmdm =& datamanager_init('PM', $vbulletin, ERRTYPE_ARRAY);
  $pmdm->set('fromuserid', 1); //change to admin ID number
  $pmdm->set('fromusername', 'Sir_Yaro'); //change to admin name
  $pmdm->set('title', 'New picture has beed uploaded');
  $pmdm->set('message', "Hello\nNew picture has beed uploaded :)");
  $pmdm->set_recipients('Sir_Yaro', $botpermissions); //change to admin name
  $pmdm->set('dateline', TIMENOW);
  $pmdm->save();


Morgan 05-28-2006 11:20 PM

Thanks for the contribution. :)

viper357 05-13-2007 10:19 AM

nice, thanks for your time to do this :)

7lanet 02-17-2008 06:27 AM

nice

thanks

linhnd 07-25-2008 11:35 AM

Thanks for it.

ArnyVee 06-08-2009 01:33 AM

Great job...thank you for this! :D


All times are GMT. The time now is 10:00 PM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.