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)

N1tr8 03-26-2011 11:33 AM

Great job, I'm trying to place the image under control panel but I get to the left under no
sorry my English is very bad for googlel.
I put the code <!--@vbbanners:6@--> the template header below <div id="toplinks" class="toplinks">

Maxi62 03-27-2011 06:19 AM

How does the advertising Visit Counter set to 0?

shahryar_neo 03-29-2011 05:20 PM

Thanks for this very nice hack .

I got a problem very very suddenly in my forums . most of my banners are not shown and I don't why! I checked everything was as same as before . I even re-installed files and import product but it's same !

even I cannot add any new banner . I mean it'll be added in admincp but will not be shown . It's very funny but it's true .

I installed one hack called ITV news some days ago but right after installation it was good ! but now I don't see most of banner . I even disabled this hack but it didn't change anything .

Thanks In Advance for the help .

shahryar_neo 03-29-2011 05:28 PM

I instealled ITV news mod now , but it's the same . many banners don't shown .

BadgerDog 03-29-2011 09:27 PM

Installed on v4.04 with thanks for testing ... :)

We also use y2ksw's excellent Import External Images mod ... :up:

We have this mod running and it seems to work with for the most part, except some of the placeholder templates don't cause the ads to appear, but most do.

We have discovered a major conflict problem with our member's photo library. We use vBPicGallery and when y2ksw's banner mod is active, the javascipt screen slide show in vBPicGallery seizes up and stops, plus a random pic from a member's library storage seems to cover part of the screen with some kind of cosmetic glitch.

When we disable y2ksw's banner mod, the vbPicGallery slide show operation returns to normal.

Any ideas on how to resolve the conflict? :confused:

Thanks for any guidance ... :up:

Regards,
Doug

theharem 04-01-2011 01:31 AM

colour me stupid...... This is the first mod I've tried to upload and for some reason I've totally screwed it up.

If anyone here can help out a newbie to this, please pm me I'm desperate for some tutoring via msn. Thanks

y2ksw 04-01-2011 07:31 AM

Quote:

Originally Posted by Maxi62 (Post 2177615)
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!

I'm not able to help with style issues. On one site, I have the SHOWTHREAD template modified to show correctly first and last post banners as if they were posts. Maybe this is a useful hint for your designer.

I take note of the feature request, but unless there are very many people asking for this feature, I'll not add it ;)

y2ksw 04-01-2011 07:34 AM

Quote:

Originally Posted by N1tr8 (Post 2177650)
Great job, I'm trying to place the image under control panel but I get to the left under no
sorry my English is very bad for googlel.
I put the code <!--@vbbanners:6@--> the template header below <div id="toplinks" class="toplinks">

Please see what the Flash Help does and try to get it working on your site. Probably it is already what you want. Then, when you mastered this step, make your changes and additions ...

I'm sorry to stress this question over and over again, but flexibility comes with a cost: testing :)

y2ksw 04-01-2011 07:34 AM

Quote:

Originally Posted by Maxi62 (Post 2177892)
How does the advertising Visit Counter set to 0?

With phpmyadmin :)

y2ksw 04-01-2011 07:38 AM

Quote:

Originally Posted by shahryar_neo (Post 2178789)
Thanks for this very nice hack .

I got a problem very very suddenly in my forums . most of my banners are not shown and I don't why! I checked everything was as same as before . I even re-installed files and import product but it's same !

even I cannot add any new banner . I mean it'll be added in admincp but will not be shown . It's very funny but it's true .

I installed one hack called ITV news some days ago but right after installation it was good ! but now I don't see most of banner . I even disabled this hack but it didn't change anything .

Thanks In Advance for the help .

Quote:

Originally Posted by shahryar_neo (Post 2178794)
I instealled ITV news mod now , but it's the same . many banners don't shown .

If you have a tool which cleans up HTML comments or optimized HTML before output, you may either disable it or change the default placeholder format in the options (e.g. @vbbanners:%d@) and later in your templates (e.g. @vbbanners:0@). However, changing the default placeholders, may show them in your pages if you switch off the product or plugins.

y2ksw 04-01-2011 07:43 AM

Quote:

Originally Posted by BadgerDog (Post 2178872)
Installed on v4.04 with thanks for testing ... :)

We also use y2ksw's excellent Import External Images mod ... :up:

We have this mod running and it seems to work with for the most part, except some of the placeholder templates don't cause the ads to appear, but most do.

We have discovered a major conflict problem with our member's photo library. We use vBPicGallery and when y2ksw's banner mod is active, the javascipt screen slide show in vBPicGallery seizes up and stops, plus a random pic from a member's library storage seems to cover part of the screen with some kind of cosmetic glitch.

When we disable y2ksw's banner mod, the vbPicGallery slide show operation returns to normal.

Any ideas on how to resolve the conflict? :confused:

Thanks for any guidance ... :up:

Regards,
Doug

Banners are essentially images. You may try to code your images as HTML and place this code in the Text Field (as shown in the sample banners), but then your click tracking will not work. Alternatively you may try to use the Flash wrapper, which doesn't use the <img> tags, but then it won't work with iPhone/iPad devices and there are glitches with resizing the pages.

y2ksw 04-01-2011 07:50 AM

Quote:

Originally Posted by theharem (Post 2179610)
colour me stupid...... This is the first mod I've tried to upload and for some reason I've totally screwed it up.

If anyone here can help out a newbie to this, please pm me I'm desperate for some tutoring via msn. Thanks

If you are new to plugins and products, this is not a good playfield and you are better off with not using it. With uninstalling or disabling the product, you should go fine.

Please try some less complex plugins first and take your time to understand how they work and what it needs. Best practices are to check always new products in a test bed, and if you are unsure about side effects, to make a backup of your database and your files.

And last not least, if a help file is given, read it. In this product there is an extensive help available, and questions may be asked in this forum about almost all issues you may run into. For example, to get general help with installing products: https://vborg.vbsupport.ru/forumdisplay.php?f=112

theharem 04-01-2011 11:18 AM

Thank you.... have a big learning curve so I'll go study that link you gave me.

HellRZR 04-01-2011 05:55 PM

ciao,

I have a question?

Is this possible and will it impact anything if I use your system in this fashion.

I dont want to modify any VB templates or code if I dont have to, so I figured I would use it this way.

I go into the regular vb ad menu and create a new ad called header, in which I place this code <center><!--@vbbanners:0@--></center>.

Now I add all my banner ads that I wish to display in rotation in all my headers in your system position horzontal 0.

It seems to be working fine, but I just want to ensure there are no conflicts.

Is this a good idea?

DFW Auto Club 04-06-2011 02:48 AM

I've been using this on multiple forums without issue for some time now. Thx to y2ksw.

I recently upgraded to VB 4.1.2 and I am now seeing ads intermittently missing in alternating locations. Please advise if someone's aware of a fix. tia.

y2ksw 04-06-2011 08:47 AM

Quote:

Originally Posted by HellRZR (Post 2179858)
ciao,

I have a question?

Is this possible and will it impact anything if I use your system in this fashion.

I dont want to modify any VB templates or code if I dont have to, so I figured I would use it this way.

I go into the regular vb ad menu and create a new ad called header, in which I place this code <center><!--@vbbanners:0@--></center>.

Now I add all my banner ads that I wish to display in rotation in all my headers in your system position horzontal 0.

It seems to be working fine, but I just want to ensure there are no conflicts.

Is this a good idea?

This is exactly the way one should use it: 1 location for all banners :)

y2ksw 04-06-2011 08:48 AM

Quote:

Originally Posted by DFW Auto Club (Post 2181414)
I've been using this on multiple forums without issue for some time now. Thx to y2ksw.

I recently upgraded to VB 4.1.2 and I am now seeing ads intermittently missing in alternating locations. Please advise if someone's aware of a fix. tia.

Probably you have reverted some templates with placeholders ...

Gloria Culver 04-10-2011 04:33 PM

All attempts to get this to install, either from uploading from my PC or importing from the server lead to a screen that says "Importing Product, please wait..." accompanied by a box that says "Please upload the files that came with the product before installing or ugrading! Missing files: :

I did upload all the files to the appropriated folders. Any idea what it could be peeved about? I did reboot the server just to clear it's little head, no help!

y2ksw 04-11-2011 09:16 AM

Quote:

Originally Posted by Gloria Culver (Post 2183048)
All attempts to get this to install, either from uploading from my PC or importing from the server lead to a screen that says "Importing Product, please wait..." accompanied by a box that says "Please upload the files that came with the product before installing or ugrading! Missing files: :

I did upload all the files to the appropriated folders. Any idea what it could be peeved about? I did reboot the server just to clear it's little head, no help!

Probably your web service can't access the files you have uploaded by FTP. Please check the owners and access rights.

Gloria Culver 04-11-2011 07:02 PM

It's my server. It has full access to everything and no problem installing other programs or plug ins. I am baffled.

y2ksw 04-12-2011 06:09 AM

Quote:

Originally Posted by Gloria Culver (Post 2183539)
It's my server. It has full access to everything and no problem installing other programs or plug ins. I am baffled.

You mean there is no missing file listed, but it stops there with an error? Could you please try to cut or comment out the part where it makes the files check (on product-rbs.xml)? Maybe it's a unicode problem or something else. However I still believe it's a rights problem.

Gloria Culver 04-12-2011 03:39 PM

I deleted everything, reinstalled and it did install this time. I cannot get the banners to show up though. I put "<div align="center">@vbbanners@</div><br />" as a placeholder in the Navbar Template but "@vbbanners@" shows up in the perfect location on the forum instead of the banner.

Halal Muscle 04-12-2011 05:30 PM

which file do i need to download out of the 4?? i simply need one for english users.

Gloria Culver 04-13-2011 03:27 AM

Quote:

Originally Posted by Halal Muscle (Post 2183909)
which file do i need to download out of the 4?? i simply need one for english users.

2.3.1.rbs.zip (266.6 KB, 865 downloads)
If you get it working, I could sure use some help with my install.

y2ksw 04-13-2011 09:36 AM

Quote:

Originally Posted by Gloria Culver (Post 2183868)
I deleted everything, reinstalled and it did install this time. I cannot get the banners to show up though. I put "<div align="center">@vbbanners@</div><br />" as a placeholder in the Navbar Template but "@vbbanners@" shows up in the perfect location on the forum instead of the banner.

Right! Gotcha! You didn't read the help nor watch the movie! :D

Please try:
<!--@vbbanners:0@--> in your template and with the default banners it will work, unless you have a tool which also cleans out HTML comments.

Gloria Culver 04-14-2011 05:35 AM

Quote:

Originally Posted by y2ksw (Post 2184144)
Right! Gotcha! You didn't read the help nor watch the movie! :D

Please try:
<!--@vbbanners:0@--> in your template and with the default banners it will work, unless you have a tool which also cleans out HTML comments.

Would that I could find the movie. I have been reading helps and forum posts for days. Sometimes it's like looking for the proverbial needle in a haystack.

y2ksw 04-14-2011 08:58 AM

Quote:

Originally Posted by Gloria Culver (Post 2184464)
Would that I could find the movie. I have been reading helps and forum posts for days. Sometimes it's like looking for the proverbial needle in a haystack.

From the very first message:

Tutorials:

Gloria Culver 04-14-2011 04:59 PM

Quote:

Originally Posted by y2ksw (Post 2184511)
From the very first message:

Tutorials:

The movie was a big help. The first thing I discovered is that the default google ad did not work. At that point I uninstalled the banner rotator and another ad program, reinstalled your program and it works like a charm!

Many, many thanks for your patience and your wonderful software package.

nick221 04-16-2011 02:21 AM

Installed mod fine. I can place banners no problem. It's my understanding that I can have as many banners as I want say in Horizontal (0) Banner list and they will all rotate in one after the other. If this is correct it doesn't work for me. Any ideas to help me figure it out?

strudinox 04-19-2011 05:51 PM

I'm not sure if my question has been answered somewhere in the previous 80+ pages, but is there a way to add more locations?

y2ksw 04-19-2011 09:00 PM

Quote:

Originally Posted by nick221 (Post 2185127)
Installed mod fine. I can place banners no problem. It's my understanding that I can have as many banners as I want say in Horizontal (0) Banner list and they will all rotate in one after the other. If this is correct it doesn't work for me. Any ideas to help me figure it out?

They will rotate randomly and they do ;)

You may check this if you disable the ones you have already seen. If they don't show you probably haven't setup the right rule.

You may need to use refresh on yourself, but on a life site the banners rotate very well and almost evenly.

y2ksw 04-19-2011 09:02 PM

Quote:

Originally Posted by strudinox (Post 2186384)
I'm not sure if my question has been answered somewhere in the previous 80+ pages, but is there a way to add more locations?

It was answered in the way that each single location can be reused for N banners and rarely you would find enough occasions to use all 10 banner locations together ;)

strudinox 04-19-2011 09:15 PM

Quote:

Originally Posted by y2ksw (Post 2186436)
It was answered in the way that each single location can be reused for N banners and rarely you would find enough occasions to use all 10 banner locations together ;)

Yeah, I understand that for 99% of sites out there. I'm putting together a site where I need many more. Would adding more locations be hard to incorporate?

y2ksw 04-20-2011 06:02 AM

Quote:

Originally Posted by strudinox (Post 2186440)
Yeah, I understand that for 99% of sites out there. I'm putting together a site where I need many more. Would adding more locations be hard to incorporate?

Pretty much ... it will need several additions in many places and in the end it will slow down the process of parsing the banners into the pages.

You are free to do these changes for your own ... I don't like to sound cynical but 10 locations are really enough if you use them together with all other imaginable filters (usergroups, sections, date/time) :) I agree with you, if you skip these settings and make it a location based setup. But you can reuse one location, for example, to show in each of your forum sections a different and dedicated banner set. Most banner software is location based, and this means you have to create for each banner a location. Here, you can use one location for many different banners and the scope can be different.

strudinox 04-20-2011 02:34 PM

Thanks for your reply. If it requires that many changes to the code, then I won't worry about it. The reason I need so many is I planned to use this mod for an additional use alongside advertizing while using custom placement via the code tag.

Maybe creating additional locations can be an additional future in the future? :)

y2ksw 04-20-2011 05:06 PM

Quote:

Originally Posted by strudinox (Post 2186671)
Thanks for your reply. If it requires that many changes to the code, then I won't worry about it. The reason I need so many is I planned to use this mod for an additional use alongside advertizing while using custom placement via the code tag.

Maybe creating additional locations can be an additional future in the future? :)

I see that you would need at most 2 locations. 1 location for the site advertising and another for the code tag. Since you can define a different banner for each forum section and still use the same location (tag code), each code tag would require just as many banners of that section in the database as you probably may show on a single page. Say you have 10 posts and 5 code tags per page, you may use location 0 five times on the same page and setup 5 different (or same) banners for that forum section, and you are done. If you need the same scheme on another section but different banners, you just filter that section with another 5 banners. And in the same time you have still 9 locations to fit your site advertising much the same way :)

strudinox 04-20-2011 05:37 PM

Ohhh, that makes sense, I didn't know you could use the same code tag with the same ID multiple times on the same page. In that case, 9 locations should be plenty! Thanks for your help on this one

valdet 05-13-2011 10:38 AM

Hi Giovanni,

I am trying to have my banners (for guests only) between the first and second post of my threads. However it is not showing the banners at all

Here is the code I am using on postbit_legacy:

Code:

<if condition="$show['guest']">
<if condition="(($post[postcount] % $vboptions[maxposts] == 1) and !$GLOBALS['vbulletin']->GPC['ajax'])">

<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr><br />
<td align="center">
#reklama:2#
</td>
</tr>
</table>

</if>
</if>

I have the same custom code/ placeholder (#reklama:2#) working just fine in navbar template, but it is showing blank in postbit_legacy.

Any hints how to make this work ?

Thanks for your time.

y2ksw 05-13-2011 04:59 PM

Maybe:

($post[postcount] % $vboptions[maxposts]) == 1

makes the difference? I believe without extra parentesis it operates as if:

$post[postcount] % ($vboptions[maxposts] == 1)

The expression may fail due to a division by 0 and thus never execute ...

valdet 05-14-2011 10:19 AM

Quote:

Originally Posted by y2ksw (Post 2195180)
Maybe:

($post[postcount] % $vboptions[maxposts]) == 1

makes the difference? I believe without extra parentesis it operates as if:

$post[postcount] % ($vboptions[maxposts] == 1)

The expression may fail due to a division by 0 and thus never execute ...

The conditional statement which I posted works in every other case. It is working for rotating banners through a simpler mt_rand () plugin. Though I like your solution better, due to tracking capabilities and better banners management.

Here's a sample link with banner (through mt_rand() plugin) between first and second post.

http://www.insurance-forums.net/foru...-t30355-3.html

Note the banner, on navbar is produced by your product but the one between first and second posts is the other plugin. If you have time to check, in that link, I left the placeholder between the banner and the Quick Register form. You will notice it is returning a blank.


I may be wrong so please correct if I am doing so, but my assumption is that the limitation that it should only be run on global_complete hook is maybe causing to stop displaying in postbit_legacy.


Thanks,
Val.


All times are GMT. The time now is 09:35 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.02840 seconds
  • Memory Usage 1,864KB
  • 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
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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