Will you make my php script work as a user defined script? Will pay
Posted: Thu Jun 10, 2010 9:23 pm
Aloha,
My name is Veronica, I am running CMSMS version 1.7.1
I want to make several user defined tags for a website I am building.
I have 12 unique php scripts that I would like created into user defined tags.
The scripts are database driven, I have already made the table within mysql - so everything works there OUTSIDE of CMSMS but NOT inside of it.
I would like the tags to walk, talk and look like they belong within the CMS housing.
Here's an example of one of the first scripts. I will provide you the admin login and password if we can agree upon a reasonable fee for your expertise.
Otherwise, if you are feeling altruistic like to lend a helping hand please tell me where I am screwing this up (I can't get it to work, LOL) Also, where should I place my reference picture files within the CMS so the links within the script will work?
LOL, Mahalo!
one of the script codes below this line:
--------------------
";
$cards[$count] = $number;
$randnum = rand(0,100);
if($count != 0 && $count != 1)
{
if(($randnum % 2) != 0)
{
$cards[$count] = $cards[$count]."r";
}
}
$query = "SELECT * FROM $table WHERE (card = '$cards[$count]')";
$result = @mysql_db_query($db, $query);
$r = mysql_fetch_array($result);
if(!$result)
{
$query_error = "Failed at the mysql_db_query.";
echo"$query_error";
exit();
}
else
{
$indice = 0;
$thecards[$count][$indice] = $r["title"];
$test2 = $r["card"];
//echo"$test2 cards count --> $cards[$count]";
$test = $thecards[$count][$indice];
//echo"$test ";
$indice++;
$thecards[$count][$indice] = $r["description"];
$indice++;
$thecards[$count][$indice] = $r["thumb"];
$indice++;
$thecards[$count][$indice] = $r["limage"];
}
// $cards[$count] = $number;
// echo"$cards[$count]";
$count++;
$index = 0;
}
$count = 0;
$index = 0;
$printcards = implode (":", $cards);
?>
" class="genericstyle">
--> " target="_blank" >
" target="_blank">" src="" vspace="1" width="" height="">
" target="_blank">" src="" vspace="1" width="" height="">
" target="_blank">" src="" vspace="1" width="" height="" >
" target="_blank">" src="" vspace="1" width="" height="" >
" target="_blank">" src="" vspace="1" width="" height="" >
" target="_blank">" src="" vspace="1" width="" height="" >
" target="_blank">" src="" vspace="1" width="" height="" >
" target="_blank">" src="" vspace="1" width="" height="" >
" target="_blank">" src="" vspace="1" width="" height="" >
" target="_blank">" src="" vspace="1" width="" height="" >
" class="genericstyle">
" target="_blank">" src="" width="" height="" >
" target="_blank">" src="" width="" height="" >
" target="_blank">" src="" width="" height="" >
" target="_blank">" src="" width="" height="" >
" target="_blank">" src="" width="" height="" >
" target="_blank">" src="" width="" height="" >
" target="_blank">" src="" width="" height="" >
" target="_blank">" src="" width="" height="" >
" target="_blank">" src="" width="" height="" >
" target="_blank">" src="" width="" height="" >
Get
Another Reading Disclaimer " target="_blank" >
My name is Veronica, I am running CMSMS version 1.7.1
I want to make several user defined tags for a website I am building.
I have 12 unique php scripts that I would like created into user defined tags.
The scripts are database driven, I have already made the table within mysql - so everything works there OUTSIDE of CMSMS but NOT inside of it.
I would like the tags to walk, talk and look like they belong within the CMS housing.
Here's an example of one of the first scripts. I will provide you the admin login and password if we can agree upon a reasonable fee for your expertise.
Otherwise, if you are feeling altruistic like to lend a helping hand please tell me where I am screwing this up (I can't get it to work, LOL) Also, where should I place my reference picture files within the CMS so the links within the script will work?
LOL, Mahalo!
one of the script codes below this line:
--------------------
";
$cards[$count] = $number;
$randnum = rand(0,100);
if($count != 0 && $count != 1)
{
if(($randnum % 2) != 0)
{
$cards[$count] = $cards[$count]."r";
}
}
$query = "SELECT * FROM $table WHERE (card = '$cards[$count]')";
$result = @mysql_db_query($db, $query);
$r = mysql_fetch_array($result);
if(!$result)
{
$query_error = "Failed at the mysql_db_query.";
echo"$query_error";
exit();
}
else
{
$indice = 0;
$thecards[$count][$indice] = $r["title"];
$test2 = $r["card"];
//echo"$test2 cards count --> $cards[$count]";
$test = $thecards[$count][$indice];
//echo"$test ";
$indice++;
$thecards[$count][$indice] = $r["description"];
$indice++;
$thecards[$count][$indice] = $r["thumb"];
$indice++;
$thecards[$count][$indice] = $r["limage"];
}
// $cards[$count] = $number;
// echo"$cards[$count]";
$count++;
$index = 0;
}
$count = 0;
$index = 0;
$printcards = implode (":", $cards);
?>
" class="genericstyle">
--> " target="_blank" >
" target="_blank">" src="" vspace="1" width="" height="">
" target="_blank">" src="" vspace="1" width="" height="">
" target="_blank">" src="" vspace="1" width="" height="" >
" target="_blank">" src="" vspace="1" width="" height="" >
" target="_blank">" src="" vspace="1" width="" height="" >
" target="_blank">" src="" vspace="1" width="" height="" >
" target="_blank">" src="" vspace="1" width="" height="" >
" target="_blank">" src="" vspace="1" width="" height="" >
" target="_blank">" src="" vspace="1" width="" height="" >
" target="_blank">" src="" vspace="1" width="" height="" >
" class="genericstyle">
" target="_blank">" src="" width="" height="" >
" target="_blank">" src="" width="" height="" >
" target="_blank">" src="" width="" height="" >
" target="_blank">" src="" width="" height="" >
" target="_blank">" src="" width="" height="" >
" target="_blank">" src="" width="" height="" >
" target="_blank">" src="" width="" height="" >
" target="_blank">" src="" width="" height="" >
" target="_blank">" src="" width="" height="" >
" target="_blank">" src="" width="" height="" >
Get
Another Reading Disclaimer " target="_blank" >