PDA

View Full Version : adding an action


khaleel
20 Jan 2005, 13:01
Cant see any tutotrials or anything on how to add a simple action. I want to add a buy avatar action

bump

khaleel
22 Jan 2005, 20:20
Anyone

khaleel
24 Jan 2005, 11:48
Anyone?

Link14716
25 Jan 2005, 05:55
No, there are no tutorials.

khaleel
25 Jan 2005, 18:30
So .... how - do - i - do this?

Link14716
25 Jan 2005, 20:59
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


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



This action probably has a few bugs though, so don't think that just because I am posting it that it is stable. ;)

EDIT2: You also need to change this in includes/functions_uttstore.php:
Find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Replace with:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

khaleel
26 Jan 2005, 14:38
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 :(

Link14716
26 Jan 2005, 20:50
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.

Dan
26 Jan 2005, 20:56
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.
So the best thing we can do is WAIT untill we can get our hands on 1.0.x :D

khaleel
26 Jan 2005, 21:03
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

Reeve of shinra
26 Jan 2005, 21:45
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.

Link14716
26 Jan 2005, 22:40
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.
And/or delete the template I told you to add to only show the URL field until I fix the bug with uploads. :)

Link14716
28 Jan 2005, 23:22
Alright, I got the upload file error fixed. In your uttstore_standard_inputs template:

Find:

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Replace with:

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

carolmyt
04 Feb 2005, 18:58
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!

Link14716
04 Feb 2005, 22:41
No, there is not. It just allows members to purchase avatars up to the maximum allowable size as specified in the usergroup manager.

carolmyt
05 Feb 2005, 00:40
Ok, thanks anyway!

carolmyt
07 Feb 2005, 15:09
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?

carolmyt
08 Feb 2005, 23:22
Anybody?

carolmyt
12 Feb 2005, 18:57
Is nobody using this option?

Wifey
16 Mar 2005, 00:22
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...

Link14716
16 Mar 2005, 02:21
I'm going to close this thread and release the avatar action in another thread.