Author Topic: Extra Member Page field  (Read 8343 times)

0 Members and 1 Guest are viewing this topic.

Offline Warrior

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
    • Lawrence Family History
Extra Member Page field
« on: May 25, 2005, 03:44:24 AM »
Hi all. Great scrpt. Have it running at a number of sites.

Question- Can or has someone modify/modified the Members upload page to have an addition field?

What I want is one more field to upload a ZIP or RAR file *in addition* to the current main image and thumb fields.

Then on the Details page, I want the Download button to point to that ZIP or RAR file instead of the main image.

I know you can add in a seperate URL for download in the AdminCP, but there is no way for the members to upload all three.

Thanks in advance.

Offline Warrior

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
    • Lawrence Family History
Re: Extra Member Page field
« Reply #1 on: May 26, 2005, 02:58:21 AM »
No one has done this yet?

Offline Warrior

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
    • Lawrence Family History
Re: Extra Member Page field
« Reply #2 on: May 27, 2005, 03:04:24 AM »
Ok. Can a Mod or Admin delete this? Obviously no help is coming.

Doing the db_field_definitions.php is wonderful for getting a new field... but that's all it does.

I place a file in the field to upload and nothing happens. The main image and thumbnail upload, but not hte new zip file I want uploaded with them.

Those avatar and User Photo mods do *almost* what I want, but they are tied into the user him/herself.

I want the new file upload field to tie in with the image and thumb.

Guess I'll go try someone elses script.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Extra Member Page field
« Reply #3 on: May 27, 2005, 03:45:18 AM »
what u are requesting would require much more complex coding then u think. that's why nobody was interesting.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Warrior

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
    • Lawrence Family History
Re: Extra Member Page field
« Reply #4 on: May 27, 2005, 07:10:53 PM »
Actually, I did it myself without complex coding, and it actually worked.

Just a duplicating of certain codes already there, renaming the database field targets in the duplicated code, etc..

So far it works great.

Gotta work on the Admin aspects of it now, as well as the Member editing.

Offline Warrior

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
    • Lawrence Family History
Re: Extra Member Page field
« Reply #5 on: May 28, 2005, 12:57:42 AM »
Ok.... I seem to have everything working, except one thing that is giving me a headache.

The additional file follows the primary file around just like the thumbnail does, except when validating theuploads by non-Admins.

The thumb and main image are moved to the correct category, BUT the additional file is left in the temp folder.

Where does that part of the coding happen? I have checked every admin folder php file and can't figure out where that part is.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Extra Member Page field
« Reply #6 on: May 28, 2005, 01:07:27 AM »
admin/validateimages.php
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Warrior

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
    • Lawrence Family History
Re: Extra Member Page field
« Reply #7 on: May 28, 2005, 01:17:04 AM »
That's what I thought, and am staring at it right now.

But when I look over the validate portion (not the delete or edit portions) there isn't even anything on moving the thumbs. Just the main image.

I assume the thumb gets moved because it follows the main image.

I've set it up throughout where the additional file moves just like the thumb... except there it isn't behaving the same as far as being "attached" to the main image.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Extra Member Page field
« Reply #8 on: May 28, 2005, 01:32:46 AM »
these are the lines that copy media and thumbnail files:
Code: [Select]
        $new_name = copy_media($image_media_file, "-1", $cat_id);
        $new_thumb_name = copy_thumbnail($new_name, $image_thumb_file, "-1", $cat_id);
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Extra Member Page field
« Reply #9 on: May 28, 2005, 01:33:13 AM »
I guess, u'll have to look into admin/admin_funcitions.php as well ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Warrior

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
    • Lawrence Family History
Re: Extra Member Page field
« Reply #10 on: May 28, 2005, 01:35:40 AM »
Cool. I found my error.

EDIT- Whoops! Saw you posted while I was typing. That's EXACTLY where my error was :)

So far, everything is working perfectly.

I'll let it run for a few days, letting some of my members test it out.

If anyone is interested, I'll post what I did.

Mind you, I am running 4Images intergrated with vBulletin, BUT none of those files changes were affected.

To try and make it clearer on what I wanted in my first post-

Upload a large image (primary) and it having it's thumbnail. That's 4Images typical. But I wanted one more field to upload zip files for download.

Now... given what I have done, super large images can be loaded as well and NOT be the one that loads up on the detail page!

Rather, this extra file is HIDDEN off the detail page UNTIL you click download.

Then it is this extra file that gets downloaded.

I know all of that could have been done from the Admin side of things already. But I want the MEMBERS to upload their own files.

What I have is a 3D modeling/CGI website, where meshes are made available to other members.

Generally, fols with this type of a site use paFileDB, which shows thumbs with the download file.

But paFileDB doesn't work with vBulletins member database.

4Images does with mods.

So what I did was effectively turn 4Images from a "gallery" to a Download Center ;)