|
|
|
|
|
| Sunday, 24 December 2006 | |
|
Page 2 of 3
The replacement of the $row->title variable causing bugs in other mambots (ie sociotag) By default $row->title contains a text string as defined by the title attribute. JoGadgets replaces this string with a tag rendering an image instead. This works fine for the header, but other mambots can rely on $row->title returning text not html. The simplest solution is to duplicate the $row->title variable whilst it still contains a text string, then adjust other mambots to use the new variable instead. The following code sets a new variable, $row->title_text which we can use in our other mambots. You will need to manually edit mambots/content/jogadgets.php and adjust the following lines: Old:
New:
You will then need to update other mambots and search for references to $row->title and replace them with $row->title_text. |



