Go Back   NiceCoder Community Forums > Nicecoder Products > IndexU > v3.2
Register Projects FAQ Members List Mark Forums Read

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-03-2005, 12:32 PM
Active Member
 
Join Date: Sep 2004
Posts: 164
brickholius is on a distinguished road
Default User upload image when adding link

Any way to have the user upload an image when they are adding a link. They admin should then be able to approve the image AND link at same time. I think the current system makes it so you add a link and then after you are approved you can add a image but i need the user to do it all at the same time. Any ideas? Also, Will pay $ for such a feature.

brick

Last edited by brickholius; 03-03-2005 at 12:54 PM.
  #2 (permalink)  
Old 03-04-2005, 12:46 PM
Active Member
 
Join Date: Nov 2004
Posts: 1,828
inspireme is on a distinguished road
Default

the problem is that the image filename is taken from the listings ID number, and you dont get an ID number until the listing is accepted.

Maybe it could be done, but you would need to name the pictures differently not using the ID, then write the information to the temp_table ready for approval...
__________________
Some interesting INDEXU bits :http://www.indexu.co.uk
Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )
  #3 (permalink)  
Old 03-04-2005, 01:50 PM
Active Member
 
Join Date: Sep 2004
Posts: 164
brickholius is on a distinguished road
Default

good point. This throws a wrinkle in my plans for indexu. Do you think you could come up with a solution inspireme to this issue or anyone else? brick
  #4 (permalink)  
Old 03-06-2005, 07:58 AM
esm's Avatar
esm esm is offline
Active Member
 
Join Date: Apr 2003
Location: Atlanta GA
Posts: 3,411
esm is on a distinguished road
Default

Code:
Content visible to License Owner only.
the problem is that there needs to be a way to "link" the link listing to the image. In other words you need a unique identifier for both the link listing and the image itself. The link_id serves as that unique identifier. And the unique identifier between the two must be created simultaneously at the time the listing is being added with uploading of the image.

Kind of like creating a message here on the forum and attaching a file or image.

I see only two options. One, turn off the feature that requires link approval. this way the link is automatically added and the link_id is created for use with the image filename. the code would still need to be changed to allow for this.

Second, add another field (probably numeric) to the idx_link table that is always going to be unique. Once again the code would need to changed to use this number.

And merging the add link listing code with the upload image code looked messy...



.
__________________
esm
"The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

.
  #5 (permalink)  
Old 03-06-2005, 01:31 PM
Active Member
 
Join Date: Nov 2004
Posts: 1,828
inspireme is on a distinguished road
Default

Would this work?:
remove the need to except links, this allows people to upload images straight away, now add a hidden field to the add_form, called "suspended"=yes allowing the image to be created, uploaded, but not seen until you unsuspend?

just a though, it may cause some other problems.
__________________
Some interesting INDEXU bits :http://www.indexu.co.uk
Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )
  #6 (permalink)  
Old 03-06-2005, 02:08 PM
Active Member
 
Join Date: Aug 2002
Location: Germany
Posts: 1,186
Frank71 is on a distinguished road
Default

Never played with this feature, but why not only upload the image and save the image name as filed info.
Than use this field in image-tag ?
Problem could be double names for images, but by example you could only take images named as the domain ?

Frank
  #7 (permalink)  
Old 03-06-2005, 02:26 PM
esm's Avatar
esm esm is offline
Active Member
 
Join Date: Apr 2003
Location: Atlanta GA
Posts: 3,411
esm is on a distinguished road
Default

Code:
Content visible to License Owner only.
yep, you could do it that way. there is already a suspended field os you could just use that if you want.

you would need to decide how certain things are done. For example, would it count as a link? how would its status as a "new" link be affected? then look for all of the SQL statements using the link table and add the suspended field if it it not already there.


.
__________________
esm
"The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

.
  #8 (permalink)  
Old 03-10-2005, 06:55 PM
Active Member
 
Join Date: Sep 2004
Posts: 164
brickholius is on a distinguished road
Default

So im having a programmer make it so my users can upload an image when adding a link. The admin can view the image and link when approving the listing. From my admin setup menu i can globally select the max dimensions of the image for upload. Once approved the user can then logon to their account and go to edit links and see the link and image. Most of it is complete just waiting on a few more detail changes.

And thanks to Saintsr's add multiple links mod people can add as many links as they want with admin approval of course.



Brick
  #9 (permalink)  
Old 03-11-2005, 03:48 AM
Active Member
 
Join Date: Aug 2002
Location: Germany
Posts: 1,186
Frank71 is on a distinguished road
Default

Sounds nice, please let me know if you have working version

Frank
  #10 (permalink)  
Old 09-17-2005, 10:37 PM
Registered User
 
Join Date: Jun 2005
Posts: 25
exaltvenkat is on a distinguished road
Default

I would like to add 3 more custom fields , is it possible? if yes please post herre. And also i request you regd image upload feature.
  #11 (permalink)  
Old 09-18-2005, 04:53 AM
Active Member
 
Join Date: Aug 2002
Location: Germany
Posts: 1,186
Frank71 is on a distinguished road
Default

You can simple add own fields in admin area.

Frank
Closed Thread

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
upload image problem >script not open karel v5.x 0 08-08-2004 02:59 PM
Image upload for modifier lordkinjo v5.x 4 10-09-2003 07:38 AM
Getting full control of image uploader dody Tutorials, Hints & Tips 2 08-20-2003 06:14 PM
INDEXU FEATURES Hart_House Pre-Sales Questions 13 06-30-2003 12:57 PM
Image upload problem tariqali v5.x 7 07-13-2002 10:14 AM

HACKER SAFE certified sites prevent over 99.9% of hacker crime.

All times are GMT -5. The time now is 03:02 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
SSL Certificate