(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
09-27-24 11:28 PM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - status.php problem
  
User name:
Password:
Reply:
 
Options: - -
Quik-Attach:
Preview for more options

Max size 1.00 MB, types: png, gif, jpg, txt, zip, rar, tar, gz, 7z, ace, mp3, ogg, mid, ips, bz2, lzh, psd

UserPost
Deleted User
Posts: 71/-7750
I dont know even where to start. I dont know php like to do that.I dont even know what itemshop works in 1.92.
Prince Kassad
Posts: 251/321
There is no item shop I know of that works with 1.A2, but you could probably modify the item shop for 1.92 to work with the newer AcmlmBoard.
Deleted User
Posts: 70/-7750
thanks a bunch for all the help,now I have the stats working perfectly .
By any chance could there be an itemshop that works in 1.A2?
The Roger
Posts: 19/47
A simple image tag like this <img src='status.php?u=".$user['id']."' /> will work.
Deleted User
Posts: 69/-7750
That worked perfectly!
Now how do I make the status appear in every users profiles?
The Roger
Posts: 18/47
Oh dear, god. My mistake I mistyped something .
$_users = mysql_query("SELECT * FROM `users`");
while($_u = mysql_fetch_array($_users))
{
$chk_user = @mysql_fetch_array(mysql_query("SELECT * FROM `users_rpg` WHERE `uid` = '".$_u['id']."'"));
if(!$chk_user)
{
mysql_query("INSERT INTO `users_rpg` SET `uid` = '".$_u['id']."'");
}
}
Hopefully that fixes it. :/
Deleted User
Posts: 67/-7750
No I get no errors it simply doesnt works.
The Roger
Posts: 17/47
Did you get any errors, or did it just not work... I sorta pulled that outa my ass and didn't even try to check if it works.
Deleted User
Posts: 66/-7750
It doesnt works. Where am I supposed to put it? It really doesnt do anything.

Is there an itemshop for 1.A2?
The Roger
Posts: 16/47
Yeah, put this in function.php. Not sure if there's a better way.


$_users = mysql_query("SELECT * FROM `users`");
while($_u = mysql_fetch_array($_users))
{
$chk_user = mysql_fetch_array(mysql_query("SELECT * FROM `users_rpg` WHERE `uid` = '".$u['id']."'"));
if(!$chk_user)
{
mysql_query("INSERT INTO `users_rpg` SET `uid` = '".$u['id']."'");
}
}
Deleted User
Posts: 65/-7750
......

It works. I just added that and it works.
Thank you soo much!

Mods,close this thread.

Another little problem,for that to work I have to add a table in the users_rpg thing in phpmyadmin.

Is there a way that everytime a user registers a new table with his id gets created there?
Prince Kassad
Posts: 244/321
What happens if you insert the line:
$c = array();

in status.php, after the two 'require' lines?
Deleted User
Posts: 64/-7750
Ok im trying to make status.php to work in 1.a2 I asked prince kassad about this problem:
edit:link to site edited because problem is solved and site is still not ready for public.

he told me that there is alot of stuff that need to be fixed in that file to make it work so I ask,has anybody installed it succesfully and how?
Acmlm's Board - I3 Archive - Programming - status.php problem


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.004 seconds; used 352.08 kB (max 404.38 kB)