Contents |
X-Center
- Module: X-Center
- Version: 1.09
- Author: Simon Roberts Wishcraft
- Compatible: All Versions - 2.0.x / 2.2.x / 2.3.x
- Download: xoops2_xcenter_1.09.zip
- Torrent: xoops2_xcenter_1.09.torrent
ZIP CRC
xoops2_xcenter_1.09.zip
- MD5: 598afdd492b4a05f31ec11c4a28ed709
- SHA1: 7957d05502d670d0b9de1dd8f2f38669a997062e
- RIPEMD160: f5522afb54aea1208c01c7d6f665d99901bcf261
- CRC32: 89819d4b
- Date: 30 Sept 2008 (11:40 AEST)
HashCalc
HashCalc is a SlavaSoft Tool for Calculating and checking file hashing and other functionalities of Textual Hashing, you can check your file hashing with this tool it is an easy-to-use hash calculator. It can compute message digests, checksums and HMACs for files, as well as for text and hex strings. It offers a choice of 13 of the most popular hash and checksum algorithms for calculations.
- MD5: 3763ce0490295b4bcbe4e4cdbc85be48
- SHA1: f262b8a580fe26c317105e30bc03857cdd6f7ecf
- RIPEMD160: 9fa9ef399437b75e0a48b91ea009622e08ad0175
- CRC32: 484d20d9
Requirement
- XOOPS 2.x.x
- SIMPLE XML
Release notes
As php_pp has asked me to explore some of the older modules as a core developer, I have re-written the Content module so it falls in line with code standardisation as well as XOOPS Code protocol. It has been completely rewritten as well as a concession of other features added in. Now with the content module this has been renamed to X-Center as it is the center of your website. There is a new XML Power Block which will allow you to write and clone multiple blocks that scan other areas of your database for content in pertenance to the data in the article.
This means that you can have blocks in multiple places that are constantly changing based on various content types in the system, this off course with Search Engines the more you site expands and is used, mean you have a higher SEO rank cause your pages are reflecting a higher change in the system page impressions.
The X-Center is and will remain quiet popular as I have had many enquires about the content module but I do not is it is a bit miscurious in it presentation, so I have revamped it and released it to you.
Installation Notes
- Download X-Center
- Unzip into the module directory
XML Power Block
The XML Power block is a clonable block that basis it content on keywords and targeted XMLm here are the two XML documents for this module version 1.10 and 1.11 of the xcenter_ct document.
xcenter_ct 1.10 - XML Document Standard
<?xml version="1.0" encoding="utf-8"?>
<!-- Version 1.10 XML Block Document -->
<xcenter_ct version="1.10">
<version>1.10</version>
<module>dirname</module>
<module_ver>x.xx</module_ver>
<keywords>TRUE</keywords>
<database>
<tables>
<details>
<name>tablename</name>
<alias>a</alias>
</details>
<details>
<name>tablename</name>
<alias>b</alias>
</details>
</tables>
<joins>
<join>
<ons>
<on>
<field>
<field>field_a</field>
<alias>a</alias>
</field>
<field>
<field>field_b</field>
<alias>a</alias>
</field>
<condition>=</condition>
<next_on>AND</next_on>
</on>
</ons>
<prev_join>
<alias></alias>
</prev_join>
<tables>
<table>
<name>tablename</name>
<alias>a</alias>
</table>
<table>
<name>tablename</name>
<alias>b</alias>
</table>
</tables>
<type>INNER JOIN</type>
<alias>a</alias>
</join>
<join>
<ons>
<on>
<field>
<field>field_e</field>
<alias>b</alias>
</field>
<field>
<field>field_r</field>
<alias>a</alias>
</field>
<condition>=</condition>
<next_on>AND</next_on>
</on>
</ons>
<prev_join>
<alias>a</alias>
</prev_join>
<tables>
<table>
<name>tablename_c</name>
<alias>c</alias>
</table>
</tables>
<type>INNER JOIN</type>
<alias>a</alias>
</join>
</joins>
<fields>
<field>*</field>
</fields>
<where>
<field>
<name>field_a</name>
<alias>a</alias>
<condition>IN ({keyword_array})</condition>
<prev_clause>AND</prev_clause>
</field>
<field>
<name>field_b</name>
<alias>b</alias>
<condition>LIKE {keyword_segment}</condition>
<totality>OR</totality>
<prev_clause>OR</prev_clause>
</field>
</where>
<orders>
<field>
<name>a.field</name>
<order>ASC</order>
</field>
</orders>
<having>
<field>
<name>field_a</name>
<alias>a</alias>
<condition>IN ({keyword_array})</condition>
<prev_clause>AND</prev_clause>
</field>
<field>
<name>field_b</name>
<alias>b</alias>
<condition>LIKE {keyword_segment}</condition>
<totality>OR</totality>
<prev_clause>OR</prev_clause>
</field>
</having>
<limit>0,10</limit>
</database>
<!-- Version 1.11 Textual Block Document -->
<block>
<version>1.02</version>
<type>TEXTUAL</type>
<link>{XOOPS_URL}/module/thatmodule/file.php?foo={field_e}&bar={field_f}</link>
<component>
<field>field_a</field>
<type>title</type>
</component>
<component>
<field>field_b</field>
<type>summary</type>
</component>
<component>
<field>field_c</field>
<type>content</type>
</component>
<component>
<fields>
<field>field_d</field>
</fields>
<src>{XOOPS_URL}/uploads/sourcepath/{field_d}</src>
<type>image</type>
</component>
</block>
<!-- Version 1.11 Image Block Document -->
<block>
<version>1.02</version>
<type>IMAGE</type>
<link>{XOOPS_URL}/module/thatmodule/file.php?foo={field_d}&bar={field_b}</link>
<src>{XOOPS_URL}/uploads/sourcepath/{field_b}</src>
<optional>
<width>10px</width>
<height>10px</height>
<alt>Blah Blah</alt>
</optional>
<component>
<field>field_a</field>
<type>alt_text</type>
</component>
<component>
<field>field_b</field>
<type>image_url</type>
</component>
</block>
</xcenter_ct>
xcenter_ct 1.10 - XML Document Example
This will align the user table with the news table and produce a block.
<?xml version="1.0" encoding="utf-8"?>
<!-- Version 1.10 XML Block Document -->
<xcenter_ct version="1.10">
<version>1.10</version>
<module>dirname</module>
<module_ver>x.xx</module_ver>
<keywords>TRUE</keywords>
<database>
<tables>
<details>
<name>users</name>
<alias>a</alias>
</details>
<details>
<name>stories</name>
<alias>b</alias>
</details>
</tables>
<joins>
<join>
<ons>
<on>
<field>
<field>uid</field>
<alias>a</alias>
</field>
<field>
<field>uid</field>
<alias>b</alias>
</field>
<condition>=</condition>
<next_on>AND</next_on>
</on>
</ons>
<prev_join>
<alias>a</alias>
</prev_join>
<tables>
<table>
<name>users</name>
<alias>a</alias>
</table>
<table>
<name>stories</name>
<alias>b</alias>
</table>
</tables>
<type>INNER JOIN</type>
<alias>a</alias>
</join>
</joins>
<fields>
<field>b.*</field>
<field>a.uname</field>
</fields>
<where>
<field>
<name>uid</name>
<alias>a</alias>
<condition>IN ({keyword_array})</condition>
<prev_clause>AND</prev_clause>
</field>
</where>
<orders>
<field>
<name>last_login</name>
<alias>a</alias>
<order>ASC</order>
</field>
</orders>
<limit>0,100</limit>
</database>
<!-- Version 1.11 Textual Block Document -->
<block>
<version>1.02</version>
<type>TEXTUAL</type>
<link>{XOOPS_URL}</link>
<component>
<field>title</field>
<type>title</type>
</component>
<component>
<field>uname</field>
<type>summary</type>
</component>
</block>
</xcenter_ct>
xcenter_ct 1.11 - XML Document Standard
<?xml version="1.0" encoding="utf-8"?>
<!-- Version 1.11 XML Block Document -->
<xcenter_ct version="1.11">
<version>1.11</version>
<module>dirname</module>
<module_ver>x.xx</module_ver>
<sql>{SELECT * FROM ...}</sql>
<!-- Version 1.11 Textual Block Document -->
<block>
<version>1.02</version>
<type>TEXTUAL</type>
<link>{XOOPS_URL}/module/thatmodule/file.php?foo={field_e}&bar={field_f}</link>
<component>
<field>field_a</field>
<type>title</type>
</component>
<component>
<field>field_b</field>
<type>summary</type>
</component>
<component>
<field>field_c</field>
<type>content</type>
</component>
<component>
<fields>
<field>field_d</field>
</fields>
<src>{XOOPS_URL}/uploads/sourcepath/{field_d}</src>
<type>image</type>
</component>
</block>
<!-- Version 1.11 Image Block Document -->
<block>
<version>1.02</version>
<type>IMAGE</type>
<link>{XOOPS_URL}/module/thatmodule/file.php?foo={field_d}&bar={field_b}</link>
<src>{XOOPS_URL}/uploads/sourcepath/{field_b}</src>
<optional>
<width>10px</width>
<height>10px</height>
<alt>Blah Blah</alt>
</optional>
<component>
<field>field_a</field>
<type>alt_text</type>
</component>
<component>
<field>field_b</field>
<type>image_url</type>
</component>
</block>
</xcenter_ct>
xcenter_ct 1.11 - XML Document Example
This will align the user table with the news table and produce a block.
<?xml version="1.0" encoding="utf-8"?>
<!-- Version 1.11 XML Block Document -->
<xcenter_ct version="1.11">
<version>1.11</version>
<module>dirname</module>
<module_ver>x.xx</module_ver>
<database>
<sql>SELECT b.*, a.uname FROM en_users as a INNER JOIN en_stories as b on a.uid = b.uid WHERE a.uid IN ({keyword_array}) ORDER BY a.last_login ASC LIMIT 0,100</sql>
</database>
<!-- Version 1.11 Textual Block Document -->
<block>
<version>1.02</version>
<type>TEXTUAL</type>
<link>{XOOPS_URL}</link>
<component>
<field>b.title</field>
<type>title</type>
</component>
<component>
<field>a.uname</field>
<type>summary</type>
</component>
</block>
</xcenter_ct>











![[Main Page]](/modules/mediawiki/images/mediawiki.png)


