The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Problem with a product
Hi i write this simple plugin
PHP Code:
in the phpcode of the plugin there is Array and if i change Array with this work PHP Code:
|
#2
|
|||
|
|||
I think you need the code to be inside that CDATA thing, like:
Code:
<phpcode><![CDATA[ // your code ]]></phpcode> You really should create a new product with the product manager, write your plugins and whatever else you want, then export the product xml rather than doing it the other way around. (Although I believe you need to have a test site in debug mode to be able to do that). |
#3
|
|||
|
|||
I'm surprised it even installs at all.
Here's a corrected install xml. Compare them to see where you went wrong. Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <product productid="userstopicpostbit" active="1"> <title><![CDATA[User's Topic in postbit/postbit legacy]]></title> <description><![CDATA[Add user's topic link in postbit or postbit legacy]]></description> <version>0.0.1</version> <url>http://tecnowii.altervista.org</url> <versioncheckurl /> <dependencies> </dependencies> <codes> </codes> <templates> </templates> <stylevardfns> </stylevardfns> <stylevars> </stylevars> <plugins> <plugin active="1" executionorder="5"> <title><![CDATA[User's topic in postbit/postbit_legacy]]></title> <hookname>postbit_display_complete</hookname> <phpcode><![CDATA[$template_hook['postbit_userinfo_left'] .= '<a href="/search.php?do=finduser&userid=' .$post[userid]. '">Topic di ' .$post[username]. '</a>';]]></phpcode> </plugin> </plugins> <phrases> </phrases> <options> </options> <helptopics> </helptopics> <cronentries> </cronentries> <faqentries> </faqentries> </product> |
#4
|
||||
|
||||
Wow really thanks i never do a product and i don't thought that CDATA was required
Really thank you so much |
#5
|
|||
|
|||
I don't think it's required, but it allows the data for a tag to have specials characters in it. That way the xml parser doesn't get confused.
|
#6
|
||||
|
||||
thank you for the info
--------------- Added [DATE]1315438370[/DATE] at [TIME]1315438370[/TIME] --------------- Now i'm just looking for a plugin that can delete code from a template |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|