Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 8.0
Author Message
jafira
New Member
New Member



Joined: Sep 30, 2008
Posts: 5

PostPosted: Tue Sep 30, 2008 5:47 am Reply with quote

Hello, first, I ask that you bare with me as I am fairly inexperienced with php coding, I have come as far as I have through trial and error so forgive any percieved ignorance. I have recently installed phpnuke version 8.0 on my server, and I have been informed by my members that the included journal module is not allowing line breaks of any sort. The end result is that when my members post journal entries, their text appears as a continuous string without paragraphs or breaks.

I have noted that html is not allowed in the journal module and since everything else throughout the community seems to be functioning properly I suspect that maybe the TinyMCE text editor might be attempting to use html and causing a conflict. However I really don't know what may be causing the problem, which is why I am here.

To my understanding all of the files which originally came packaged with phpnuke 8.0 have been uploaded appropriately to my server, and the community has the latest security patches so I am uncertain what exactly may be causing this malfunction.

I am unsure if this is a common problem, or something a bit more serious and was wondering if there would be any solutions or changes which I could make to correct this problem. Otherwise it seems that all other features of the community are functioning properly and no other problems have been found.

Thank you for your time and any assistance which you may be able to provide in helping me to solve this problem.

Any help or advice would be much appreciated.
Version phpnuke 8.0 (obtained from phpnuke)
Security Patch (obtained from nukeresources)
Database Type MySQL
~Thank you.
 
View user's profile Send private message Visit poster's website
jestrella
Moderator



Joined: Dec 01, 2005
Posts: 593
Location: Santiago, Dominican Republic

PostPosted: Wed Oct 01, 2008 8:35 am Reply with quote

Well, I might have misunderstood what you mean with missing line breaks, but i tried posting an entry in the journal module of standard nuke 8.0 and line breaks are working just fine. Maybe users are entering line breaks manually in the box (<br />) and editor just convert to corresponding html entities (&gt;br /&lt;).

Alternatively, maybe the line break tag is not allowed in your config.php file, also take a look on that.

_________________
"For those whom have not reach the sky... Every mountain seems high"

Best Regards
Jonathan Estrella
http://about.me/jestrella04 
View user's profile Send private message Visit poster's website
jafira







PostPosted: Thu Oct 02, 2008 4:46 am Reply with quote

I can mention that I have tried to use the journal myself as well, I noted that I can press the "Enter" key in the editor and it will create a break, however when you submit the entry the breaks will be gone when you view the post.

Typing in the html <br /> will cause it to appear as text "<br />" in the entry. It seemed to have had no effect either way.

I once again reiterate that I am inexperienced with php coding, but I noted that in the config.php file that <br> was labeled with a "1", I changed it to a "2". however the change made no difference so I quickly changed it back.

In regards to what I meant by missing line breaks, I may be using the wrong terminology, but by breaks I meant the seperatation created by pressing the Enter key to create a new line or paragraph. - Breaks in text created by pressing Enter do not appear in a submitted journal post, all the text simply runs together.

This problem does not occur anywhere else except the journal module, everything else works perfectly fine.

Quick Edit: In regards to the journal module, after further experimentation, I have noted that really no changes made using the text editor appear when you view an entry, for example if you bold the text, it will not show up in the entry after it has been submitted, it seems as though the information added by the text editor fails when a journal entry is submited, leaving only the raw text without breaks or alterations.

Once again any help would be extremely appreciated as I am to inexperienced to determine the cause of this.
 
jestrella







PostPosted: Thu Oct 02, 2008 9:29 am Reply with quote

Journal entries are displaying correctly in both php-nuke 8.0 standard and patched 3.5, with all line breaks, bold text, etc...

Can you log into phpmyadmin, look for the table $prefix_journal and in the field bodytext check if entries already have html tags??
 
jafira







PostPosted: Fri Oct 03, 2008 4:21 am Reply with quote

I have checked the bodytext of nuke_journal as recommended and can state that there is no html tags included in the rows, it simply has my members text as it would appear in a browser.

I have noted however that when I click on nuke_journal in phpmyadmin there is a yellow box beneath the index chart that states "The following indexes appear to be equal and one of them should be removed: PRIMARY, jid" I do not have very much experience so I feel it best not to act on that error unless advised to do so.

Current structure copied from DB:
# Table structure for table 'nuke_journal'
#

CREATE TABLE nuke_journal (
jid int(11) NOT NULL auto_increment,
aid varchar(30) NOT NULL,
title varchar(80),
bodytext text NOT NULL,
mood varchar(48) NOT NULL,
pdate varchar(48) NOT NULL,
ptime varchar(48) NOT NULL,
status varchar(48) NOT NULL,
mtime varchar(48) NOT NULL,
mdate varchar(48) NOT NULL,
PRIMARY KEY (jid),
KEY jid (jid),
KEY aid (aid)
);
 
jestrella







PostPosted: Fri Oct 03, 2008 8:54 am Reply with quote

Well, if the bodytext entry does not have any HTML, then something is stripping out all HTML tags before saving to database.

Are you sure you have not made any modifications to journal module or mainfile???
 
jafira







PostPosted: Fri Oct 03, 2008 2:12 pm Reply with quote

I have not made any changes to either the journal module or mainfile, I have also reuploaded all the files of the journal module with no change, and have also checked to see if the pre-patched mainfile would allow the html, no changes occured. Niether the journal module or mainfile have been tampered with to my knowledge, they have been are uploaded in the state that they arrived.
 
jafira







PostPosted: Sun Oct 05, 2008 6:30 pm Reply with quote

I am glad to say that I figured out my problem, looking into the allowable html in the mainfile.php I discovered that there was not html listed after it, only the word array. So I added the html which would be required by the text editor for the journal module, and everything seems to work fine now. Thank you again for all the help and barring with me through this brief ordeal.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 8.0

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 ©