The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 ? |
#2
|
|||
|
|||
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:
|
#3
|
|||
|
|||
i getting an code error when i doing as u said, thats the all code :
PHP Code:
|
#4
|
|||
|
|||
What is the error?
|
#5
|
|||
|
|||
it says its on line 11 nothing more, thats the code after ive edited as u said :
PHP Code:
|
#6
|
|||
|
|||
The error should tell you more then only a linenumber.
Also, are you editing the product xml-file directly? |
#7
|
|||
|
|||
just please tell me how to do an "if" as i explained before plz...
"Also, are you editing the product xml-file directly?" no . |
#8
|
||||
|
||||
Marco is trying to help you do it a better way so bare with him and let him post so it can be helpful to you
|
#9
|
|||
|
|||
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.
|
#10
|
|||
|
|||
i am editing the XML file..
and i posted how ive edited it |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|