PDA

View Full Version : Strange..


smooth-c
06-29-2008, 04:37 PM
Not sure where it has gone but earlier there was a banner below the navbar that said "Example of HTML Advertisment" or something similar and had blue bars above and below it with a button to turn advertisments off.

Where has this gone, and more importantly - how can I get this on my board with my installation of GAB?

Thanks,

Greg

Morgan
06-29-2008, 07:01 PM
Refresh this page until you see it. It is a HTML banner with the following HTML, using the GAB_item_html template, and having Wrapper set to yes in the billboard:

<strong>This is an HTML <a href="#">example</a>. Isn't it just wonderful?!?!</strong>

smooth-c
06-29-2008, 09:20 PM
Can I do this with adsense?

Thank you for your help and reply btw. :)

smooth-c
06-29-2008, 10:00 PM
http://www.maximum-jackson.com/discussion/?styleid=16

Doesn't work at all.

Morgan
07-01-2008, 03:45 PM
"This is an HTML example. Isn't it just wonderful?!?!" appears on that page, and yes, you can enter Gogole AdSense or any other text you want for an HTML banner.

smooth-c
07-13-2008, 08:45 PM
Yeh, what I wanted to know was how I could display exactly what you have with the blue bars, what html code would it be for that?

I'd be very greatfull if you could help.

Thank you.

Morgan
07-14-2008, 04:37 PM
There is a wrapper option under billboards in the ACP, and if set to no, then the ads appear without the GAB border.

smooth-c
07-15-2008, 01:57 PM
Hello again, sorry to be a bother.

I have 3 ads displayed on the board index for guests, and the "Learn how to remove this ad" linked to the registration page - is there a way, for just members for the link to be changed so it links them somewhere else?

As I have a donation mod which i'd like to link regular members to, to entice them to subscribe to the group that wouldn't have ads as a guest clicking the link would be a bit pointless when they're not a member in the first place.

Does this make sense?

I basically want to know if there's a way to change the link depending on the usergroup.

Greg

Morgan
07-15-2008, 07:30 PM
Use a template conditional in the GAB_wrapper_standard template.

From:

<a href="$GAB_settings[url_turn_off_ads]" target="_blank">$vbphrase[GAB_learn_how_to_remove_ads]</a>

To:

<if condition="$show[member]">
<a href="Link Here" target="_blank">Text Here</a>
<else />
<a href="$GAB_settings[url_turn_off_ads]" target="_blank">$vbphrase[GAB_learn_how_to_remove_ads]</a>
</if>

smooth-c
07-15-2008, 08:34 PM
I've just tried this with one of my skins

The "URL for users to learn how to turn off ads" option within the admincp is set to

http://www.maximum-jackson.com/discussion

This is what I replaced with the original code;

<if condition="$show[member]">
<a href="http://www.maximum-jackson.com" target="_blank">This is what a member see's.</a>
<else />
<a href="$GAB_settings[url_turn_off_ads]" target="_blank">$vbphrase[GAB_learn_how_to_remove_ads]</a>
</if>

It still shows the same link and the same text for guests/non signed in members and members.

Is there anything I could be doing wrong?

This is the skin.

http://www.maximum-jackson.com/discussion/?styleid=10

Thank you again :)

Morgan
07-16-2008, 02:40 PM
Try $bbuserinfo[userid] instead of $show[member] in the template conditional.

smooth-c
07-16-2008, 09:01 PM
Do I replace [userid] with something like [2] ?

Thanks

Morgan
07-16-2008, 09:16 PM
Nope, just use what is written in the post.

smooth-c
07-16-2008, 09:28 PM
Okay, that works! Thank you!

All the best,

Greg

smooth-c
07-16-2008, 09:49 PM
One more thing, sorry - Can I define showing ads for certain usergroups?

For instance, i'd like to show 3 ads for guests/not logged in and 2 for regular members.

How would I achieve this?

Morgan
07-17-2008, 02:33 PM
No, the permissions at ACP -> GAB -> Settings are what is available, though untested, you might try using another template conditional where you place the $GAB_ads[X] variables:

<!-- 1, 2, 3 are usergroup IDs -->
<if condition="is_member_of($bbuserinfo, 1, 2, 3)">
$GAB_ads[0]
<else />
$GAB_ads[1]
</if>

smooth-c
07-17-2008, 07:25 PM
Hey thank you soo soo much!

That works fine, and if anyone would like to define if they show an add to what usergroups or not, simply just use the top part of the code;

<!-- 1, 2, 3 are usergroup IDs -->
<if condition="is_member_of($bbuserinfo, 1, 2, 3)">
$GAB_ads[0]
</if>