PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   How Do I? - vBulletin 3.0.X (http://www.photopost.com/forum/how-do-i-vbulletin-3-0-x/)
-   -   Direct Link Code for Profile Pic (http://www.photopost.com/forum/how-do-i-vbulletin-3-0-x/119153-direct-link-code-profile-pic.html)

altsounds September 14th, 2005 10:36 PM

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 September 15th, 2005 04:28 PM

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 September 15th, 2005 08:24 PM

Re: Direct Link Code for Profile Pic
 
Anyone?

KW802 September 15th, 2005 08:45 PM

Re: Direct Link Code for Profile Pic
 
Altsounds, please, no bumping for at least 24 hours after the initial thread.

altsounds September 15th, 2005 10:22 PM

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.

Brian September 16th, 2005 12:15 PM

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.

altsounds September 16th, 2005 01:05 PM

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 September 17th, 2005 09:53 PM

Re: Direct Link Code for Profile Pic
 
Brian?

altsounds September 21st, 2005 11:53 AM

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.

Brian September 21st, 2005 01:14 PM

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.

altsounds September 21st, 2005 04:09 PM

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?

Brian September 21st, 2005 04:37 PM

Re: Direct Link Code for Profile Pic
 
Try $image[folderstring]/$image[filename]

Brinnie September 22nd, 2005 04:59 AM

Re: Direct Link Code for Profile Pic
 
Did it work?

altsounds September 22nd, 2005 01:44 PM

Re: Direct Link Code for Profile Pic
 
Nope all that gives on output is:

/

As if the variables are returning nothing!! Any other ideas?

Brian September 22nd, 2005 01:58 PM

Re: Direct Link Code for Profile Pic
 
Where are you placing that code?

altsounds September 22nd, 2005 03:43 PM

Re: Direct Link Code for Profile Pic
 
in adv_gallery_imagebit

altsounds September 27th, 2005 04:58 PM

Re: Direct Link Code for Profile Pic
 
Brian any ideas from the imagebit template how to call the original jpg, gif or bmp file??

Brian September 28th, 2005 11:39 AM

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.

altsounds September 28th, 2005 11:12 PM

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 September 28th, 2005 11:32 PM

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97