vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vBaffiliates5 - Allow Users to Add & Edit their Own Affiliate Links!!! (https://vborg.vbsupport.ru/showthread.php?t=47008)

NTLDR 12-27-2002 02:29 PM

I've an idea to rectify that ;)

Smoothie 12-27-2002 03:01 PM

Does the current system link the banner? I'd rather upload the banner to my own server, and have it displayed from there.

Smoothie 12-27-2002 03:16 PM

Just looked at the screen shots, very nice.

Chris M 12-27-2002 03:41 PM

Yes it does link the banner...I am working on the Hits version (v3) next, and then the "timed banner" addon for you:)

Satan

alkatraz 12-27-2002 05:24 PM

Cool hack!

Smoothie 12-27-2002 05:31 PM

Quote:

Originally posted by hellsatan
Yes it does link the banner...I am working on the Hits version (v3) next, and then the "timed banner" addon for you:)

Satan

I was wondering, would it be possible to allow an upload of the banner, instead of linking?

Something like this hack, which allows banner uploads. I really don't want someones banner slowing our site down.

Check it out:
https://vborg.vbsupport.ru/showthrea...hlight=vblinks

Chris M 12-27-2002 05:31 PM

Thanks alkatraz - v3 is very near to release:)

I just need to test the major new feature, which is "User Editability";)

Satan

Chris M 12-27-2002 05:34 PM

@Smoothie - It is possible...I just need to learn how to do a good Upload script that complies with the limitations set by each board...

Satan

Dean C 12-27-2002 07:39 PM

This looks nice satan... :p

Mystis 12-27-2002 09:00 PM

Quote:

Originally posted by hellsatan
@Smoothie - Controlling the Banner is proving to be difficult - Seeing as the url is stored, not the image, it is hard to find a way to limit the size of the banner...

Satan

That would be a simple one to get around.

PHP Code:

/* Add to functions.php */
function checkimagesize($imageurl){
    global 
$maxwidth$maxheight;
    
$size getimagesize($imageurl);
    if(
$size[0]>=$maxwidth&&$size[1]>=$maxheight){
        return 
true;
    }else{
        return 
false;
    }
}

/* Usage */
if(checkimagesize($image)){
    
//display
}else{
    
//skip this ad and get another one


Code's untested, but it should work.


All times are GMT. The time now is 03:15 PM.

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.01188 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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