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)

TransAmDan 03-16-2011 07:59 AM

Great mod, its working well, and simple to use.

I have a couple of ideas for additions if you were thinking of adding anything.

1. The banners I sell get paid for 1 year in advance, I have an excel spreadsheet to tell me when they expire. I know your mod lets me know when the expire, but would be nice to know 1 week in advance so I can contact the payers just before it expires. So perhaps an addition of a date on when to send the alert email out just before the banner expires.

2. I have a section on the right hand side for small adverts, almost like text links. I have multiple ones in this area, all expiring at different times. If I have 3 banners areas on the rest of the page, I may need more than 7 cells for the right hand side text links. If I put them into one cell eg. <!--@vbbanners:2@--> then all these text links will rotate, showing one at a time. Perhaps have an option to show multiple adverts in one cell.


Great mod, and keep up the good work :)

y2ksw 03-16-2011 09:39 AM

Quote:

Originally Posted by TransAmDan (Post 2173901)
Great mod, its working well, and simple to use.

I have a couple of ideas for additions if you were thinking of adding anything.

1. The banners I sell get paid for 1 year in advance, I have an excel spreadsheet to tell me when they expire. I know your mod lets me know when the expire, but would be nice to know 1 week in advance so I can contact the payers just before it expires. So perhaps an addition of a date on when to send the alert email out just before the banner expires.

2. I have a section on the right hand side for small adverts, almost like text links. I have multiple ones in this area, all expiring at different times. If I have 3 banners areas on the rest of the page, I may need more than 7 cells for the right hand side text links. If I put them into one cell eg. <!--@vbbanners:2@--> then all these text links will rotate, showing one at a time. Perhaps have an option to show multiple adverts in one cell.


Great mod, and keep up the good work :)

Please use just multiple <!--@vbbanners:2@--> one below each other in order to show more single banners of that group. No banner will show up more than once on a single page, but if you have more instances of the same placeholder, as many banners as may fit are filled from the database :)

TransAmDan 03-16-2011 10:49 AM

Quote:

Originally Posted by y2ksw (Post 2173923)
Please use just multiple <!--@vbbanners:2@--> one below each other in order to show more single banners of that group. No banner will show up more than once on a single page, but if you have more instances of the same placeholder, as many banners as may fit are filled from the database :)

Brilliant, Thanks for the tip. It worked wonders.

Videx 03-16-2011 03:28 PM

Quote:

Originally Posted by TransAmDan (Post 2173901)
So perhaps an addition of a date on when to send the alert email out just before the banner expires.

Agree. We use a separate Sponsors Calendar and I get a reminder emailed a few days in advance. I was hoping to be able to use this mod to take over that task. But if the banner stops running at the same time the reminder goes out then that's kind of useless.

"Send expiration email x days in advance" would be a nice option. Or just automatically send them out 3-7 days prior.

y2ksw 03-17-2011 08:10 AM

Quote:

Originally Posted by Videx (Post 2174035)
Agree. We use a separate Sponsors Calendar and I get a reminder emailed a few days in advance. I was hoping to be able to use this mod to take over that task. But if the banner stops running at the same time the reminder goes out then that's kind of useless.

"Send expiration email x days in advance" would be a nice option. Or just automatically send them out 3-7 days prior.

You may change the line 31 in rbs_mail_cron.php from:
Code:

AND enddate<" . TIMENOW;
to
Code:

AND enddate<" . (TIMENOW - 86400 * N);
where N is the number of days you wish to be advised before.

I'm not sure if I will implement this feature.

Kolbi 03-25-2011 03:31 PM

Is it possible that your addon causes xhtml validation issues if no usergroup is set, if it is allowed to see the banner?

Then
Quote:

&userid=0
is added to the links?
Please change the
HTML Code:

&
to
HTML Code:

&amp;
to get valid code :)

y2ksw 03-25-2011 04:05 PM

Quote:

Originally Posted by Kolbi (Post 2177340)
Is it possible that your addon causes xhtml validation issues if no usergroup is set, if it is allowed to see the banner?

Then is added to the links?
Please change the
HTML Code:

&
to
HTML Code:

&amp;
to get valid code :)

I have already answered this question: the & amp ; version is not always interpreted correctly by web servers, while the & version always works. I prefer to have a working link over a potentially not working, but HTML compatible one.

If this is an issue for you, you may change the code accordingly for your server.

When Apache will ever arrive to 3.x and HTML 4.x, or whatever will come, will be a de facto standard for all producers in the same manner (no exceptions made), I probably will follow the standards :)

Maxi62 03-25-2011 04:56 PM

hello
How can I insert advertising in the first post of a thread. Does it somehow not quite.
I use vb 4.12, as I would have to change because that template?

y2ksw 03-25-2011 05:21 PM

Quote:

Originally Posted by Maxi62 (Post 2177377)
hello
How can I insert advertising in the first post of a thread. Does it somehow not quite.
I use vb 4.12, as I would have to change because that template?

I believe there is a template for that, but I can't rememebr its name ...

Maxi62 03-26-2011 07:42 AM

Quote:

Originally Posted by y2ksw (Post 2177392)
I believe there is a template for that, but I can't rememebr its name ...

Yes give it to t while the following template:

ad_showthread_firstpost

But there is a problem with that. It only works if one integrates xxxx ad_thread_first_post_content in the div block.

This works not, It appears no ads:

ad_showthread_firstpost:
Code:

<!--@vbbanners:6@-->

This works partly:

ad_showthread_firstpost:
Code:

<div id="ad_thread_first_post_content">
<!--@vbbanners:6@-->
</div>

If banners are to be displayed only in certain user groups with Dialog-Options in Rotating Banner System , then won in the first post for all user groups place. So then you have a large gap in the post even though no ads will appear.

How can you prevent it?


And yet another suggestion:
Can not you install, which must be sent a monthly status e-mail with the number of visits, that would be great!


All times are GMT. The time now is 12:07 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.02559 seconds
  • Memory Usage 1,757KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_html_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)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