PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old September 14th, 2005, 10:36 PM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Apr 2005
Posts: 24
Exclamation Direct Link Code for Profile Pic

I am working on a conditional submit form that takes in the directlink code and adds it to a submit button that changes the profile picture. I have the newest version of the vbadvanced gallery which now only uses the php code's to protect against deeplinking of images etc.

Anyway the profile picture portion of vbulletin does not work without a file with a jpg gif or png file extension so this is not working.

How can I include a link to the direct file so that while browsers are veiweing their gallery they can quickly and simply set one of their images as their profile pic.

Let me know.
altsounds is offline   Reply With Quote
Old September 15th, 2005, 04:28 PM   #2 (permalink)
Junior Member
Verified Customer
 
Join Date: Apr 2005
Posts: 24
Re: Direct Link Code for Profile Pic

Basically I'm asking how to call the original file from a template which doesn't use the php extension??
altsounds is offline   Reply With Quote
Old September 15th, 2005, 08:24 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Apr 2005
Posts: 24
Re: Direct Link Code for Profile Pic

Anyone?
altsounds is offline   Reply With Quote
Old September 15th, 2005, 08:45 PM   #4 (permalink)
Registered User
Verified Customer
 
KW802's Avatar
 
Join Date: Nov 2005
Posts: 1,400
Re: Direct Link Code for Profile Pic

Altsounds, please, no bumping for at least 24 hours after the initial thread.
KW802 is offline   Reply With Quote
Old September 15th, 2005, 10:22 PM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Apr 2005
Posts: 24
Re: Direct Link Code for Profile Pic

OK sorry didn;t realize the rules just know this is an easy one for the knowledgable on the site.
altsounds is offline   Reply With Quote
Old September 16th, 2005, 12:15 PM   #6 (permalink)
Brian
Guest
 
Posts: n/a
Re: Direct Link Code for Profile Pic

You're not going to be able to do something like that without a bit of work and knowledge of PHP.
  Reply With Quote
Old September 16th, 2005, 01:05 PM   #7 (permalink)
Junior Member
Verified Customer
 
Join Date: Apr 2005
Posts: 24
Re: Direct Link Code for Profile Pic

Thats fine I have a pretty good knowledge but am not sure how I can call it?? i.e. http://www.altsounds.com/gallery/files/$variabletofile .

I've got the whole process working but just don't HOW to call the direct file within the templates and not the .php direct link. The file extension needs to be GIF or JPG to work with the user profile pic changer.

Any help Brian?
altsounds is offline   Reply With Quote
Old September 17th, 2005, 09:53 PM   #8 (permalink)
Junior Member
Verified Customer
 
Join Date: Apr 2005
Posts: 24
Re: Direct Link Code for Profile Pic

Brian?
altsounds is offline   Reply With Quote
Old September 21st, 2005, 11:53 AM   #9 (permalink)
Junior Member
Verified Customer
 
Join Date: Apr 2005
Posts: 24
Re: Direct Link Code for Profile Pic

Anyone?? This can't be that hard I just need a bit of guidance and once someone helps me figure it out I can release this hack.
altsounds is offline   Reply With Quote
Old September 21st, 2005, 01:14 PM   #10 (permalink)
Brian
Guest
 
Posts: n/a
Re: Direct Link Code for Profile Pic

Couldn't tell you off the top of my head since I've never had a use for anything like that. I would think you could just view the source of the profile picture page, use the form action and add a hidden field with the image URL though.
  Reply With Quote
Old September 21st, 2005, 04:09 PM   #11 (permalink)
Junior Member
Verified Customer
 
Join Date: Apr 2005
Posts: 24
Re: Direct Link Code for Profile Pic

I know how to do the form part and all of that what I don't know is how the files are stored in the gallery and how to call the link to the direct file and not one with a PHP extension as the vbulletin profile picture portion only allows links to files with direct JPG or GIF extensions.

In other words what is the image URL?
altsounds is offline   Reply With Quote
Old September 21st, 2005, 04:37 PM   #12 (permalink)
Brian
Guest
 
Posts: n/a
Re: Direct Link Code for Profile Pic

Try $image[folderstring]/$image[filename]
  Reply With Quote
Old September 22nd, 2005, 04:59 AM   #13 (permalink)
Member
Verified Customer
 
Join Date: Jul 2005
Posts: 163
Re: Direct Link Code for Profile Pic

Did it work?
Brinnie is offline   Reply With Quote
Old September 22nd, 2005, 01:44 PM   #14 (permalink)
Junior Member
Verified Customer
 
Join Date: Apr 2005
Posts: 24
Re: Direct Link Code for Profile Pic

Nope all that gives on output is:

/

As if the variables are returning nothing!! Any other ideas?
altsounds is offline   Reply With Quote
Old September 22nd, 2005, 01:58 PM   #15 (permalink)
Brian
Guest
 
Posts: n/a
Re: Direct Link Code for Profile Pic

Where are you placing that code?
  Reply With Quote
Old September 22nd, 2005, 03:43 PM   #16 (permalink)
Junior Member
Verified Customer
 
Join Date: Apr 2005
Posts: 24
Re: Direct Link Code for Profile Pic

in adv_gallery_imagebit
altsounds is offline   Reply With Quote
Old September 27th, 2005, 04:58 PM   #17 (permalink)
Junior Member
Verified Customer
 
Join Date: Apr 2005
Posts: 24
Re: Direct Link Code for Profile Pic

Brian any ideas from the imagebit template how to call the original jpg, gif or bmp file??
altsounds is offline   Reply With Quote
Old September 28th, 2005, 11:39 AM   #18 (permalink)
Brian
Guest
 
Posts: n/a
Re: Direct Link Code for Profile Pic

I thought you were trying to add this on the showimage page? If so, you need to be adding the code in your 'ADV_GALLERY_SHOWIMAGE' template.
  Reply With Quote
Old September 28th, 2005, 11:12 PM   #19 (permalink)
Junior Member
Verified Customer
 
Join Date: Apr 2005
Posts: 24
Re: Direct Link Code for Profile Pic

No, what I'm trying to do is in my Member profiles when they click on their photo it will show their gallery. Using a bbuserinfo conditional (only showing this form button if the photo was in fact uploaded by that person) I want them to be able to browse the thubnails and on the fly be able to change their profile photo by one button click.

I will try it in show image now as the more places this is placed the better but it would be cool if you could help me out with the thumbnail part too!!

Thanks for your responses.
altsounds is offline   Reply With Quote
Old September 28th, 2005, 11:32 PM   #20 (permalink)
Junior Member
Verified Customer
 
Join Date: Apr 2005
Posts: 24
Re: Direct Link Code for Profile Pic

Brian that works a charm in the show image template and my form works to for a one click profile pic change!! Just need to figure out how to do it in the thumbnails too and I will be golden and will be releasing this hack.

Let me know.
altsounds is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 do add a direct link to pic at showphoto above ubbcode mjm Photopost Pro How Do I...? 8 June 12th, 2006 10:00 PM
How do I remove the Direct Link Code, BB Image Code, img Tag Code Iridium1 How Do I? - vBulletin 3.5.X 8 January 13th, 2006 04:46 PM
URL of the "Direct Link Code" wrong PageUp Bugs From 1.0.0 21 May 19th, 2005 04:55 PM
direct link code etc.. how it looks? Sanjiyan vBGallery Suggestions 2 February 8th, 2005 07:33 AM


All times are GMT -5. The time now is 10:56 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0