Featured Ads

How can I set it so only the Admin can post featured ads, but all members can view them?

SGeeZyyy
Quote · 19 Dec 2010

Hem, i think, by default, it you want some ads to be featured just login as admin, click on the user ads, and there will be appeared "featured it" button, you can click that button to make it featured.

that's all for now.

=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 20 Dec 2010

Is there a way to create a featured ads block for the home page?

SGeeZyyy
Quote · 20 Dec 2010

The only way I know how you can get a featured ad is to make it a  member menu option, and then remove the ads block from home page.

What's that falling? its a bird, its a plane, oh wait its Facebook
Quote · 20 Dec 2010

Oh but there is no way to create an actual block? I wonder why dolphin doesn't let you create a new item for page blocks

SGeeZyyy
Quote · 20 Dec 2010

 

Is there a way to create a featured ads block for the home page?

and what do you mean with this quenstion?

do you want add 'featured ad block' on your homepage site like that?

or you want another way to make 'ad' featured for your 'ads homepage'?

=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 20 Dec 2010

Its very odd that Dolphin didn't create such a block. I think may be because the ads block on the homepage is within itself serve as a featured block because you can set the amount of ads shown. And I think for every new ad posted by members become the featured ad.

What's that falling? its a bird, its a plane, oh wait its Facebook
Quote · 20 Dec 2010

Hey Okie,

Well currently my Homepage (after members sign in) is set so there is a shout box, I want there to be a block right next to it that says "featured" and it will show featured ads rather than featured members. Because there is already a block for featured members but there isn't anything for featured ads.

SGeeZyyy
Quote · 20 Dec 2010

 

Oh but there is no way to create an actual block? I wonder why dolphin doesn't let you create a new item for page blocks

so, your quenstion is how to make an ads block that placed on my site homepage..

hemm....

1. download deano free tools http://www.boonex.com/unity/extensions/entry/Deanos_Tools_V1_6_Dolphin_7_0_Version

2. on the 'Insert PHP Block' tab, insert the below code, and dont forget tow choose 'homepage' on your selection list.

return BxDolService::call('ads',  GenAllAds', 'featured');

 

3. then go to your page builder -> homepage, see the inactive block, and you will find your new block that you have just created.

4. drag it to the active column,

DONE , ^_^

=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 20 Dec 2010

Sorry this is my first time downloading anything for Dolphin. What do I do after I download and unzip the file?

SGeeZyyy
Quote · 20 Dec 2010

return BxDolService::call('ads',  GenAllAds', 'featured');

sorry, i have a mistake for the fucntion i have just write. don't try above function first.

BUT YOU CAN DOWNLOAD DEANO TOOLS.

1. after unzip, you will find modules/deano, just copy deano and paste it to yoursite.com/modules/

2. then go to your administration -> tools -> modules

3. install that modules

4. after succesffully install, go to administration ->modules-> you will find deano tools

=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 20 Dec 2010

Oh so it wont work like that?

SGeeZyyy
Quote · 20 Dec 2010

1. open yoursite.com/modules/ads/classes/BxAdsModule.php

2. see this below function ( may be on line 1935 )

function GenAllAds($sType = 'last') {
$sCaption = _t('_bx_ads_last_ads');
$sDisplayMode = '';
$sTypeMode = '';

BLA BLA BLA

}

3. copy and paste below that fuction , and make some modification like below

function serviceGenAllAds($sType = 'featured') {
$sCaption = _t('_bx_ads_last_ads');
$sDisplayMode = '';
$sTypeMode = '';

BLA BLA BLA

}

BECAREFULL, make sure you don't forget '}' like yesterday ^_^

4. download deano free tools http://www.boonex.com/unity/extensions/entry/Deanos_Tools_V1_6_Dolphin_7_0_Version

5. on the 'Insert PHP Block' tab, insert the below code, and dont forget tow choose 'homepage' on your selection list.

return BxDolService::call('ads',  'gen_all_ads');

 

6. then go to your page builder -> homepage, see the inactive block, and you will find your new block that you have just created.

7. drag it to the active column,

DONE!!!

=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 20 Dec 2010

Hey Okie, this is what happens...view attached pic.

 

Edit: the i get this when i put return BxDolService::call('ads',  'gen_all_ads');

 

Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /home/sgeezyyy/public_html/modules/boonex/ads/classes/BxAdsModule.php on line 6655

featured.png · 12.8K · 62 views
SGeeZyyy
Quote · 20 Dec 2010

 

 

Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /home/sgeezyyy/public_html/modules/boonex/ads/classes/BxAdsModule.php on line 6655

you don't carefully edit your BxAdsModule.php.... ^_^

would you please to attach your BxAdsModule.php ??? i will check it

=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 20 Dec 2010

function GenAllAds($sType = 'last') {

 

$sCaption = _t('_bx_ads_last_ads');

 

$sDisplayMode = '';

 

$sTypeMode = '';

 

switch ($sType) {

 

case 'last':

 

$sCaption = _t('_bx_ads_All_ads');

 

$sDisplayMode = 'last';

 

break;

 

case 'featured':

 

$sCaption = _t('_bx_ads_Featured');

 

$sTypeMode = 'featured';

 

$sDisplayMode = 'last';

 

break;

 

case 'popular':

 

$sCaption = _t('_bx_ads_Popular');

 

$sDisplayMode = 'popular';

 

break;

 

case 'top':

 

default:

 

$sCaption = _t('_bx_ads_Top_Rated');

 

$sDisplayMode = 'top';

 

break;

 

}

function serviceGenAllAds($sType = 'featured') {

 

$sCaption = _t('_bx_ads_last_ads');

 

$sDisplayMode = '';

 

$sTypeMode = '';

 

switch ($sType) {

 

case 'last':

 

$sCaption = _t('_bx_ads_All_ads');

 

$sDisplayMode = 'last';

 

break;

 

case 'featured':

 

$sCaption = _t('_bx_ads_Featured');

 

$sTypeMode = 'featured';

 

$sDisplayMode = 'last';

 

break;

 

case 'popular':

 

$sCaption = _t('_bx_ads_Popular');

 

$sDisplayMode = 'popular';

 

break;

 

case 'top':

 

default:

 

$sCaption = _t('_bx_ads_Top_Rated');

 

$sDisplayMode = 'top';

 

break;

 

}

SGeeZyyy
Quote · 20 Dec 2010

YOU'RE WRONG ON PASTEING YOUR CODE,

the code should be like my attached php files below.

fix that... ^_^

should be like this one.php · 4.2K · 58 downloads
=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 20 Dec 2010

Sorry to bug you so much, you mind just fixing it for me?  I will attach the original one, nothing was changed on this one. Thank you.

BxAdsModule.php · 118.1K · 51 downloads
SGeeZyyy
Quote · 20 Dec 2010

Try this one,  it must be work... ^_^

BxAdsModule.php · 120.4K · 75 downloads
=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 20 Dec 2010

Alright thank you soooo much!!!!!! It works finally!! Thank you

 

But why is it putting two featured titles?

Untitled.png · 2.1K · 75 views
SGeeZyyy
Quote · 20 Dec 2010

if it's not working, then what does the error say?

=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 20 Dec 2010

 

Alright thank you soooo much!!!!!! It works finally!! Thank you

YOU'RE WELLCOME ^_^

=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 20 Dec 2010

But why is it putting two featured titles?

Untitled.png · 2.1K · 73 views
SGeeZyyy
Quote · 20 Dec 2010

open your BxAdsModule.php again , online 4108 you will find $sLastAdsSection = DesignBoxContent($sCaption, $sLastAds, 1);

change to $sLastAdsSection = DesignBoxContent($sCaption, $sLastAds, 0);

 

=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 20 Dec 2010

No that didn't change anything

SGeeZyyy
Quote · 20 Dec 2010

are you sure that you have change to $sLastAdsSection = DesignBoxContent($sCaption, $sLastAds, 0); on line 4180?

mine works fine , look at my pic below

are you sure.jpg · 169K · 81 views
=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 20 Dec 2010

Mine is line 3978 and this is what I changed it too

$sLastAdsSection = DesignBoxContent($sCaption, $sLastAds, 0);

Featured.jpg · 127K · 69 views
SGeeZyyy
Quote · 20 Dec 2010

there are 2 lines for $sLastAdsSection = DesignBoxContent($sCaption, $sLastAds, 1); , line 3978 and 4180

don't change 3978

but change 4180 to $sLastAdsSection = DesignBoxContent($sCaption, $sLastAds, 0);

Have you done that?

=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 20 Dec 2010

Its 4108 not 4180. I changed it. Thank you very much. Youre the best! Smile

SGeeZyyy
Quote · 20 Dec 2010

You're wellllcccoommmeeee ^_^

=> http://friends.smansakra.sch.id => friends community based dolphin 7
Quote · 20 Dec 2010
 
 
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.