You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 189 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Better News Modules? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
deech
Nuke Soldier
Nuke Soldier


Joined: Jun 29, 2005
Posts: 32


PostPosted: Fri Jun 08, 2007 10:29 am Reply with quoteBack to top

Are there any news modules out there that are better than what comes with phpnuke? I need one that can display pics and can use colored text.
Find all posts by deechView user's profileSend private messageVisit poster's website
eXistenZe
Sergeant
Sergeant


Joined: Mar 03, 2007
Posts: 127


PostPosted: Fri Jun 08, 2007 11:28 am Reply with quoteBack to top

Just learn basic html and the default module will do just fine...
Find all posts by eXistenZeView user's profileSend private message
deech
Nuke Soldier
Nuke Soldier


Joined: Jun 29, 2005
Posts: 32


PostPosted: Fri Jun 08, 2007 1:07 pm Reply with quoteBack to top

I've tried to include html for pics in the news before and it does appear in the preview, but once the article is actually posted the image disappears, without even a red X.
Find all posts by deechView user's profileSend private messageVisit poster's website
hue
Support Mod
Support Mod


Joined: Apr 18, 2003
Posts: 368

Location: Ohio

PostPosted: Fri Jun 08, 2007 1:55 pm Reply with quoteBack to top

deech wrote:
I've tried to include html for pics in the news before and it does appear in the preview, but once the article is actually posted the image disappears, without even a red X.
You need to specify what tags you want in your config file under the $AllowableHTML array . See --> http://nukecops.com/PHP-Nuke_allow-special-html-tags.html
Or, you can simply replace your array with this one

Code:
$AllowableHTML = array(
    'a' => array('href' => 1, 'target' => 1, 'title' => array('minlen' => 4, 'maxlen' => 120)),
    'b' => array(),
    'blockquote' => array(),
    'br' => array(),
    'center' => array(),
    'div' => array('align' => 1),
    'em' => array(),
    'font' => array('face' => 1, 'style' => 1, 'color' => 1, 'size' => array('minval' => 1, 'maxval' => 7)),
    'h1'=>array(),
    'h2'=>array(),
    'h3'=>array(),
    'h4'=>array(),
    'h5'=>array(),
    'h6'=>array(),
    'hr' => array(),
    'i' => array(),
    'img' => array('alt' => 1, 'src' => 1, 'hspace' => 1, 'vspace' => 1, 'width' => 1, 'height' => 1, 'border' => 1, 'align' => 1),
    'li' => array(),
    'ol' => array(),
    'p' => array('align' => 1),
    'pre' => array('align' => 1),
    'span' =>array('class' => 1, 'style' => array('font-family' => 1, 'color' => 1)),
    'strong' => array(),
    'strike'=>array(),
    'sub'=>array(),
    'sup'=>array(),
    'table' => array('align' => 1, 'border' => 1, 'cell' => 1, 'width' => 1, 'cellspacing' => 1, 'cellpadding' => 1),
    'td' => array('align' => 1, 'width' => 1, 'valign' => 1, 'height' => 1, 'rowspan' => 1, 'colspan' => 1 ),
    'tr' => array('align' => 1),
    'tt'=>array(),
    'u' => array(),
    'ul' => array(),
);

_________________
Go Go Buckeyes!!
Find all posts by hueView user's profileSend private messageICQ Number
deech
Nuke Soldier
Nuke Soldier


Joined: Jun 29, 2005
Posts: 32


PostPosted: Mon Jun 11, 2007 12:33 pm Reply with quoteBack to top

Thanks! I didn't know that was my problem. I pasted this code into my config.php but it made all my current articles lose paragraph spacing and bolded text and so forth so I guess I need to play with it some to get it working just right.
Find all posts by deechView user's profileSend private messageVisit poster's website
eXistenZe
Sergeant
Sergeant


Joined: Mar 03, 2007
Posts: 127


PostPosted: Mon Jun 11, 2007 1:02 pm Reply with quoteBack to top

Just add
Code:
'img' => array('alt' => 1, 'src' => 1, 'hspace' => 1, 'vspace' => 1, 'width' => 1, 'height' => 1, 'border' => 1, 'align' => 1),
to your lines...
Find all posts by eXistenZeView user's profileSend private message
deech
Nuke Soldier
Nuke Soldier


Joined: Jun 29, 2005
Posts: 32


PostPosted: Tue Jun 12, 2007 12:20 pm Reply with quoteBack to top

I was able to save an article with an image after doing this, but once it was posted somehow all the text of the first story box (where I put the image) was removed and now when I try to edit it the picture is gone too.

This happens in the content section too, if I post an image in a content box and try to edit text, the image will not be there. I have to add the image code again every time I need to edit text.
Find all posts by deechView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.215 Seconds - 167 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::