Integration Success, but some oddness.

Started by Trios, January 23, 2010, 03:24:31 AM

Previous topic - Next topic

Trios

Okay, I did SimonK's all purpose integration solution and it's actually worked very well with my homebrew content management system. The problem I'm running into, I believe, is due to the fact that the actual forum's index.php is never, ever called. In fact, if you try and use that file directly, it won't work very well, and I'm planning on disabling it entirely.

Instead, I nabbed the monstrous $_REQUEST['action'] array from index.php and copied it into my own CMS, and have linked all forum functions to include the forum's index.php, where everything is served. This worked fine except for actions which sent multiple options in the same request, which required the cleanRequest() function to be run in order to clear it up. So, I went ahead and copied QueryString.php into my CMS, renamed all the functions, and called the (renamed version) of cleanRequest() in order to properly analyze and pass requests on to index.php.

Now, since I'm sure I've lost everyone but the sturdiest of code monkeys, I probably won't get much back from this, but here goes:

When you post on the forum, if you use quotes (or probably other special characters, I've only yet noticed it with quotes and slashes) it adds an escape slash (\) into the database, and displays said slash when you display the topic. Editing the topic and saving adds two more slashes, one for the slash and one for the quote. I haven't been able to find the place where these are added in SMF to see what can be done about removing them.

That's the only issue I haven't been able to track down and fix myself (trust me, there were a LOT of issues to track down).

To see the implementation of SMF and my CMS, go to www.yourliquorcabinet.com and register. Unfortunately guest access to the forum is not allowed, as it opens a whole new can of worms for my integration solution, and is completely broken right now. If you register and log in, you can see what I'm talking about (specifically Fiestymango's post).

Any help I could receive would be outstanding. I'm going to bed now, I should be back tomorrow noonish Pacific to provide any added information required.

Trios

#1
I would like to thank all 40-odd people who read this for their immeasurable help in getting this done. The multitude of replies and ideas nearly overwhelmed me.

Oh, that's right, I fixed it myself, and nobody here seemed to want to help.


If anyone cares, I went through the clearRequest() function in the version of QueryString.php that my CMS was using, and commented out any and all lines which called for stripslashes or addslashes. This isn't an issue because the forum is still calling its own copy of it and doing that when needed, but it isn't happening twice now.

EDIT: Please ignore the strikethrough area, I reread it today and I really didn't mean to come off quite so scathing. Apologies.

Kill Em All

You just posted about 10 minutes ago. We are all volunteers here. You can't expect an answer that quickly.

What exactly is happening twice now?


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

Trios

Actually it was 13 hours, but whatever.

I fixed the problem. The only issues I'm having now are that none of the controls in the WYSIWYG editor are working; smilies, BBC, etc.  Mousing over them shows them as being a link to something, but somewhere the javascript that makes those work isn't working with my forum.

Kindred

well, 13 hours for a fairly specialized question... again, we're all volunteers with lives outside of the forums.

I suspect that your issue with the wysiwyg (and probably other locatiosn that you have not noticed yet) is due to the location of the javascript files...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Kill Em All

Sorry, my mistake, I miss-read the AM and PM. Try what Kindred suggested about the location of the javascript files. :)


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

Trios

So, I'm certainly assuming you mean the .js files that are in the Themes/default directory. So...

A) where must they be moved in order to work, or
B) where can I change where they're called, so they work with the current setup?

Kindred

I am not certain...  you'll have to use a script debugged, like firebug, to figure out where it is trying to call scripts from and failing.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Trios

Unfortunately, I know less than nothing about Javascript, so I really have no way of figuring this out on my own. Anyone have a suggestion of a place to ask?

Andre N

Well, since it's probably just a wrong path specified for the javascript you can easily use firebug like Kindred said to find and fix the problem. The javascript should still work unless you changed it...
"Every generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?"

Trios

I did install Firebug, but it didn't show any errors. It looks like the Javascript is there, it just isn't working for some reason. If I 'examine' an element in Firebug, I can see the javascript around the controls, and it looks to me (from my less than 0 knowledge of JS) that it should work. But, it doesn't.

Again, I need help with this one from someone who knows how the JS for smilies/BBC works.

Advertisement: