![]() |
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. |
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?? |
Re: Direct Link Code for Profile Pic Anyone? |
Re: Direct Link Code for Profile Pic Altsounds, please, no bumping for at least 24 hours after the initial thread. |
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. |
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. |
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? |
Re: Direct Link Code for Profile Pic Brian? |
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. |
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. |
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? |
Re: Direct Link Code for Profile Pic Try $image[folderstring]/$image[filename] |
Re: Direct Link Code for Profile Pic Did it work? |
Re: Direct Link Code for Profile Pic Nope all that gives on output is: / As if the variables are returning nothing!! Any other ideas? |
Re: Direct Link Code for Profile Pic Where are you placing that code? |
Re: Direct Link Code for Profile Pic in adv_gallery_imagebit |
Re: Direct Link Code for Profile Pic Brian any ideas from the imagebit template how to call the original jpg, gif or bmp file?? |
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. |
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. |
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. |
| All times are GMT -5. The time now is 12:34 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0