I'm trying to find a modification to PHP-Nuke that allows BBcode to be posted as part of the articles on the front page. I saw a site's method as an example:
Only registered users can see links on this board! Get registered or login to the forums!
a demo of the above mentioned hack is here:
Only registered users can see links on this board! Get registered or login to the forums!
I tried contacting this author, but it appears that the module may even be too old for 8.1 versions of phpnuke. I wanted to ask if anyone here is familiar with enabling BBCode as part of the default editor for php-nuke either in raven or my distro - php-nuke 8.1?
Also, I manged to find this module on some random german site... and the installation documentation mentioned php-nuke version 7.5 and the likes (7.x). I'm also interested if anyone is willing to update the installation instructions, or if someone could modify this so it could be included cleanly as module if possible without any hacks to existing files. I've tried to simulate installation given the files are off a little, but the differences between 7.x and 8.x are significant enough to cause me pain. help appreciated
Disabling WYSIWYG is fine by me ultimately. The above plugin was in addition to WYSIWYG, basically it would parse out the contents and catch bbcode, but if disabling WYSIWYG for BBCode is easier then I'm game for that as well.
Ultimately this is for the ease of my significant other posting to my site... she's always posting to forums and wants the same syntax.
Joined: Mar 30, 2006 Posts: 2456 Location: Pittsburgh, Pennsylvania
Posted:
Mon Nov 23, 2009 12:47 am
I can make it parse and display the bbcode easy. Adding the buttons/editor for it would be harder. If you want to keep the wysiwyg editor, and just have it parse hand entered bbcode let me know I can do that easy.
I can make it parse and display the bbcode easy. Adding the buttons/editor for it would be harder. If you want to keep the wysiwyg editor, and just have it parse hand entered bbcode let me know I can do that easy.
Actually, if keeping WYSIWYG and parsing BBCode is an option, that's just fine by me (don't need the fancy buttons or a switch for which editor is being used). Often its just the one image tag that's used:
Code:
[img]--- link here ---[/img]
but there's a chance that she could use all the BBCode syntax, or some other options like italics or bold... but those are ultimately trivial (its the IMG tags that she wants most).
I can upload my index files for the news module on my php-nuke 8.1 install or I can provide download links from the site if you wish. I don't recall my patch level on php-nuke, but I don't think much has been done to the News module since 8.1's release.
spasticdonkey wrote:
here's a jquery editor add-on, looks cool but never really tried it out too much
Only registered users can see links on this board! Get registered or login to the forums!
it does except bbcode. not sure what would be involved in integrating it, but worth a look.
I appreciate the offer spasticdonkey, but another application on her desktop would not be the right incentive - it should be integrated into the site when submitting news to make it easier. I also have an editor, and I have made a visual basic code hunter (search for all instances of [IMG]|[img] and replace with '<img src="' && search for all instances of [/IMG]|[/img] and replace with '" border=0>') but the copy, open app, paste, copy conversion, paste to our site just didn't spur the desired outcome. The following question was asked, "Can't you just make it take the BBCode instead of having to convert the code?"
... you can imagine the plight =)
Palbin, if you could provide instructions on how to modify my news module to take hand input bbcode, that would be totally awesome, or if I have to provide files that would work too. Let me know, this sounds like it'll do the trick.
Joined: Mar 30, 2006 Posts: 2456 Location: Pittsburgh, Pennsylvania
Posted:
Mon Nov 23, 2009 8:07 am
mengesb, it will be just like the forums as I will be using the same functions. Since you are not using RavenNuke we may have to do a little trial and error.
mengesb, it will be just like the forums as I will be using the same functions. Since you are not using RavenNuke we may have to do a little trial and error.
Well, I was hopful, but the change didn't take successfully. I also noticed, that when I went in to post news now, I don't see the WYSIWYG editor items at the bottom (strange... I saw them before... I swear). I'm wondering if I'm going to have to re-install PHPNuke or convert... the DB schema should be the same right?
I'm trying to figure this out... I'll probably try a demo/test install on another site just to make sure I cover clean code working with this.
On a different note, I got the WYSIWYG editor back displayed, but now my article lists (when you go to the main administration page, at the bottom) no longer exists. I can edit my articles via the stories archive module, but its really strange that it just decided to disappear... don't know what that's all about. Kinda drives me nuts.
OK so I replaced my site files with unmodified ones (from source... just unpacked the whole modules directory because I had some site funniness going on).
The modifications worked for the root text, but for the extended text it wouldn't parse the BBCode (unsure why). Usually I have my wife push the pictures to the extended text on articles instead of the primary text so the articles aren't pages long on the front site.
Good news is, the code works, just not for the extended text (the text that shows when you click the 'read more' link, or the direct story link.
Anyway, thank you much for your continued help. If the extended text can be figured out that'll hit the spot. Noticed the 'preview' doesn't show the images like the HTML code will, but that's not a big problem because I can just tell her that it won't show up.
Palbin,
Thank you much for the work and assistance you've given thus far, it has been a real help! Unfortunately the preview doesn't work still, but the full text is parsed of BBCode and it does what it should, so she can get along with that just fine. If you do happen to think of a way to get the preview to work, or that code should work and its just my funky site, then that's great.
Too bad this isn't a module that can just be separately installed into the sites... and the full BBCode editor selected as an option like WYSIWYG, or even the combination of both. Unfortunately I'm not versed well enough in the sites source.
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