Google

NukeCoder


View next topic
View previous topic
Post new topic   Reply to topic
Author Message
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Sat Mar 26, 2005 10:51 pm
Reply with quote

Show 2 maps side by side in the same row.

Open modules/Maps/index.php

Find...

Code:
opentable();
echo "<!--show maps-->\n";


After, on a new line add...

Code:
echo "<table width='100%' cellpadding='4'>\n";
$n = 0;


Find...

Code:
$rating = $row['rating'];
$totalvotes = $row['totalvotes'];


After, on a new line add...

Code:
if ($n == 0) {
   echo "<tr>\n";
}
echo "<td valign='top' width='50%'>\n";


Find...

Code:
."</form>\n"
."<hr noshade color='$bgcolor2'>\n"
."<<br>\n";


Change to...

Code:
."</form>\n"
//."<hr noshade color='$bgcolor2'>\n"
."</td>\n";


After, on a new line add...

Code:
$n++;
   if ($n == 2) {
      echo "</tr>\n";
      $n = 0;
   }


Immediately after find...

Code:
}

   echo "<!--end show maps-->\n\n";


Change to...

Code:
}
   if ($n == 1) {
      echo "<td>& nbsp;</td>\n"
         ."</tr>\n";
   }
   echo "</table>\n";

   echo "<!--end show maps-->\n\n";


And thats all folks!

Enjoy!


Last edited by gotcha on Mon Dec 18, 2006 7:50 pm; edited 5 times in total 
View user's profile Send private message Visit poster's website
wax




Joined: Mar 24, 2005
Posts: 3

PostPosted: Sun Mar 27, 2005 10:58 am
Reply with quote

Thanks for the hard work. But i have tryed many times and i just cant get it to work. do you think you can look at my index file and see if it tooks right.



Thanks again that got it working

_________________
Image

Last edited by wax on Sun Mar 27, 2005 7:35 pm; edited 1 time in total 
View user's profile Send private message
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Sun Mar 27, 2005 4:24 pm
Reply with quote

my bad, missed a line.

After...

Code:
if ($n == 0) {
   echo "<tr>\n";
}


Add...

Code:

echo "<td valign='top' width='50%'>\n";
 
View user's profile Send private message Visit poster's website
sirVIPER




Joined: Sep 09, 2005
Posts: 28
Location: Texas

PostPosted: Tue Nov 22, 2005 10:30 pm
Reply with quote

I cannot get this to work with the new version and I cannot figure out why do you have an index file with this working with 1.1 I can get from you?
 
View user's profile Send private message Visit poster's website MSN Messenger
Ghost




Joined: Jan 08, 2005
Posts: 55
Location: Puyallup, Washington

PostPosted: Thu Nov 24, 2005 4:45 pm
Reply with quote

sirVIPER,
I would have to assume that on the first listed edit...

Code:
opentable();
echo "<!--show maps-->\n";


You probably searched for...
Code:
opentable();


Instead you should have searched for...
Code:
echo "<!--show maps-->\n";


opentable(); happens to be listed more than once, in which when searching, you posted your edit into the first opentable(); find. An easy error to make, but I have come to realize that when doing upgrades, it is essential to validate every line.

Try that, but also make sure you correct the first edit by simply removing the added lines. Please post back here to inform us of the results.


Ghost
 
View user's profile Send private message Send e-mail MSN Messenger
sirVIPER




Joined: Sep 09, 2005
Posts: 28
Location: Texas

PostPosted: Sun Nov 27, 2005 4:15 pm
Reply with quote

Ok I tried the above and it did not work, but I had a copy of my old version and went through the new index with the old one and it worked fine so I am good to go.

One thing though is when there is only one on a row at the end it shows & nbsp; in the spot where the next map would go. How do I get rid of that showing up?
 
View user's profile Send private message Visit poster's website MSN Messenger
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Sun Nov 27, 2005 4:36 pm
Reply with quote

remove the space between & nbsp;
 
View user's profile Send private message Visit poster's website
sirVIPER




Joined: Sep 09, 2005
Posts: 28
Location: Texas

PostPosted: Mon Nov 28, 2005 11:48 am
Reply with quote

w00t you the man THX.
 
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:       
Post new topic   Reply to topic

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 cannot attach files in this forum
You cannot download files in this forum


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