Search found 73 matches

by CirTap
Tue Mar 04, 2008 5:43 pm
Forum: Joomla! Coding 101
Topic: jimport('joomla.filter.output'); resulting in Class 'JOutputFilter' not found
Replies: 12
Views: 4242

Re: jimport('joomla.filter.output'); resulting in Class 'JOutput

Hi, all I can suggest is to contact the publisher and ask for an errata or any other kind of "digital" update -- if available. Depending on the book's success (== sales) you might be lucky and such things exists (typically involves additional work from the author ~ payments ~ costs. Good s...
by CirTap
Sun Feb 24, 2008 1:37 pm
Forum: Joomla! Coding 101
Topic: jimport('joomla.filter.output'); resulting in Class 'JOutputFilter' not found
Replies: 12
Views: 4242

Re: jimport('joomla.filter.output'); resulting in Class 'JOutput

Fatal error: Class 'InputFilter' not found in components/com_tutorials/tutorials.class.php on line 73 wow, "InputFilter" is even older than any of the "J*Filter" stuff. In line 73 change "InputFilter::" to "JFilterInput::" -- there might be more places where ...
by CirTap
Wed Feb 20, 2008 11:44 pm
Forum: Joomla! Coding 101
Topic: jimport('joomla.filter.output'); resulting in Class 'JOutputFilter' not found
Replies: 12
Views: 4242

Re: jimport('joomla.filter.output'); resulting in Class 'JOutput

I've seen that this book was published in May 2007, is it a problem of Joomla version in time that this book was written? it definitely is. In May '07, Joomla! was still in Beta 2 and it took another nine months for Joomla! to become final - new lifeforms come into being in this very period of time...
by CirTap
Wed Feb 13, 2008 3:44 pm
Forum: Sites & Infrastructure - Feedback/Information
Topic: Search in forum may be broken?
Replies: 1
Views: 357

Re: Search in forum may be broken?

Hi, seems like not all URL "formats" are forwarded correctly, i.e. - http://forum.joomla.org/index.php/topic,90000.msg458387.html#msg458387 finds the topic "90000", but not the post "458387", and the page-style is plain white This form works nice(er): - http://forum.joo...
by CirTap
Sun Feb 10, 2008 4:10 pm
Forum: Joomla! Coding 101
Topic: Adding Model to View
Replies: 5
Views: 1025

Re: Adding Model to View

Hi, we're probably hijacking this thread, but anyway ... How to do things always depends on what is needed :-) There's no general rule or "law". Let me just clarify my statement about Views and their Models. This was taken from JView::setModel(&$model, $default = false): We support a m...
by CirTap
Fri Feb 08, 2008 2:45 pm
Forum: Joomla! Coding 101
Topic: Customized form output question
Replies: 2
Views: 599

Re: Customized form output question

Hi, and welcome to the forum. This sounds very specific although it's "just a form". You may try one of the many " form builders " available and see if they run well with 1.5 It definitely smells like a Component to render the form, store the results (session or database), and to...
by CirTap
Fri Feb 08, 2008 10:30 am
Forum: Joomla! Coding 101
Topic: Site under a site
Replies: 2
Views: 514

Re: Site under a site

Hi, I presume that your "login script" somehow stores the status of a successful login, either in a cookie, the standard $_SESSION or a database. You didn't mention what version you use. The best way to implement this in Joomla! 1.5 would be a system plugin or an authentication plugin . Th...
by CirTap
Thu Feb 07, 2008 1:14 pm
Forum: Joomla! Coding 101
Topic: Adding Model to View
Replies: 5
Views: 1025

Re: Adding Model to View

Hi, the relationship of View and Model should be 1:1 not 1:n. the relationship of Model and Layout can be 1:n. If a component needs to display different types of data, each dataset becomes a model used by one view. The general MVC pattern allows one to toggle the datamodel for a view at good will, a...
by CirTap
Mon Feb 04, 2008 2:10 am
Forum: Joomla! Coding 101
Topic: Mootools not getting included in head under custom component
Replies: 2
Views: 604

Re: Mootools not getting included in head under custom component

Hi, it's generated by JHTMLBehavior::mootools(), called by JHTML::script( .., $mootools=true), whenever a "pane" is needed or a "tooltip" (front-end editing) and it's determined by a component, module, plugin (i.e. Legacy Plugin), and technically even by a template. It can't be c...
by CirTap
Sun Feb 03, 2008 2:07 pm
Forum: Joomla! Coding 101
Topic: 1.5 | functions with just return; ??
Replies: 3
Views: 575

Re: 1.5 | functions with just return; ??

p.s. the lack of reliable documention was geared towards the "tutorials" ... well, I think you're right about that and like the people who wrote them in their spare time, you're free to provide corrections. Should someone find another free moment or the muse to fix it, I'm sure it's going...
by CirTap
Sun Feb 03, 2008 2:58 am
Forum: Joomla! Coding 101
Topic: 1.5 | functions with just return; ??
Replies: 3
Views: 575

Re: 1.5 | functions with just return; ??

I have to scratch my head and wonder where the heck is the code? it's in the class that extends this abstract method: class JDatabaseMySQL extends JDatabase It might look strange in PHP4 but would make sense if the code *was* written in PHP5 where classes can be defined as "abstract" to f...
by CirTap
Sun Feb 03, 2008 1:51 am
Forum: Joomla! Coding 101
Topic: custom input forms
Replies: 4
Views: 826

Re: custom input forms

Hi, so, if this is a "community website" get CommunityBuilder (aka "CB"). It's *the* component to do this kinda work and what's not in-the-box can be added via CB-plugins; there are plenty on their page. If you need that much customization use J! 1.5.0; not only is this the new v...
by CirTap
Sat Feb 02, 2008 9:58 pm
Forum: Joomla! Coding 101
Topic: custom input forms
Replies: 4
Views: 826

Re: custom input forms

Hi, and welcome to the forum.

sure it's possible, but please define "content". The term is pretty generic depite it has a specific meaning in Joomla! world.

And please let us know what version of J! you're using.

Have fun,
CirTap
by CirTap
Thu Jan 31, 2008 7:23 pm
Forum: Joomla! Coding 101
Topic: php and mysql Order By help
Replies: 10
Views: 1639

Re: php and mysql Order By help

Hi, getDBO() is fine and holds the internal mysql resource handle which is needed, but: the SQL runs thru replacePrefix() (via setQuery()) which might potentionally remove "ENGINE=MEMORY;" or anything behind the closing ")" to prevent sql injection ??- I'm not sure. Look at the f...
by CirTap
Thu Jan 31, 2008 5:00 pm
Forum: Joomla! Coding 101
Topic: php and mysql Order By help
Replies: 10
Views: 1639

Re: php and mysql Order By help

Hey, the doc for setQuery() states: "Sets the SQL query string for later execution.". You need to call $db->query() to execute it. And it's set Query() not Set Query(); you'll get in trouble if this runs in PHP5. I'd actually just use $db->replacePrefix() instead of setQuery(). All you wan...
by CirTap
Wed Jan 30, 2008 5:10 pm
Forum: Joomla! Coding 101
Topic: php and mysql Order By help
Replies: 10
Views: 1639

Re: php and mysql Order By help

Hi, yes, I was refering to the memory-head tables and no: I don't have any other links at hand :) Reading the code snippet it seems like this ranking data is already available in the database. If you have MySQL 4 runnin you could instead do a subquery and JOIN that with the docman tables. The fileli...
by CirTap
Wed Jan 30, 2008 2:22 pm
Forum: Joomla! Coding 101
Topic: php and mysql Order By help
Replies: 10
Views: 1639

Re: php and mysql Order By help

Hi, @bascherz: I don't think that's what cjcj01 is intending to do. The filenames must not be in asc/desc order but by the order provided in the IN() clause. the order of the the list of filenames is really important as it's returned from a ranked search query I assume it could also be "filenam...
by CirTap
Wed Jan 30, 2008 2:05 pm
Forum: Joomla! Coding 101
Topic: Eclipse adds extra lines at the bottom of the code
Replies: 4
Views: 786

Re: Eclipse adds extra lines at the bottom of the code

Hi, too bad it wasn't that simple to solve :-) It sounds like you have both IDEs installed ??? Do they share the same workspaces, or projects? If so, avoid that! Might be inconvenient, but avoid it. Please create a brand new plain workspace at some different location (File > Switch Workspace) and cr...
by CirTap
Wed Jan 30, 2008 1:37 pm
Forum: Joomla! Coding 101
Topic: Make Cookie while Registration
Replies: 3
Views: 758

Re: Make Cookie while Registration

Hallo, you already wrote the code but just need to put the pieces together in the right way: [php] [/php] or if you need additional markup in between [php]   [/php] that's all a bit hackish and you should consider writing a system plugin rather to test for the frontpage (system plugins *also* rn in ...
by CirTap
Tue Jan 29, 2008 4:57 pm
Forum: Joomla! Coding 101
Topic: Make Cookie while Registration
Replies: 3
Views: 758

Re: Make Cookie while Registration

Hi,

in 1.5 test for $user->guest - if it's true, the user did not yet login.
$user = &JFactory::getUser();

in 1.0 check the global $my variable.

CirTap
by CirTap
Mon Jan 28, 2008 6:57 pm
Forum: Joomla! Coding 101
Topic: Eclipse adds extra lines at the bottom of the code
Replies: 4
Views: 786

Re: Eclipse adds extra lines at the bottom of the code

Hi, I've never seen such a strange behaviour. Does it happen with all files or just a specific "type" (extension)? Have you already run an update from "Help > Software updates" ? Did this error happen aftern a recent update? What "brand" or distribution of Eclipse do you use? Native Eclipse IDE with...
by CirTap
Fri Jan 25, 2008 1:58 pm
Forum: Joomla! Coding 101
Topic: Component for Attributing to Authors
Replies: 3
Views: 731

Re: Component for Attributing to Authors

Hi, this sounds very interesting and regaring the simple fact that it's a common practice in printed publications to have multiple authors it should indeed become a feature. Trouble with current Joomla! is the association of "authors" and users. You'd need a list of names which could potentionally c...
by CirTap
Thu Jan 17, 2008 12:47 pm
Forum: Joomla! Coding 101
Topic: Is this coding standard safe ?
Replies: 1
Views: 526

Re: Is this coding standard safe ?

Hi, if the component is not supposed to be used by others, the code would be ok. As soon as J! is installed in a subdirectory this line / component will certainly fail, thus $mosConfig_absolute_path is the right way to go for J! 1.0.x I also found several bizarre hosters where $_SERVER['DOCUMENT_ROO...
by CirTap
Thu Jan 10, 2008 4:14 pm
Forum: Joomla! Coding 101
Topic: JAVA Scripts used by Joomla
Replies: 2
Views: 1017

Re: JavaScripts used by Joomla

Hi, I don't want to sound picky or rude, but if you were searching for information using all the same wrong terms and relations like in your question, I'm not surprised you don't find anything useful ;-) You'll find valuable information and documentation about the "Mootools JavaScript Library" used ...
by CirTap
Fri Dec 14, 2007 7:42 pm
Forum: Joomla! Coding 101
Topic: How to Joomla-ize this MySQL/PHP code
Replies: 12
Views: 2675

Re: How to Joomla-ize this MySQL/PHP code

Hi, so all you need is the incremented record id? Try $database->insertid() right after you run the INSERT query, and you should receive the last auto_increment of that table. You also get the last insert id using the 3rd argument of:   $database->insertObject( $table, &$object, $keyName) i.e. ...
by CirTap
Fri Dec 14, 2007 5:23 pm
Forum: Joomla! Coding 101
Topic: How to Joomla-ize this MySQL/PHP code
Replies: 12
Views: 2675

Re: How to Joomla-ize this MySQL/PHP code

here's the 1.0 database stuff: http://help.joomla.org/content/category/12/108/125/
just saw loadRow(), loadResultArray() and many others. Use the one that suits your need -- I suppose loadRow() is more appropriate for this particular statement.

CirTap
by CirTap
Fri Dec 14, 2007 5:19 pm
Forum: Joomla! Coding 101
Topic: How to Joomla-ize this MySQL/PHP code
Replies: 12
Views: 2675

Re: How to Joomla-ize this MySQL/PHP code

Hi, in 1.0.x it's called loadAssocList() As the name load Object List() may imply, it returns a list of objects , however in this case the list ( = array) contains a single entry (object(stdClass)) only:   $rows[0]->Auto_increment You should be able to use "#__content" with setQuery(). No idea ...
by CirTap
Fri Dec 14, 2007 4:22 pm
Forum: Joomla! Coding 101
Topic: How to Joomla-ize this MySQL/PHP code
Replies: 12
Views: 2675

Re: How to Joomla-ize this MySQL/PHP code

Hi, JDatabase' method equivalent of mysql_fetch_assoc() is called ... fetchAssoc() ;) See more of its general interface here: m and the MySQL specific implementation there: m @ddmobley: once you use the $database object you SHOULD NOT (have a need to) use any of the native mysql_* functions. The who...
by CirTap
Tue Dec 04, 2007 9:23 am
Forum: Joomla! Coding 101
Topic: jimport('joomla.filter.output'); resulting in Class 'JOutputFilter' not found
Replies: 12
Views: 4242

Re: jimport('joomla.filter.output'); resulting in Class 'JOutputFilter' not foun

Hi, the "Filter" package has gone through several changes and your code is not the most recent and will fail (again) should you update from SVN or the next RC to come. It once was: - /filter/output,php  JOutputFilter - /filter/input,php  JInputFilter then became what you have now (matching...
by CirTap
Thu Nov 29, 2007 3:27 pm
Forum: Joomla! Coding 101
Topic: file permission after component installation
Replies: 1
Views: 521

Re: file permission after component installation

Hi, although this has nothing to do with coding but rather site management ... In J! 1.0 the files are owned by the Apache/PHP user since it's using standard PHP file I/O functions, so yes: you must CHOWN to a "ftp-user" in order to overwrite the files or if group permissions don't match. maybe a CH...