Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.9
Author Message
candy
Worker
Worker



Joined: Dec 21, 2004
Posts: 225
Location: Kansas City metro

PostPosted: Thu Nov 08, 2007 9:35 am Reply with quote

how can i allow html in the Journal entries? I can't find info on this anywhere...help is greatly appreciated. Smile
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Nov 10, 2007 10:36 am Reply with quote

In Journal/index.php you probably have one or more lines that do a check_html() call with a nohtml parameter. To verify that those are the lines prohibiting you, comment them out and try it.
 
View user's profile Send private message
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sat Nov 10, 2007 2:48 pm Reply with quote

BTW, if you can wait for 2.20.00, I have fixed Journal to work properly with the allowable array and the editor... Wink

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Raven







PostPosted: Sat Nov 10, 2007 3:41 pm Reply with quote

worship
 
candy







PostPosted: Tue Nov 13, 2007 2:27 pm Reply with quote

Raven wrote:
In Journal/index.php you probably have one or more lines that do a check_html() call with a nohtml parameter. To verify that those are the lines prohibiting you, comment them out and try it.


here are the contents of my journal index.php page and i don't know which "no_html" to comment out. any suggestions?

Quote:
<?php

/************************************************************************/
/* Journal &#167 ZX */
/* ================ */
/* */
/* Original work done by Joseph Howard known as Member's Journal, which */
/* was based on Trevor Scott's vision of Atomic Journal. */
/* */
/* Modified on 25 May 2002 by Paul Laudanski (paul@computercops.biz) */
/* Copyright (c) 2002 Modifications by Computer Cops. */
/* http://computercops.biz */
/* */
/* Member's Journal did not work on a PHPNuke 5.5 portal which had */
/* phpbb2 port integrated. Thus was Journal &#167 ZX created with the */
/* Member's Journal author's blessings. */
/* */
/* To install, backup everything first and then FTP the Journal package */
/* files into your site's module directory. Also run the tables.sql */
/* script so the proper tables and fields can be created and used. The */
/* default table prefix is "nuke" which is hard-coded throughout the */
/* entire system as a left-over from Member's Journal. If a demand */
/* exists, that can be changed for a future release. */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
/* Journal 2.0 Enhanced and Debugged 2004 */
/* by sixonetonoffun -- http://www.netflake.com -- */
/* Images Created by GanjaUK -- http://www.GanjaUK.com */
/************************************************************************/
if ( !defined('MODULE_FILE') )
{
die("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
$pagetitle = "- "._USERSJOURNAL."";
include("header.php");
include("modules/$module_name/functions.php");
if (is_user($user)) {
cookiedecode($user);
$username = $cookie[1];
$username = filter($username, "nohtml");
}
$user = filter($user, "nohtml");
$sitename = filter($sitename, "nohtml");
startjournal($sitename, $user);
function last20($bgcolor1, $bgcolor2, $bgcolor3, $username) {
global $prefix, $user_prefix, $db, $module_name;
OpenTable();
echo ("<div align=\"center\" class=title>"._20ACTIVE."</div><br>");
echo ("<table align=center border=1 cellpadding=0 cellspacing=0>");
echo ("<tr>");
echo ("<td bgcolor=$bgcolor1 width=150>&nbsp;<strong>"._MEMBER."</strong> "._CLICKTOVIEW."</td>");
echo ("<td bgcolor=$bgcolor1 width=70 align=center><strong>"._VIEWJOURNAL."</strong></td>");
echo ("<td bgcolor=$bgcolor1 width=70 align=center><strong>"._MEMBERPROFILE."</strong></td>");
if (empty($username)) {
echo "<td bgcolor=$bgcolor1 width=70 align=center><strong>"._CREATEACCOUNT2."</strong></td>";
} else {
if (is_active("Private_Messages")) {
echo "<td bgcolor=$bgcolor1 width=70 align=center><strong>"._PRIVMSGJ."</strong></td>";
}
}
echo "</tr>";
$sql = "SELECT j.id, j.joid, j.nop, j.ldp, j.ltp, j.micro, u.user_id, u.username FROM ".$prefix."_journal_stats j, ".$user_prefix."_users u where u.username=j.joid ORDER BY 'ldp' DESC";
$result = $db->sql_query($sql);
$dcount = 1;
while ($row = $db->sql_fetchrow($result)) {
$row['id'] = intval($row['id']);
$row['joid'] = filter($row['joid'], "nohtml");
$row['nop'] = filter($row['nop'], "nohtml");
$row['ldp'] = filter($row['ldp'], "nohtml");
$row['ltp'] = filter($row['ltp'], "nohtml");
$row['micro'] = filter($row['micro'], "nohtml");
$row['user_id'] = filter($row['user_id'], "nohtml");
if ($dcount >= 21) {
echo "</table>";
CloseTable();
journalfoot();
die();
} else {
$dcount = $dcount + 1;
print ("<tr>");
printf ("<td bgcolor=$bgcolor2>&nbsp;&nbsp;<a href=\"modules.php?name=$module_name&file=search&bywhat=aid&exact=1&forwhat=%s\">%s</a></td>", $row['joid'], $row['joid']);
printf ("<td bgcolor=$bgcolor2 align=center><div class=title><a href=\"modules.php?name=$module_name&file=search&bywhat=aid&exact=1&forwhat=%s\"><img src=\"modules/$module_name/images/binocs.gif\" border=0 alt=\""._VIEWJOURNAL2."\" title=\""._VIEWJOURNAL2."\"></a></td>", $row['joid'], $row['joid']);
printf ("<td bgcolor=$bgcolor2 align=center><a href=\"userinfo-.html%s\"><img src=\"modules/$module_name/images/nuke.gif\" alt=\""._USERPROFILE2."\" title=\""._USERPROFILE2."\" border=0></a></td>", $row['joid'], $row['joid'], $row['joid']);
if (empty($username)) {
print ("<td align=center bgcolor=$bgcolor2><a href=\"account-new_user.html\"><img src=\"modules/$module_name/images/folder.gif\" border=0 alt=\""._CREATEACCOUNT."\" title=\""._CREATEACCOUNT."\"></a></td>");
} else {
if (is_active("Private_Messages")) {
printf ("<td align=center bgcolor=$bgcolor2><a href=\"messages-.html".$row['user_id']."\"><img src='modules/$module_name/images/chat.gif' border='0' alt='"._PRIVMSGJ2."'></a></td>", $row['joid'], $row['joid']);
}
}
echo "</tr>";
}
}
echo "</table>";
CloseTable();
}
function all($bgcolor1, $bgcolor2, $bgcolor3, $sitename, $username) {
global $prefix, $user_prefix, $db, $module_name;
OpenTable();
echo ("<div align=\"center\" class=title>"._ALPHABETICAL."</div><br>");
echo ("<table align=center border=1 cellpadding=0 cellspacing=0>");
echo ("<tr>");
echo ("<td bgcolor=$bgcolor1 width=150>&nbsp;<strong>"._MEMBER."</strong> "._CLICKTOVIEW."</td>");
echo ("<td bgcolor=$bgcolor1 width=70 align=center><strong>"._VIEWJOURNAL."</strong></td>");
echo ("<td bgcolor=$bgcolor1 width=70 align=center><strong>"._MEMBERPROFILE."</strong></td>");
if (empty($username)) {
echo ("<td bgcolor=$bgcolor1 width=70 align=center><strong>"._CREATEACCOUNT2."</strong></td>");
} else {
echo ("<td bgcolor=$bgcolor1 width=70 align=center><strong>"._PRIVMSGJ."</strong></td>");
}
echo ("</tr>");
$sql = "SELECT j.id, j.joid, j.nop, j.ldp, j.ltp, j.micro, u.user_id FROM ".$prefix."_journal_stats j, ".$user_prefix."_users u where u.username=j.joid ORDER BY 'joid'";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) {
$row['id'] = intval($row['id']);
$row['joid'] = filter($row['joid'], "nohtml");
$row['nop'] = filter($row['nop'], "nohtml");
$row['ldp'] = filter($row['ldp'], "nohtml");
$row['ltp'] = filter($row['ltp'], "nohtml");
$row['micro'] = filter($row['micro'], "nohtml");
$row['user_id'] = filter($row['user_id'], "nohtml");
print ("<tr>");
printf ("<td bgcolor=$bgcolor2>&nbsp;&nbsp;<a href=\"modules.php?name=$module_name&file=search&bywhat=aid&forwhat=%s\">%s</a></td>", $row['joid'], $row['joid']);
printf ("<td bgcolor=$bgcolor2 align=center><div class=title><a href=\"modules.php?name=$module_name&file=search&bywhat=aid&forwhat=%s\"><img src=\"modules/$module_name/images/binocs.gif\" border=0 alt=\""._VIEWJOURNAL2."\" title=\""._VIEWJOURNAL2."\"></a></td>", $row['joid'], $row['joid']);
printf ("<td bgcolor=$bgcolor2 align=center><a href=\"userinfo-.html%s\"><img src=\"modules/$module_name/images/nuke.gif\" alt=\""._USERPROFILE2."\" title=\""._USERPROFILE2."\" border=0></a></td>", $row['joid'], $row['joid'], $row['joid']);
if (empty($username)) {
print ("<td align=center bgcolor=$bgcolor2><a href=\"account-new_user.html\"><img src=\"modules/$module_name/images/folder.gif\" border=0 alt=\""._CREATEACCOUNT."\" title=\""._CREATEACCOUNT."\"></a></td>");
} elseif (!empty($username) AND is_active("Private_Messages")) {
print ("<td align=center bgcolor=$bgcolor2><a href=\"messages-.html".$row['user_id']."\"><img src='modules/$module_name/images/chat.gif' border='0' alt='"._PRIVMSGJ2."'></a></td>");
}
echo "</tr>";
}
echo "</table>";
CloseTable();
}
echo "<br>";
OpenTable();
echo ("<div align=center> [ <a href=\"modules.php?name=$module_name&op=last\">"._20AUTHORS."</a> | <a href=\"modules.php?name=$module_name&op=all\">"._LISTALLJOURNALS."</a> | <a href=\"modules.php?name=$module_name&file=search&disp=showsearch\">"._SEARCHMEMBER."</a> ]</div>");
CloseTable();
echo "<br>";
switch($op) {
case "last":
last20($bgcolor1, $bgcolor2, $bgcolor3, $username);
break;
case "all":
all($bgcolor1, $bgcolor2, $bgcolor3, $sitename, $username);
break;
default:
last20($bgcolor1, $bgcolor2, $bgcolor3, $username);
break;
}
journalfoot();

?>
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.9

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 ©