Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
Lucifix
Regular
Regular


Joined: Mar 11, 2005
Posts: 67

PostPosted: Tue Mar 13, 2007 4:40 pm Reply with quote

Hi,

does anyone know if it's possible to put in home different module for different languages.

Let's say that I would like to show standard news for my english visitors, but for german visitors forum on the first page.

Thanks!
 
View user's profile Send private message
fkelly
Former Moderator in Good Standing


Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Tue Mar 13, 2007 5:01 pm Reply with quote

No way that I can think of without hacking the system.
 
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9456
Location: Arizona

PostPosted: Wed Mar 14, 2007 6:46 am Reply with quote

Yes, it would take a hack in the modules.php script somewhere around these lines:

Code:


  $result = $db->sql_query("SELECT active, view FROM ".$prefix."_modules WHERE title='$name'");
  list($mod_active, $view) = $db->sql_fetchrow($result);
  $mod_active = intval($mod_active);
  $view = intval($view);


These lines were taken from the base 7.6 code.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Lucifix
PostPosted: Wed Mar 14, 2007 6:53 am Reply with quote

Thanks I'll try this when I get home.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©