Hacks

The cloning of a module

JMorris  16-Sep-2004 14:12 9687 Reads   2 Comment(s) 

6) Blocs

* in xoops_version modify for each block the noun of the functions show and edict.
$$modversion['blocks'][3]['show_func ' ] = "b_news02_top_show";
$$modversion['blocks'][3]['edit_func ' ] = "b_news02_top_edit";
* publish each file of the repertory blocks referred by $$modversion['blocks'][]['file ' ] = and modify the noun of the functions.
Ex with the file news_top.php
function b_news02_top_show($options) {
function b_news02_top_edit($options) {
* Nonessential, but preferable, also change the names of the files in xoops_version, without forgetting to re-elect correctly those in the repertory blocks
$$modversion['blocks'][3]['file ' ] = "news02_block_top.html";

7) Commentaires

* in xoops_version modify the noun of the functions approve and update:
$$modversion['comments']['callbackFile ' ] = ' include/comment_functions.php ';
$$modversion['comments']['callback']['approve ' ] = ' news02_com_approve ';
$$modversion['comments']['callback']['update ' ] = ' news02_com_update ';
« 1 2 3 (4) 5 6 »
Rating 0/5
Rating: 0/5 (0 votes)
Voting is disabled!


Login

Who's Online

140 user(s) are online (2 user(s) are browsing Publisher)


Members: 0


Guests: 140


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits

Categories