Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-27-2008, 08:54 PM
New Pligger
 
Join Date: Jul 2007
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Is the Image Upload v1.01 compatible with the Pligg 9.9.5?

I have posted this question here several days.:
[MOD] Image Upload Module (v1.0) -- Now Available
So I start a new thread here now again.

I met a problem while installing the module Image Upload v1.01 on my pligg 9.9.5. I didn't find the following code section in /templates/(your template)/submit_step_3.tpl according to the installation instruction.
Quote:
$linkres->store();
tags_insert_string($linkres->id, $dblang, $linkres->tags);
Is the Image Upload Module v1.01 compatible with the Pligg 9.9.5?

Thanks!

OnlyBlue
Reply With Quote
  #2 (permalink)  
Old 09-28-2008, 12:41 AM
Casual Pligger
Pligg Version: 9.8
Pligg Template: yellow
 
Join Date: Dec 2007
Posts: 40
Thanks: 0
Thanked 1 Time in 1 Post
you can get that part of the code in submit.php which is in root directory.
code has been moved from submit_step_3.tpl to submit.php.hope this will solve
Reply With Quote
  #3 (permalink)  
Old 09-28-2008, 06:36 AM
New Pligger
 
Join Date: Jul 2007
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by valipe View Post
you can get that part of the code in submit.php which is in root directory.
code has been moved from submit_step_3.tpl to submit.php.hope this will solve
Thanks, valipe

I found that part of the code in submit.php and added the below after those 2 lines:

Quote:
// START: Image Upload Module
check_actions('image_upload_process');
// END: Image Upload Module
I met sevaral warnings from XDebug as following while I try to upload an image.

Quote:
Warning: Missing argument 2 for check_actions(), called in D:\xampp\htdocs\pligg995\submit.php on line 277 and defined in D:\xampp\htdocs\pligg995\modules\modules_libs.php on line 87
Quote:
Warning: move_uploaded_file(D:/xampp/htdocs/pligg995/images/img_16.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in D:\xampp\htdocs\pligg995\modules\image_upload\imag e_upload_main.php on line 476
Quote:
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'D:\xampp\tmp\php344.tmp' to 'D:/xampp/htdocs/pligg995/images/img_16.jpg' in D:\xampp\htdocs\pligg995\modules\image_upload\imag e_upload_main.php on line 476
I found some posts in the forum, but no help.

Could somebody pleae tell me how to solve these problems?

Best regards!

OnlyBlue
Reply With Quote
  #4 (permalink)  
Old 09-28-2008, 10:00 AM
Casual Pligger
Pligg Version: 9.8
Pligg Template: yellow
 
Join Date: Dec 2007
Posts: 40
Thanks: 0
Thanked 1 Time in 1 Post
change this function in modules_libs.php

function check_actions($location, $vars="")
{
global $module_actions;
$vars['location'] = $location;
if($module_actions){
foreach ( $module_actions as $k => $v ) {
if($k == $location){
foreach ( $v as $kk => $vv ) {
call_user_func($kk, $vars);
}
}
}
}
}

this file is located in modules folder.this might help also did you create images folder and chmoded to 777
Reply With Quote
  #5 (permalink)  
Old 09-28-2008, 10:04 AM
Casual Pligger
Pligg Version: 9.8
Pligg Template: yellow
 
Join Date: Dec 2007
Posts: 40
Thanks: 0
Thanked 1 Time in 1 Post
by looking at the installation path .you might have installed in a subdirectory which might be the reason .try to install in root directory instead of pligg995 directory
Reply With Quote
  #6 (permalink)  
Old 09-28-2008, 08:17 PM
New Pligger
 
Join Date: Sep 2008
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Hi, I'm getting error after installing the image upload modules version 0.4 and making the required changes

Fatal error: Call to undefined method stdClass::get_template_vars() in /home/.toonies/lolicanlol/lolicanlol.com/modules/image_upload/image_upload_main.php on line 185

Now my site won't even load www.lolicanlol.com

Please kindly help. Thanks
Reply With Quote
  #7 (permalink)  
Old 09-28-2008, 08:19 PM
New Pligger
 
Join Date: Jul 2007
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Hi, valipe
Thanks for your help!

I changed the function check_actions in modules_libs.php and created an directory images. Then these warnings disappeared. But there is also a Fatal error:

Quote:
Fatal error: Call to undefined method stdClass::get_template_vars() in D:\xampp\htdocs\pligg995\modules\image_upload\imag e_upload_main.php on line 128
I searched the forum and find that another preson also met the same problem.
[MOD] Image Upload Module (v0.93) -- Please test

But I didn't find the answer.

Could you please tell me how to do?

In addition, I think that installing the pligg in a subdirectory isn't a problem.

With best regards!

OnlyBlue
Reply With Quote
  #8 (permalink)  
Old 10-07-2008, 07:50 PM
New Pligger
 
Join Date: Jul 2007
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
The answer is NO!
But the Image Upload v1.03 is compatible with the Pligg 9.9.5.

OnlyBlue
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
::How to:: Image Upload with Pligg kbeeveer46 General Help 16 11-25-2008 05:35 AM
Help with Image Upload Mod in Pligg 9.8 firelake Modification Tutorials 5 03-31-2008 05:12 PM
Image upload with pligg 9.9 Darksat General Help 2 01-15-2008 09:04 AM
Mixed files equal to all wrong with pligg and image upload ( for pligg developers ) Peter Installation and Upgrade Help 0 11-17-2007 03:55 PM


Search Engine Friendly URLs by vBSEO 3.2.0