₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,330,697 members, 8,446,688 topics. Date: Friday, 17 July 2026 at 12:11 AM

Toggle theme

DualCore1's Posts

Nairaland ForumDualCore1's ProfileDualCore1's Posts

1 2 3 4 5 6 7 8 ... 128 129 130 131 132 133 134 135 136 (of 371 pages)

WebmastersRe: Help! How Do I Make My Website Have Two Different Languages? by DualCore1: 2:01pm On Apr 15, 2010
@GDComms, glad I could be of help. I have no concrete idea how mtn.cm was done. From the link to the english version of the website, it appears it was done using CGI, which I have no idea about.
HealthRe: My First Experience With Cannabis(just 2days Ago) by DualCore1: 9:35am On Apr 15, 2010
LWKMD
Sorry mehn, there's always a first time.
WebmastersRe: Php/mysql. Does Every Php Script Need A Database? by DualCore1: 12:41am On Apr 15, 2010
yea i'm a newbie at everything, that's what makes me an oldie at being a newbie.

As for the beer, feel free to join as long as you clear off the drinking age of 55
WebmastersRe: Php/mysql. Does Every Php Script Need A Database? by DualCore1: 12:21am On Apr 15, 2010
if(isset(pcgurumod)){
//code to delete omnipotens, dhtml, pcguru himself, gdcomms, donpuzo e.t.c minus me
}

public static void main(string []){
system.out.println( "yea pc guru we got that"wink;}
WebmastersRe: Help! How Do I Make My Website Have Two Different Languages? by DualCore1: 11:52pm On Apr 14, 2010
Another way, which I will not recommend. Will be to build your site and replicate the site files in different folders. So for english you have the folder "en", for french you'll have the folder "fr". You can then have something like

<p>Choose your language please</p>
<ul>
<li><a href="yoursite.com/en">English</a></li>
<li><a href="yoursite.com/fr">French</a></li>
</ul>
Brother, this will just give you plenty headache during site maintenance. You can reduce the headache if all derivatives of the site share common stylesheet files. but its still headache.
WebmastersRe: Help! How Do I Make My Website Have Two Different Languages? by DualCore1: 11:38pm On Apr 14, 2010
One way will be to build your site in a way that every text block is referenced as a variable and is being read from a seperate file.

So you have all the english declared as variables in a file called english.php
you have all the french equivalent declared as variables in a file called french.php

here's an example I just wrote.

index.php
<?php
if($_GET['lang']=="english"wink{
include("english.php"wink;
}
elseif($_GET['lang']=="french"wink{
include("french.php"wink;
}
else{
include("english.php"wink;
}
?>
<html>
<head>
<title><?php echo $title ?></title>

</head>
<body>
<p><?php echo $greeting ?></p>

</body>
</html>
english.php
<?php
$greeting = "Hello, how are you today";
$title = "Welcome to our site";
?>
french.php
<?php
$greeting = "Bonjour, comment cava?";
$title = "Bien venue a la site"; //lol i need go french skool
?>
So english language will be called up by default. to get french you pass the variable "lang=french" as a GET method in the link.

so you could have something like

<p>Choose your language please</p>
<ul>
<li><a href="yoursite.com/?lang=english">English</a></li>
<li><a href="yoursite.com/?lang=french">French</a></li>
</ul>
This is just me, you can develop my idea and come up with something better.

Sorry, my french sucks.   tongue
WebmastersRe: Changing Css Or Background Based On Time by DualCore1: 10:42pm On Apr 14, 2010
[quote author=*dhtml link=topic=429611.msg5893808#msg5893808 date=1271280419]I am sure you can get scripts to do that for you, or pay me to write one for you.[/quote]Lol I don't need this functionality for any project now and if I ever have to need it, I go either google my way out or bug you to death on Y!m and I will get it, either ways tongue

I use cron on trudigits.com for backup and account/billing management but that's at intervals (every mid-night).
WebmastersRe: Changing Css Or Background Based On Time by DualCore1: 10:13pm On Apr 14, 2010
Mehn for some weird reasons, my connection is dulling. The times I have used cron from cpanel, its been based on intervals. I dont think I can remember seeing the possibility of its being applied for specific calendar dates. Thanks for the info though. i still have to check this up on cpanel as soon as I can.

Ok, so i'm not the only one seeing blow cron job, mmm? Nice!
WebmastersRe: Changing Css Or Background Based On Time by DualCore1: 6:44pm On Apr 14, 2010
Am I the only one thinking of something else when I see the phrase blow cron job? lipsrsealed

Cron will work for intervals but wont work for specific calendar dates.

1 2 3 4 5 6 7 8 ... 128 129 130 131 132 133 134 135 136 (of 371 pages)