![]() |
making an xml for the first time
i want to overwrite a Template in postbit_legacy using an xml?
exp:- Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div> Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] </div> thanks. |
It looks like all you did is remove the skypeicon from the template? Why don't you just edit it to remove it or in the plugin set $post[skypeicon]='' so it won't get printed?
|
see am making a mod thats why i need to know how to make a xml i only used this as an exp:-
please help if you can... |
The XML is made automatically when you export your product I believe?
|
yes sir but am trying to make it overwrite part in postbit_legacy who ever helps me i well give him or her credit on the mod i made for helping make it in a xml....
|
A plugin maybe?
PHP Code:
You'd probably want the "parse_template" hook. |
so this is the code to use
Code:
str_replace(""); is this right? Code:
<?xml version="1.0" encoding="ISO-8859-1"?> |
You'd need to edit it in the template - not the postbit.
Try using the parse_templates hook. |
how about now?
Code:
<?xml version="1.0" encoding="ISO-8859-1"?> |
I thought any plugin code had to be wrapped in <phpcode></phpcode>?
It should work (providing the hook is parse_templates and not parse_template). |
All times are GMT. The time now is 12:59 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:
|