Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #161 (permalink)  
Old 04-25-2008, 03:29 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,071
Thanks: 53
Thanked 25 Times in 23 Posts
It was cent (http://forums.pligg.com/members/cent.html). He doesn´t seem to be online very often.
Reply With Quote
  #162 (permalink)  
Old 04-26-2008, 06:22 PM
Casual Pligger
Pligg Version: 9.9
 
Join Date: Apr 2008
Posts: 43
Thanks: 0
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by tbones View Post
It was cent (http://forums.pligg.com/members/cent.html). He doesn´t seem to be online very often.

Well I've found a major bug with this in v9.9. Take a look at line 127:

Code:
$storyTitle = htmlentities(stripslashes($main_smarty->get_template_vars(title_short)));
$storyTitle is never set. In fact the $main_smarty variable doesn't return anything. There must have been some core change in v9.9 that hasn't been accounted for. So even though the basic functionality of the image upload is working, certain things like titles are never set.

This means I can't figure out how to access the smarty variables so I can't change the image link to the story URL. Anybody have any ideas?
Reply With Quote
  #163 (permalink)  
Old 05-17-2008, 12:53 PM
Banned
Pligg Version: 9.9.5
 
Join Date: Oct 2007
Location: Canada
Posts: 914
Thanks: 169
Thanked 17 Times in 17 Posts
Guys I'm kind of in the same boat! I got the image to sit nice, a good size but for some reason the image isn't uploading to the proper folder! The thumbnail is working perfect so I'm thinking I can do 2 things!

Blog Engage - Improving your websites msn search results!

1- can we make the image link to the story?

2- can we make the image not be a link at all?

Thanks in advance

Last edited by bbrian017; 05-17-2008 at 01:23 PM..
Reply With Quote
  #164 (permalink)  
Old 05-17-2008, 02:27 PM
Banned
Pligg Version: 9.9.5
 
Join Date: Oct 2007
Location: Canada
Posts: 914
Thanks: 169
Thanked 17 Times in 17 Posts
ok I found out something really important that could help someone trouble shoot this with me!

The images are in fact uploading. But they are going to the root image folder on my server for some reason and not the image folder inside the blogengage folder.

see YsFi is my main server root and blogengage is hosted in a little folder on that server.

The images are being uploaded too http://www.yoursourceforinfo.com/images/

and not the http://www.blogengage.com/images/

How can I fix this? I was thinking there's 2 ways. I can change the path to the images (which I don't know how) or I can change the upload path (which I don't knowhow)

Anyone have any advice on this or at least what line or file I would have to edit?

EXAMPLE:

Submission, Blog Engage - Search the internet for money!

Image location: http://www.yoursourceforinfo.com/images/img_7154.jpg

Thumbnail links leads to, http://www.blogengage.com/images/img_7154.jpg

EDIT: This mod is now working thanks

Last edited by bbrian017; 05-17-2008 at 03:18 PM..
Reply With Quote
  #165 (permalink)  
Old 05-24-2008, 05:51 PM
cmstheme's Avatar
Pligg Donor
Pligg Version: 9.9
Pligg Template: Squaretle
 
Join Date: Jan 2007
Posts: 248
Thanks: 28
Thanked 40 Times in 30 Posts
@bbrian017
Please make sure you are using the new version 1.03 I think. It's working in 9.9.0.

You can try editing image_upload_settings.php, find
PHP Code:
define('module_imageupload_basedir'$_SERVER['DOCUMENT_ROOT'].my_pligg_base."/"); 
and replace with
PHP Code:
define('module_imageupload_basedir'my_pligg_base."/"); 
Not sure if it works in your end but it's OK in my local test.
__________________
Join our Pligg Template Club now while prices are still cheap!
Reply With Quote
  #166 (permalink)  
Old 05-24-2008, 06:44 PM
Banned
Pligg Version: 9.9.5
 
Join Date: Oct 2007
Location: Canada
Posts: 914
Thanks: 169
Thanked 17 Times in 17 Posts
That may have worked as well!

I got it working like i mentioned it was uploading the image to my root server image folder and not the blogengage image folder.. understand?

It's working now, Blog Engage Blog Traffic / Published News
Reply With Quote
  #167 (permalink)  
Old 06-11-2008, 01:27 PM
New Pligger
Pligg Version: 9.9
Pligg Template: yget
 
Join Date: May 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
hi guys, i've just installed the image upload module, which seems to work fine. the image is being placed in the correct folder and the full-size-image does work.

but the thumbnail is just replaced by the red cross as he isn't finding the thumb... anyone knows how to fix that?
Reply With Quote
  #168 (permalink)  
Old 07-22-2008, 06:13 PM
joehunk's Avatar
Casual Pligger
 
Join Date: Oct 2007
Posts: 99
Thanks: 14
Thanked 10 Times in 8 Posts
sorry guys, mine is perfectly working. sweet. i like this mode. it was implemented with a little hacked on the code. i used lightbox to enlarge image and point the thumbnail in the story url. thanks cents for the great mode.
__________________
-------------------------------
click to my mini-Pligg Site
Reply With Quote
  #169 (permalink)  
Old 07-22-2008, 06:36 PM
Casual Pligger
Pligg Version: 9.9
 
Join Date: Apr 2008
Posts: 43
Thanks: 0
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by joehunk View Post
sorry guys, mine is perfectly working. sweet. i like this mode. it was implemented with a little hacked on the code. i used lightbox to enlarge image and point the thumbnail in the story url. thanks cents for the great mode.
Would you mind responding to this thread?
http://forums.pligg.com/module-suppo...ink-story.html

I'm trying to do the same thing, but I can't get it to work. Also would like to know what version of Pligg you're using - it seems that the image upload module has a bug with v9.9 and can't access the story data.
Reply With Quote
  #170 (permalink)  
Old 07-22-2008, 07:54 PM
catchpen's Avatar
Pligg Donor
 
Join Date: Jan 2008
Posts: 210
Thanks: 30
Thanked 18 Times in 13 Posts
Quote:
Originally Posted by swese44 View Post
Would you mind responding to this thread?
http://forums.pligg.com/module-suppo...ink-story.html

I'm trying to do the same thing, but I can't get it to work. Also would like to know what version of Pligg you're using - it seems that the image upload module has a bug with v9.9 and can't access the story data.
Pligg Templates - Home has a solution but it's not free. Socialcmsbuzz has a working version for 9.9 but no link to story

Last edited by catchpen; 07-22-2008 at 08:02 PM..
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
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] Image Upload Module (v0.93) -- Please test cent Modification Tutorials 48 05-16-2008 08:08 PM
[MOD] File Upload Module -- seeking requests for features cent Modification Tutorials 3 08-11-2007 04:39 AM


Search Engine Friendly URLs by vBSEO 3.2.0