Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #41 (permalink)  
Old 06-30-2007, 04:05 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 169
Thanks: 56
Thanked 5 Times in 5 Posts
I am not using cent's smarty variables either. Basically I cannot use his MOD to display or edit images, since I am on a shared host and have some domain mapping complications. So I only use his MOD for upload.

I've msgd him a couple of times. Perhaps he will fix this in the next release...

I just directly reference the image in my code. Here is an example of how I display the image in a story for summary form, like on the index page -

PHP Code:
<img src="{$my_base_url}/images/img_{$link_id}.jpg" style="width:100px; height:100px; float:left; padding-right:10px;"

Last edited by aaronpais; 06-30-2007 at 04:09 PM..
Reply With Quote
  #42 (permalink)  
Old 08-07-2007, 10:15 PM
CMY CMY is offline
New Pligger
 
Join Date: Aug 2007
Location: Hermosa Beach, CA
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to CMY
Bringing this one back up..

I installed 9.7 the other day and I'm about ready to bang my head on my desk. For whatever reason, I can not find the line:

<form action="submit.php" method="post" name="thisform" id="thisform">

That has to be changed to:

<form action="submit.php" method="post" name="thisform" id="thisform" enctype="multipart/form-data"> in /templates/(your template)/submit_step_2.tpl

Everything else appears to be in order, but I'm still stuck on step 1. Any ideas? The closest appears to be:

<form action="{$URL_submit}" method="post" name="thisform" id="thisform">

But I'm not going to change that without consulting someone on what it does. Seems that changing a URL_submit might be a bad idea.

Thanks,
Chris
Reply With Quote
  #43 (permalink)  
Old 08-08-2007, 05:15 PM
cent's Avatar
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 183
Thanks: 24
Thanked 65 Times in 26 Posts
Hi Chris,

You found the right line...

PHP Code:
<form action="{$URL_submit}" method="post" name="thisform" id="thisform"
should be changed to:

PHP Code:
<form action="{$URL_submit}" method="post" name="thisform" id="thisform" enctype="multipart/form-data"
I believe that "submit.php" might have been hardcoded either by accident or it was hardcoded in prior versions. Keep what you have and just add the enctype part in there and you should be fine.

Best,
Cent


Quote:
Originally Posted by CMY View Post
Bringing this one back up..

I installed 9.7 the other day and I'm about ready to bang my head on my desk. For whatever reason, I can not find the line:

<form action="submit.php" method="post" name="thisform" id="thisform">

That has to be changed to:

<form action="submit.php" method="post" name="thisform" id="thisform" enctype="multipart/form-data"> in /templates/(your template)/submit_step_2.tpl

Everything else appears to be in order, but I'm still stuck on step 1. Any ideas? The closest appears to be:

<form action="{$URL_submit}" method="post" name="thisform" id="thisform">

But I'm not going to change that without consulting someone on what it does. Seems that changing a URL_submit might be a bad idea.

Thanks,
Chris
__________________
All of my modules are developed for free to help support the Pligg community. If you use or feel my modules were helpful to your site and want to thank me, please support the Pligg development team by donating.

Modules: Welcome Private Message (v0.1), Welcome Email (v0.1), Thickbox Module (v0.3), Image Upload (v1.0) & MP3 Upload Module (v0.9)
Reply With Quote
  #44 (permalink)  
Old 08-10-2007, 09:11 PM
New Pligger
 
Join Date: Aug 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Image cropped incorrectly

Hi,

I'm using the latest of ImageUpload modules (v1.0). The image was uploaded successfully but now I got two thumbnails, one underneath of the "Discuss..." and the other in the right hand corner. Is there anyway to get rid of the one in the right hand?

Thanks

-S

Last edited by LangTuSJ; 08-10-2007 at 11:32 PM..
Reply With Quote
  #45 (permalink)  
Old 08-13-2007, 01:07 PM
CMY CMY is offline
New Pligger
 
Join Date: Aug 2007
Location: Hermosa Beach, CA
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to CMY
Quote:
Originally Posted by cent View Post
Hi Chris,

You found the right line...

I believe that "submit.php" might have been hardcoded either by accident or it was hardcoded in prior versions. Keep what you have and just add the enctype part in there and you should be fine.

Best,
Cent
Thanks Cent.. I'm glad I wasn't completely off my rocker with this!
Reply With Quote
  #46 (permalink)  
Old 01-08-2008, 06:48 AM
New Pligger
Pligg Version: not downloaded yet
Pligg Template: general
 
Join Date: Nov 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,
I have added a button in submit a story page to add user defined thumbnail image. Its is working well.
But now i want to set default image if the user does not provide the thumbnail image for its story.
Is it possible?
Reply With Quote
  #47 (permalink)  
Old 05-09-2008, 05:04 AM
New Pligger
 
Join Date: Aug 2007
Location: Delhi
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
geting fatal error

I am getting below error in image upload module Vs 1.01
Fatal error: Call to undefined method stdClass::get_template_vars() in /home/purep2/public_html/talkdelhi/modules/image_upload/image_upload_main.php on line 128

Please help me out.
Reply With Quote
  #48 (permalink)  
Old 05-13-2008, 11:55 AM
New Pligger
Pligg Version: 9.9
Pligg Template: Custom
 
Join Date: Dec 2007
Posts: 21
Thanks: 4
Thanked 0 Times in 0 Posts
I'm about to cry. I have the 9.9 version of pligg installed it comes with the image upload module in the package so you just have to acitvate it, but activted it and updated the files as the module information says, all but a couple that pligg 9.9 has changed from the previous versions.

had to disable the module because if it is enabled I can't see my web page and now there is a error below each story saying:
Warning:

Missing argument 2 for check_actions() in /home/content/l/o/r/lordev/html/votocilina/modules/modules_libs.php on line 87 RESOLVED THIS ONE REPLACING THE OLD MODULES_LIBS.PHP WITH A NEW ONE...BUT THE IMAGE UPLOAD MODULE STILL NOT WORKING.

other that that for the people that go it working it looks awesome....

Last edited by m1gu3; 05-13-2008 at 12:31 PM.. Reason: problem solved, partially
Reply With Quote
  #49 (permalink)  
Old 05-16-2008, 08:08 PM
New Pligger
Pligg Version: 9.8
Pligg Template: default
 
Join Date: Dec 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Does the Vs 1.01 works with Pligg 9.9 ?? I activated it and tried modifying the files as per instructions to make it work but at some places the code i am supposed to change is not the same as shown in the instructions.

Need an image upload module. Pls help.
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
Image Upload Module -- Call for feature requests cent Modification Tutorials 12 11-15-2008 12:13 PM
[MOD] Image Upload Module (v1.0) -- Now Available cent Modification Tutorials 181 09-24-2008 10:43 PM
About the image upload module rockxie Module Support 3 08-05-2008 05:41 PM
Image Upload 0.4 Module ziadchatila Module Support 3 08-05-2008 04:40 PM
[MOD] MP3 Upload Module cent Modification Tutorials 32 03-02-2008 03:07 AM


Search Engine Friendly URLs by vBSEO 3.2.0