![]() |
What is wrong with this?
I've tried several diff ways to get this to work, but no luck with any. :ermm:
PHP Code:
|
PHP Code:
|
Parse error: parse error, unexpected '{' in ***** on line 487
On line 487 is the { below the if in the code you posted. :( |
Steve just forgot a trailing bracket and to actualy have an array ;) :)
Use this it's more efficient: PHP Code:
|
If you are using vB3, always prefer is_member_of() over a check of the usergroupid key. This will, among other things, take additional usergroups into effect (not just the primary usergroup).
|
Quote:
|
Thanks guys! :D
Filburt1, where would that go? Kind of a newbie in vB3 code :speechless: |
Quote:
PHP Code:
|
Thank you! :D
|
Instead of making another thread, I'll post in this one. :D. Anyways, I am stuck yet again and on something that I thought would've been easy to do. :x.
Anyways, I am trying to achive something like member.php does, but no luck in making it work. I've scanned countless files trying almsot everything. LOL. But I need to show a username according to the userid, hence like the member.php file. Thanks in advanced. :) |
Quote:
Then $userinfo is an array that has all the user info such as username, $userinfo['username'], etc. |
You are the king! Thanks again! :D
|
Hello again! :)
I am currently trying to pull users from a specific usergroup out of the database. How would I go about doing that? This is the query I have. It only pulls one user out of the database. :( PHP Code:
|
Using the query_first only gets the first result; use query instead, but then you need to use $DB_site->fetch_array($user); in a while statement.
|
Hey,
I appreciate all the help, Gary W. But I am comfused on the while statement. I can't seem to figure out how you make one pretty much. I've looked through the PHP Manual, vBulletin Manual, searched several PHP sites and I am still baffled. I understand a little part I belive. PHP Code:
|
Try something like
PHP Code:
|
Thanks man! Though I still don't see where I went wrong at though. Could've it have actually been the template where I forgot the <br /> tag? :confused:
Edit: The <br /> kind of messed up the layout. So I removed it and it still works. :). Edit again: NEvermind. I missed a . in the eval part in the while query! :D But thank you so much! :) |
All times are GMT. The time now is 06:53 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|