Start arrow Forum
 
Polska wersjaEnglish version
 
Fun with Joomla!  


bookclub
User

Fresh Boarder
Posts: 1
graphgraph
Karma: 0  
problem z modulebot em - 2007/02/19 15:57 Witam
pojawia mi sie taki bald


registerFunction( 'onPrepareContent', 'botModulebot' ); function botModulebot( $published, &$row, &$params, $page=0 ) { if ( !$published ) { return true; } global $mosConfig_gzip, $mosConfig_absolute_path, $database, $my, $Itemid, $mosConfig_caching,$gid; $cache =& mosCache::getCache( 'com_content' ); require_once( $mosConfig_absolute_path . '/includes/frontend.html.php' ); $Itemid = mosGetParam( $_REQUEST, 'Itemid',NULL); $entrytext = $row->text; $matches = array(); preg_match_all("/{modulebot:.+?}/", $entrytext, $matches, PREG_PATTERN_ORDER); foreach ($matches[0] as $match) { $items = array(); $match_old=$match; $match = str_replace("{modulebot:", "", $match); $match = str_replace("}", "", $match); $items = explode(",", $match); $i=0; foreach ($items as $item) { $database->setQuery( "SELECT * FROM #__modules WHERE id='$item' AND published>'0' AND access <= '".$gid."'"); $modules=$database->loadobjectList(); foreach ($modules as $module) { $pars = new mosParameters( $module->params); ob_start(); echo "n"; echo "n"; if ((substr("$module->module",0,4))=="mod_") { echo ""; } echo "n
"; modules_html::module2( $module, $pars, $Itemid, 1, 1); echo "
n"; $str.=ob_get_contents(); ob_end_clean(); } } $row->text = preg_replace("/".$match_old."/",$str, $row->text); } } ?>

bardoz prosze o pomoc
  | | | The administrator has disabled public write access.
radek
Moderator

Moderator
Posts: 62
graph
Karma: 2  
Re:problem z modulebot em - 2007/05/23 03:57 solved.
Download again, please.
  | | | The administrator has disabled public write access.
bic111
User

Fresh Boarder
Posts: 2
graphgraph
Karma: 0  
Odp:Re:problem z modulebot em - 2007/07/03 07:32 Mam podobny problem, można o bardziej rozwinięte rozwiązanie problemu?
Z góry dziękuję.
Pozdrawiam
  | | | The administrator has disabled public write access.
radek
Moderator

Moderator
Posts: 62
graph
Karma: 2  
Odp:Re:problem z modulebot em - 2007/07/03 11:42 Czy ściągnąłeś ponownie modulebota?

Problem polega na kompatybilkości z PHP5.
W pierwszej linii /mambots/content/modulebot.php trzeba było zamienić:
Code:

 <?


na:
Code:

 <?php

.
Nowa wersja to już robi sama.
Pzdr, Radek.
  | | | The administrator has disabled public write access.
bic111
User

Fresh Boarder
Posts: 2
graphgraph
Karma: 0  
Odp:Re:problem z modulebot em - 2007/07/03 12:55 Dzięki za konkretną odpowiedź, wszystko gra, podobnie było z modułem mod_marketplace5.
  | | | The administrator has disabled public write access.
snare
User

Fresh Boarder
Posts: 4
graphgraph
Karma: 0  
Odp:Re:problem z modulebot em - 2008/04/13 17:30 youtube was gr8 thans
  | | | The administrator has disabled public write access.
 

Lost Password?? No account yet? Register

Forum Info
Our users have posted a total of 372 articles.
We have 1101 registered users.
The newest registered user is: skrap
In total there are 69 users online: 69 guests and 0 registered
Registered Users online: none