View Full Version : network and contact table not showing
pookie
March 14th, 2007, 12:42 PM
someone purchased a package of layouts from me. he says that the layouts show up fine in the msrs preview but when he puts the code into his myspace profile, the network banner and contact table arent showing up. he hasn't told me whether or not he just copied and pasted the code directly from the css.php file onto his profile. the code wouldn't work that way because the background images codes were removed for msrs compatibility right?
Des
March 14th, 2007, 12:47 PM
Pookie, are you including a url for the network and contact images?
Greg-J
March 14th, 2007, 12:48 PM
Pookie, are you including a url for the network and contact images?
If you are, it is being overwritten by (msls). As long as you include the images with the layout, you do not need to include the paths in the layout as (msls) will build them itself.
Also, is this for msrs or msls?
pookie
March 14th, 2007, 01:09 PM
im pretty sure i gave him the msrs version without any urls. i'm waiting for him to get back to me
chriscoop
March 14th, 2007, 01:20 PM
Hello,
I posted the problem to pookie. I have a MSRS website and this is the css code:
<style type="text/css">
.contactTable {
width:300px !important;
height:150px !important;
padding:0px !important;
background-image: url("contact.jpg");
background-attachment:scroll;
background-position:center center;
background-repeat:no-repeat;
background-color:transparent;
}
.contactTable table, table.contactTable td {
padding:0px !important;
border:0px;
background-color:transparent;
background-image:none;
}.contactTable a img
{visibility:hidden; border:0px !important;}.contactTable .text {font-size:1px !important;}.contactTable
.text, .contactTable a, .contactTable img {filter:none !important;}.contactTable .whitetext12
{display:none;}</style>
</comment>
<style type="text/css">
table table table td {vertical-align:top ! important;}
span.blacktext12 {
visibility:visible !important;
background-color:transparent;
background-image: url("network.jpg");
background-repeat:no-repeat;
background-position:center center;
font-size:0px; letter-spac50g:-0.5px;
width:435px; height:107px; display:block !important; }
span.blacktext12 img {display:none;}
</style>
rize
March 14th, 2007, 01:30 PM
i think u have to remove:
background-image: url("contact.jpg");
background-image: url("network.jpg");
the coding looks messy :(
pookie
March 14th, 2007, 01:32 PM
the coding looks messy :(
how would you do the coding? i did it that way so I could understand the myspace css code. i'm a designer not a coder
Greg-J
March 14th, 2007, 01:39 PM
Chris,
MSRS itself does not support contact or network images. As for the background image, the script looks for the image in the directory and adds the CSS for it to the copy/paste box.
A mod was made for contact tables for MSRS and you can view it here (http://myspacepros.com/forum/showthread.php?t=207).
rize
March 14th, 2007, 01:40 PM
im not sure of this but anyway this is a cleaner code.. i guess lol
<style type="text/css">
.contactTable {
width:300px !important;
height:150px !important;
padding:0px !important;
background-attachmentcroll;
background-position:center center;
background-repeat:no-repeat;
background-color:transparent;
}
.contactTable table, table.contactTable td {
padding:0px !important;
border:0px;
background-color:transparent;
background-image:none;
}.contactTable a img
{visibility:hidden; border:0px !important;}.contactTable .text {font-size:1px !important;}.contactTable
.text, .contactTable a, .contactTable img {filter:none !important;}.contactTable .whitetext12
{display:none;}</style>
table table table td {vertical-align:top ! important;}
span.blacktext12 {
visibility:visible !important;
background-color:transparent;
background-repeat:no-repeat;
background-position:center center;
font-size:0px; letter-spac50g:-0.5px;
width:435px; height:107px; display:block !important; }
span.blacktext12 img {display:none;}
</style>
and i think in msrs u should save them as extended.jpg instead of network.jpg
Des
March 14th, 2007, 01:43 PM
pookie, I dont know css at all, well a very little bit, and I can read/understand your css just fine :)
But yes the relative urls are the problem, in msls I am adding !important tags to the image url's that we generate so if the layout maker leaves the urls in for contact, and network images it wont effect the layout code we generate.
pookie
March 14th, 2007, 01:49 PM
pookie, I dont know css at all, well a very little bit, and I can read/understand your css just fine :)
But yes the relative urls are the problem, in msls I am adding !important tags to the image url's that we generate so if the layout maker leaves the urls in for contact, and network images it wont effect the layout code we generate.
oh good! hmmm... i suck at coding... well theres always room for improvement :smartass:
99darkgreenGT
March 30th, 2007, 01:35 PM
Chris,
MSRS itself does not support contact or network images. As for the background image, the script looks for the image in the directory and adds the CSS for it to the copy/paste box.
A mod was made for contact tables for MSRS and you can view it here (http://myspacepros.com/forum/showthread.php?t=207).
i am sort of confused.....see my thread http://www.myspacepros.com/forum/showthread.php?t=3907
contact tables and extended network images load up fine in my on site preview, however, the generated code for myspace does not work when you paste into myspace (contact table and extended network don't show)?
i don't know a thing about coding, but can't you call out the contact image and network image in the _inc/themelistmaker.php file? like right underneath where it calls the background image?
// Display theme list
$arr = array();
if ($handle2 = opendir($root2folder . '/')) {
$cnt = 0;
while (false !== ($file = readdir($handle2))) {
if ($file != "." && $file != ".." && $file !="Thumbs.db" && $file != "index.php") {
if(($cnt>=$imageListStart)&&($cnt<$imageListStop)){
array_push($arr, $file);
}
$cnt++;
}
}
closedir($handle2);
}
sort($arr, SORT_STRING);
$i = 1;
foreach($arr as $val) {
echo '<div class="showImages">' . "\n" .
'<img src="'.$url2folder.$val.'/thumb.jpg" alt="' . str_replace('_', ' ', $val) . '" />' . "\n" .
'<form action=""><textarea cols="" rows="" class="formTextareaBig" style="height:100px" name="showImage'.$i.'" onfocus="this.form.showImage'.$i.'.select()" onclick="this.form.showImage' . $i . '.select()" onmouseover="this.style.borderColor=\'#'.$randomColors[$random10[1]].'\'" onmouseout="this.style.borderColor=\'#555555\'" > '.htmlspecialchars(file_get_contents($root2folder. $val.'/css.php'), ENT_QUOTES).$linkTag.'Get your layout at <a href="'.$urlBase.'">'.$siteName.'</a> <style type="text/css">'."\n".'body{ background-image: url("'.$url2folder.$val.'/bg.jpg")}'."\n".'</style></textarea></form>'."\n" .
'</div>' . "\n\n";
$i++;
}
99darkgreenGT
March 31st, 2007, 02:13 PM
i am sort of confused.....see my thread http://www.myspacepros.com/forum/showthread.php?t=3907
contact tables and extended network images load up fine in my on site preview, however, the generated code for myspace does not work when you paste into myspace (contact table and extended network don't show)?
i don't know a thing about coding, but can't you call out the contact image and network image in the _inc/themelistmaker.php file? like right underneath where it calls the background image?
// Display theme list
$arr = array();
if ($handle2 = opendir($root2folder . '/')) {
$cnt = 0;
while (false !== ($file = readdir($handle2))) {
if ($file != "." && $file != ".." && $file !="Thumbs.db" && $file != "index.php") {
if(($cnt>=$imageListStart)&&($cnt<$imageListStop)){
array_push($arr, $file);
}
$cnt++;
}
}
closedir($handle2);
}
sort($arr, SORT_STRING);
$i = 1;
foreach($arr as $val) {
echo '<div class="showImages">' . "\n" .
'<img src="'.$url2folder.$val.'/thumb.jpg" alt="' . str_replace('_', ' ', $val) . '" />' . "\n" .
'<form action=""><textarea cols="" rows="" class="formTextareaBig" style="height:100px" name="showImage'.$i.'" onfocus="this.form.showImage'.$i.'.select()" onclick="this.form.showImage' . $i . '.select()" onmouseover="this.style.borderColor=\'#'.$randomColors[$random10[1]].'\'" onmouseout="this.style.borderColor=\'#555555\'" > '.htmlspecialchars(file_get_contents($root2folder. $val.'/css.php'), ENT_QUOTES).$linkTag.'Get your layout at <a href="'.$urlBase.'">'.$siteName.'</a> <style type="text/css">'."\n".'body{ background-image: url("'.$url2folder.$val.'/bg.jpg")}'."\n".'</style></textarea></form>'."\n" .
'</div>' . "\n\n";
$i++;
}
can anyone help me out?:?
fjsheffield
April 1st, 2007, 07:44 AM
Greg I was unable to access this thread ?
Said I didnt have the right privileges ???
Chris,
MSRS itself does not support contact or network images. As for the background image, the script looks for the image in the directory and adds the CSS for it to the copy/paste box.
A mod was made for contact tables for MSRS and you can view it here (http://myspacepros.com/forum/showthread.php?t=207).
99darkgreenGT
April 1st, 2007, 08:45 AM
can anyone help me out?:?
ok, i sort of got a fix i think from a friend.....the only problem i have found so far is that if you have a .gif file for the contact table or extended network image, it will not post it up. is there a way to call for both? i have no idea how to code anything, but here is what my friend told me to try.....
// Display theme list
$arr = array();
if ($handle2 = opendir($root2folder . '/')) {
$cnt = 0;
while (false !== ($file = readdir($handle2))) {
if ($file != "." && $file != ".." && $file !="Thumbs.db" && $file != "index.php") {
if(($cnt>=$imageListStart)&&($cnt<$imageListStop)){
array_push($arr, $file);
}
$cnt++;
}
}
closedir($handle2);
}
sort($arr, SORT_STRING);
$i = 1;
foreach($arr as $val) {
echo '<div class="showImages">' . "\n" .
'<img src="'.$url2folder.$val.'/thumb.jpg" alt="' . str_replace('_', ' ', $val) . '" />' . "\n" .
'<form action=""><textarea cols="" rows="" class="formTextareaBig" style="height:100px" name="showImage'.$i.'" onfocus="this.form.showImage'.$i.'.select()" onclick="this.form.showImage' . $i . '.select()" onmouseover="this.style.borderColor=\'#'.$randomColors[$random10[1]].'\'" onmouseout="this.style.borderColor=\'#555555\'" > '.htmlspecialchars(file_get_contents($root2folder. $val.'/css.php'), ENT_QUOTES).$linkTag.'Get your layout at <a href="'.$urlBase.'">'.$siteName.'</a> <style type="text/css">'."\n".'body{ background-image: url("'.$url2folder.$val.'/bg.jpg")}'.'.contactTable{ background-image: url("'.$url2folder.$val.'/contact.jpg")}'.'span.blacktext12{ background-image: url("'.$url2folder.$val.'/extended.jpg")}'."\n".'</style></textarea></form>'."\n" .
'</div>' . "\n\n";
$i++;
}
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.