vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - vB Ad Management 4 (https://vborg.vbsupport.ru/showthread.php?t=131150)

RedTyger 01-15-2007 09:58 PM

Quote:

Originally Posted by Lordy (Post 1160177)
is there a way that you can have it display certain ads for certain usergroups?

https://vborg.vbsupport.ru/showthrea...69#post1157169

But instead of just that, do this:

Code:

<if condition="is_member_of($bbuserinfo, 1,2,3)">
$threadbit_adcode
<else />
<if condition="is_member_of($bbuserinfo, 4,5,6)">
Your Ad Code for Usergroups 4 5 and 6
<else />
<if condition="is_member_of($bbuserinfo, 7,8,9)">
Your Ad Code for Usergroups 7 8 and 9
</if>
</if>
</if>

That's the only way it can be done.

RedTyger 01-15-2007 09:59 PM

Quote:

Originally Posted by Reece^B (Post 1160162)
Brilliant, cheers for that mate. Just one more thing, when you view a thread it's all centred, how can I make it so its the same as the default, see below.

Try this:

PHP Code:

<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
    <
tr>
        <
td valign="top" align="left" <if condition="THIS_SCRIPT != 'index'">style="padding:0;"</if> <if condition="THIS_SCRIPT == 'index'">style="padding-right:12px;"</if>>

<if 
condition="THIS_SCRIPT == 'index'">
            <
br />
            <
table align="left" border="1px" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]class="tborder">
                <
tr>
                    <
td class="thead">
                        
$adtitle
                    
</td>
                </
tr>
                <
tr>
                    <
td class="alt1">
                        
$leftcolumn_adcode
                    
</td>
                </
tr>
            </
table>
        </
td>
        <
td valign="top">
</if>
            <
table width="100%" cellpadding="0" cellspacing="0" border="0">
            <
tr>
                <
td valign="top" <if condition="THIS_SCRIPT != 'index'">style="padding:0;"</if>> 


Ronak 01-16-2007 12:57 AM

Quote:

Originally Posted by RedTyger (Post 1159928)
What items are you trying to rotate?

One is Adbrite code...and one is of my host :)

Fawlty Adder 01-16-2007 01:39 AM

Hi

I've just tried importing this mod using the product manager and get the following error :

http://www.theaccountancyforums.com/...cs/problem.JPG

I'm using VB v3.53

any suggestions?

thanks :)

Reece^B 01-16-2007 06:00 AM

Quote:

Originally Posted by RedTyger (Post 1160194)
Try this:

PHP Code:

<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
    <
tr>
        <
td valign="top" align="left" <if condition="THIS_SCRIPT != 'index'">style="padding:0;"</if> <if condition="THIS_SCRIPT == 'index'">style="padding-right:12px;"</if>>

<if 
condition="THIS_SCRIPT == 'index'">
            <
br />
            <
table align="left" border="1px" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]class="tborder">
                <
tr>
                    <
td class="thead">
                        
$adtitle
                    
</td>
                </
tr>
                <
tr>
                    <
td class="alt1">
                        
$leftcolumn_adcode
                    
</td>
                </
tr>
            </
table>
        </
td>
        <
td valign="top">
</if>
            <
table width="100%" cellpadding="0" cellspacing="0" border="0">
            <
tr>
                <
td valign="top" <if condition="THIS_SCRIPT != 'index'">style="padding:0;"</if>> 


Thanks, but what template?

RedTyger 01-16-2007 07:04 AM

Quote:

Originally Posted by Reece^B (Post 1160383)
Thanks, but what template?

Same as before, replace the leftcolumn_advertisement template with that.



Quote:

Originally Posted by Ronak (Post 1160270)
One is Adbrite code...and one is of my host :)

:) I mean what is the code?



Quote:

Originally Posted by Fawlty Adder (Post 1160287)
I'm using VB v3.53

any suggestions?

thanks :)

Yes, use the 3.5 modification. This is the 3.6 modification.

ajhalls 01-16-2007 01:39 PM

Do I need to do something to run the global_start? I assume it runs only at boot time.

nanaimobar 01-16-2007 03:12 PM

I would like to link jpgs, gifs, pngs, etc submitted to me for ads but am unsure how to do this. Can I simply create a url link from an image in a folder on my server to the ad management system? ie, simply paste the following into static or random section of ad system: www.blahbla/images/ads/blah.jpg

How would I create the hyperlink to the advertisers site? What sizes should the ads be, and where can I find information on the required coding etc?

I managed to get one button to work (a weather information link) on my site, but that code was supplied by the weather network.

The system installed easily and seems to work great on my board. Now I just need to learn how to use it.

RedTyger 01-16-2007 03:23 PM

Quote:

Originally Posted by ajhalls (Post 1160564)
Do I need to do something to run the global_start? I assume it runs only at boot time.

Sorry, don't follow you? You don't need to worry about anything like that, just the AdminCP settings. global_start just means run on every page load.


Quote:

Originally Posted by nanaimobar (Post 1160618)
I would like to link jpgs, gifs, pngs, etc submitted to me for ads but am unsure how to do this. Can I simply create a url link from an image in a folder on my server to the ad management system? ie, simply paste the following into static or random section of ad system: www.blahbla/images/ads/blah.jpg

How would I create the hyperlink to the advertisers site? What sizes should the ads be, and where can I find information on the required coding etc?

I managed to get one button to work (a weather information link) on my site, but that code was supplied by the weather network.

The system installed easily and seems to work great on my board. Now I just need to learn how to use it.

Yes, that's right. You must use HTML, any will work. I can't help you out with that too much there's a lot of different code you can use, but for a basic image/link combination it will look like this:

Code:

<a href="WHEREYOUWANTTOLINKTO1"><img src="LOCATIONOFIMAGE1" border="0" alt="DESCRIPTIONOFIMAGE2" /></a>,
<a href="WHEREYOUWANTTOLINKTO2"><img src="LOCATIONOFIMAGE2" border="0" alt="DESCRIPTIONOFIMAGE2" /></a>

That's for a random rotation, note the comma which goes between every section of code and that there is NO comma with the last one. You can read up more about HTML here: http://www.w3schools.com/html/default.asp

Reece^B 01-16-2007 04:19 PM

Sorry mate but that code didn't do anything to the align. :(


All times are GMT. The time now is 11:33 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02866 seconds
  • Memory Usage 1,784KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete