Adding an outside URL to the PROMO block

I have been trying to add a URL to an outside website when you click on the PROMO banner using the advanced settings option. This has been an utter failure, however, it just keeps redirection to the home page or the last internal page I have been playing with.

Any idea where I can go to change the address outside of the admin panel?

Quote · 2 May 2012

It was not designed for outside urls.

And which one? The one for logged in members does not even work. By default it is set to member.php but always goes to the main site url regardless of it's setting. It's a bug in dolphin, or rather a coding oversite.

The code to change how that works is in templates/base/scripts/BxBaseIndexPageView.php

In fact, in the same area we worked on for your promo buttons.

https://www.deanbassett.com
Quote · 3 May 2012

I am trying to allow redirected URL’s to Ads websites that I am posting in the promo block. This is for members only, guests are still directed to the join page and I am fine with that.

I found the following in the BxBaseIndexPageView and tried adding a portion as you can see in red. (this of course was an utter failure, I even added the URL redirect in the DB)

$sPromoLink = $sSiteUrl;
  $sPromoRelocationVisitor = getParam('promo_relocation_link_visitor');
  $sPromoRelocationMember = getParam('promo_relocation_link_member');

  $sWelcomeElement = '';
  if(!isMember()) {
   $sWelcomeC = _t('_Welcome_to_the_community');
   $sWelcomeElement = '<div class="sys_title">' . $sWelcomeC . '</div>';

   $sPromoLink .= ($sPromoRelocationVisitor!='') ? $sPromoRelocationVisitor : 'join.php';
   $sPromoLink .= ($sPromoRelocationMember!='') ? $sPromoRelocationMember : 'http://www.mysite.com';


BAD IDEA as this resulted I 404 errors. Anyway, repaired the damage and looking at maybe trying to replace the promo block with an html instead, just not sure if that is possible. I like how the current promo block blends with the tab bar and not sure if I can make the html block work here.

Quote · 3 May 2012

Well as i mentioned. The one for logged in members does not work. The code to process it is missing.

Anyhow when i get a chance i will fix the missing code and provide a modification to allow both local pages and outside urls to be specified in the admin area so you don't have to play with the code everytime you want to change a link.

https://www.deanbassett.com
Quote · 3 May 2012

 

Well as i mentioned. The one for logged in members does not work. The code to process it is missing.

Anyhow when i get a chance i will fix the missing code and provide a modification to allow both local pages and outside urls to be specified in the admin area so you don't have to play with the code everytime you want to change a link.

 You truly are a scholar and a gentleman deano. Thank you for your attention.

Quote · 3 May 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.