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)

Link14716 04-13-2004 09:30 PM

Actually, a cron job wouldn't work right. ;)

Instead, it'd be a few if statements everywhere you get points.

Cyricx 04-13-2004 09:44 PM

Did you run the standalone or HTL installer?
Standalone

What is the exact error you recieve?
Foreach

Where does the supposed error happen?
when viewing ushop.php

What vB version are you running?
Gold

Following these instructions corrected the problem -
Quote:

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.
Awesome hack guys :), thank you!!

Cyricx 04-13-2004 09:45 PM

Okay :), I'll start doing some digging then to try to make the modification.

EDIT - got it workin :), going through and finding some instances of
Code:

                        if (isset(
Code:

$givethempoints
Code:

))


and replacing it with
Code:

                        if (isset($givethempoints) AND ($bbuserinfo['uttpoints'] < '10000'))

SmasherMaster 04-13-2004 10:24 PM

Link.....The file edits did something but I still am getting a no actions found AND I can't find points in the User.php in the admin cp and there's nothing about the store in the forum options either. Oh BTW, HTL won't let me uninstall the file. I hit uninstall and it sits there.

Link14716 04-13-2004 10:26 PM

Quote:

Originally Posted by SmasherMaster
Link.....The file edits did something but I still am getting a no actions found AND I can't find points in the User.php in the admin cp and there's nothing about the store in the forum options either. Oh BTW, HTL won't let me uninstall the file. I hit uninstall and it sits there.

You can't uninstall from the HTL. You have to uninstall through the standalone.

PixelFx 04-13-2004 10:28 PM

did install with out HTL seems to work good so far ...

SmasherMaster 04-14-2004 12:03 AM

MMM k....everything works. EXCEPT, I followed ALL the file edits it told me to do. And i'm still getting the ustore.php line 144 error and no actions found...

Help plz.

Zachery 04-14-2004 12:04 AM

Quote:

Originally Posted by SmasherMaster
MMM k....everything works. EXCEPT, I followed ALL the file edits it told me to do. And i'm still getting the ustore.php line 144 error and no actions found...


Help plz.

Hit CTRL F5 and see if its not a cache problem

msimplay 04-14-2004 12:10 AM

hey was just wondering i used to use the usergroup settings for rankings but i would like to add them as shop items instead how would i go about this ?

this is the link to my rank settings explanation as it is now
http://www.wambam.net/vbulletin/showthread.php?t=134

Link14716 04-14-2004 12:10 AM

Quote:

Originally Posted by SmasherMaster
MMM k....everything works. EXCEPT, I followed ALL the file edits it told me to do. And i'm still getting the ustore.php line 144 error and no actions found...


Help plz.

Take a look at the first post.

Quote:

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.
Have you tried that?

Link14716 04-14-2004 12:12 AM

Quote:

Originally Posted by msimplay
hey was just wondering i used to use the usergroup settings for rankings but i would like to add them as shop items instead how would i go about this ?

this is the link to my rank settings explanation as it is now
http://www.wambam.net/vbulletin/showthread.php?t=134

Are you using it via the promotions system, or...?

PixelFx 04-14-2004 12:23 AM

Wow lots of posts, I've done the install twice both before and after your last update of the script, so far no errors, fill tweaks to the install doc needed but otherwise, doing half searches for content found what I needed to do the install. For a beta this is pretty stable, good job guys.

I'd love to add avatar added to it .. but otherwise DAWMM this is cool!

Demo: you can see install on my site at:
http://www.orbsydia.com/forum/ushop.php (site fully active)
&
http://www.pixelfx.ca/forum/ushop.php (register turned off on pixelfx)

The only thing I can't wait for is updating users posts made already, but you said 1.0 so thats all good.

Keep up the good work!! Going to try and install arcade pass hack now :)


your 144 error above is .. cause someone has the v3arcade installed

Code:

goto init.php and make sure it looks like this ;)
 
  'stylecache',
  'utt_store_act',
  'arcadesettings',

aka your missing the , after .. 'utt_store_act'

that will fix that issue :)

lasto 04-14-2004 12:34 AM

Quote:

Originally Posted by PixelFx
Wow lots of posts, I've done the install twice both before and after your last update of the script, so far no errors, fill tweaks to the install doc needed but otherwise, doing half searches for content found what I needed to do the install. For a beta this is pretty stable, good job guys.

I'd love to add avatar added to it .. but otherwise DAWMM this is cool!

I agre with Pixelfx - 26 pages full yet the hack does work fine.Its that HTL hack thats messed it up for everyone i reckon.Normal way was only a few minor bug fixes that would of needed sortign but its gone way beyond that for some people.
Also make sure u use a proper php editor to do the files such as Ultra Edit 10 etc
as some mistakes are actually caused by the program u use to edit the files.

Good hack Geeky team :)

Yeah wheres the load avatar part (cant have a store without avatar:)) also how about someone doing the templates to show them pics and breath a bit a life into the store :)

:banana: Pics say more than a thousand words ........................... But no rush :banana:

PixelFx 04-14-2004 12:39 AM

I love ultraedit 10+, tis what I use for everything its worth every penny, make sure to set it to find every instance and match case, and if editing many files check for changes all files opened. It's saved my butt a few times for hacking vb2/3 I can't live with out it heh

Ok first error, if I try to change

Help http://www.orbsydia.com/forum/cpstyl...nd/cp_help.gif
uTT Store Settings Usergroup Discount?Set this to the percent that is taken off the normal cost for this usergroup (negative adds cost). Set to '0' to have no effect.

in the user group :P

I get the following error, not sure if I missed something or not. Please note this is for a custom group on my forums.

Code:


Database error in vBulletin 3.0.0:
Invalid SQL: UPDATE usergroup SET
### UPDATE QUERY GENERATED BY fetch_query_sql() ###
title = 'Orb Internal Tester',
description = 'These Members have been invited to test core tools we need testing on before the public gets a shot.',
usertitle = 'Orb Internal Tester',
opentag = '',
closetag = '',
passwordexpires = '0',
passwordhistory = '0',
ispublicgroup = '0',
canoverride = '0',
attachlimit = '0',
avatarmaxwidth = '64',
avatarmaxheight = '64',
avatarmaxsize = '28000',
profilepicmaxwidth = '100',
profilepicmaxheight = '100',
profilepicmaxsize = '100000',
pmquota = '150',
pmsendmax = '0',
uttstore_discount = '0',
1 = '',
2 = '',
4 = '',
8 = '',
16 = '',
32 = '',
64 = '',
128 = '',
256 = '',
512 = '',
1024 = '',
2048 = '',
4096 = '',
8192 = '',
16384 = '',
32768 = '',
65536 = '',
131072 = '',
262144 = '',
forumpermissions = '111103',
pmpermissions = '1',
calendarpermissions = '17',
wolpermissions = '1',
adminpermissions = '0',
genericpermissions = '5703',
genericoptions = '31',
linkspermissions = '0',
arcadepermissions = '19'
WHERE usergroupid=8
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '1 = '',
2 = '',
4 = '',
8 = '',
16 = '',
32 = '',
64 = ''
mysql error number: 1064
Date: Tuesday 13th of April 2004 08:42:22 PM
Script: http://www.orbsydia.com/forum/admincp/usergroup.php
Referer: http://www.orbsydia.com/forum/admincp/usergroup.php?s=&do=edit&usergroupid=8
Username: Khaybel


SmasherMaster 04-14-2004 12:48 AM

Thanks alot PixelFX. :)


Link: Same problem happens. No actions found.

Link14716 04-14-2004 12:49 AM

Where did all this come from?

Code:

1 = '',
2 = '',
4 = '',
8 = '',
16 = '',
32 = '',
64 = '',
128 = '',
256 = '',
512 = '',
1024 = '',
2048 = '',
4096 = '',
8192 = '',
16384 = '',
32768 = '',
65536 = '',
131072 = '',
262144 = '',


NyCwill 04-14-2004 01:18 AM

1 Attachment(s)
There seem to be a problem of the value shown in the store.

I set the point value for Change custom title to 400 but it show 360 in the store and I didnt set any tax percent. But when I about to confirm the transaction it show the value of 400 points.

Can someone tell me how to fix this

Zachery 04-14-2004 01:20 AM

Quote:

Originally Posted by NyCwill
There seem to be a problem of the value shown in the store.

I set the point value for Change custom title to 400 but it show 360 in the store and I didnt set any tax percent. But when I about to confirm the transaction it show the value of 400 points.

Can someone tell me how to fix this

Differnt usergroups gets discounts, ill make sure the templates include it if possible for .94

NyCwill 04-14-2004 01:23 AM

but shouldnt it show 360 when I'm about to confirm the action?

Link14716 04-14-2004 01:28 AM

Quote:

Originally Posted by NyCwill
but shouldnt it show 360 when I'm about to confirm the action?

Yes it should.

NyCwill 04-14-2004 01:29 AM

but home come it still show the full value.. as you can see in my screenshots....

Link14716 04-14-2004 01:33 AM

Quote:

Originally Posted by NyCwill
but shouldnt it show 360 when I'm about to confirm the action?

Fixed for 0.94.

In template uttstore_standard_confirmation:
Find:
HTML Code:

<fieldset><legend>Cost:</legend><div style="text-align: right;">$action[cost]</div></fieldset>
Replace with:
HTML Code:

<fieldset><legend>Cost:</legend><div style="text-align: right;">$cost</div></fieldset>

Link14716 04-14-2004 01:34 AM

Quote:

Originally Posted by NyCwill
but home come it still show the full value.. as you can see in my screenshots....

Just posted the fix. ;)

Zachery 04-14-2004 01:34 AM

I was refering to the discount too ^_^

Link14716 04-14-2004 01:36 AM

Quote:

Originally Posted by SmasherMaster
Thanks alot PixelFX. :)


Link: Same problem happens. No actions found.

Run this query and tell me how many rows it returns (should be 18):
[sql]SELECT * FROM utt_store_action;[/sql]
And then run this query and tell me what is in the 'data' column:
[sql]SELECT * FROM datastore WHERE title='utt_store_act';[/sql]

Mijae 04-14-2004 02:31 AM

I have a suggestion to make:

You should add a feature to change the name of "Points", so with one edit in the AdminCP, all instantes of the word point change to whatever you want.

It'd be so good :P

Zachery 04-14-2004 02:39 AM

planed for the next major release already

Mijae 04-14-2004 02:48 AM

Quote:

Originally Posted by Zachery
planed for the next major release already

Cool.

Ahother thing I noticed is that people can't withdraw from the bank after they make a deposit.

Or are me and my members just blind?

Zachery 04-14-2004 02:49 AM

Bleh i forgot to edit a template im guessing

make sure all the phrases say uttstore_ and not ushop in the bank template

dniMTheory 04-14-2004 03:39 AM

Request, if possible

Limit the amount of points a member can receive for replying to a thread. So for example, if they reply to a thread 20 times, they only get paid points for their first 3 replies and not all 20.

Link14716 04-14-2004 03:46 AM

Quote:

Originally Posted by Mijae
Cool.

Ahother thing I noticed is that people can't withdraw from the bank after they make a deposit.

Or are me and my members just blind?

I cannot confirm this.

Link14716 04-14-2004 03:46 AM

Quote:

Originally Posted by dniMTheory
Request, if possible

Limit the amount of points a member can receive for replying to a thread. So for example, if they reply to a thread 20 times, they only get paid points for their first 3 replies and not all 20.

I might think about implementing this for 1.00. ;)

Skyline_GT 04-14-2004 05:11 AM

can this intergrate with the arcade?
like to win points?

GeekyDesigns 04-14-2004 05:42 AM

Quote:

Originally Posted by Skyline_GT
can this intergrate with the arcade?
like to win points?

Niether of us deals with flash, and the only person in GeekyDesigns who does flash doesnt know php or mysql your best off trying to talk to Jon, unless im missing somthing ^_^

filth 04-14-2004 05:43 AM

Quote:

Originally Posted by Mijae
Cool.

Another thing I noticed is that people can't withdraw from the bank after they make a deposit.

Or are me and my members just blind?


Yup looks like you are right never noticed that myself till I saw your post

Zachery 04-14-2004 05:44 AM

Check the bank template and makesure the phrases are pointing to uttstore instead of ushop

SmasherMaster 04-14-2004 11:38 AM

1 Attachment(s)
Quote:

Originally Posted by Link14716
Run this query and tell me how many rows it returns (should be 18):
[sql]SELECT * FROM utt_store_action;[/sql]
And then run this query and tell me what is in the 'data' column:
[sql]SELECT * FROM datastore WHERE title='utt_store_act';[/sql]


13 rows


look at the attachemtn for the data....too big to post

Link14716 04-14-2004 03:02 PM

Quote:

Originally Posted by SmasherMaster
13 rows


look at the attachemtn for the data....too big to post

There's no reason why it wouldn't work, so I ask you again: are you sure you edited global.php correctly?

Link14716 04-14-2004 03:03 PM

Quote:

Originally Posted by Skyline_GT
can this intergrate with the arcade?
like to win points?

Look for the Arcade Pass Hack v3 hack in the Beta Releases.

Link14716 04-14-2004 03:04 PM

Quote:

Originally Posted by filth
Yup looks like you are right never noticed that myself till I saw your post

I still cannot confirm this.


All times are GMT. The time now is 05:31 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.02951 seconds
  • Memory Usage 1,850KB
  • 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
  • (7)bbcode_code_printable
  • (2)bbcode_html_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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