xoops forums

Forum Index


Board index » All Posts




w4z004

XOOPS Advisor
Posted on: 2002/7/19 2:32
w4z004
w4z004 (Show more)
XOOPS Advisor
Posts: 340
Since: 2001/12/13
#292171

Re: PhpAdsNew

the script are modularized and is really simple :
-download the module.
-activate the module.
-later of activated, press in the phpadsnew logo and realize a complete install. (in english is better, later you can change the language.)
- Read the manuals for undertand all the features.

the script is generated automatic using :

http://you url/modules/phpads/admin/admin-generate.php

i;m prefer use the "remote invocation for javascript" but exist more methods for publish.

this is a sample code for insert into the theme.php generated for me:
echo"<div align='center'><script language='JavaScript' src='http://www.xoops.sytes.net/modules/phpads/adjs.php?clientid=2&target=_blank&withText=0'></script></div>";

only need remark or delete the lines :

//if ($xoopsConfig['banners']) {
//showbanner();

and put you coded for display the banner.
too you can generate many type of banners in many positions, in me site ( www.xoops.sytes.net) i;m use the phpadsnew for display the banners and the partners block.
The partners block is a html custom block with the javascript inside :

this is me code :
<div align:center><script language='JavaScript' src='http://www.xoops.sytes.net/modules/phpads/adjs.php?clientid=3&target=_blank&withText=0'></script></div>

it's all if have questions abouth the phpadsnew use, read the complete manuals :)


smackdaddy

Just popping in
Posted on: 2002/7/18 23:49
smackdaddy
smackdaddy (Show more)
Just popping in
Posts: 14
Since: 2002/3/28
#292172

PhpAdsNew

In another message, w4z004 stated:

Quote:
Re: Flash banners in XOOPS ??
Use the phpadsnew module.
A professional banner module.


Since I did not want to go off-topic in the other thread, I am asking it here....

w4z004 (or anyone else), how do we get phpAdsNew to work with Xoops? I thought there was an issue with counting links and such with XOOPS and external ad management programs? Or am I mistaken?

I am developing a site which would greatly benefit from the extra features of phpAdsNew, but don't know how to get it to work with Xoops.....

Any help would be appreciated.....
Thanks in advance.


danyblue

Just popping in
Posted on: 2002/7/17 22:27
danyblue
danyblue (Show more)
Just popping in
Posts: 48
Since: 2002/4/15
#292173

Re: HTML problem in XOOPS and Other CMS?

Hi,
in a certain way I disagree with you. The purpose of a CMS is to make more easy the task of building and mantaining a website and its content.
Content is what you put inside the system, so what is the purpose of having 5,6 or 7 disctint modules to do that? I would create just one unique system sufficiently flexible to be configured to my needs. Is why i am saying that news/sections/nsections/freecontent/wysiwyg to be merged in one XOOPS Main Interface that could be keep in a better/control way.

regards,
Danyblue


jackt

Just popping in
Posted on: 2002/7/17 21:17
jackt
jackt (Show more)
Just popping in
Posts: 31
Since: 2002/6/2 2
#292174

Re: HTML problem in XOOPS and Other CMS?

Well i think freecontent and the sections modules do different things. So I don't think they should be integrated. But a new or better wysiwyg editor wouldn't really be on a per module basis, but a replacement of the editor in the class files (if that's where it resides, I don't know. At least it should be.


danyblue

Just popping in
Posted on: 2002/7/17 9:00
danyblue
danyblue (Show more)
Just popping in
Posts: 48
Since: 2002/4/15
#292175

Re: HTML problem in XOOPS and Other CMS?

Hi,
yes it works fine, i didn't have any problem installing it and using it.
I will now translate it to portuguese in order to have ti working definitvly.
The result can be seen in
http://cardielos.nicewebs.net/modules ... n/article.php?articleid=1



Sorrry for the poor formatting, but i am still trying to figure out the best approach to format correctly a newspaper in Xoops.

One last suggestion, wouldn't it be more valuable to integrate all the sections/freecontent/wysigeditor/news in just one project with several member working on it? Like some kind of subproject of Xoops?
I am saying that because every one of them as functionalities that would be fine for a module.


regards,
Danyblue
Quote:
Sorry but i have seen that there is no annoymous access to the information, how can i change it in order to be accessible by anonynous users?


jackt

Just popping in
Posted on: 2002/7/17 0:17
jackt
jackt (Show more)
Just popping in
Posts: 31
Since: 2002/6/2 2
#292176

Re: HTML problem in XOOPS and Other CMS?

Hi, it's not my module, it's Haruki's. I just hacked it a little. But his module does support pagebreaks, just read the readme file included.


Boobtoob

Friend of XOOPS
Posted on: 2002/7/16 21:15
Boobtoob
Boobtoob (Show more)
Friend of XOOPS
Posts: 202
Since: 2001/12/22
#292177

Please read before using any hacks from this forum !!

Please feel free to share your hacks with the rest of the XOOPS community. Please be advised that if you use these hacks that it could break forward comapatibility with future XOOPS versions. We only recommend using hacks from this forum if your an experienced PHP/XOOPS hacker.

Please give a good explination of the hack so that everyone can understand what the hack is for/about.

Thanks,
XOOPS Team


Boobtoob

Friend of XOOPS
Posted on: 2002/7/16 21:09
Boobtoob
Boobtoob (Show more)
Friend of XOOPS
Posts: 202
Since: 2001/12/22
#292178

Please read before using these hacks !!

Please feel free to share you hacks with the rest of the XOOPS community. Please be advised that if you use these hacks that it could break forward comapatibility with future XOOPS versions. We only recommend using hacks from this forum if your an experienced PHP/XOOPS hacker.

Please give a good explination of the hack so that everyone can understand what the hack is for/about.

Thanks,
XOOPS Team


danyblue

Just popping in
Posted on: 2002/7/16 12:47
danyblue
danyblue (Show more)
Just popping in
Posts: 48
Since: 2002/4/15
#292179

Re: HTML problem in XOOPS and Other CMS?

Hi jackt,

you are module is working fine, i have been able to post my content the way i wanted.
Does your module support [pagebreak]?

Regards,
Danyblue


jackt

Just popping in
Posted on: 2002/7/16 10:48
jackt
jackt (Show more)
Just popping in
Posts: 31
Since: 2002/6/2 2
#292180

Re: HTML problem in XOOPS and Other CMS?

Well.. this line..

$text =preg_replace("/(\015\012)|(\015)|(\012)/","<br />", $text);

on display, text sanitizer will not replace all line breaks with <br /> tags. So if you say post a news article it wont output any line breaks submit.

The line you added removes all <br /> tags. So there will never be any line breaks in anything you post. At least none will be output. Basically text sanitizer converts line breaks into <br /> and then your line deletes that <br /> and all others. By default <br /> isn't in the "allowed html" anyways, but I added it to my XOOPS config.

I'm not sure what you are trying to do. I'll assume you're posting html into the textarea and it's coming out with a lot of <br /> tags ruining your formatting. Well what you did will prevent ANY line breaks from being displayed that goes thru text sanitizer, which accounts for just about (if not) all XOOPS modules that come packaged with xoops.

I've hacked up Haruki's wfsection module to include a switch to Enable Line Break Filtering on display. So when you check it, the script will filter out any line breaks in your code before it runs thru text sanitizer. This may solve your line break problem, but text sanitizer will still check for "allowed html". So if you're using any weird tags it still might cause you problems.. I'll add a checkbox to disable html, smilies and forum codes a little later. You can try this hacked up wfsections module here:

http://www.dailabs.com/wfsection_hack-612.zip

I'd suggest you try it out before using it in production environment.. I'll take no responsibility if anything blows up tho it shouldn't.