Acronym - new XoopsCode

Do you want to have new XoopsCode? My Little hack add new XoopsCode like HTML < acronym > tag. Add new functionality is easy

First we need to create a directory in CLASS/TEXTSANITIZER new folder and call it "acr". In it are two files:

The first is "index.html" which serves as a basic protection against such intrusions. You can find it in virtually all other directories and it is sufficient merely to copy the new directory.

The second is called "acr.php" and have this content:

<?php
/*
 You may not change or alter any portion of this comment or credits
 of supporting developers from this source code or any supporting source code
 which is considered copyrighted (c) material of the original comment or credit authors.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/

/**
 * TextSanitizer extension
 *
 * @copyright       The XOOPS Project http://sourceforge.net/projects/xoops/
 * @license         http://www.fsf.org/copyleft/gpl.html GNU public license
 * @package         class
 * @subpackage      textsanitizer
 * @since           2.3.0
 * @author          Wishcraft <simon@xoops.org>
 * @version         $Id: li.php 3575 2009-09-05 19:35:11Z trabis $
 */
defined('XOOPS_ROOT_PATH') or die('Restricted access');

class 
MytsAcr extends MyTextSanitizerExtension
{
    function 
load(&$ts)
    {

        
$ts->patterns[] = "/[acr](.*)[/acr]/sU";
        
$ts->replacements[] = '<acronym title="Unknown acronym">\1</acronym>';
    
        
$ts->patterns[] = "/[acr=(.*)](.*)[/acr]/sU";
        
$ts->replacements[] = '<acronym title="\1">\2</acronym>';
        return 
true;
    }
}

?>


In it, he set his own recognition of the new Xoopscode and its treatment, or switch to HTML tags. You may notice that contains two options:

[acr]Xoops[/acr]


This code creates the text, which completes the acronym, but is not assigned any meaning, because it also writes the label.

[acr=eXtensible Object Oriented Portal System]Xoops[/acr]


This code creates a shortcut again in the sense of HTML, but given the importance of this symbol and therefore it forward.

Everything worked so well, you need to edit another file, and that is the file "config.php" which is located in the directory CLASS/TEXTSANITIZER.

You need to find this part:

return $config = array(
    
"extensions" => array(
        
"iframe" => 0,
        
"image" => 1,
        
"flash" => 1,
        
"youtube" => 1,
        
"mp3" => 0,
        
"wmp" => 0,
        
// If other module is used, please modify the following detection and 'link' in /wiki/config.php
        
"wiki" => is_dir(XOOPS_ROOT_PATH '/modules/mediawiki/'),
        
"mms" => 0,
        
"rtsp" => 0,
        
"ul" => 1,
        
"li" => 1),


and add only one line:

return $config = array(
    
"extensions" => array(
        
"iframe" => 0,
        
"image" => 1,
        
"flash" => 1,
        
"youtube" => 1,
        
"mp3" => 0,
        
"wmp" => 0,
        
// If other module is used, please modify the following detection and 'link' in /wiki/config.php
        
"wiki" => is_dir(XOOPS_ROOT_PATH '/modules/mediawiki/'),
        
"mms" => 0,
        
"rtsp" => 0,
        
"ul" => 1,
        
"li" => 1,
        
"acr" => 1),


That´s all, happy Xoopsing

Demo: see my web page: www.zirafoviny.cz
Read more... | 1 comment

Little hack of Runeher's "Lorem Ipsum Generator"

Hi, "Lorem Ipsum Generator" from Runeher is useful module for all web designers. But now more useful

I translate module to Czech language (module don't use language files) and added "nicer style" to option menu.

Why hack? Because this module don't use Language files but all text are "hard" in source code.

In to the Czech version I added Czech version of Lorem Ipsum, with diacritic and Czech like words. On English version are only original languages, but English speaking people don't need Czech like texts

Download Czech version

Download English version

Happy Xoopsing
Read more... | 1 comment

New Design of XOOPS Turkey

XOOPS Turkey Website has bee updated with a new attractive design:

Resized Image

Congratulations!

Viva XOOPS!
Read more... | 6 comments

WOX (World of XOOPS) Newsletter # 33 (June 2010)

WOX - World Of Xoops
Welcome to the June 2010 issue of WOX (World of XOOPS) Newsletter  - (see here previous versions

As always, as the first thing in each newsletter we wanted to express our gratitude to all of you who have donated money to XOOPS Foundation! We truly appreciate your trust and support! 

May was definitely the months of themes!!! We've received tons of them, and many of them are very cool and innovative!!! And we also have our first ever XOOPS Radio Commercial

Highlights of the last month:

Summary

Read more... | 49336 bytes more | 11 comments

Inspire 3 Reborn with CSS3

It has been a long time since I released Inspire 6. After a long rest, I decided to continue the Inspire series. The next theme is still quite far away, so I decide to rewrite Inspire 3, one of my most popular themes with CSS3. The new theme looks pretty much the same as the original theme, But it is completely rewritten. Here are the features:

1. Completely rewritten with CSS3. Compatible with Firefox 3.6 and Webkit-based browsers(Chrome, Safari).
2. Only 1 images (Redirect Indicator) is used. The theme is only 37kb zipped.
3. A new user panel instead of the old user menu.
4. The style of tab is modified as many people report to me that the original design is a little “unsuited”.
5. Add more drop shadow effect with the support of CSS3

Resized Image

Download: http://insraq.com/en/download
Demo: http://insraq.com/client/demo/index.php?xoops_theme_select=inspire3_css3
Read more... | 7 comments

Soccer Tournament Site Opened

I'm proud to present a new website in XOOPS 2.4.4: www.cittadiancona.it.

This is a site for the soccer tournament "Città di Ancona", organized every summer in Ancona, Italy, since 1995.

The theme is the Inspire 2.0 by Insraq, modified for better bottom blocks support and colorized in red.

Modules:
- mastop publish (renamed "informazioni")
- news
- tplleaguestats (renamed "risultati", hardly fixed)
- extgallery

http://www.cittadiancona.it

Resized Image
Read more... | 3 comments

XOOPS 2.4.5 RC3 is released

Resized Image

The XOOPS Development Team is pleased to announce the release of XOOPS 2.4.5 RC3.

This release is mainly for further bugfix, as well as removing calendar related code that causes license conflicts.
TinyMCE editor has been upgraded to 3.3.7 (thanks goes to Lucio Rota).
Please check changelog for details.

This release intended to be the last RC release before 2.4.5 final release. Some known issues will be addressed in XOOPS 2.4.6, which is very likely the last version in XOOPS 2.4 series mainly for code cleaning up.
And we would advise module developers not use classes/methods introduced in 2.4 series before code cleaning up is done in 2.4.6.

Download from Sourceforge repository.
Read more... | 12477 bytes more | 21 comments

Free Xoops Design Sd-042-Mystica-Green

I'm happy to present my new FREE XOOPS Theme with the name Sd-042-Mystica-Green.

Resized Image


Here can you find the

- XOOPS 2.4 Theme Demo

- XOOPS 2.5 Theme Demo

And here is the FREE

- Download Xoops Theme Sd-042-Mystica-Green

Have Fun and nice Weekend.
Comments?

New Heyula-37 Themes

Hi..

Heyula-37 Themes Free

Resized Image


Theme Demo And Download:

http://www.xoops-tr.com/modules/myReviews/detailfile.php?lid=11

or

www.ahsapkapici.com
Read more... | 3 comments
« 1 ... 96 97 98 (99) 100 101 102 ... 553 »


Login

Who's Online

133 user(s) are online (8 user(s) are browsing XOOPS News)


Members: 0


Guests: 133


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

Archives

News archives