Pirata Nervo
NervOS Developer
Posts: 699.4765 Threads: 39
Joined: 20th Jun 2007
Reputation: -0.79225
E-Pigs: 19.2466
|
RE: Need help with php
well the member.php has the $usefields varaible, and i can use the $userfields variable there without doing anything i just need to do what i did in my code.
Like this per example:
Replace this:
with this:
So this is my function now:
Still not working.
And its $format = "<span style=\"${userfields['fid5'};\">{username}</span>"; not with \
(This post was last modified: 09/09/2007 06:10 AM by Pirata Nervo.)
|
|
09/09/2007 06:09 AM |
|
ZiNgA BuRgA
Smart Alternative
Posts: 17,022.2988 Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1274
|
RE: Need help with php
Uhh.... the two functions kinda contradict each other... Try working through your logic first.
|
|
09/09/2007 06:12 PM |
|
Pirata Nervo
NervOS Developer
Posts: 699.4765 Threads: 39
Joined: 20th Jun 2007
Reputation: -0.79225
E-Pigs: 19.2466
|
RE: Need help with php
but i know what im doing and i know what to edit but i don't know what i need to acess userfields.
Also what functions contradict each other?
|
|
10/09/2007 02:38 AM |
|
ZiNgA BuRgA
Smart Alternative
Posts: 17,022.2988 Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1274
|
RE: Need help with php
Well, if you know what you're doing, you obviously don't need help! :P
*sigh* okay, I'll give you a quick 1 minute function (too lazy to test if it works). It _should_ work, but do note that it's _very_ slow:
(This post was last modified: 10/09/2007 03:09 AM by ZiNgA BuRgA.)
|
|
10/09/2007 03:07 AM |
|
Pirata Nervo
NervOS Developer
Posts: 699.4765 Threads: 39
Joined: 20th Jun 2007
Reputation: -0.79225
E-Pigs: 19.2466
|
RE: Need help with php
i don't think that's what i want, i just want users to insert the hex color, not the <span style="{$userfields['fid5'};">{username}</span>
I tested that:
MySQL error: 1054
Unknown column 'f.uid' in 'on clause'
Query: SELECT fid5 FROM mybb_userfields f LEFT JOIN mybb_users u ON u.uid = f.uid WHERE u.username = 'GoogleBot'
|
|
10/09/2007 03:24 AM |
|
Pirata Nervo
NervOS Developer
Posts: 699.4765 Threads: 39
Joined: 20th Jun 2007
Reputation: -0.79225
E-Pigs: 19.2466
|
RE: Need help with php
also i tried that in the function format_name instead of format_namePN
and i get this error:
MySQL error: 1054
Unknown column 'f.uid' in 'on clause'
Query: SELECT fid5 FROM mybb_userfields f LEFT JOIN mybb_users u ON u.uid = f.uid WHERE u.username = 'Pirata Nervo'
|
|
10/09/2007 02:53 PM |
|
ZiNgA BuRgA
Smart Alternative
Posts: 17,022.2988 Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1274
|
RE: Need help with php
Well, if it's not called "uid" replace it with the proper name. I'm too lazy to look up what the correct name is.
If you don't want people entering a <span> then just remove it...
|
|
10/09/2007 04:12 PM |
|
Pirata Nervo
NervOS Developer
Posts: 699.4765 Threads: 39
Joined: 20th Jun 2007
Reputation: -0.79225
E-Pigs: 19.2466
|
RE: Need help with php
Ok this is how it is:
f.ufid
No errors shown, BUT, nothing changed.
Also remove what? the span???
Doesn't your function requires people to insert <span style="#hexcolorhere;">{username}</span> instead of just #hexcolor?
|
|
11/09/2007 01:41 AM |
|
ZiNgA BuRgA
Smart Alternative
Posts: 17,022.2988 Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1274
|
RE: Need help with php
Urgh, okay, tell me what do you have in fid5?
Try setting it to something like:
Let's take this one step at a time.
|
|
11/09/2007 03:54 AM |
|
Pirata Nervo
NervOS Developer
Posts: 699.4765 Threads: 39
Joined: 20th Jun 2007
Reputation: -0.79225
E-Pigs: 19.2466
|
RE: Need help with php
I have #ff0000.
ok let me try with that.
(This post was last modified: 11/09/2007 04:01 AM by Pirata Nervo.)
|
|
11/09/2007 04:00 AM |
|