Jump to content

Possible to add tracking buttons site img/code to track? Screen Shot P


fenderltd

Recommended Posts

I have three website sponsors/web-rings that I get a decent amount of traffic to. My old site was about 120 pages, and I had these 3 little snippets of code that displayed a very small jpg or gif to track my traffic in these web-rings. Since moving to cube cart, I only have these on my resources page and my rank has died within these rings. I get a decent amount of traffic and sales from these free web-ring and would like to know if there is anyway I can almost make a side module that would I could display these three buttons. I have looked and looked, at the only thing I could think would be to code it in directly under each one of my products (which would not look good/professional). This screen shot is from my old plain html website. I would like these 3 to be on every single page I have regardless of the time it takes! I hope someone can help me!

Update: I posted this on another site that I sometimes get help from...

I am using cubecart as a shopping cart, and I would like to display 3 small gifs in a box, like the language box etc. as I imagine creating a new box would be insane. I have zero knowledge in php and not too much in good html. The three clickable images I want to display are little trackers I guess. I get a decent amount of traffic from these little web rings buttons to my site.

The first screen shot is how the module looks

1.jpg

This image shows my old webpage with the little img/links

links.png

Now... In the path(directory) includes/boxes ,(is where I have created a file called menuu.php

with the code

<html>

<body>

<a href="http://www.nascarconnections.com/topsites.asp?ID=1242">		<img src="http://www.nascarconnections.com/topsites_gif.asp?ID=1242"></a>



<a href="http://www.i2ff.com/nascar"><img src="http://www.i2ff.com/nascar/rank.php?id=987207"></a>



<a href="http://www.rankings.ws/NEXTEL/in.php?id=183"><img src="http://www.rankings.ws/NEXTEL/button.php?id=183"></a>




The UN-ALTERED version of the language.inc.php file is


<?php

/*

+--------------------------------------------------------------------------

|   CubeCart 4

|   ========================================

|	CubeCart is a registered trade mark of Devellion Limited

|   Copyright Devellion Limited 2006. All rights reserved.

|   Devellion Limited,

|   5 Bridge Street,

|   Bishops Stortford,

|   HERTFORDSHIRE.

|   CM23 2JU

|   UNITED KINGDOM

|   http://www.devellion.com

|	UK Private Limited Company No. 5323904

|   ========================================

|   Web: http://www.cubecart.com

|   Email: info (at) cubecart (dot) com

|	License Type: CubeCart is NOT Open Source Software and Limitations Apply 

|   Licence Info: http://www.cubecart.com/site/faq/license.php

+--------------------------------------------------------------------------

|	language.inc.php

|   ========================================

|	Language Jump Box	

+--------------------------------------------------------------------------

*/



if (!defined('CC_INI_SET')) die('Access Denied');



## Include lang file

$lang			= getLang('includes'.CC_DS.'boxes'.CC_DS.'language.inc.php');

$box_content	= new XTemplate('boxes'.CC_DS.'language.tpl');



$box_content->assign('LANG_LANGUAGE_TITLE', $lang['language']['language']);



$path = 'language';

if (is_dir($path)) {

	$returnPage = urlencode(currentPage());

	foreach (glob($path.CC_DS.'*', GLOB_MARK) as $folder) {

		if (is_dir($folder) && preg_match('#[a-z]{2}(\_[A-Z]{2})?#i', $folder) && file_exists($folder.'config.php')) {

		#	ob_start();

			require $folder.'config.php';

			$box_content->assign('LANG_SELECTED', (LANG_FOLDER == str_replace(array('language', CC_DS), '', $folder)) ? 'selected="selected"' : '');

		

			$box_content->assign('LANG_NAME', $langName); //mb_convert_encoding($langName, 'UTF-8', mb_detect_encoding($langName)));

			$box_content->assign('LANG_VAL', str_replace(array('language', CC_DS), '', $folder));

			$box_content->assign('VAL_CURRENT_PAGE', $returnPage);

			$box_content->parse('language.option');

		#	ob_end_clean();

		}

	}

}



$box_content->assign('ICON_FLAG', LANG_FOLDER."/flag.gif");

$box_content->parse('language');

$box_content = $box_content->text('language');

?>




Now this is what I am trying to add to the language php file to try to get these 3 button links to display in the box underneath the language selection or I don't even care about someone being able to select the language, but I need these buttons! I get about 200-500 views a day from these buttons.




<?php include("menuu.php"); ?>

</body>

</html>

I have tried to program this through information and tutorials I have found on google.. I hope someone can help me! I posted at the cube cart forms but no luck :whistle:

Lastly, thank you in advance if you have taken the time to read and try to help a fellow [H] member out. Have a great day!

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