Forums / Addon Sideboxes / Changing Title Link of a Blank Sidebox

Changing Title Link of a Blank Sidebox

Views: 2,170

Results 1 to 3 of 3
14 Apr 2015, 12:38 PM
#1
regkaz avatar

regkaz

New Zenner

Join Date:
Apr 2015
Posts:
2
Plugin Contributions:
0

Changing Title Link of a Blank Sidebox

I'm using Zen 1.54 with the blank sidebox module. Everything works fine. I'd like to make the title into a hyperlink much like the "Reviews" side box has "Reviews [more]" (if I click on "Reviews [more]" it brings me to my intended destination). So far my search has led me to a line in \includes\modules\sideboxes\blank_sidebox.php that reads, "$title_link = false;"

Apparently replacing 'false' with a page address will create a link. My problem is that I can't control where the link goes. I'm guessing that I can replace 'false' with a URL inserted between apostrophes. Yet if I do something like: $title_link = 'http://google.com';
I end up on: my_site_name/zen_store/index.php?main_page=google.com

What is the proper way to enter the URL? Do I need to create a definition somewhere (although I'm not really sure what that entails)?

Thanks

15 Apr 2015, 12:35 PM
#2
regkaz avatar

regkaz

New Zenner

Join Date:
Apr 2015
Posts:
2
Plugin Contributions:
0

Re: Changing Title Link of a Blank Sidebox

OK, I think I fixed this enough to get by. Just in case anyone's interested - I believe that you can only use the pages already in the store. I decided to use 'page 2' and so I altered two files. In \includes\modules\sideboxes\blank_sidebox.php I altered the line, "$title_link = false;" to "$title_link = LINK_BLANK_SIDEBOX;" (no quotation marks). Then I opened \includes\languages\english\extra_definitions\blank_sidebox_defines.php and added the line, "define('LINK_BLANK_SIDEBOX', 'page_2');" after the other definitions.

Now the blank sidebox title acts as a hyperlink that opens "page 2" in the main column.

18 Apr 2015, 9:03 AM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Changing Title Link of a Blank Sidebox

I believe that you can only use the pages already in the store
You can create your own pages - for how see the about us module in the plugins area
There are about eight files/edits that are required to create your own page

Zen-Venom Get Bitten