![]() |
help with IF code
hey there,
i wanna do some code in a mode which shows my user gourps at the end of the index page. there is the rows : PHP Code:
so it will have an "if" that will check like if(!$last){ '>>' } i just tried to do that alot with no succeed any help ? |
Instead of add a string to $activeusers2 (string) in a loop, make $activeusers2 an array and add only the open/closetag and the grouptitle to this array. Now once the loop is finished, use implode() to convert the array to a string adding the seperators you want.
Example: PHP Code:
|
i getting an code error when i doing as u said, thats the all code :
PHP Code:
|
What is the error?
|
it says its on line 11 nothing more, thats the code after ive edited as u said :
PHP Code:
|
The error should tell you more then only a linenumber.
Also, are you editing the product xml-file directly? |
just please tell me how to do an "if" as i explained before plz...
"Also, are you editing the product xml-file directly?" no . |
Quote:
|
If you are not editing the xml-file, then please post only the code of the plugin that is causing the problems, this makes it a lot easier to find any errors.
|
i am editing the XML file..
and i posted how ive edited it |
All times are GMT. The time now is 04:11 AM. |
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:
|