vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Rotating Banner System (https://vborg.vbsupport.ru/showthread.php?t=188328)

y2ksw 03-25-2013 10:29 AM

Quote:

Originally Posted by tomshawk (Post 2412107)
According to your updates section, the last vb up to is 4.0.2

Does this work with 4.2.0

Just asking as the adverts system in vb is not working for me.

Thanks

yes :)

y2ksw 03-25-2013 10:36 AM

Quote:

Originally Posted by alaska_av8r (Post 2412115)
Did anyone ever find out why the start date and end date automatically increments the hourly valude as mentioned in post 2116.

Mine behaves the same way, I set a start time and end time and it will automatically increment to a later time as you save a setting.

If I set it to end at 0200 and click save, when I look at it again it shows 0400, if I change nothing and hit save it shows 0600.

We have discussed this problem several times, and essentially there is a timing difference between the local time of the web server and the MySQL server. Since MySQL runs as root and Apache not always, there may be time zone differences. Best of all is to make sure that these differences do not exist, alternatively adjust the time zone of the web server in order to match the system time. Also, your system should not change time due to DST, but at most the time zone for their user accounts. And, of course, you should use NTP to sync date and time frequently.

In any case, this information is only for system administrators and it is really, "really" the last time I will ever mention it :)

bada_bing 03-25-2013 04:53 PM

Quote:

Originally Posted by y2ksw (Post 2412137)
photopost does not call the final page rendering of vbulletin, thus banners would not get rendered in photopost.

So what does that mean, this product will not work in photopost? Or is there a way to make it work we must have banners in that section

HellRZR 03-25-2013 05:58 PM

I agree, getting this to work in Photopost would be great, is there a way, or are there plans for this?

tomshawk 03-25-2013 06:26 PM

Quote:

Originally Posted by y2ksw (Post 2412138)
yes :)

Awesome, thank you. Installing in a few

alaska_av8r 03-25-2013 07:53 PM

Quote:

Originally Posted by y2ksw (Post 2412139)
We have discussed this problem several times, and essentially there is a timing difference between the local time of the web server and the MySQL server. Since MySQL runs as root and Apache not always, there may be time zone differences. Best of all is to make sure that these differences do not exist, alternatively adjust the time zone of the web server in order to match the system time. Also, your system should not change time due to DST, but at most the time zone for their user accounts. And, of course, you should use NTP to sync date and time frequently.

In any case, this information is only for system administrators and it is really, "really" the last time I will ever mention it :)

Y2ksw, thank you for the explanation, I did search but did not realize that was applicable to the problem. I am not too computer savvy as far as servers and timing go, so once again thanks for taking the time to explain it.

What you explain makes sense to me as far as their being a difference, but it befuddles me as to how this would cause the time to continuously change each time I viewed it, each time increasing 2 hrs, I have other plugins that use timing and seem not to be affected, but I know your busy so no need to elaborate on that one I shall continue to live in ignorance of such...lol

thanks
tim

y2ksw 03-25-2013 08:29 PM

Quote:

Originally Posted by bada_bing (Post 2412202)
So what does that mean, this product will not work in photopost? Or is there a way to make it work we must have banners in that section

Quote:

Originally Posted by HellRZR (Post 2412220)
I agree, getting this to work in Photopost would be great, is there a way, or are there plans for this?

If somebody would have success and share their experience ...

But unless then, the banners will not work in photopost, because photopost does not use the standard final page rendering.

There is no plan to make it work for photopost. I am sorry, but I'm personally against hacking into software just because somebody hasen't used standard procedures as reccomended.

bada_bing 03-26-2013 02:51 PM

Does anyone know which template and where to add of I wanted the banner to show up on left or right side of my forums ?

y2ksw 03-26-2013 06:45 PM

Quote:

Originally Posted by bada_bing (Post 2412394)
Does anyone know which template and where to add of I wanted the banner to show up on left or right side of my forums ?

You may create a sidebar block for a banner.

If you however want to add a free space inside the page area, you must change a lot of pages, and maybe the everywhere sidebar is a better solution.

You may also try to add a background image via CSS, but I doubt it would work with this product, both because styles may be cached locally by your browser and maybe the templates are not passing through the last rendering process, because cached by vBulletin itself.

bada_bing 03-26-2013 08:22 PM

Quote:

Originally Posted by y2ksw (Post 2412432)
You may create a sidebar block for a banner.

If you however want to add a free space inside the page area, you must change a lot of pages, and maybe the everywhere sidebar is a better solution.

You may also try to add a background image via CSS, but I doubt it would work with this product, both because styles may be cached locally by your browser and maybe the templates are not passing through the last rendering process, because cached by vBulletin itself.

Yes I want to add the banner on as a side bar and not sure how to do this, I cant use the everywhere sidebar hack because that is for vb 4.x series and we are using vb 3.8 series

y2ksw 03-31-2013 05:30 PM

Quote:

Originally Posted by bada_bing (Post 2412449)
Yes I want to add the banner on as a side bar and not sure how to do this, I cant use the everywhere sidebar hack because that is for vb 4.x series and we are using vb 3.8 series

I am regularily failing HTML ... anyone? :)

Judith2 04-07-2013 08:59 PM

Do you have a german translation??

bada_bing 04-08-2013 01:12 PM

Does anyone know how I can add two banners side by side but inside a table?
If I just use this @vbbanners:0@@vbbanners:0@ and then I start to shrink my browser size the banners start overlapping each other, I want these banners to be fixed next to each other regardless of the size of my browser size.

Any help doing this?

y2ksw 04-09-2013 08:19 AM

Quote:

Originally Posted by Judith2 (Post 2414985)
Do you have a german translation??

No, sorry.

y2ksw 04-09-2013 08:22 AM

Quote:

Originally Posted by bada_bing (Post 2415064)
Does anyone know how I can add two banners side by side but inside a table?
If I just use this @vbbanners:0@@vbbanners:0@ and then I start to shrink my browser size the banners start overlapping each other, I want these banners to be fixed next to each other regardless of the size of my browser size.

Any help doing this?

Tables usually have the <td> tags for columns, but they must match in all rows. Eventually you also will need to use the span attribute.

At this site you may learn all about HTML :)

bada_bing 04-09-2013 07:29 PM

Quote:

Originally Posted by y2ksw (Post 2415261)
Tables usually have the <td> tags for columns, but they must match in all rows. Eventually you also will need to use the span attribute.

At this site you may learn all about HTML :)

Can you provide an example on how to wrape this into a table

bzcomputers 04-09-2013 08:52 PM

Quote:

Originally Posted by bada_bing (Post 2415386)
Can you provide an example on how to wrape this into a table




HTML Code:

<table>
<tr>
<td style="min-width:XXXpx">@vbbanners:0@</td><td style="min-width:XXXpx">@vbbanners:0@</td>
</tr>
</table>


Then just set "XXX" to whatever minimum width you want the banners to be. You can also add additional styling such as "max-width", or "width", then possibly "padding" etc. to get the exact look and spacing you want.

y2ksw 04-10-2013 06:25 AM

Quote:

Originally Posted by bada_bing (Post 2415386)
Can you provide an example on how to wrape this into a table

http://www.w3schools.com/html/html_tables.asp ;)

DonLKSAB 04-10-2013 05:12 PM

So. Anyone solved the Photopost issue?
I desperatly need it and are willing to pay for a solution.
y2ksw any chanse i could pay you to have a look at it?

Videx 04-10-2013 05:38 PM

I've never used Photopost, but I have Photopost Classifieds and if it's the same deal it's not really a vbulletin mod at all, it's a separate script that just imports the vb styles so the page looks like part of your forum.

DonLKSAB 04-10-2013 05:43 PM

Actually i have the Classifieds to.
And according to the developer it shoud work. The standard VB banners work fine.
Everything from the header and so on is used in Photopost.

If not.
Doers anyone know of a simple random banner mod? I need one banner with like 6 random images...

Videx 04-10-2013 06:19 PM

Quote:

Originally Posted by DonLKSAB (Post 2415569)
The standard VB banners work fine.

Oh, sorry I missed that. You may want to start over again or at least link to your last post so we don't have to go digging for it.

Obvious question if a standard banner works: What type of banners are you trying that don't work? Flash or something? And can we assume when you say "standard banners work" you also mean RBS works fine outside Photopost? If not you need to get that fixed first. Make sure there's no compatibility problems with other mods (e.g. VBAdvanced).

DonLKSAB 04-10-2013 06:30 PM

I have no banners what so ever from RBS in Photopost.
But RBS is working fine in my form and CMS.
However, If you look at the photopost guys website he is using the VB adverticement stuff and that works for him.
So its not only using the vb styles.
Thats why i hope it would be possible to get RBS working in Photopost without a big effort.

bada_bing 04-10-2013 08:09 PM

Quote:

Originally Posted by bzcomputers (Post 2415396)


HTML Code:

<table>
<tr>
<td style="min-width:XXXpx">@vbbanners:0@</td><td style="min-width:XXXpx">@vbbanners:0@</td>
</tr>
</table>


Then just set "XXX" to whatever minimum width you want the banners to be. You can also add additional styling such as "max-width", or "width", then possibly "padding" etc. to get the exact look and spacing you want.

OK I ended up with this code however when I reduce the size of my browser the banners dont adjust themself to the size of the foum so they overlap the edge of the forum. Any idea what I need to add to have the banners resize as I reduce the size of the browser window

HTML Code:

<html>
        <head>
                <title>Support Our Sponsors</title>
        </head>
        <body>
                <table align="center" style="height: 60px; width: 640px;" summary="On your next purchage concider choosing our Sponsors">
                        <caption dir="rtl" style="text-align: justify;">
                                <cite><span style="font-size:12px;"><span style="color: rgb(0, 0, 0);"><strong style=""><a href="http://www.mysite.com/forums/vendor/list-by-alpha" style="" target="_self">Support Our Sponsors</a>&nbsp; &nbsp;<a href="http://www.mysire.com/forums/vendor/register" style="" target="_self">Become a Sponsor</a></strong></span></span></cite></caption>
                        <tbody>
                                <tr>
                                        <td style="min-width: 460px; text-align: center;">
                                                @vbbanners:0@&nbsp;</td>
                                        <td style="min-width: 460px; text-align: center;">
                                                @vbbanners:0@</td>
                                </tr>
                        </tbody>
                </table>
                <p style="text-align: center;">
                       
        </body>
</html>


bada_bing 04-10-2013 08:19 PM

Quote:

Originally Posted by DonLKSAB (Post 2415578)
I have no banners what so ever from RBS in Photopost.
But RBS is working fine in my form and CMS.
However, If you look at the photopost guys website he is using the VB adverticement stuff and that works for him.
So its not only using the vb styles.
Thats why i hope it would be possible to get RBS working in Photopost without a big effort.

Yes that is my exact same problem.. I have photopost intergration and its enheriting the headers and footer from VB except the banners from RBS wont display only shows this @vbbanners:0@ where the banner should be

y2ksw 04-11-2013 09:21 AM

Quote:

Originally Posted by DonLKSAB (Post 2415563)
So. Anyone solved the Photopost issue?
I desperatly need it and are willing to pay for a solution.
y2ksw any chanse i could pay you to have a look at it?

I fear this would become a pretty complicated hack, also from what I have read right now about photopost. Most probably it would become a source code modification in order to render the banners.

If however "other" banners work, try to use the unsupported iframe solution, which would enable you to show at least the banners as if they were working ... please see here: https://vborg.vbsupport.ru/showpost....&postcount=989

This is however not a true banner rotating solution and you will also have to do some coding.

If you want me to do this, please take in account that I probably will not have time until mid August this year.

DonLKSAB 04-11-2013 11:05 AM

And it works!
Thanks y2kw!

y2ksw 04-11-2013 01:42 PM

It's always nice to hear that something works :)

bada_bing 04-11-2013 03:23 PM

I have an issue using when adding the banner code to the Ad Location Templates-ad_navbar_below the banners show up fine except in the wrong location. If I click on a thread the banner is located below the thread title and not under the navbar.

It looks like this

--------------Navbar----------------------
--------------Thread Title--------------
--------------Banner---------------------

I want this

--------------Navbar----------------------
--------------Banner---------------------
--------------Thread Title--------------

y2ksw 04-12-2013 07:52 AM

Quote:

Originally Posted by bada_bing (Post 2415733)
I have an issue using when adding the banner code to the Ad Location Templates-ad_navbar_below the banners show up fine except in the wrong location. If I click on a thread the banner is located below the thread title and not under the navbar.

It looks like this

--------------Navbar----------------------
--------------Thread Title--------------
--------------Banner---------------------

I want this

--------------Navbar----------------------
--------------Banner---------------------
--------------Thread Title--------------

Most probably you will have to modify the header template directly instead of the ad_* templates.

isurua 04-15-2013 01:00 PM

how do i cutomise the rbs_stats.php file?

I tried editing in a text editor and changing a few things (like renaming the unwanted results section), however, when I save and upload the file, the customisations are not seen.

It is odd because when I rename the file, it doesn't work, so it is definitely using that file, but my customisations do not show.

can anyone please help?

y2ksw 04-15-2013 02:03 PM

Quote:

Originally Posted by isurua (Post 2416477)
how do i cutomise the rbs_stats.php file?

I tried editing in a text editor and changing a few things (like renaming the unwanted results section), however, when I save and upload the file, the customisations are not seen.

It is odd because when I rename the file, it doesn't work, so it is definitely using that file, but my customisations do not show.

can anyone please help?

maybe refreshing the page? some browsers store the page content in the local cache.

Naijasite 04-19-2013 10:32 PM

banner not showing on 4.2.1

Guust 04-20-2013 12:16 PM

Just noted something strange. Only the bottom 16 pixels of my banners in the header section are linked, the top part of the banner is not linked.
Any idea why that is?
See http://www.2cv.com.au/ for the problem.

y2ksw 04-20-2013 01:32 PM

Quote:

Originally Posted by Naijafinder (Post 2417405)
banner not showing on 4.2.1

for me it works.

Guust 04-20-2013 10:00 PM

Quote:

Originally Posted by Guust (Post 2417480)
Just noted something strange. Only the bottom 16 pixels of my banners in the header section are linked, the top part of the banner is not linked.
Any idea why that is?
See http://www.2cv.com.au/ for the problem.

Just solved my problem: I added this code to the style of the ad placeholder:
Code:

position: relative; z-index: 1000

Guust 04-20-2013 10:01 PM

Quote:

Originally Posted by Naijafinder (Post 2417405)
banner not showing on 4.2.1

Works for me too.

bigdamouk 04-22-2013 02:10 PM

Excellent mod - this is just what I have been searching for - I now have rotating ads in between posts and the bottom nav bar

Thanks for all your continued work on this Y2KSW. It's appreciated alot!! (Donation will be on it's way shortly)

blackie58 04-23-2013 12:17 PM

Hello all

It has taken me ages to get this working & i have placed 2 ads under the navber header

They are both next to each other & i would like a space inbetween them

I have searched as best i can & tried alsorts to get it to work

PLEASE PLEASE can someone put me on the correct path

Thanks

y2ksw 04-23-2013 12:52 PM

Quote:

Originally Posted by blackie58 (Post 2418059)
Hello all

It has taken me ages to get this working & i have placed 2 ads under the navber header

They are both next to each other & i would like a space inbetween them

I have searched as best i can & tried alsorts to get it to work

PLEASE PLEASE can someone put me on the correct path

Thanks

a &nbsp; would insert a fixed space between two HTML text elements, thus:

Code:

<!--@vbbanners:0@--><!--@vbbanners:0@-->
become:
Code:

<!--@vbbanners:0@-->&nbsp;<!--@vbbanners:0@-->


All times are GMT. The time now is 02:41 PM.

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.04545 seconds
  • Memory Usage 1,865KB
  • 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
  • (3)bbcode_code_printable
  • (3)bbcode_html_printable
  • (25)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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