| Author |
Message |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 920
|
Posted:
Sat Mar 26, 2005 10:51 pm |
|
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 |
|
|
 |
wax

Joined: Mar 24, 2005
Posts: 3
|
Posted:
Sun Mar 27, 2005 10:58 am |
|
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 |
_________________

Last edited by wax on Sun Mar 27, 2005 7:35 pm; edited 1 time in total |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 920
|
Posted:
Sun Mar 27, 2005 4:24 pm |
|
my bad, missed a line.
After...
| Code: |
if ($n == 0) {
echo "<tr>\n";
} |
Add...
| Code: |
echo "<td valign='top' width='50%'>\n";
|
|
| |
|
|
 |
sirVIPER

Joined: Sep 09, 2005
Posts: 28
Location: Texas
|
Posted:
Tue Nov 22, 2005 10:30 pm |
|
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? |
| |
|
|
 |
Ghost

Joined: Jan 08, 2005
Posts: 55
Location: Puyallup, Washington
|
Posted:
Thu Nov 24, 2005 4:45 pm |
|
sirVIPER,
I would have to assume that on the first listed edit...
| Code: |
opentable();
echo "<!--show maps-->\n"; |
You probably searched for...
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 |
| |
|
|
 |
sirVIPER

Joined: Sep 09, 2005
Posts: 28
Location: Texas
|
Posted:
Sun Nov 27, 2005 4:15 pm |
|
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? |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 920
|
Posted:
Sun Nov 27, 2005 4:36 pm |
|
remove the space between & nbsp; |
| |
|
|
 |
sirVIPER

Joined: Sep 09, 2005
Posts: 28
Location: Texas
|
Posted:
Mon Nov 28, 2005 11:48 am |
|
|
|
 |
|
|