Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Contribution: Reciprocal Links


spooks

Recommended Posts

Duplicate Post!!

 

As is says, function not allowed in safe mode, ask host to change or..

 

Simply comment out the line like :

 

CODE//set_time_limit(300);

 

ok, thank you. my problem are solve. By the way, what should i do to set limit for my link exchange. i just want some 35 link for my website. Are there anything i can do? thank again.

Rocdy

 

Beginner in php programming and still learning from this forums.

Special thanks for Oscommerce Community Forums that help me a lot. :-)

Link to comment
Share on other sites

Hello

 

I like the size 778 because it is that small. It looks like an A4 page,. like in the real paper world.

It is a bit of a puzzle sometimes because I display 5 images on a line. 5x135 pix which is already 675 pix ...

I hope the upload works again.

 

Thanks sit

Best regards

Johan de Groot

Where do I sign?

Link to comment
Share on other sites

Go over the install carefully again, you must have made an error somewhere.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Sam ...

 

I love Your GREAT modification

 

I Love modification, simple modification only, because i'm not a programmer

These is my Reciprocal Links :

 

http://quad-comp.com/links.php

 

I have a Wish to you Sam, Maybe next updated you give Optional Add-on "Random Slide" Exchange members in Colum Left Boxes / Infoboxes. I need to changes my Ugly Friendly List Scroll ...

 

Regards

 

Yosias R.N

Edited by JIPANG
Link to comment
Share on other sites

Great Contrib!! Nice and simple to install and use. Thanks!

 

One question... I'm using this in a local development environment right now...uploading to production site in a couple of weeks. The Thumbshots DO appear in admin, but DO NOT appear on the catalog page....all I see there is "Image Loading".

 

Would this be caused by Thumbshots, something I've missed in the install or by being in a non-web environment?

 

Thanks,

 

G.

Link to comment
Share on other sites

Great Contrib!! Nice and simple to install and use. Thanks!

 

One question... I'm using this in a local development environment right now...uploading to production site in a couple of weeks. The Thumbshots DO appear in admin, but DO NOT appear on the catalog page....all I see there is "Image Loading".

 

Would this be caused by Thumbshots, something I've missed in the install or by being in a non-web environment?

 

Thanks,

 

G.

 

The images are loaded off the Thumbshots server each time the page is loaded, so if there is no web access, or restricted by firewall then yes it will stick at "Image Loading".

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

I understand that...but the confusing part is that the Thumbshots show up in the admin...which is in the same development environment as the catalog.

 

Weird. Hopefully it will fix itself when we go live.

Link to comment
Share on other sites

In links_submit.php

 

<?php echo tep_draw_textarea_field('codes','Physical',30,5,'<a href="'.Website_URL.'">'.Website_Title.'</a>-'.Description);?>

 

Displays as

 

The Coopco Underwear Shop</a>-Designer women's underwear for ladies, women, and teens that include basques, bras, bustiers, camisoles, G strings, panties, and thongs. Designer men's underwear that include briefs, boxers, trunks and T- Shirts.>5

 

Any idea of what I have done wrong?

Link to comment
Share on other sites

Check the language file, have you put something at the end of description perhaps?

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Check the language file, have you put something at the end of description perhaps?

Hi Spooks

 

Thanks for looking.

 

I had

 

define('Website_Title', ' ' . STORE_NAME . ' ');

 

which seems to be the culprit. Changed it to the text with my store name and it is fixed in firefox but not IE6.

 

I still have the 5 at the end too.

Link to comment
Share on other sites

Could you check your tep_draw_textarea_field function it seems to be missing

 

   $field .= '>';

 

or thats missplaced

 

AND

 

it seems to have other errors, tghe call should output

 

<textarea name="codes" wrap="Physical" cols="30" rows="5">

 

 

 

 

but yours is outputting

 

 

 

 

<textarea name="codes" cols="Physical" rows="40"

Edited by spooks

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Could you check your tep_draw_textarea_field function it seems to be missing

 

   $field .= '>';

 

or thats missplaced

 

AND

 

it seems to have other errors, tghe call should output

 

<textarea name="codes" wrap="Physical" cols="30" rows="5">

 

 

 

 

but yours is outputting

 

 

 

 

<textarea name="codes" cols="Physical" rows="40"

Hi Spooks

 

Thanks again for looking.

 

I had made a change in the html_output.php for W3C Validation that took out the $wrap string (in accordance with that thread). Once I undid the change, all is ok in IE6 and Firefox.

 

So, without your help, I would not have thought of wherethe error would be.

 

Now, back to doing the update.

Link to comment
Share on other sites

There seems to be an error in whatever that contrib is then, as though you do need to remove wrap from the output, you should not remove it entirly from the function, as that causes errors on call (as you just had) its only neccessary to ignore $wrap internally.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

There seems to be an error in whatever that contrib is then, as though you do need to remove wrap from the output, you should not remove it entirly from the function, as that causes errors on call (as you just had) its only neccessary to ignore $wrap internally.

Hi Spooks

 

It was not a contribution, it was this

http://www.oscommerce.com/forums/index.php?s=&...t&p=1228580

 

Gottcha about removing it from the function, silly thing to do on reflection.

 

The reciprocal links is working great now, thank you.

Link to comment
Share on other sites

Uploaded new version 3.3

 

 

Modifications in 3.3:

 

Added the option to automatically email shop owner when a link is submitted.

Removed a spurious <tr><td> from links.php (these bugs love to creap in!)

Changed back link to button image.

Replaced 'Back' on submit success screen to a 'Continue' button.

To ensure W3C validation:

Removed rel=nofollow from drop down replaced with a canonical tag

Moved a section of script

Added the option of opening links in a new page in place the default of opening within current page.

 

This has been tested on PHP 4 & 5, SQL 4 & 5, osC 2.2 ms2, rc1 & rc2a and is register_globals off compatible.

 

Enjoy!! :)

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Hi Sam,

 

Great contrib, thanks very much.

 

One question, how do I get the link to open in a new window rather than take my customers away?

 

Cheers,

 

Dan

Link to comment
Share on other sites

Hi Sam,

 

Great contrib, thanks very much.

 

One question, how do I get the link to open in a new window rather than take my customers away?

 

Cheers,

 

Dan

in links.php

 

$new_page = false; // set to true to open links in a new page

Link to comment
Share on other sites

in links.php

 

$new_page = false; // set to true to open links in a new page

 

I knew that I'd seen it somewhere. Thanks Leslie, you appear to have come to my rescue again!

 

Dan

Link to comment
Share on other sites

I knew that I'd seen it somewhere. Thanks Leslie, you appear to have come to my rescue again!

 

Dan

No problem, your post reminded me that I had not changed mine.

Link to comment
Share on other sites

  • 2 weeks later...

The pages included in the contrib are standard osC, you need to convert them to your template. Use of a compare toool would help.

 

Also check for any css conflicts

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

The trouble with templates is you need to be good at coding to change, otherwise stick with it as it comes or don't use a template.

 

Compare the included files with smthing simple like the contact page, look for layout changes.

 

As any changes are specific to u & no help to core osC users I'm not prepared to go further, sorry.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Ok I think I solute it:-)

I only change this code:

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" />
<title><?php echo TITLE . ' Links ' .(!$page ? 'Page' : 'Page ' . $units[$page]). ' - ' .  (!$cats ? (!$page  ? '' : $category_name[$category_array[$page]['id']]) : $category_name[$cats] . ' Links') . (!$page ? ' ' : '');  ?> </title>
<meta name="Description" content="Links <?php echo (!$page ? '' : 'Page ' . $units[$page]) . ' - '. TITLE .' - ' .  (!$cats ? (!$page ? '' : $category_name[$category_array[$page]['id']]) : $category_name[$cats]); ?> - " />
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>" />

<meta name="KeyWords" content="" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Copyright" content="" />
<meta http-equiv="Content-Language" content="en" />
<meta name="revisit-after" content="30 days" />
<meta name="robots" content="index, follow" />
<meta name="Rating" content="General" />
<meta name="Robots" content="All" />
<link rel="canonical" href="<?php echo tep_href_link('links.php', ($page ? 'page=' . $page : ''),'NONSSL',false); ?>" />		
<link rel="stylesheet" type="text/css" href="stylesheet.css" />

</head>

 

to this code (from contact_us):

 

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<div id="wrapper">

 

That is all, try all if you have problems on thin blue theme.

 

Thank you Sam for good way and for this very nice contribution.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...