remix.cc Posted October 12, 2010 Report Share Posted October 12, 2010 Tātad IPB shoutbox sastāv laikam no tādam tabulām: CREATE TABLE IF NOT EXISTS `ibf_shoutbox_shouts` ( `s_id` int(11) NOT NULL auto_increment, `s_mid` int(11) NOT NULL, `s_date` int(11) NOT NULL, `s_message` text NOT NULL, `s_ip` varchar(32) NOT NULL, `s_edit_history` text, PRIMARY KEY (`s_id`), KEY `s_mid` (`s_mid`), KEY `s_date` (`s_date`) ) Problēma ir tur, ka es varu saglabāt šajās tabulās datus, bet s_message parādās ne uzreiz, bet tikai pēc tā, kad kāds ieraksta pašā shoutboxā -> tad uzreiz parādās mans s_message un jaunierakstītais teksts. Gribēju uzzināt, vai kādā no šīm tabulām man ir jāieraksta kaut kāda noteikta informācija (TRUE/FALSE ; 1/0 ; ... ), lai shoutbox saprastu, ka mans s_message ir jaunierakstīts teksts, kuru pēc auto refresha vajag parādīt. Link to comment Share on other sites More sharing options...
remix.cc Posted October 13, 2010 Author Report Share Posted October 13, 2010 ***** bump ****** someone? varbūt ir kādas neskaidrības, ko es cenšos panākt, varu paskaidrot velreiz... Link to comment Share on other sites More sharing options...
BOT^a Posted October 13, 2010 Report Share Posted October 13, 2010 /** * Update our session when submitting shouts! * By default ajax module doesn't update session */ $this->member->updateMySession( array( 'current_appcomponent' => 'shoutbox', 'current_module' => 'ajax', 'current_section' => 'submit' ) ); /* Recache & return */ $this->library->recacheShouts('add'); $this->library->return_shouts(); Link to comment Share on other sites More sharing options...
remix.cc Posted October 13, 2010 Author Report Share Posted October 13, 2010 nja... traki, dead-end laikam ar manam zināšanām, šaubos, ka ar pluginu var līdz tai vietai tikt. Paldies par info, bet varbūt tu zini kā varētu kaut kā apiet to vietu? tip uztaisīt, lai viņš to update session katras 20 sek taisītu? :/ Link to comment Share on other sites More sharing options...
BOT^a Posted October 13, 2010 Report Share Posted October 13, 2010 a kur probleema izmantot vinjupashu klases? vai arii uzrakstiit extended clasi? Link to comment Share on other sites More sharing options...
remix.cc Posted October 14, 2010 Author Report Share Posted October 14, 2010 problēma laikam ir tur, ka es nesevišķi labi saprotu par kādām klasēm tu runā man google uzrakstīt "extended class php" vai arī tev ir kāda saite, kur viss tas ir sīkāķ aprakstīts? Link to comment Share on other sites More sharing options...
BOT^a Posted October 14, 2010 Report Share Posted October 14, 2010 http://php.net/manual/en/language.oop5.php Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now