Search found 8 matches

by Kurisuellegarden
Thu Aug 23, 2012 5:18 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Parsing USERNAME variable in a Select & Where SqlQuery
Replies: 3
Views: 370

Re: Parsing USERNAME variable in a Select & Where SqlQuery

Okay well I was able to modify the code, now it correctly works in displaying the currently logged in user's money. function money() { global $user; $userm=$user->data['username']; $query = sprintf("SELECT * FROM bukkit.money WHERE username = '%s'",mysql_real_escape_string($userm)); $result = mysql_...
by Kurisuellegarden
Thu Aug 23, 2012 7:53 am
Forum: [3.0.x] MOD Writers Discussion
Topic: Parsing USERNAME variable in a Select & Where SqlQuery
Replies: 3
Views: 370

Parsing USERNAME variable in a Select & Where SqlQuery

I've been working at this for a while... I've drawn from tables before, but not user variables like this yet. This is the code I have so far. function money() { $userm = $user->data['username']; $query = sprintf("SELECT * FROM bukkit.money WHERE username = '%s'",mysql_real_escape_string($userm)); $r...
by Kurisuellegarden
Thu Sep 24, 2009 6:49 pm
Forum: [3.0.x] Abandoned MODs
Topic: [ABD] Shop Mod v.1.0 Beta 5
Replies: 427
Views: 38883

Re: [Beta] Shop Mod v.1.0 Beta 5

I'm getting a constant variable not set issue. :(

I've also noticed, that when it's php trys to query my base, it switches shopitems to phpbb_items. I had to manually enter in shopitems...

but now I"m getting this issue. D:

What's a constant variable?

It's telling me it's not installed correctly.
by Kurisuellegarden
Tue Sep 22, 2009 5:00 am
Forum: [3.0.x] Abandoned MODs
Topic: [ABD] Shop Mod (0.4.1)
Replies: 1101
Views: 142935

Re: [ALPHA] Shop Mod (0.4.1)

I'm trying to install 0.3.0 since it's more stable... (is 4.1 really ok and what's the new features?) But, since I"m already pretty much done installing it, I'm not understanding the DIY step. x.x Go to your ACP and manually add the two modes for the shop mod module (System -> Administration Control...
by Kurisuellegarden
Mon Jun 01, 2009 7:34 am
Forum: [3.0.x] MOD Writers Discussion
Topic: Function to tell how many PM one user has...
Replies: 7
Views: 178

Re: Function to tell how many PM one user has...

It was really that easy? xD Ok, now I know where to check in functions what things I can use too. =] Thank you very much! Now I know how to get information from there! It was much easier then I thought, I just was giving the wrong thing to parse first. o-o
by Kurisuellegarden
Sun May 31, 2009 6:29 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Function to tell how many PM one user has...
Replies: 7
Views: 178

Re: Function to tell how many PM one user has...

I'm much more clueless then I thought...I'm still running back and forth trying to figure out how to insert this inside the functions and in the template. =\

It's all so confusing. o-o But, I'm sure once I get it, I won't need to ever ask again...
by Kurisuellegarden
Sun May 31, 2009 7:18 am
Forum: [3.0.x] MOD Writers Discussion
Topic: Function to tell how many PM one user has...
Replies: 7
Views: 178

Re: Function to tell how many PM one user has...

Thanks, I'll use that. =] That's what I was looking for. xD One more question, how would I implement this somewhere new like...

Inbox [5]

Because, I'm adding a small little toolbar for users to use to help them find things easier... o-o
by Kurisuellegarden
Sun May 31, 2009 12:24 am
Forum: [3.0.x] MOD Writers Discussion
Topic: Function to tell how many PM one user has...
Replies: 7
Views: 178

Function to tell how many PM one user has...

I'm trying to find that snipper of code which shows on the page 0 new messages so I can use the "0" and put it somewhere else because I'm designing a little toolbar for it, but I don't know what to use to call and check the signed in users PMs...

Help would be appreciated. D:

Go to advanced search