![]() |
adding an action
Cant see any tutotrials or anything on how to add a simple action. I want to add a buy avatar action
bump |
Anyone
|
Anyone?
|
No, there are no tutorials.
|
So .... how - do - i - do this?
|
1 Attachment(s)
Well, assuming you know PHP and how vB adds an avatar, it shouldn't be super hard.
Here's an action file that _may_ work on 0.95b. Add it through the action manager. EDIT: Removed some uCS 1.0.x only code. It needs a new template as well. Make a new template: uttstore_inputs_file HTML Code:
<input type="hidden" name="MAX_FILE_SIZE" value="$field[maxsize]" /><fieldset style="text-align: right;"><legend>$field[topphrase]</legend> EDIT2: You also need to change this in includes/functions_uttstore.php: Find: PHP Code:
PHP Code:
|
hey thanks!
but it says There has been an error in the upload. Please ensure that the file has been correctly selected and that the upload has taken place successfully when trying to upload any avatar :( |
Apparently you'll get that if you try to upload one (as opposed to getting it through a URL). I'm not sure why, though.
|
Quote:
|
ill have to wait then, the new one should be great i hope we can buy things like avatars and items (pictures) that we can show as cars or products in the userprofile or even credit cards and usercshops like invisionboards and phpbbs
by the way i had to undo those edits as that stopped the shop completly working |
If you dont want to wait, or dont care if about making users buy an avatar each time they want to upload something new, create a new usergroup that allows avatar changing and use the already existing add to usergroup feature of ushop.
|
Quote:
|
Alright, I got the upload file error fixed. In your uttstore_standard_inputs template:
Find: HTML Code:
<form action="ushop.php" method="post"> HTML Code:
<form action="ushop.php" method="post" enctype="multipart/form-data"> |
First of all, I installed this hack yesterday, and I'm totally addicted to it!
Is the customavatar.php file customizable in a way that I could use it to allow members to buy avs of different sizes for different prices? Please keep in mind that I'm very new to php. There is no explanation too basic for me, ;). THANKS! |
No, there is not. It just allows members to purchase avatars up to the maximum allowable size as specified in the usergroup manager.
|
Ok, thanks anyway!
|
I installed this with no problems, and while it is working for me and other administrators, regular members are getting an error message. They're telling me the message is telling them the avs are too big, and referencing the size as -1 by -1, or 1 byte. They all tell me that the avs are within restricted size, and the one I checked on was. Any idea why this is happening? People are starting to get irritable.
Ok, I figured out what the problem is, but I don't know how to fix it. In order to be able to purchase the custom av, the usergroup has to be set to allow uploading of custom avs, but if that is set to yes, there is no need to buy one, because then they can just upload it for free through the user cp. So, how do I fix this? |
Anybody?
|
Is nobody using this option?
|
What am I doing wrong? I installed it but there is no table to upload the avatar. It's working but when you go to the confirmation page to upload the avatar it's not there...
|
I'm going to close this thread and release the avatar action in another thread.
|
All times are GMT. The time now is 02:20 PM. |
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:
|