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)

Zachery 06-14-2004 04:48 AM

Quote:

Originally Posted by kall
A few of my members have asked for a way to display their points total in the navbar.

This is probaly very easy, but sticking $points in the Welocme/PM area doesn't seem to work.

you should be able to use $bbuserinfo[points] I THINK :)

Zoints 06-14-2004 05:07 AM

Quote:

Originally Posted by Mhaddy
I believe I found a small bug in action.denyforumaccess.php.

Around line 35 there is the line:
PHP Code:

if ($accessable['accessmask'] == '0') { 

This should be:
PHP Code:

if ($accessable[accessmask] == '0') { 

I found this out when I consistently received the "this forum is already un-accessable" error when trying to deny access to a forum for a user through the shop. I noticed another member in the thread (I forget his name) asked the same question, but AFAIK, was never answered. Now I can deny access to forums to all the users I want ;). Hope this helps someone.

I was so excited as I have been having this same problem. But when I made the changes you specified, I still have the same issue. Did you maybe fix any other issues with it?

LoOnEyToOnZ 06-14-2004 05:47 AM

Is it possible to change the name "points" to "cash" ? make it read as "cash" throughout the site

SkyCatcher 06-14-2004 11:42 AM

Hi Guys,

A couple of my users (not very many at all) are having problems accessing the bank for some reason.

This is the email I get:

Database error in vBulletin 3.0.0 Release Candidate 4:

Invalid SQL: UPDATE user SET uttpoints=uttpoints-75,70 WHERE userid='186'
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 '70 WHERE userid='186'' at line 1

mysql error number: 1064

Date: Monday 14th of June 2004 07:38:07 AM
Script: http://www.probetreff.com/forum/usho...shortname=bank



It works for 99% of the people but for some reason they get an error...they are using internet explorer and 1 user is betting this error on 4 different computers :o


Any Ideas?

SkyCatcher 06-14-2004 02:12 PM

Quote:

Originally Posted by SkyCatcher
Hi Guys,

A couple of my users (not very many at all) are having problems accessing the bank for some reason.

This is the email I get:

Database error in vBulletin 3.0.0 Release Candidate 4:

Invalid SQL: UPDATE user SET uttpoints=uttpoints-75,70 WHERE userid='186'
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 '70 WHERE userid='186'' at line 1

mysql error number: 1064

Date: Monday 14th of June 2004 07:38:07 AM
Script: http://www.probetreff.com/forum/usho...shortname=bank



It works for 99% of the people but for some reason they get an error...they are using internet explorer and 1 user is betting this error on 4 different computers :o


Any Ideas?



Ok I solved the problem, not 100% sure why though.

The users couldn't access the bank so I deleted what was in the bank_query in my phpmyadmin and they got access...

Then I noticed that some users used a , (comma) instead of a . (period) for decimal places and that somehow screwed up they're points.

Intex 06-14-2004 07:20 PM

Quote:

Originally Posted by Zachery
Make sure you did your file edits to functions.php

Zachery - I've just checked the functions.php and the code is there. Funny thing is in AdminCP | Usergroups, when you can add HTML start and end tags, putting anything in there such as <i> and </i> doesn't do anything either. This is clearly related.

Any further ideas?

Flow Fusion 06-14-2004 10:55 PM

Ok How do I edit the postbit file to show the colors/ italics etc? Cause they are no longer working?

IIstix 06-15-2004 12:18 AM

Did you run the standalone or HTL installer?
Standalone

What is the exact error you recieve?

Warning: Invalid argument supplied for foreach() in /... (vb3 root path) .../global.php on line 701

Unable to add cookies, header already sent.
File: /... (vb3 root path) .../global.php
Line: 701


Where does the supposed error happen?

When trying to run ushop_install.php


What vB version are you running?

3.0.1

I hit the BACK button on my browser, which reloaded the ushop_install.php script and I got the install page!?! I went ahead and installed the script and I got no error messages.

Why would it work upon reloading ushop_install.php, even though I did not make any changes like removing the second global.php edit and running the ushop rebuild script?

Albus 06-15-2004 11:11 PM

I installed it and it seems to be working great. I did get the array error and the no points thing, but I fixed it with the initial instructions. Now, what I was wondering is, if I decide at some point to uninstall this, what tables were altered, and what fields were added to them.

The following are obvious :
Restore all files and style templates that were edited
Delete all files and style templates that were added
Delete all phrases that were added
Delete all tables that were added

Now, what I need to know is, which existing table were altered and what fields were added to them? Is there anything else?

NOTE: I did backup the DB and files prior to this, however, IF I have to do this, I don't want o have to backtrack if possible.

Albus 06-15-2004 11:45 PM

Ok, I was looking through the install script and found this section.

if ($_REQUEST['do'] == 'uninstall')

I assume if I was to do this, I'd still have to revert my basic templates.

Has this uninstall code been tested?


All times are GMT. The time now is 09:15 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.03010 seconds
  • Memory Usage 1,756KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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