vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   uCash & uShop (https://vborg.vbsupport.ru/forumdisplay.php?f=100)
-   -   uCash & uShop old support and thank you thread (https://vborg.vbsupport.ru/showthread.php?t=73736)

CarlitoBrigante 07-05-2004 12:15 AM

Quote:

Originally Posted by CarlitoBrigante
Yes, we edited the new files, uploaded them, and run the installer of the vbulletin upgrade.

Yeah, thanks, it worked! Could you explain why we needed this only for this hack? I just think that understanding things will help me avoiding the same problem in the future.

Zachery 07-05-2004 12:30 AM

Quote:

Originally Posted by CarlitoBrigante
Yeah, thanks, it worked! Could you explain why we needed this only for this hack? I just think that understanding things will help me avoiding the same problem in the future.

We install all the templates to the master style, then when upgrade vBulletin, it remakes the master template. which then our templates are removed.

CarlitoBrigante 07-05-2004 12:47 AM

Thanks, I understood! And thanks for the great add on!

Erwin 07-05-2004 01:28 AM

Quote:

Originally Posted by Zachery
We install all the templates to the master style, then when upgrade vBulletin, it remakes the master template. which then our templates are removed.

Just open the templates, and click save on all of them - this converts them to custom, and they will no longer be replaced on upgrades.

Limpkinw 07-05-2004 02:51 AM

Is there a way to limit the admin donate function to only one user?

Thanks.

Pixelgrounds 07-05-2004 03:05 AM

Quote:

Originally Posted by Limpkinw
Is there a way to limit the admin donate function to only one user?

Thanks.

It seems vB3.0.3 is out now >_>


So, will this hack still work correctly?


And when do you expect the next update for this to come out.

Zachery 07-05-2004 04:49 AM

Quote:

Originally Posted by Pixelgrounds
It seems vB3.0.3 is out now >_>


So, will this hack still work correctly?


And when do you expect the next update for this to come out.

Should work fine;



Quote:

Originally Posted by Limpkinw
Is there a way to limit the admin donate function to only one user?



Thanks.

YEs, and no, if your admins are cheating it might be time to find new admins ;)



Quote:

Originally Posted by Erwin
Just open the templates, and click save on all of them - this converts them to custom, and they will no longer be replaced on upgrades.



You will still need to update them when we update, its a 50/50 problem i think

Erwin 07-05-2004 05:01 AM

Nope - custom templates are not removed or replaced. :) At least in my case, I never had to re-run the install file since I modified all your templates. :)

Zachery 07-05-2004 05:09 AM

Quote:

Originally Posted by Erwin
Nope - custom templates are not removed or replaced. :) At least in my case, I never had to re-run the install file since I modified all your templates. :)

I ment when we update ;)

Ive fixed my bad spelling and readded the image code back into the templates :)

Erwin 07-05-2004 05:23 AM

I see. :) Keep up the good work. My forums is quite large, and this hack has no effect on the load whatsoever.

What you do need to do is to remove the code that looks for the richest users if you have a large site - that is the only query that scans the whole user table - for a large forum that is not good. :)

There may have been more queries but I can't remember now.

Zachery 07-05-2004 05:29 AM

Quote:

Originally Posted by Erwin
I see. :) Keep up the good work. My forums is quite large, and this hack has no effect on the load whatsoever.

What you do need to do is to remove the code that looks for the richest users if you have a large site - that is the only query that scans the whole user table - for a large forum that is not good. :)

There may have been more queries but I can't remember now.

I think that could even be resolved by a cached version that is updated once a day. Which would still of course run the query but once a day would be far less stressfull :)

Pixelgrounds 07-05-2004 07:12 AM

Quote:

Originally Posted by Zachery
I think that could even be resolved by a cached version that is updated once a day. Which would still of course run the query but once a day would be far less stressfull :)

I got a question...


Everytime they come out with a new upgrade they want you to replace certain files with there news ones. So if the file you have to replace has a hack in it do you have to reall site there and re-put the code into the new file?

Because I did that because i wasnt sure if there was a better way.

Zachery 07-05-2004 04:13 PM

Quote:

Originally Posted by Pixelgrounds
I got a question...


Everytime they come out with a new upgrade they want you to replace certain files with there news ones. So if the file you have to replace has a hack in it do you have to reall site there and re-put the code into the new file?

Because I did that because i wasnt sure if there was a better way.

Thats about the only way to do it :)

DataVampire 07-05-2004 05:10 PM

Quote:

Originally Posted by GeekyDesigns
After a 2 week delay!




Presenting uCash & uShop


www.geekydesigns.com is now open for business, our support desk system is online along with the forums :) !




uCash: Feature List
  • Fully configurable database table/field for integrating with other systems that uses points.
  • Master On/Off Switch
  • Global Points Per Thread Setting
  • Global Points Per Reply Setting
  • Global Points Per Thread View Setting
  • Points Per Good Reputation
  • Points Per Bad Reputation
  • Points Per Referral
  • Points Per Shout Setting (if Squall's Shoutbox Hack 1.02 or above is installed.)
  • Round to x Decimal Places (for a cash/change system)
  • Modify Points in the User Manager
  • Per-Forum Points Per Thread Setting (multiplied by the global setting to get the final value)
  • Per-Forum Points Per Reply Setting (multiplied by the global setting to get the final value)
  • Per-Forum Points Per Thread View Setting (multiplied by the global setting to get the final value)
uShop: Feature List
  • Currently 18 actions are available - Donate, Change Custom Title, Change Other User's Custom Title, Change Username, Glowing Username, Colored Username, Bold Username, Italicized Username, Admin Donate, Bank, Secondary Usergroup, Sticky Thread, Thief!, Buy Forum Password, Buy Forum Access, Deny Forum Access, Give Forum Access, Arcade Pass (If Arcade Pass Hack v3 is installed.)
  • Quantity System
  • Quantity Refill (Set a number of seconds between refills and quantity is automatically refilled when accessing the main store script.)
  • Richest x Users
  • Top x Most Sold Actions
  • Purchase History
  • Senoir Discount (based on age - if they are older than x years, they get a discount (also setable))
  • Loyal Member Discount (based on days registered - if they have been registered for x days, they get a discount (also setable))
  • Usergroup Discount (give your staff a price cut!)
  • Shortname (only setable while in debug mode - can be used in links (also used in some functions))
  • Setable Action Description
  • Setable Display Order
  • Setable Cost
  • Setable Quantity and Quantity Refill (when/if quantities are refilled)
  • Setable Allowed Usergroups Via Checkboxes (usergroups that are not allowed do not see the action at all and cannot access it)
  • Setable Denied Usergroups Via Checkboxes (users that are a member of this usergroup cannot use the action)
  • Setable Image Location (if not location is specified, no image is shown)
  • Show In Store (if it is set to no, you will not see the action in the store, but can still access it via direct link)
  • Setable Active Status (if it isn't active, it goes *poof* from the store and is not accessable until it is set active again)
  • Update Display Order, Cost, Tax, Sold, Quantity Refill, and Quantity en masse.
  • You can duplicate the "Secondary Usergroup" action and define which usergroups are joinable for each action by duplicating the action file and setting the joinable groups at the top (so you can allow different usergroups to be joined for different prices)
  • Secondary Usergroup is an extremely powerful action - you can give people access to forums, higher PM quotas, the ability to see invisible users, access to free custom title changing, etc.
  • Action Specific Variables System - specific variblables set per action. You can add and edit these variables in debug mode - or you can just change the value while editing an action as if it were any other variable.
  • Copy an action (useful for actions like secondary usergroup and those dealing with forums if you want each forum/usergroup to have a different cost/quantity/etc)
  • Very few queries! (On the main page, there are 6 queries - 5 from vB3 and 1 from the store - and that's just for the richest users!)
I think thats the features :)


uCash & uShop credits

Conecept:
Zachery Woods
Matthew Gordon
PHP Code:
Matthew Gordon
- misc: Zachery Woods, Stefan "Xenon", g-force2k2
Templates:
Zachery Woods
- misc: Matthew Gordon
Other contributions:
Assassingod
Kura
Oblivion Knight
Hobbes
Stefan "Xenon"
g-force2k2


If you feel your not able to install this your self please feel free to drop me a pm and we can make arrangments

If you would like to donate to us please pm us and again we can make arragnments :)

the beta is only the name of the release, we have tested the hack rather well,

There is a HTL version and a self installing php version.


Dont forget to click install! :D



Quick instructions,



upload all files


HTL users should know what to do


For anyone NOT using the HTL,
dont upload the HTLFiles folder
run admincp/ushop_install.php
then follow file_template.html :)

EDIT: The HTL install has now been burried deeper into the zip, and it is recommended that you do not install this hack using it. It is just as easy to use the standalone installer, so use it!

Make the shop appear in the WOL https://vborg.vbsupport.ru/showpost....&postcount=131



EDIT 04/12/04 6:28 EDT: If you downloaded it before now, redownload it. For those who have installed it before now, replace all instances of uttstore.php with ushop.php in the postbit and postbit_legacy templates.




EDIT (Matthew): FOR THOSE WHO WANT SUPPORT, SPECIFY THIS INFORMATION OR BE IGNORED:

Did you run the standalone or HTL installer?
What is the exact error you recieve?
Where does the supposed error happen?
What vB version are you running?


EDIT 04/12/04 8:50 EDT: I updated the zip to remove an unneeded postbit edit. It is highly recommended that everyone who installed it or downloaded it before now needs to do this edit.


Edit template postbit: Find:
HTML Code:

<a style="font-size:14pt" href="member.php?$session[sessionurl]u=$post[userid]"><if condition="$post['uttstore_usernamecolor'] != '0'"><font color="$post[uttstore_usernamecolor]"></if><if condition="$post['uttstore_boldusername'] != '0'"><b></if><if condition="$post['uttstore_italicsusername'] != '0'"><i></if>$post[musername]<if condition="$post['uttstore_italicsusername'] != '0'"></i></if><if condition="$post['uttstore_boldusername'] != '0'"></b></if><if condition="$post['uttstore_usernamecolor'] != '0'"></font></if></a>
Replace With:
HTML Code:

<a style="font-size:14pt" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
If you are using vB3 RC4 or above, replace style="font-size:14pt" with class="bigusername" in those edits.


IF YOU ARE HAVING FOREACH ERRORS IN GLOBAL.PHP OR NO ACTION ERRORS:
First, remove the second global.php edit. Then run ushop.php?rebuildds=1. Then put the edit back in adns ee if that works. If it doesn't work, answer the questions above, if it does, post saying that and let me know in the post if you used the HTL or standalone installer. This will help me diagnose the problem as to whether it is a user error or an error on one of the installers. Thank you.


IF YOU ARE NOT GETTING ANY POINTS:
Edit a forum and set all of the store settings to '1' and save.

EDIT 04/12/04 11:42 PM: Fixed a few table prefix issues.

EDIT: 04/13/04 9:26 EDT: Zip updated to get rid of a few references to uttstore.php. If you have already installed, either run the part of the installer that updates the templates or run a template find/replace for all instajnces of uttstore.php to be changed to ushop.php.

EDIT 04/13/04 10:16 EDT: Fixed the installer.

EDIT: 04/13/04 4:27 PM EDT: A few edits were missed in the HTML file for the standalone install. If you have installed before now, follow the instructions in this post: https://vborg.vbsupport.ru/showpost....&postcount=386

yes installed well done guys i love it, will you be adding more items to it ????, some more mods would be nice, well done
and even i installed it and i am a complete newbie

bhutz 07-05-2004 07:54 PM

I was hoping to implement something like what these guys have done...
http://board.midibuddy.net/t81685.html
...which rewards users for clicking on a certain link (with cash), i.e. vote towards a topsite for example.

I think they use Lessane's store hack but has anybody created a hack which tags on to uCash that rewards users (once a day) for clicking certain link within a thread.

I think something like this will help promote your forum no end and at the sametime users are getting cash for things like arcade and bookie system, which is always nice :)

Any direction here would be appreciated :nervous:

I found what I was looking for although https://vborg.vbsupport.ru/showthread.php?t=44092 it's for version 2.2, I think I will look at how complex it is and see if I can get it to work :nervous: x 10

gfxhavenowner 07-06-2004 12:44 AM

Edit : fixed the first issue, now the second.

I'm running vb 3.0.3(I know, it doesn't say it works for it, but I tried it) and everything looks good, except no points are being given. I reset all the values to 1 in the forums, but no luck. Any help?

Zachery 07-06-2004 02:08 AM

Quote:

Originally Posted by gfxhavenowner
Edit : fixed the first issue, now the second.

I'm running vb 3.0.3(I know, it doesn't say it works for it, but I tried it) and everything looks good, except no points are being given. I reset all the values to 1 in the forums, but no luck. Any help?

Are you 100% positive that they are not getting points?

If so double check your file edits

-=Sniper=- 07-06-2004 03:09 PM

how can I copy over the amount of posts to uttpoints? I want this to be a starting point for memebers!

or if possible times the posts amount by 2 and then insert into uttpoints?

regards

Sunnz 07-06-2004 03:55 PM

May I ask where did $datastore['utt_store_act'] came from? It seem to be null and giving me No actions found error. I have tried the ushop.php?rebuildds=1 thing but no luck. Running 3.0.3.

LOD-squa 07-06-2004 04:44 PM

I'm having a small problem, I updated to vB 3.0.3, yet http://www.lod-squared.net/ushop.php nothing appears there.

Limpkinw 07-06-2004 07:57 PM

YEs, and no, if your admins are cheating it might be time to find new admins ;)

Its not that they are cheating its more a matter of I dont want the possibility to be there with some things i have planned....

gfxhavenowner 07-06-2004 08:26 PM

Quote:

Originally Posted by Zachery
Are you 100% positive that they are not getting points?

If so double check your file edits

Thanks, all working now :) I accidently placed something where it shouldnt have been lol.

1 more thing.

The confirmation notice is bright yellow, and my users can't make it out. Where do I edit the color?

Zachery 07-06-2004 08:42 PM

Quote:

Originally Posted by gfxhavenowner
Thanks, all working now :) I accidently placed something where it shouldnt have been lol.

1 more thing.

The confirmation notice is bright yellow, and my users can't make it out. Where do I edit the color?

In the templates.

<scratches head>

Ill see about using a differnt class.

Just to keep everyone up to date, Matt has tested the new installer / upgrader and its promissiong, now were just waiting for me to finish writing up that huge template and file edit list in our new format :)

Battle_Ring 07-06-2004 10:05 PM

ok i just reinstalled this but no one has any points now how come it didnt give users points for there current posts and stuff

Link14716 07-06-2004 10:18 PM

Quote:

Originally Posted by Sunnz
May I ask where did $datastore['utt_store_act'] came from? It seem to be null and giving me No actions found error. I have tried the ushop.php?rebuildds=1 thing but no luck. Running 3.0.3.

It's from the init.php edit.

Link14716 07-06-2004 10:19 PM

Quote:

Originally Posted by LOD-squa
I'm having a small problem, I updated to vB 3.0.3, yet http://www.lod-squared.net/ushop.php nothing appears there.

Re-upload the installer and have it re-install the templates.

Link14716 07-06-2004 10:21 PM

Quote:

Originally Posted by Battle_Ring
ok i just reinstalled this but no one has any points now how come it didnt give users points for there current posts and stuff

Many reason. One, some users are just having it use the same points as from the vB2 store, and secondly, I haven't coded it. It you want it give some points for old posts, run this query:
[sql]UPDATE user SET uttpoints=posts*x;[/sql]
Change x to the amount of points per posts you want to give.

Battle_Ring 07-06-2004 10:25 PM

how coem the first tiem you install it it give users points for there current posts

i just redid my forums with 3.0.3 and isntalled the the shop but it didnt give them points

Link14716 07-06-2004 10:35 PM

Quote:

Originally Posted by Battle_Ring
how coem the first tiem you install it it give users points for there current posts


i just redid my forums with 3.0.3 and isntalled the the shop but it didnt give them points

It doesn't give points for current posts. It never has.

Battle_Ring 07-06-2004 10:37 PM

hmmm that should be included in the next version

-=Sniper=- 07-06-2004 10:55 PM

[sql]UPDATE user SET uttpoints=posts*x;[/sql]

thanks for that!

Sunnz 07-07-2004 01:54 AM

So what do I do now? ushop.php thinks there is no actions... $storeactions is empty/not set.

Reeve of shinra 07-07-2004 02:13 AM

Does this version of ushop parse bbcode titles?

Link14716 07-07-2004 02:21 AM

Quote:

Originally Posted by Sunnz
So what do I do now? ushop.php thinks there is no actions... $storeactions is empty/not set.

Check your includes/init.php and global.php edits.

And, uhhh, did you run the installer?

Link14716 07-07-2004 02:22 AM

Quote:

Originally Posted by Reeve of shinra
Does this version of ushop parse bbcode titles?

No. 0.95 will be released extremely soon and it has that option.

Reeve of shinra 07-07-2004 02:23 AM

Thanks. Will it have the option of upgrading to custom title / no bbcode then custom title bbcode?

Sunnz 07-07-2004 02:35 AM

Quote:

Originally Posted by Link14716
Check your includes/init.php and global.php edits.

And, uhhh, did you run the installer?

I had run /admincp/ushop_install.php... then deleted it... I have looked at those files a couple of times too, I am sure that they have the correct edit, so I was trying to figure out what went wrong but gave up after a few hours...

Reeve of shinra 07-07-2004 02:45 AM

run the template installer again from the install file if you haven't done so yet.

Link14716 07-07-2004 02:54 AM

Quote:

Originally Posted by Reeve of shinra
Thanks. Will it have the option of upgrading to custom title / no bbcode then custom title bbcode?

Huh?

Zachery 07-07-2004 02:59 AM

I think hes talking about, if someone already has a hack that will parse that in the title, as for that i dont think it will


All times are GMT. The time now is 08:41 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
  • Page Generation 0.02649 seconds
  • Memory Usage 1,887KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (23)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete