Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
tauhid
Hangin' Around


Joined: Apr 11, 2009
Posts: 48

PostPosted: Sun Nov 01, 2009 4:57 pm Reply with quote

Hallo,
My question is, I use the NukeBlog but whom I write with the FCKeditor does not come. I just get everything in writing as normal and no pictures or others
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
jakec
Site Admin


Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Mon Nov 02, 2009 1:09 am Reply with quote

I suspect NukeBlog is not designed to use FCKEditor and therefore is not calling it.

The text form fields need to be changed to call FCKEditor.
 
View user's profile Send private message
tauhid
PostPosted: Mon Nov 02, 2009 3:32 am Reply with quote

Could you help me, I have tried everything does not work.
Please help me
 
nuken
RavenNuke(tm) Development Team


Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Mon Nov 02, 2009 7:20 am Reply with quote

OK. replace your NukeBlog/includes/blog_form.php with this code

Code:
<form action="<?php echo($self); ?>" method="post" name="blog_form" id="blog_form">

<input type="hidden" name="op" value="blog_action">
<?php if($blog_id) { ?>
<input type="hidden" name="blog_id" value="<?php echo($blog_id); ?>">
<?php } ?>
<?php echo("<strong>"._BLOG_TITLE."</strong>"); ?><br>
<input type="text" name="form[blog_title]" value="<?php echo($form[blog_title]); ?>" size="70" maxlength="255">

<br>
<br>
<?php echo("<strong>"._BLOG_BODY."</strong>"); ?><br>

<?php wysiwyg_textarea('form[blog_body]', ''.($form[blog_body]).'', 'NukeUser', '50', '12');?>
<br>
<br>
<table width="100%" cellpadding="5" cellspacing="5" border="0">
<tr>
<td valign="top" width="50%"><?php opentable(); ?>
<table>
<tr>
<td align="right"><?php echo("<strong>"._BLOG_MOOD."</strong>"); ?> : </td>
<td><select name="form[blog_mood]">
<?php if(!$form[blog_mood]) { ?>
<option value="0" SELECTED><?php echo(_NO_MOOD); ?></option>
<option value="0"><?php echo(_LINE); ?></option>
<?php } else { ?>
<option value="0"><?php echo(_NO_MOOD); ?></option>
<option value="0"><?php echo(_LINE); ?></option>
<?php } ?>
<?php
$sql = "SELECT mood_id,mood_title FROM ".$prefix."_blog_moods ORDER BY mood_title";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) {
   $mood_title = stripslashes($row[mood_title]);
   if($form[blog_mood] == $row[mood_id]) {
      echo("<option value=\"".$row[mood_id]."\" SELECTED>".$mood_title."</option>\n");
   } else {
      echo("<option value=\"".$row[mood_id]."\">".$mood_title."</option>\n");
   }
}
?>
</select></td>
</tr>
<tr>
<td align="right"><?php echo("<strong>"._BLOG_STATUS2."</strong>"); ?> : </td>
<td><select name="form[blog_status]">
<option value="0" <?php if($form[blog_status] == 0) { echo(" SELECTED"); } ?>><?php echo(_STATUS_CLOSED2); ?></option>
<option value="1" <?php if($form[blog_status] == 1) { echo(" SELECTED"); } ?>><?php echo(_STATUS_OPEN2); ?></option>
<option value="2" <?php if($form[blog_status] == 2) { echo(" SELECTED"); } ?>><?php echo(_STATUS_FRIENDS2); ?></option>
</select></td>
</tr>
<tr>
<td align="right"><?php echo("<strong>"._ALLOW_COMMS."</strong>"); ?> : </td>
<td><select name="form[blog_comments]">
<option value="0" <?php if($form[blog_comments] == 0) { echo(" SELECTED"); } ?>><?php echo(_NO); ?></option>
<option value="1" <?php if($form[blog_comments] == 1) { echo(" SELECTED"); } ?>><?php echo(_YES); ?></option>
</select></td>
</tr>
</table><?php closetable(); ?>
</td>
<td valign="top" width="50%" align="center"><?php opentable(); ?><div align="center"><input type="submit" name="submit" value="<?php echo($button); ?>"><br><br><input type="reset" name="reset" value="<?php echo(_RESET_FORM); ?>"><br><br><?php echo(_CHECK_BLOG); ?></div><?php closetable(); ?></td>
</tr>
</table>
</form>
<?php center(_BLOG_FAQ1." <a href=\"modules.php?name=".$module_name."&file=faq\">"._BLOG_FAQS."</a> "._BLOG_FAQ2); ?>

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
tauhid
PostPosted: Mon Nov 02, 2009 11:04 am Reply with quote

I've done it, but unfortunately the font and the picture does not change it. I get the textarea to FCKeditor but whom I press send I just get text
 
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6383

PostPosted: Mon Nov 02, 2009 11:25 am Reply with quote

I'm not familiar with this addon, but it might be stripping out the HTML elsewhere in the module.

_________________
I google, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
nuken
PostPosted: Mon Nov 02, 2009 12:07 pm Reply with quote

Replace modules/NukeBlog/functions/functions_blog.php with this.

Only registered users can see links on this board! Get registered or login!
 
tauhid
PostPosted: Mon Nov 02, 2009 5:39 pm Reply with quote

You all my appreciation and respect nuken kguske jakec

We have succeeded the way my teacher. You are truly geniuses I swear to you all
I do not know how to thank you for this effort. Thank you all. I ask God to take care of us all.
 
nuken
PostPosted: Mon Nov 02, 2009 5:58 pm Reply with quote

You are welcome tauhid.

That is actually a cool module. I've been goofing around with it some today and added a few things to it. I might release it on my site in a few days if anyone wants to play around with it.
 
tauhid
PostPosted: Mon Nov 02, 2009 6:19 pm Reply with quote

Can we download it as well as after your edits
 
nuken
PostPosted: Mon Nov 02, 2009 6:32 pm Reply with quote

Yes. All my downloads are free. I should have it up either tomorrow or Wednesday. So far I have made it XHTML 1.0 transitional compliant, added nukeWYSIWYG to the comments and blog, added social bookmarking, a few other things to make it work better with RavenNuke.
 
nuken
PostPosted: Tue Nov 03, 2009 4:17 pm Reply with quote

Anyone that wants to try it out can download it from Only registered users can see links on this board! Get registered or login!.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©