Thread: Miscellaneous Hacks - Rotating Banner System
View Single Post
  #1867  
Old 04-25-2012, 03:59 PM
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Location: Italy
Posts: 1,418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by addamroy View Post
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 ...
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01292 seconds
  • Memory Usage 1,768KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete