The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
Quote:
|
|
#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:
|