Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by habu (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 06-07-2001 Last Update: Never Installs: 0
 
No support by the author.

Its looks as if many vBulletin users also use phpAdsNew.
The far best way to use phpAdsNew is the local mode with the view() function.
Using the remote invocation with JavaScript is slow and the direct <IMG> Tag doesn't work with some IE versions, doesn't support html-banners and other features of phpAdsNew.
However if you use the view() or view_raw() function in the "PHP parsed code' section within the styles configuration in the control panel, you're doing a big mistake!

As pointed out by fastforward in this post:
http://161.58.84.213/forum/showthrea...new#post121891
the counting of adview is wrong. Embarrising toward your advertising customer and bag for the click ratio.
We have a problem to solve.
Bad publicity on wrong banner counts on forums is not good for any of us.

Let's get together and think of the easiest, most compatible way to work with phpAdsNew in local mode.
My first idea is to create a new template wich will only be parsed on every static page. A static page does not include the intermediate, redirecting pages after searches or posts.
The bad thing about it is that one would have to hack just about every .php script.

Is it possible to use the dooutput() function for this?
Can we hook the evaluation of our second, page related, php parsed template to this function?
I'm not to far into the code of vBulletin, but this aproach looks ok to me.
What do the vB-Pro say?

Does anyone have a better idea how to tackle the problem?

____________________
phpAdsNew is a very vivid OpenSource project and I guess worth supporting.
BTW, it's a pitty vB isn't OpenSource. I bet you could by now make a living by distributing hacks. You have many people supporting vB with hacks. THEY are making it a better product, too. Don't just use them. But that's a different topic - Please only reply to the phpAdsNew topic to keep this thread 'clean'.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-07-2001, 05:59 PM
Robert Basil's Avatar
Robert Basil Robert Basil is offline
 
Join Date: Oct 2001
Location: Chandler, Arizona
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by habu
Using the remote invocation with JavaScript is slow
We serve over 150,000 banner views a day with phpADSNEW using the JavaScript option and it runs just fine for us. Not slow at all.
Reply With Quote
  #3  
Old 06-07-2001, 10:37 PM
chrispadfield's Avatar
chrispadfield chrispadfield is offline
 
Join Date: Oct 2001
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

one simple way i can think of to create a php file for your included stuff (phpads stuff), and then in forumhome.php, showthread.php, forumdisplay.php, private.php, usercp.php, search.php, misc.php and a few others, just require it. Yes it is a bit of work but not something that will take more than 5 minutes.
Reply With Quote
  #4  
Old 06-07-2001, 10:43 PM
eva2000's Avatar
eva2000 eva2000 is offline
 
Join Date: Oct 2001
Location: Brisbane, Australia
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Sportbikeworld


We serve over 150,000 banner views a day with phpADSNEW using the JavaScript option and it runs just fine for us. Not slow at all.
same here just upgraded to phpadsnew beta 4 from beta 2 and server just under 100,000 banner views/day but some sites use remote invocation with javascript and some without... no probs here
Reply With Quote
  #5  
Old 06-08-2001, 11:18 AM
habu
Guest
 
Posts: n/a
Default

Well, ok, I didn't say JavaScript is *death slow*, but it is of course slower that the local mode. If you use html-ads and have about 10 text-ads, the page is significant slower than in local mode.
Anyway, and if its only for the sports of it, there might be an easy way to get it done in local mode.

Yes, Chrispadfield, hacking all those php scripts will do. And your right it won't take to long. But the thing is one would have to do it after every upgrade. Even more critical: you have to think about it for every upgrade, since the upgrade might introduce new 'outputs'.

That's why i thought of putting it into the output() function. It's at a central place there and should be caught every time an output is performed.?
Is it ok to do it there? Is there a catch to it, or a better function to hook it onto?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:06 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06135 seconds
  • Memory Usage 2,235KB
  • Queries Executed 18 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (3)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete