 | |  | |
September 14th, 2005, 11:36 PM
|
#1 (permalink)
| | Junior Member Verified Customer
Join Date: Apr 2005
Posts: 24
| 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.
|
| |
September 15th, 2005, 05: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??
|
| |
September 15th, 2005, 09:24 PM
|
#3 (permalink)
| | Junior Member Verified Customer
Join Date: Apr 2005
Posts: 24
| Re: Direct Link Code for Profile Pic
Anyone?
|
| |
September 15th, 2005, 09:45 PM
|
#4 (permalink)
| | Registered User Verified Customer
Join Date: Nov 2005
Posts: 1,408
| Re: Direct Link Code for Profile Pic
Altsounds, please, no bumping for at least 24 hours after the initial thread.
|
| |
September 15th, 2005, 11: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.
|
| |
September 16th, 2005, 01:15 PM
|
#6 (permalink)
| | Guest | 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.
| |
| |
September 16th, 2005, 02: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?
|
| |
September 17th, 2005, 10:53 PM
|
#8 (permalink)
| | Junior Member Verified Customer
Join Date: Apr 2005
Posts: 24
| Re: Direct Link Code for Profile Pic
Brian?
|
| |
September 21st, 2005, 12:53 PM
|
#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.
|
| |
September 21st, 2005, 02:14 PM
|
#10 (permalink)
| | Guest | 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.
| |
| |
September 21st, 2005, 05: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?
|
| |
September 21st, 2005, 05:37 PM
|
#12 (permalink)
| | Guest | Re: Direct Link Code for Profile Pic
Try $image[folderstring]/$image[filename]
| |
| |
September 22nd, 2005, 05:59 AM
|
#13 (permalink)
| | Member Verified Customer
Join Date: Jul 2005
Posts: 163
| Re: Direct Link Code for Profile Pic
Did it work?
|
| |
September 22nd, 2005, 02: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?
|
| |
September 22nd, 2005, 02:58 PM
|
#15 (permalink)
| | Guest | Re: Direct Link Code for Profile Pic
Where are you placing that code?
| |
| |
September 22nd, 2005, 04: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
|
| |
September 27th, 2005, 05: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??
|
| |
September 28th, 2005, 12:39 PM
|
#18 (permalink)
| | Guest | 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.
| |
| |
September 29th, 2005, 12:12 AM
|
#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.
|
| |
September 29th, 2005, 12:32 AM
|
#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.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 09:38 AM. | |