Author Topic: Alignment in mod  (Read 5900 times)

0 Members and 1 Guest are viewing this topic.

Offline geewhiz

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • http://www.cawebguys.com
Alignment in mod
« on: April 12, 2003, 04:11:20 AM »
Need some help here.

I have added some code to the POD mod. The code works okay however I would like to align the PHP inclusion <center> and to move the wording "Advertisment" to be above the PHP code.


Tried, I have. Success is not coming.
Code: [Select]
<!-- BEGIN GALLERY AD CAMPAIGN -->
<table width="150" border="0" cellspacing="0" cellpadding="0">
  <tr><td class="head2" height="21" bgcolor="#7B0085" align="center"><b><img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />Advertisement</b></td></tr>
  <tr><td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td></tr>
 
 <?php $uid="140";include "/banner.php"?>

 <!-- END GALLERY AD CAMPAIGN -->
 
 <!-- BEGIN PHOTO OF THE DAY -->
  <tr><td class="head2" height="21" bgcolor="#7B0085" align="center"><b><img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />{lang_potd_title}</b></td></tr>
  <tr><td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td></tr>
  <tr><td align="center" class="row1"><br />{thumbnail}<br /></td></tr>
  <tr><td align="center" class="row1">{lang_potd_type}<br /><br /></td></tr>
  <tr><td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td></tr>
<!-- END PHOTO OF THE DAY -->
</table>


Can anyone help with getting the PHP code aligned and the "Advertisement" above it?

You can see the current state here: Right Hand Ad space

Much Appreciative.
- Snap -
Photography is not just a passion!
It has become an obsession!

Offline Fugaziman

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
    • http://www.1024x768wallpapers.com
This may help..
« Reply #1 on: April 12, 2003, 04:43:02 AM »
I'm not sure what the code in your php file does, it may do some formatting by itself but you may like to try this (I can't as I don't have your php file to test with). I've spaced/formatted it out so that you can see my cahnges a little easier.

Code: [Select]
<!-- BEGIN GALLERY AD CAMPAIGN -->
<table width="150" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="head2" height="21" bgcolor="#7B0085" align="center">
<b><img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />Advertisement</b>
</td>
</tr>
<tr>
<td class="tablebgcolor">
<img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" />
</td>
</tr>
<tr>
<td align="center" bgcolor="#7B0085">
<table align="center" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" class="row1">
<?php $uid="140";include "/banner.php"?>
</td>
</tr>
</table>
</td>
</tr>
<!-- END GALLERY AD CAMPAIGN -->

<!-- BEGIN PHOTO OF THE DAY -->
<tr>
<td class="head2" height="21" bgcolor="#7B0085" align="center">
<b><img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />{lang_potd_title}</b>
</td>
</tr>
<tr>
<td class="tablebgcolor">
<img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" />
</td>
</tr>
<tr>
<td align="center" class="row1">
<br />{thumbnail}<br />
</td>
</tr>
<tr>
<td align="center" class="row1">
{lang_potd_type}<br /><br />
</td>
</tr>
<tr>
<td class="tablebgcolor">
<img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" />
</td>
</tr>
<!-- END PHOTO OF THE DAY -->
</table>


Good Luck
Fugaziman  8)
Please take time to visit us at ...
http://www.1024x768wallpapers.com
And don't forget to leave a comment or message.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Alignment in mod
« Reply #2 on: April 12, 2003, 06:18:26 AM »
also, the php include that u have in the AD part, might give u error messages, because of wrong format.
it should be instead of
Code: [Select]
<?php $uid="140";include "/banner.php"?> be this way:
Code: [Select]
<?php
$uid
="140";include "/banner.php";
?>
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline geewhiz

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • http://www.cawebguys.com
Re: This may help..
« Reply #3 on: April 12, 2003, 01:15:31 PM »
Quote from: Fugaziman
Good Luck

Luck is not required... your HELP did the trick, also taught me a few lessons :mrgreen:  Now the right hand section is proper.

Thanks also to V@no for the extra tip as well. I have no clue about much of this stuff, so I just follow instructions hence the formating of the line was as originally indicated.
Question for Fugaziman: Care to share your News segment coding? Nice job there. It would be good to place under my "New Image" section.

Thanks again to both of you for your quick and complete help.
- Snap -
Photography is not just a passion!
It has become an obsession!

Offline Fugaziman

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
    • http://www.1024x768wallpapers.com
Alignment in mod
« Reply #4 on: April 12, 2003, 04:07:15 PM »
geewiz wrote:
Quote
Care to share your News segment coding


Quite a few people have asked me about this one, but because it's only html pages I've not put it in this forum.  :oops:

Until Now that is.

Here's a link to a zip file with the Latest News/Archive pages and Dates to Remember Page along with instructions on how to use them. You will need to play with the formatting a little to get it to fit into your pages look and feel.

Anyway you can down load the zip file here...
http://www.newman.d2g.com/Code_help_files/wanted_files_and_instructions.zip

If you need more help let me know.
Fugaziman  8)
Please take time to visit us at ...
http://www.1024x768wallpapers.com
And don't forget to leave a comment or message.

Offline geewhiz

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • http://www.cawebguys.com
Alignment in mod
« Reply #5 on: April 12, 2003, 06:29:04 PM »
Quote from: Fugaziman
Quite a few people have asked me about this one, but because it's only html pages I've not put it in this forum.  :oops:


I am glad you have decided to share it here with me. I will go through it and if there are any questions I will seek your guidance.
If you have a banner for your site, I would like to repay you by providing a link from our gallery to your site.

Thanks again.
- Snap -
Photography is not just a passion!
It has become an obsession!

Offline Fugaziman

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
    • http://www.1024x768wallpapers.com
New and updated (maybe easier) News and Archive
« Reply #6 on: April 13, 2003, 04:43:27 AM »
For all those interested I've created a new way to have News updates/ Archive that should be easier to install on your site.  :)

This one is database driven and uses the normal comment forms to add latest news articles.

For mor info check this Mod out
http://www.4homepages.de/forum/viewtopic.php?t=5142

Fugaziman
 8)
Please take time to visit us at ...
http://www.1024x768wallpapers.com
And don't forget to leave a comment or message.