User Login    
 + Register
  • Main navigation
Vote for XOOPS!!!!
Login
Username:

Password:


Lost Password?

Register now!
Documentation
Who's Online
85 user(s) are online (3 user(s) are browsing XoopsWiki)

Members: 4
Guests: 81

credman, DarinAllan, wu033213, mr-reda04_fr, more...
[Main Page]

Code Snippit

From XOOPS Project

Main Page | Recent changes | Edit this page | Page history | Switch to MediaWiki mode

Printable version | Disclaimers | Privacy policy

HTML formating in XOOPS question: ~ It's really normal that xoops put's your content a lot lower then you expect. Put al your code before your text on 1 line. Difficult, but it works. Xoops makes from every hard enter <BR>. Don't expect more . Normally if you put all your code on 1 line your content wil be on the 2 second line.


Replace break tags: ~ I ran into this same problem. I used NSections and needed to somehow bypass textsanitizer in some way from replacing my line breaks into
tags. What I did was include a new field in the database called "ignoreCR" (ignore carriage returns). This is either 0 or 1. The article view function detects this value. If it's 1 then you want to bypass the line break replace. What I do is include this line: ~ $content = preg_replace("/(\015\012)|(\015)|(\012)/","",$content);


Retrieved from "http://www.xoops.org/modules/mediawiki/index.php/Code_Snippit"

This page has been accessed 797 times. This page was last modified 16:51, 14 January 2008. Content is available under XOOPS Project.


Local Support Sites
Powered by
XOOPS Code hosted on SourceForge

Powered by PHP



Powered by MySQL

Powered by Smarty

OSI certified

All content on this site is subject to the Creative Commons License
Developers for Hire