English > Install & Configure jDiction

Installation not working

<< < (5/6) > >>

joebarrus:
Well, Harald I rewrote that query using jDatabaseQuery as you suggested and it works!  :)  It was a bit of a pain to write and I was worried if I left some of the more complex clauses as longer strings it wouldn't work, but instead I was happily surprised!  :)  so, the second issue did not show up so I think that was a result of the funky behavior caused by the first.  So far so good.

I'll suggest to the extension author he do this as well to ensure compatibility with other extensions like yours.

I appreciate the good work and I'll let you know if I run into anything else.
Thanks

Harald Leithner:
Thx good to know.

jDiction only needs 2 things from the query
1. all direct tables (FROM and JOINS) in including the alias, but not from subqueries.
2. the Position of FROM statement to inject the Primary keys of all tables

There is much optimization potential. I'm not good at regex but I think this information could be "easy" parsed by the regex.

joebarrus:
Regex is one of those things that is a little daunting at first but once you understand the syntax becomes fairly easy and very powerful. Used with Php's regex functions it is really easy to pull exact pattern matching content out of large text strings such as articles.  I used the following resources to help

http://www.regular-expressions.info/reference.html
This is just a nice syntax reference

http://txt2re.com/
This is a great tool to help you develop regex expressions and understand exactly how it works!

Joe

joebarrus:
So I continue to have the double language tags like en/en or es/es on my links after logging in.  Any suggestions?  I haven't found much on it yet on the Internet and I'm having trouble debugging it.

joebarrus:
nevermind. I ended up writing a plugin to strip the extra codes out.  I couldn't figure out what was causing it though I suspect it might be caused by a component reloading the page and causing the language filter to fire twice combined with SEF mode.  The language filter definitely was the code that was doing this in the build rules.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version