Zen Cart Logo
Forums / Basic Configuration / Just Installed Blank Sidebox Want to remove (MORE) link

Just Installed Blank Sidebox Want to remove (MORE) link

Locked

Views: 3,762

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
25 May 2007, 10:52 PM
#1
chrisrub avatar

chrisrub

New Zenner

Join Date:
May 2007
Posts:
22
Plugin Contributions:
0

Just Installed Blank Sidebox Want to remove (MORE) link

I just installed the blank sidebox mod. It works great, but where would I remove the link to (MORE) that is in the title of the sidebox?

https://www.axcelsports.com/store

Thanks a lot! :D

26 May 2007, 5:17 PM
#2
chrisrub avatar

chrisrub

New Zenner

Join Date:
May 2007
Posts:
22
Plugin Contributions:
0

Re: Just Installed Blank Sidebox Want to remove (MORE) link

Just to be clear I'm talking about the "Visit our Affiliate" sidebox on the right hand side.

26 May 2007, 6:17 PM
#3
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Just Installed Blank Sidebox Want to remove (MORE) link

Would it be possible to know where precisely you downloaded this contribution from the downloads section ? I even used the search and found no results of this subject.

26 May 2007, 6:40 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Just Installed Blank Sidebox Want to remove (MORE) link

It's a bug in the mod, which is an adaptation of a Zen Cart 1.2.x mod.

I've never much liked it. Despite being a very simple mod, it has too many hang overs from the original and programming practices that were prevalent at the time (and now this bug!). But I have my own version that's more in keeping with Zen Cart 1.3.x, so I'll test that against your particular circumstances and then pop it in the downloads area as version 2.0.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

26 May 2007, 8:33 PM
#5
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Just Installed Blank Sidebox Want to remove (MORE) link

Version 2.0 of the mod is now available here. Depending upon how you have implemented the mod on your site it will overwrite what you have already done, but if you re-do the customisation, you will find that you will no longer have that pesky link.

You won't though get the full advantage of the lightweight markup that it generates, as it will be wrapped in all that ridiculous Template Monster code. Nontheless - enjoy. :smile:

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

27 May 2007, 5:55 PM
#6
chrisrub avatar

chrisrub

New Zenner

Join Date:
May 2007
Posts:
22
Plugin Contributions:
0

Re: Just Installed Blank Sidebox Want to remove (MORE) link

Thank You very much!

5 Jun 2007, 12:00 PM
#7
jackdynne avatar

jackdynne

New Zenner

Join Date:
Jun 2007
Posts:
3
Plugin Contributions:
0

Re: Just Installed Blank Sidebox Want to remove (MORE) link

Hello and thanks for this great mod - trying to figure out why I am getting Parse error: syntax error, unexpected T_STRING in the following line of code:

$content .= '<p><script language="JavaScript" type="text/javascript" src="<A href="http://vhost.oddcast.com/vhost_embed_functions.php?acc=36506&js=1"></script><script">http://vhost.oddcast.com/vhost_embed_functions.php?acc=36506&js=1"></script><script language="JavaScript" type="text/javascript">AC_VHost_Embed_36506(150, 200, 'FFFFFFF', 1, 1, 681420, 0, 0, 0, '0b12ab05c2afe085aa55638ef8bc5804', 6);</script></p>';

I have been searching the forums and the net but seem to be going in circles :O

Any help would be greatly appreciated and thanks in advance for any help :)

/JD

5 Jun 2007, 12:23 PM
#8
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Just Installed Blank Sidebox Want to remove (MORE) link

You're getting that message because the line is nonsense and so PHP can't make any sense of it. It starts to go wrong when you try to define the script's source (src).

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

5 Jun 2007, 2:11 PM
#9
jackdynne avatar

jackdynne

New Zenner

Join Date:
Jun 2007
Posts:
3
Plugin Contributions:
0

Re: Just Installed Blank Sidebox Want to remove (MORE) link

thanks for the quick reply but how would I fix it? I am trying to put a sitepal avatar into the sidebox....

...am I going about it the wrong way? I am not very proficient at coding but I can usually pick my way through existing - please help :)

/JD

PS- here is the full tpl_blank_sidebox.php file:

<?php
/**
 * blank sidebox - allows a blank sidebox to be added to your site
 *
 * @package templateSystem
 * @copyright 2007 Kuroi Web Design
  * @copyright Portions Copyright 2003-2007 Zen Cart Development Team
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: blank_sidebox.php 2007-05-26 kuroi $
 */

  $content = '';
  $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';

  // Replace the text and HTML tags between the apostophes on lines 19 and 20.
  // Use as many or as few lines using this model as you need for your custom content.
  // If you have a multilingual site define your text in the languages/YOUR_LANGUAGE/extra_definitions/blank_sidebox_defines.php and include it as shown in line 19.
  // If your site is monolingual, you can put the text right here as shown on line 20 (and nobody will know!)
  $content .= '<p>' . TEXT_BLANK_SIDEBOX . '</p>';
  $content .= '<script language="JavaScript" type="text/javascript" src="http://vhost.oddcast.com/vhost_embed_functions.php?acc=36506&js=1"></script><script language="JavaScript" type="text/javascript">AC_VHost_Embed_36506(150, 200, 'FFFFFFF', 1, 1, 681420, 0, 0, 0, '0b12ab05c2afe085aa55638ef8bc5804', 6);</script>';

  $content .= '</div>';
?>
5 Jun 2007, 4:48 PM
#10
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Just Installed Blank Sidebox Want to remove (MORE) link

That's much more sensible code than that which you posted earlier and happily easily fixed. Just change the single quotes around FFFFFFF and 0b12ab05c2afe085aa55638ef8bc5804 into double quotes.

(though I rather wonder if the result will help your sales, I'd run a mile from what I saw when I did this! :wink:)

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

5 Jun 2007, 7:03 PM
#11
jackdynne avatar

jackdynne

New Zenner

Join Date:
Jun 2007
Posts:
3
Plugin Contributions:
0

Re: Just Installed Blank Sidebox Want to remove (MORE) link

Thanks alot Kuroi - it worked! :smile:

Many many thanks m8 - thanks for helping to spread the Zen :smile:

And yes I was against putting that in but they wanted it :blink:

/JD

14 Nov 2008, 2:41 PM
#12
sgvnetworks avatar

sgvnetworks

New Zenner

Join Date:
Nov 2008
Posts:
3
Plugin Contributions:
0

Re: Just Installed Blank Sidebox Want to remove (MORE) link

Hello Kuroi, this is the 1st time EVER I have posted in a forum.
I did the whole blank_sidebox Version 2.0 mod, it works as expected. Thank you. I need some more help please, been over a week now and I just am not getting "it". I do not understand all of the customiztion configs as yet, just been a hackin the core files.
Inside the manager I can turn on/off the new sidebox. Great. BUT, it shows on all pages then. This is not what I'm a tryin to get to. I want it to show on a specific page ONLY.
On this page: http://allhealthseekers.com/index.php?main_page=howitworks I need to add a box on the left with pictures etc adding content to the text on the right.
I understand I can use preexisting boxes and banner slots (as I have elswhere) but needed a better solution. If I can get this one going, I do have others I need to implement also.
I've tried hacking all kinds of templates and files etc and just cannot get the one I need to display it. I still don't understand the "require" command and figure this will be a part of the solution. only, require (what) and put that requirement on what page?
I hope I'm somewhat clear and that you can help.
thanks in advance

17 Nov 2008, 12:34 AM
#13
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Just Installed Blank Sidebox Want to remove (MORE) link

You could try going to the includes/modules/sideboxes/blank_sidebox.php file and finding> // test if box should display

$show_blank_sidebox = true;and then replacing it with> // test if box should display
if ($current_page == 'howitworks') {
$show_blank_sidebox = true;
} else {
$show_blank_sidebox = false;
}

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

18 Nov 2008, 6:53 AM
#14
sgvnetworks avatar

sgvnetworks

New Zenner

Join Date:
Nov 2008
Posts:
3
Plugin Contributions:
0

Re: Just Installed Blank Sidebox Want to remove (MORE) link

kuroi thank you very much for responding. It looks like it should work, alas, it ain't. This is what is in there now:
</pre>

  • @version $Id: howitworks_sidebox.php 2007-05-26 kuroi $
    */

// test if box should display
if ($current_page == 'howitworks') {
$show_howitworks_sidebox = true;
} else {
$show_howitworks_sidebox = false;
}

if ($show_howitworks_sidebox == true) {
require($template->get_template_dir('tpl_howitworks_sidebox.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_howitworks_sidebox.php');
$title = BOX_HEADING_HOWITWORKS_SIDEBOX;
$title_link = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
?>
</pre>

I had previusly tried this on tpl_main_page.php:

<pre> // global disable of column_left $flag_disable_left = true; } if (!isset($flag_disable_left) || !$flag_disable_left) { ?> <td id="navColumnOne" class="columnLeft" style="width: <?php echo COLUMN_WIDTH_LEFT; ?>"> <?php /** * prepares and displays left column sideboxes * */ ?> <div id="navColumnOneWrapper" style="width: <?php echo BOX_WIDTH_LEFT; ?>"><?php require(DIR_WS_MODULES . zen_get_module_directory('column_left.php')); <!-- added howitworks start --> if (in_array($current_page_base,explode(",",'howitworks')) ) { $show_howitworks_sidebox = true; } if ($show_howitworks_sidebox == true) { require($template->get_template_dir('tpl_howitworks_sidebox.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_howitworks_sidebox.php'); $title = BOX_HEADING_HOWITWORKS_SIDEBOX; $title_link = false; } <!-- added howitworks end --> ?> </div></td> <?php } ?> </pre>

Any further zen you may have would very much be appreciated (my head hurts...).

18 Nov 2008, 11:47 AM
#15
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Just Installed Blank Sidebox Want to remove (MORE) link

The code should work. So I would take a look at precisely where you have placed each of the files and whether you have renamed them consistly and correctly in each place. And also whether you have actually turned the sidebox on and placed it in the left column in Admin > Tools > Layout Box Controller.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

18 Nov 2008, 2:23 PM
#16
sgvnetworks avatar

sgvnetworks

New Zenner

Join Date:
Nov 2008
Posts:
3
Plugin Contributions:
0

Re: Just Installed Blank Sidebox Want to remove (MORE) link

Howdy kuroi,

Thank you for responding so quickly, I really appreciate it.

"And also whether you have actually turned the sidebox on and placed it in the left column in Admin > Tools > Layout Box Controller. "

I cross every t and dot every i, the 3 pages are renamed and properly in place.

When I turn it on in admin, everything works great. No problem with the functioning of the sidebox.

Except, when it's turned on - it's ON - on EVERY page.

I only want it to be on - on the one single page.

My thought was to hack in the code to have it run, on that page only, everytime it's invoked, regardless of it being on/off in the admin.

I could hack in via the banner, as I've done with the text at the top and the "slogan" at the bottom of all the pages. I was going to use the banner for a paypal/cc block on product pages, in the bottom of the left column.

I need to utilize more of the left column below the nav bars for additional content. Sidebox provides that, if I can only constrain it to displaying that sidebox on that particular page.

Thank you again for your patience with me.