Jump to content

3 issues trying to work through cc4.2


Guest aron

Recommended Posts

Hi guys,

I have tried searching the forums for these solutions, but have not found any luck.

my site is http://www.puaparadise.com

Issue #1) How do I make the logo image link to my homepage??

A lot of people have suggested I do this, and I have searched long and hard through the coding (although I am far from a php guru).

issue#2) Is it possible to add an e-mail verification or at the very least a CAPTCHA to the newsletter signup?

I have the feeling that I will get flooded with fake accounts if I do not do this.

Issue #3) Is it possible to force the check mark on the registration form to make the customer un-check the box for newsletter information?

I don't think I wrote this very clearly, what I want to do is change the code to make that box automatically checkmarked, and leave it up to the user to remove the checkmark if they wish to not receive newsletters from our site.

I have made the site online in the hopes that you guys can help me correct these issues!

Thank you all in advance!!

:):dizzy::):dizzy::dizzy::dizzy::dizzy::dizzy::dizzy::dizzy::dizzy::dizzy:

~Aar

Link to comment
Share on other sites

Guest Brivtech

In future, please post individual questions seprately in their relevant areas, it will help people address them better.

1. The header image is a background image, with the currency, language and session boxes floating over them.

Open: skins/Carreta-Bright/styleTemplates/global/index.tpl

This is the file that handles the page layout.

Find on line 31:

{CURRENCY}



{LANGUAGE}



{SESSION}




Replace with:


<table width="100%" cellspacing="0" cellpadding="0">

  <tr>

	<td>Put link Here!!!!</td>

	<td>{CURRENCY}



{LANGUAGE}



{SESSION}</td>

  </tr>

</table>

You could probably do that without a table, I'm just being lazy to give a quick fix that works. As the header is in the background, you can float another image over the background image, and use that as the hyperlink. Or use some text, or why not try a image map to create a clickable area over the background image (Google usemap for more information).

Which leaves you with question #2 unanswered, which someone else can have a go at.

Link to comment
Share on other sites

Thanks so much for the response, but it didn't work for me. I must have done something wrong..

This is exactly what I pasted (please don't laugh - trying hard here!!)

<table width="100%" cellspacing="0" cellpadding="0">

<tr>

<td><link href="http://www.puaparadise.com" rel="stylesheet" type="text/css" /></td>

<td>{CURRENCY}

{LANGUAGE}

{SESSION}</td>

</tr>

</table>

Thanks in advance for your help, and in future questions will be asked one at a time

isn't it possible to just make the whole header clickable and linked to the homepage like in html?

i.e. <a href="/forum"><img src="images/index.gif" width="640" height="140" alt="" class="style25"></a>

:innocent::dizzy::dizzy::dizzy::dizzy::dizzy::dizzy:

Link to comment
Share on other sites

Guest Brivtech

Hello Aron,

Erm, okay, you didn't do quite what I hoped, so lets sort this out - Don't panic, we'll get you through this eventually ....

I'll start by explaining what you've done and why its wrong... you kinda got it, but not quite. :dizzy::innocent:

You added this as your homepage link:

http://www.puaparadise.com/forum - which I'm sure is not the homepage, but perhaps you intend for it to go there. Perhaps you did this, but I see your store has gone offline now, and I can't look further into the code. For the ALT part of your code, you should put in some text that's relevant to where the page is being linked to like "Pua Paradise Home Page" or "Forum" - Try not to leave ALT text out of images, they aid search engines. I don't know why you need to style the image, and I can't see a reason for "style25". Also, the image file http://www.puaparadise.com/iimages/index.gif isn't on your web server, so it wouldn't be displayed, and the link therefore may not work. Assuming that your store home page would be http://www.puaparadise.com/index.php (Because I can see your installation is here from the admin login), the link in your header should be:

<link href="http://www.puaparadise.com" rel="stylesheet" type="text/css" />




What you've actually done is tell the page where to look for the CSS stylesheet that handles the page formatting. This is wrong for several reasons - It does nothing to create a link to your home page, and it's in the wrong section, being within the page body when it should be left alone in the page header.




<a href="/forum"><img src="images/index.gif" width="640" height="140" alt="" class="style25"></a>




That's much closer, kind of what I was suggesting, however, there could be a problem with this, it's to do with objects bumping into each other, and I'll explain further how this works...



The background image used fits the whole panel of the header. It's literally in the background, and you can place things over it, as if they are floating on top. Here, you have content in the form of the currency, language, and session boxes that are floating over it. The image that you used in your example would have been clickable, but you would have to limit the width, so that it doesn't bump into the currency/language/session boxes. If it did so, it would push them out of the way and mess up the formatting. Your example uses "/forum" as a homepage link, this means that when you click on the image, it would go to 
<a href="index.php"><img src="images/index.gif" width="640" height="140" alt="Pua Paradise Home Page"></a>

... added between the first set of <td> and </td> tags of courss (and making sure you've uploaded that image file to your web server, or use an alternative that has already been uploaded).

You probably figured that this creates a table that separates the image or element that you want to click on as the home page link from the currency/language/session boxes.

If floating an image over the existing background image is a problem use an image map as I mentined earlier, which given a virtual/clickable/invisible element that floats wherever you like on the page. You can always play around using this later on once you get the basics right.

Link to comment
Share on other sites

Brivtech, Thank you so much for your assistance and expertise..

This is what I ended up doing, and I think it is right, although doesn't really work in this case as it puts a frame around the image and looks pretty bad..

<table width="100%" cellspacing="0" cellpadding="0">

<tr>

<td><a href="index.php"><img src="http://www.puaparadise.com/skins/Carreta-Bright/styleImages/logo/default.gif" width="540" height="85" alt="Pua Paradise Home Page"></a></td>

<td>{CURRENCY}

{LANGUAGE}

{SESSION}</td>

I am going to attempt to figure out how I can replace this with a clickable area like you had previously suggested.. with an image map..

My hat goes off to you guys who understand this stuff like a second language, it is truly amazing!!

Off to try and learn how I can just create a simple image map, and create a clickable invisible area around the left side of the carreta-bright skin to about the middle of it..

thanks again, at least I know which page I need to mess around with to do this.. :innocent:

Thanks again for all the assistance thus far!

Link to comment
Share on other sites

Guest Brivtech

To get rid of the border, replace this line that you entered:

<td><a href="index.php"><img src="http://www.puaparadise.com/skins/Carreta-Bright/styleImages/logo/default.gif" width="540" height="85" alt="Pua Paradise Home Page"></a></td>




With:


<td><a href="index.php"><img src="http://www.puaparadise.com/skins/Carreta-Bright/styleImages/logo/default.gif" width="540" height="85" border="0" alt="Pua Paradise Home Page"></a></td>

I added in a border="0", which strips that border away. :innocent:

I'm still learning how to program. Every day I learn something new. Best way to to experiment, play around with things, and use Google to look up code formatting, syntax, and examples.

By the way, I'd remove the text about the site coming live, etc. because search engines can read this, and may index it. If you want people to know that stuff, fair enough, but pop it into an image, and put the image up there instead. Images are invisible to search engines.

Why am I telling you this? Because it just happened to me! I had a site offline for a short while (While I was making some major changes), and Google indexed the text. Now it's saved it into the cache, and I know it's going to be a while before it re-indexes the site and replaces that with the new page content. It's a new low-ranking site, and this hasn't done it any favours at the moment.

Link to comment
Share on other sites

Thanks for the tip..

So, this is what I did..

<table width="100%" cellspacing="0" cellpadding="0">

<tr>

<td><td><a href="index.php"><img src="http://www.puaparadise.com/skins/Carreta-Bright/styleImages/logo/logo1.gif" width="550" height="90" border="0" alt="Pua Paradise Home Page"></a></td></td>

<td>{CURRENCY}

{LANGUAGE}

{SESSION}</td>

</tr>

</table>

I have put the site back online so you can take a look.. since doing this something weird happens when you click on "login." I don't know why it is getting all distorted.

Thanks Brivtech

Link to comment
Share on other sites

Ok, i fixed this problem by making the link file a little smaller instead of:

width="550" height="90"

I am using: width="530" height="90"

This doesn't look good at all.. you sure there is no other way to make this header an invisible link to the hompage without floating another image on top?

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

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

Guest
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...