Archive

Posts Tagged ‘charset’

Wrong Charset

September 15th, 2011 Comments off

Hello,

I’m running vBulletin forum and everything is working great and then I found a great mod and installed it.

Everything worked but a little problem arise, one of the template for the mod won’t show the right charset:
http://www.phantom-downloads.com/memspace/images_up/7abac843dba4d17da56d77daab56c278.png

notice the hover don’t show the default language which is Arabic.

Database charset: latin1_swedish_ci
Language charset: ISO-8859-1
Browser Charset Showing: windows-1256
Link to the page: http://www.phantom-theater.com/vb/vbshop.php

What I want is a way to make the hover shows Arabic without big change in anything.

So can anyone do it?

Best Regards,
Sarab

Need To Display Greek Charset

September 7th, 2009 Comments off

The Problem:
This is a sample page of the Greek Charset=ISO-8859-7 page/code
We will be calling calling the two pages via php include code
http://www.kavalanet.gr/enimerosi/agenda/FirstPage_Headlines_agenda.php & http://www.kavalanet.gr/enimerosi/macedonia/FirstPage_Headlines_macedonia.php

I need to call the page via php include and needs to be able to show the correct Charset inside a “NEWS” box in the correct ISO format

What I need to see from you:
setup a PHP page using Charset=UTF-8
and add the php include code
to call the urls: http://www.kavalanet.gr/enimerosi/agenda/FirstPage_Headlines_agenda.php & http://www.kavalanet.gr/enimerosi/macedonia/FirstPage_Headlines_macedonia.php

Your test must be able to display both UTF-8 and ISO-8859-7 (Greek)
Then PM me your test URL for me to review the code live on your server

First coder to do this and make it work on my script will get the project award to them and a super feedback to your SL account

AdSpace

Php Includei So-8859-7 To Utf8

September 4th, 2009 Comments off

Need to display a page using Greek Charset=ISO-8859-7 within a script that is using Charset=UTF-8

**** DO NOT BID TILL YOU READ ALL INFO AND SETUP A WORKING SAMPLE PAGE OF THE PHP INCLUDE CODE BELOW!!! ****

The Problem:
This is a sample page of the Greek Charset=ISO-8859-7 page/code
http://www.e-gamos.gr/guide/FirstPage_Headlines_agenda.php

This is a page calling the php include code/page
http://www.e-gamos.gr/guide/index.php
* Look for the “NEWS” box section (center page near the footer)

I need to call the page via php include and still be able to show in the “NEWS” box in the correct format

What I need to see from you:
setup a PHP page using Charset=UTF-8
and add the php include code
to call the url: http://www.e-gamos.gr/guide/FirstPage_Headlines_agenda.php

Your test must be able to display both UTF-8 and ISO-8859-7 (Greek)
Then PM me your test URL for me to review the code live on your server

First coder to do this and make it work on my script will get the project award to them and a super feedback to your SL account

AdSpace

A Simple Javascript Snippet

June 19th, 2009 Comments off

Ok, so I am not well versed with javascript and do everything with php. But this one calls for a bit of js manipulation.

For someone who knows JS this should be a five minute job.

So, we are using openx for ad management. The problem is that placing the openx javacode all over the page is simply too annoying.

so we had created a single php function called disp_ads where it would be fed the ad_zone and another variable and then it would display the ad.

this is one it looks like:

function ad_disp_raw ($ad_zone, $ad_n) {
?>
<script type=’text/javascript’><!–//<![CDATA[
var m3_u = (location.protocol=='https:'?'/cp/adserver/www/delivery/ajs.php':'/cp/adserver/www/delivery/ajs.php');
var m3_r = Math.floor(Math.random()*99999999999);
if (!document.MAX_used) document.MAX_used = ',';
document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
document.write ("?zoneid=<?=$ad_zone; ?>");
document.write ('&cb=' + m3_r);
if (document.MAX_used != ',') document.write ("&exclude=" + document.MAX_used);
document.write (document.charset ? '&charset='+document.charset : (document.characterSet ? '&charset='+document.characterSet : ''));
document.write ("&loc=" + escape(window.location));
if (document.referrer) document.write ("&referer=" + escape(document.referrer));
if (document.context) document.write ("&context=" + escape(document.context));
if (document.mmm_fo) document.write ("&mmm_fo=1");
document.write ("'></scr"+"ipt>");
//]]>–></script><noscript><a href=’/cp/adserver/www/delivery/ck.php?n=<?=$ad_n; ?>&cb=INSERT_RANDOM_NUMBER_HERE’ target=’_blank’><img src=’/cp/adserver/www/delivery/avw.php?zoneid=<?=$ad_zone; ?>&cb=INSERT_RANDOM_NUMBER_HERE&n=<?=$ad_n; ?>’ border=’0′ alt=” /></a></noscript>
<?
}

// function ad_disp is a generic add display module from phpads
function ad_disp ($ad_zone, $ad_n) {
?>
<fieldset class=ads>
<legend>ADVERTISEMENT</legend>
<? ad_disp_raw ($ad_zone, $ad_n); ?>
</fieldset><?

}

———
So as you can see, sometimes we call the ad_disp function which displays a little fieldset around the ad or we can call the ad_disp_raw function directly if we don’t want the fieldset around the ad.

—-> the job:
we need the same methodology done but ALL is java. So, no php function but a java function PLUS the call.

So, really all one needs to do is write two js functions where one calls the other (see above php functions) and their call syntax – where all we do is call the function with the two variables.

right now the function calls look like this:

<? ad_disp{12, 1233s32); ?>
so we want a call that is as simple as this!

—> this needs to be done rightaway. so if you can’t do this in less than an hour don’t bid please.

Bear