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)

Videx 04-24-2012 07:09 PM

You're overthinking it. The "URL" is where you want someone to go when they click a banner (e.g. http://advertiser.com). The "Image / Flash" is a link to the banner on your site (e.g. "../banners/adbanner.jpg).

LuDawgs 04-24-2012 07:41 PM

Quote:

Originally Posted by Videx (Post 2323159)
You're overthinking it. The "URL" is where you want someone to go when they click a banner (e.g. http://advertiser.com). The "Image / Flash" is a link to the banner on your site (e.g. "../banners/adbanner.jpg).

Ahhhh....ha! Thank you, I'm an idiot.

y2ksw 04-24-2012 08:26 PM

Quote:

Originally Posted by addamroy (Post 2323088)
y2k, wanna let me know what the chances are of you looking into this for us?? https://vborg.vbsupport.ru/showpost....postcount=1852

I think you missed it :)

Ha! You wanna black magic!

I imagine you are talking about a static HTML page on CMS?

Please try iframe, it's the one ... for example:

PHP Code:

<iframe src="url_to_any page" style="border: none; overflow: hidden; width: 100%; height: auto;" >
Please wait while loading ...
</
iframe

Please do the styling with somebody else, I just tried to guess right :)

addamroy 04-24-2012 10:04 PM

Quote:

Originally Posted by y2ksw (Post 2323181)
Ha! You wanna black magic!

I imagine you are talking about a static HTML page on CMS?

Please try iframe, it's the one ... for example:

PHP Code:

<iframe src="url_to_any page" style="border: none; overflow: hidden; width: 100%; height: auto;" >
Please wait while loading ...
</
iframe

Please do the styling with somebody else, I just tried to guess right :)

Not on CMS, just a static page.

The iframe works but there's no way to show a different iframe automatically when an advertiser wants to view their ad statistics. I need the banner stats file itself to be formatted to match the forum.

In this thread here by Lynne, it teaches you how to create your own custom vbulletin page.
https://vborg.vbsupport.ru/showthread.php?t=228112

So what I tried to do was simply, take the code from the rbs banner stats php file and add it to the template for the custom page. The only problem is for some reason when you copy/paste the code from the original stats file into the template for the custom page it breaks the page, it's not formatted correctly.

Any way you can help me (or us) achieve that?

Alan_SP 04-25-2012 09:03 AM

I think that you need to look into template for that page, not php code.

I don't have RBS installed, so I don't know what template is used, but you need code that is in the template.

y2ksw 04-25-2012 03:59 PM

Quote:

Originally Posted by addamroy (Post 2323212)
Not on CMS, just a static page.

The iframe works but there's no way to show a different iframe automatically when an advertiser wants to view their ad statistics. I need the banner stats file itself to be formatted to match the forum.

In this thread here by Lynne, it teaches you how to create your own custom vbulletin page.
https://vborg.vbsupport.ru/showthread.php?t=228112

So what I tried to do was simply, take the code from the rbs banner stats php file and add it to the template for the custom page. The only problem is for some reason when you copy/paste the code from the original stats file into the template for the custom page it breaks the page, it's not formatted correctly.

Any way you can help me (or us) achieve that?

There is no way to "rotate" also the statistics. If you need the forum styles, you also will have to create a plugin with the styles for those pages and compile the recordsets accordingly for your customers. There is no way to guess which pages are going to show to a customer rather than another. It is not in the scope of this project to show custom pages for statistics to individual customers beyond the simple and plain thing. The iframe-d reports may be included in CMS pages and thus gain the forum style in some way, but still, you will have to filter the pages in some way for each customer and I believe this is not too easy.

If this is going to be a request of say 100 paying users of this product, I may think about it. But just for one, I'm sorry, that's too much work for a small looking, but quite complex addition ;)

You may try to modify the statistics page to make it look better. I believe a fairly clever designer may give it a visual boost via CSS ...

addamroy 04-25-2012 06:57 PM

Quote:

Originally Posted by y2ksw (Post 2323417)
There is no way to "rotate" also the statistics. If you need the forum styles, you also will have to create a plugin with the styles for those pages and compile the recordsets accordingly for your customers. There is no way to guess which pages are going to show to a customer rather than another. It is not in the scope of this project to show custom pages for statistics to individual customers beyond the simple and plain thing. The iframe-d reports may be included in CMS pages and thus gain the forum style in some way, but still, you will have to filter the pages in some way for each customer and I believe this is not too easy.

If this is going to be a request of say 100 paying users of this product, I may think about it. But just for one, I'm sorry, that's too much work for a small looking, but quite complex addition ;)

You may try to modify the statistics page to make it look better. I believe a fairly clever designer may give it a visual boost via CSS ...

Thanks for the reply but I think you're misunderstanding what I'm getting at entirely.

I understand there's no way to rotate the iframe, I'm not trying to do that.

Let me try to explain this better, because I'm pretty sure it's not as much work as you think it is.

All I'm trying to do, is format your statistics page to look like the forum.

The link I provided, is instructions from Lynne on how to create a custom vbulletin page. Read that thread.

So, the custom page is editable via a custom template in the style manager.

You paste the content of your custom page into this template... Which means, ideally you should be able to copy and paste all code from rbs_stats.php into the custom template.

So now your 'custom page' should be doing the same exact thing rbs_stats is doing.

The only problem is the code is not formatted correctly when you paste it into the new template. It might be as simple as removing a couple <?php's and a couple >'s might solve the problem but I'm not sure.

Does that make more sense?

y2ksw 04-25-2012 11:15 PM

Quote:

Originally Posted by addamroy (Post 2323460)
Thanks for the reply but I think you're misunderstanding what I'm getting at entirely.

I understand there's no way to rotate the iframe, I'm not trying to do that.

Let me try to explain this better, because I'm pretty sure it's not as much work as you think it is.

All I'm trying to do, is format your statistics page to look like the forum.

The link I provided, is instructions from Lynne on how to create a custom vbulletin page. Read that thread.

So, the custom page is editable via a custom template in the style manager.

You paste the content of your custom page into this template... Which means, ideally you should be able to copy and paste all code from rbs_stats.php into the custom template.

So now your 'custom page' should be doing the same exact thing rbs_stats is doing.

The only problem is the code is not formatted correctly when you paste it into the new template. It might be as simple as removing a couple <?php's and a couple >'s might solve the problem but I'm not sure.

Does that make more sense?

The statistics are made of PHP code and HTML. There is no way to just paste the contents in a new template and hope it will run. It needs coding (and maintaining) on one side, where the maintainment is my concern.

If I had a page I would also have to follow up each time vBulletin updates. As it is now, I can easily forget about it and keep it going from version 3.6.5 onwards with no additional problems.

If you look into rbs_stats.php, you I have already included the basics, because it is a custom page. But it doesn't use templates, because they wouldn't show on 3.x boards ;)

addamroy 04-26-2012 12:43 AM

Ahh I see. Bummer, not as simple as I thought :(

Thanks for putting up with me though.

webmaster74 04-27-2012 10:16 PM

Where do I find information on how to upgrade to the new version ?

I can't find a readme file in the package, and can't find this information here

Enough to disable the product and install the new one ?

do I need to uninstall the product first before upgrading?


All times are GMT. The time now is 04:51 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.03093 seconds
  • Memory Usage 1,767KB
  • 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_php_printable
  • (6)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