Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Web Design Lobby Forum for general web design issues not specific to scripting or graphics.

   

Reply
 
LinkBack Thread Tools Display Modes
Old 09-16-2007, 07:59 AM   #1 (permalink)
Contributing Member
 
CircleOfLinks's Avatar
 
Join Date: 10-08-06
Location: Sydney
Posts: 164
iTrader: 0 / 0%
Latest Blog:
None

CircleOfLinks is an unknown quantity at this point
need help inserting text and images - myphpdirectory

Hi Guys,

please if someone can help i would really appreciate it...

I need help on how to insert text and small images on this page. www.aussiepages.com.au/compare.php
I tried editing the compare.php and compare.tpl (the .tpl file is empty) but nothing happens. My designer is currenlty flat out with work and cant do much at the moment. Please if some one is familair with myphpdirectory (which is what my site runs on) and can help i would really appreciate it.

I need to know what file i can edit to place the contents in.

thanks all in advance

danny
CircleOfLinks is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-16-2007, 08:18 PM   #2 (permalink)
Contributing Member
 
CircleOfLinks's Avatar
 
Join Date: 10-08-06
Location: Sydney
Posts: 164
iTrader: 0 / 0%
Latest Blog:
None

CircleOfLinks is an unknown quantity at this point
Hi Guys,,

are lot of you have been asking to see the compare.php file, here it is.

Code:
<?php /* ********************************************************************* * * This script is owned and copyrighted by phpMyDirectory.com. Your * license confers no title or ownership in the Software and is * not a sale of any rights to the Software. * ***********************************************************************/ include('./defaults.php'); $incomingline = $lang['compare_memberships']; $compare_table = ' <table cellpadding="3" cellspacing="0" bgcolor="#FFFFFF" align="center" style="border : 1px solid #838383;"> <tr bgcolor="#EAEAEA"> <td><span class="text_bold">'.$lang['features'].'</span></td>'; foreach($config_memberships as $mem_key=>$membership) { if($config_memberships[$mem_key]['enabled'] == "YES") { $compare_table .= '<td><span class="text_bold">'.$config_memberships[$mem_key]['name'].'</span></td>'; } } $compare_table .= '</tr><tr><td><span class="text_bold">'.$lang['price'].'</span></td>'; foreach($config_memberships as $mem_key=>$membership) { if($config_memberships[$mem_key]['enabled'] == "YES") { $compare_table .= '<td><span class="text">'.$config_memberships[$mem_key]['price'].'</td>'; } } $compare_table .= '</tr> <tr> <td><span class="text_bold">'.$lang['expiration'].'</span></td>'; foreach($config_memberships as $mem_key=>$membership) { if($config_memberships[$mem_key]['enabled'] == "YES") { $compare_table .= '<td><span class="yes">'; if($config_memberships[$mem_key]['expiration'] != 0) { $compare_table .= $config_memberships[$mem_key]['expiration'].' '.$config_memberships[$mem_key]['period']; } else { $compare_table .= $lang['never']; } $compare_table .= '</span></td>'; } } $compare_table .= '</tr><tr><td><span class="text_bold">'.$lang['categories'].'</span></td>'; foreach($config_memberships as $mem_key=>$membership) { if($config_memberships[$mem_key]['enabled'] == "YES") { $compare_table .= '<td><span class="text">'.$config_memberships[$mem_key]['category_limit'].'</span></td></td>'; } } $compare_table .= '<tr><td><span class="text_bold">Search Results</span></td><td><span class="text">3rd</span></td><td><span class="text">2nd</span></td><td><span class="text">1st</span></td><td><span class="text">1st</span></td></tr>'; $filename = "stock.txt"; $handle = fopen($filename, "rb"); $contents = fread($handle, filesize($filename)); fclose($handle); $stock = explode('|',$contents); $compare_table .= "<tr><td><span class=\"text_bold\">Availability</span></td><td><span class=\"text\">{$stock[0]}</span></td><td><span class=\"text\">{$stock[1]}</span></td><td><span class=\"text\">{$stock[2]}</span></td><td><span class=\"text\">{$stock[3]}</span></td></tr>"; $compare_table .= '</tr><tr><td><span class="text_bold">'.$lang['featured_in_sidebox'].'</span></td>'; foreach($config_memberships as $mem_key=>$membership) { if($config_memberships[$mem_key]['enabled'] == "YES") { $compare_table .= '<td><span class="'.$config_memberships[$mem_key]['featured_sidebox'].'">'; if($config_memberships[$mem_key]['featured_sidebox'] == "YES") { $compare_table .= $lang['chart_yes']; } else { $compare_table .= $lang['chart_no']; } $compare_table .= '</span></td></td>'; } } $compare_table .= '</tr><tr><td><span class="text_bold">'.$lang['listing'].' '.$lang['title'].'</span></td>'; foreach($config_memberships as $mem_key=>$membership) { if($config_memberships[$mem_key]['enabled'] == "YES") { $compare_table .= '<td><span class="yes">'.$lang['chart_yes'].'</span></td></td>'; } } $compare_table .= '</tr><tr><td><span class="text_bold">'.$lang['address'].'</span></td>'; foreach($config_memberships as $mem_key=>$membership) { if($config_memberships[$mem_key]['enabled'] == "YES") { $compare_table .= '<td><span class="'.$config_memberships[$mem_key]['address'].'">'; if($config_memberships[$mem_key]['address'] == "YES") { $compare_table .= $lang['chart_yes']; } else { $compare_table .= $lang['chart_no']; } $compare_table .= '</span></td></td>'; } } $compare_table .= '</tr><tr><td><span class="text_bold">'.$lang['zipcode'].'</span></td>'; foreach($config_memberships as $mem_key=>$membership) { if($config_memberships[$mem_key]['enabled'] == "YES") { $compare_table .= '<td><span class="'.$config_memberships[$mem_key]['zip'].'">'; if($config_memberships[$mem_key]['zip'] == "YES") { $compare_table .= $lang['chart_yes']; } else { $compare_table .= $lang['chart_no']; } $compare_table .= '</span></td></td>'; } } $compare_table .= '</tr><tr><td><span class="text_bold">'.$lang['email'].'</span></td>'; foreach($config_memberships as $mem_key=>$membership) { if($config_memberships[$mem_key]['enabled'] == "YES") { $compare_table .= '<td><span class="'.$config_memberships[$mem_key]['email'].'">'; if($config_memberships[$mem_key]['email'] == "YES") { $compare_table .= $lang['chart_yes']; } else { $compare_table .= $lang['chart_no']; } $compare_table .= '</span></td></td>'; } } $compare_table .= '</tr><tr><td><span class="text_bold">'.$lang['website'].'</span></td>'; foreach($config_memberships as $mem_key=>$membership) { if($config_memberships[$mem_key]['enabled'] == "YES") { $compare_table .= '<td><span class="'.$config_memberships[$mem_key]['www'].'">'; if($config_memberships[$mem_key]['www'] == "YES") { $compare_table .= $lang['chart_yes']; } else { $compare_table .= $lang['chart_no']; } $compare_table .= '</span></td></td>'; } } $compare_table .= '</tr>'; require_once (PMDROOT . "/includes/class_custom_fields.php"); $objCustFields=&new CustomFields($db); $fields = $objCustFields->getFieldList(); unset($objCustFields); foreach($fields as $key=>$value) { $compare_table .= '<tr><td><span class="text_bold">'.$value['name'].'</span></td>'; $field = "custom_" . $value['id']; foreach($config_memberships as $mem_key=>$membership) { if($config_memberships[$mem_key]['enabled'] == "YES") { $compare_table .= '<td><span class="'.$config_memberships[$mem_key][$field].'">'; if($config_memberships[$mem_key][$field] == "YES") { $compare_table .= $lang['chart_yes']; } else { $compare_table .= $lang['chart_no']; } $compare_table .= '</span></td></td>'; } } $compare_table .= '</tr>'; } $compare_table .= '<tr><td><span class="text_bold">'.$lang['map'].'</span></br><span class="text">PO Box Addresses Excluded</span></td>'; foreach($config_memberships as $mem_key=>$membership) { if($config_memberships[$mem_key]['enabled'] == "YES") { $compare_table .= '<td><span class="'.$config_memberships[$mem_key]['map'].'">'; if($config_memberships[$mem_key]['map'] == "YES") { $compare_table .= $lang['chart_yes']; } else { $compare_table .= $lang['chart_no']; } $compare_table .= '</span></td></td>'; } } $compare_table .= '</tr><tr><td><span class="text_bold">'.$lang['description'].'<br>'.$lang['chart_characters'].'</span></td>'; foreach($config_memberships as $mem_key=>$membership) { if($config_memberships[$mem_key]['enabled'] == "YES") { $compare_table .= '<td><span class="text">'.$config_memberships[$mem_key]['description_size'].'</span></td></td>'; } } $compare_table .= '</tr><tr><td><span class="text_bold">'.$lang['logo'].'</span></td>'; foreach($config_memberships as $mem_key=>$membership) { if($config_memberships[$mem_key]['enabled'] == "YES") { $compare_table .= '<td><span class="'.$config_memberships[$mem_key]['logo'].'">'; if($config_memberships[$mem_key]['logo'] == "YES") { $compare_table .= $lang['chart_yes']; } else { $compare_table .= $lang['chart_no']; } $compare_table .= '</span></td></td>'; } } $compare_table .= '</tr>'; /* $banners = $db->Execute("SELECT * FROM ".T_BANNER_TYPES); while($banner = $banners->FetchRow()) { $compare_table .= '<tr><td><span class="text_bold">'.$banner['name'].'</span></td>'; $field = "banner_" . $banner['id']; foreach($config_memberships as $mem_key=>$membership) { if($config_memberships[$mem_key]['enabled'] == "YES") { $compare_table .= '<td><span class="'.$config_memberships[$mem_key][$field].'">'; if($config_memberships[$mem_key][$field] == "YES") { $compare_table .= $lang['chart_yes']; } else { $compare_table .= $lang['chart_no']; } $compare_table .= '</span></td></td>'; } } $compare_table .= '</tr>'; } $compare_table .= '<tr><td><span class="text_bold">'.$lang['product'].' '.$lang['images'].'</span></td>'; foreach($config_memberships as $mem_key=>$membership) { if($config_memberships[$mem_key]['enabled'] == "YES") { $compare_table .= '<td><span class="'.$config_memberships[$mem_key]['products_images'].'">'; if($config_memberships[$mem_key]['products_images'] == "YES") { $compare_table .= $lang['chart_yes']; } else { $compare_table .= $lang['chart_no']; } $compare_table .= '</span></td></td>'; } } $compare_table .= '</tr><tr><td><span class="text_bold">'.$lang['product_thumbnails'].'</span></td>'; foreach($config_memberships as $mem_key=>$membership) { if($config_memberships[$mem_key]['enabled'] == "YES") { $compare_table .= '<td><span class="'.$config_memberships[$mem_key]['products_thumbs'].'">'; if($config_memberships[$mem_key]['products_thumbs'] == "YES") { $compare_table .= $lang['chart_yes']; } else { $compare_table .= $lang['chart_no']; } $compare_table .= '</span></td></td>'; } } $compare_table .= '</tr><tr><td><span class="text_bold">'.$lang['products'].'</span></td>'; foreach($config_memberships as $mem_key=>$membership) { if($config_memberships[$mem_key]['enabled'] == "YES") { $compare_table .= '<td><span class="text">'.$config_memberships[$mem_key]['products_set_products'].'</span></td></td>'; } } $compare_table .= '</tr><tr><td><span class="text_bold">'.$lang['images'].'</span></td>'; foreach($config_memberships as $mem_key=>$membership) { if($config_memberships[$mem_key]['enabled'] == "YES") { $compare_table .= '<td><span class="text">'.$config_memberships[$mem_key]['set_gallery_images'].'</span></td></td>'; } } $compare_table .= '</tr><tr><td><span class="text_bold">'.$lang['documents'].'</td>'; foreach($config_memberships as $mem_key=>$membership) { if($config_memberships[$mem_key]['enabled'] == "YES") { $compare_table .= '<td><span class="text">'.$config_memberships[$mem_key]['set_documents'].'</span></td></td>'; } } $compare_table .= '</tr><tr><td>&nbsp;</td>'; */ $compare_table .= "<tr><td>&nbsp;</td>"; foreach($config_memberships as $mem_key=>$membership) { if($config_memberships[$mem_key]['enabled'] == "YES") { $compare_table .= '<td><input type="button" class="button" name="type" value="'.$lang['submit'].'" onclick="document.location.href=\''.BASE_URL.MEMBERS_FOLDER.'user_register.php?type='.$mem_key.'\'"></td>'; } } $compare_table .= '</tr></table><br><center><a href="http://www.fookes.com/ezthumbs/index.php" target="_blank">*Download free image editing program here</a></center>'; $template_content = & new PMDTemplate(PMDROOT .'/template/' . $config['template'] . '/compare.tpl'); $template_content->set('lang',$lang); $template_content->set('compare_table',$compare_table); include(PMDROOT.'/includes/template_setup.php'); ?>

What part do I need to edit??

thanks in-advance

Last edited by chicgeek : 09-16-2007 at 08:30 PM.
CircleOfLinks is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-16-2007, 08:30 PM   #3 (permalink)
Empress™
 
chicgeek's Avatar
 
Join Date: 08-19-04
Location: York, UK
Posts: 18,418
iTrader: 0 / 0%
Latest Blog:
My Favourite Poem

chicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest orderchicgeek is a web professional of the highest order
Put in a code box.
__________________
laura / chicgeek
soprano & web designer
laurakishimoto.ca
Always assume the presence of a belly button!
chicgeek is online now  
Add Post to del.icio.us
Reply With Quote
Old 09-16-2007, 11:43 PM   #4 (permalink)
Inactive
 
Join Date: 09-16-07
Location: Toronto, Canada
Posts: 22
iTrader: 0 / 0%
HostGuy is liked by many
That depends, where exactly do you want the text and/or images to show up?
HostGuy is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-17-2007, 12:38 AM   #5 (permalink)
Contributing Member
 
CircleOfLinks's Avatar
 
Join Date: 10-08-06
Location: Sydney
Posts: 164
iTrader: 0 / 0%
Latest Blog:
None

CircleOfLinks is an unknown quantity at this point
hostguy, i need it to show on top aboe the box. where it currently says 'you can upgrade your membership........' in grey color...

got any ideas??
CircleOfLinks is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-17-2007, 12:51 AM   #6 (permalink)
Inactive
 
Join Date: 09-16-07
Location: Toronto, Canada
Posts: 22
iTrader: 0 / 0%
HostGuy is liked by many
Hi,
If you want to place it right between that text and the top of the table, you should be able to put your html/text between the following 2 lines. right at the top of the file
Quote:
$compare_table = '

<table cellpadding="3" cellspacing="0" bgcolor="#FFFFFF" align="center" style="border : 1px solid #838383;">
HostGuy is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-17-2007, 01:14 AM   #7 (permalink)
Contributing Member
 
CircleOfLinks's Avatar
 
Join Date: 10-08-06
Location: Sydney
Posts: 164
iTrader: 0 / 0%
Latest Blog:
None

CircleOfLinks is an unknown quantity at this point
Hi,

but would that remove whats there already? because i want to delete the writing in grey and replace it with some gifs and text
CircleOfLinks is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-17-2007, 01:50 AM   #8 (permalink)
Inactive
 
Join Date: 09-16-07
Location: Toronto, Canada
Posts: 22
iTrader: 0 / 0%
HostGuy is liked by many
No, that would just add to the page.
If you want to remove that text, you'll probably have to look for a language file that contains the text on this page
HostGuy is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-17-2007, 07:09 AM   #9 (permalink)
Contributing Member
 
CircleOfLinks's Avatar
 
Join Date: 10-08-06
Location: Sydney
Posts: 164
iTrader: 0 / 0%
Latest Blog:
None

CircleOfLinks is an unknown quantity at this point
where would i find that?? ive search heaps of php files and nothing in there... i dont know where to look
CircleOfLinks is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-17-2007, 08:26 AM   #10 (permalink)
Inactive
 
Join Date: 09-16-07
Location: Toronto, Canada
Posts: 22
iTrader: 0 / 0%
HostGuy is liked by many
Well, I'm running an older version of phpMydirectory.
For me, there is a folder called lang and a file inside called language.en.php (should be in there)

If not, use Windows search feature to search some of those words
HostGuy is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-18-2007, 07:14 AM   #11 (permalink)
Contributing Member
 
CircleOfLinks's Avatar
 
Join Date: 10-08-06
Location: Sydney
Posts: 164
iTrader: 0 / 0%
Latest Blog:
None

CircleOfLinks is an unknown quantity at this point
hostguy, yeah it was in there, your a ledgnd,,, but can i ask something, how can i place images in there instead of writing??
CircleOfLinks is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-18-2007, 10:58 AM   #12 (permalink)
Inactive
 
Join Date: 09-16-07
Location: Toronto, Canada
Posts: 22
iTrader: 0 / 0%
HostGuy is liked by many
ok, great

To place an image you would have to use html code
eg) <img src="/path/toyour/image.jpg">
HostGuy is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-23-2007, 12:15 AM   #13 (permalink)
Contributing Member
 
krahmaan's Avatar
 
Join Date: 08-24-07
Location: LA County, California
Posts: 1,034
iTrader: 0 / 0%
Latest Blog:
Don't Give Up

krahmaan is just really nicekrahmaan is just really nicekrahmaan is just really nicekrahmaan is just really nicekrahmaan is just really nicekrahmaan is just really nicekrahmaan is just really nicekrahmaan is just really nicekrahmaan is just really nicekrahmaan is just really nicekrahmaan is just really nice
Send a message via AIM to krahmaan Send a message via Yahoo to krahmaan
Also,

Make sure your image is uploaded to the web somewhere. So you have a path to type in. Because if you create an image and forget to upload it, you won't see anything! (Just a reminder -good luck)
__________________
K. Rahmaan
~ Vision is all you'll need ~

krahmaan is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
What type of images and royalty free images do developers and webmasters need? EZRoyaltyFree Web Design Lobby 0 02-26-2008 09:11 AM
Script to show particular text and images or section of a website agent14 Coding Forum 2 06-11-2006 05:09 PM
Inserting ALT Text John Scott Coding Forum 6 04-10-2006 07:29 AM
Reducing white space between text and images? dcristo Web Design Lobby 4 01-12-2005 08:41 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 07:51 AM.
© Copyright 2008 V7 Inc