![]() |
tis the same except the action is 'p' instead of 'page' so it will be 'index.php?p=smilie'
|
Quote:
Great hack BTW, my members are gonna love this. [high]* Chazz Layne clicks install.[/high] |
Mitsuaki: I haven't forgotten about you, I just haven't been home much lately. I'm getting married in less than 4 weeks and my free time has been reduced further than I thought it was going to be. :(
Chazz: Getting it to save the images is just a matter changing the PHP file. What I'm picturing in my head for the next version is an option to pass in whether to save the file to the server or not. I'll have to take a look to see if there is an easy way of looping through the previously created images to build the page on the fly (I haven't done something like that before yet so it's now on my list of 'things to learn how to do' :D ). The first part shouldn't be a problem but the second part will require me to do some quick learning. If either of you guys don't hear back from me within a few days hit me up with a PM. :) |
OK, is there anybody who is not using this with VB3? How about anybody who has access opened up to everybody including guests?
I'm working on saving the images to the server but need to come up with a naming convention. For my own purposes I'm thinking of using "{userid}_{YYYYMMDD}{HHMISS}_{file name of smileyselected}" -- Essentially I need to ensure that the file name is unique when saved to the server. The format I mentioned would result in a name like "1_20041011164111_vorlange1.png" which is a bit unwieldy but unique. I wouldn't want to use the user name since it might contain characters like spaces, etcetra. The date & time ensure uniqueness and the source name would be just a nice thing to have in there. For people who have access opened up to non-guests then there might be an issue with having the userid in there because on a larget site it could happen that multiple guests are creating a smiley from the same source image at the same second. :ermm: Thoughts? Bueller? |
That's exactly the way I was doing it, minus the userid. I have a PotD running the same way. I figured a paginated gallery (like avatars) would work best for retrieving them. The 2 problems I hit were both from not knowing the workings of vB well enough to get the filename to pass back to the template via variable to show the image after it's created (or the list of older images)... wish I had more time to read up on it.
OT: Congrats on the upcoming wedding. :D |
Quote:
|
Great job! :)
*Clicks Install |
Hm nice hack, but what is the matter with: "Please do not link directly to the smilie." As I see it works fine and the user doesn't have to save and upload it himself, if you link directly to the smilie. So where is the problem?
|
Quote:
|
Hm yes thats right. Would be nice to modify the script, that it saves the generated picture automatically in a forum directory and shows the user the link, because most people don't have their own webspace and it is too much work to save and upload it.
|
All times are GMT. The time now is 09:25 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|