PDA

View Full Version : constant download of images


wez
12-14-2006, 01:07 PM
Hi first off I don't know if this i something i did wrong or if its a problem with the GAB. but the only answer i was left with was to un install.

anyway , here's what happened

I got a surprising email from my service provider complaining i was using more than my fair share of resources on the server, i.e i was pestering the sql too many times

when i looked into it, and im no expert, it seems its gab
in internet explorer on the bottom of the screen it kept coming up very two seconds downloading image from www.url.com even when the advert was not there, or shouldn't have been

the same thing happened in firefox but wasn't as obvious, so every person guest or member visiting my site was getting this, again like i said, i have absolutely no idea if it was this or not that caused the outage for me on my server, but an annoying hourglass every other second was enough for me to disable it.

if its something im doing wrong I'd love to know because this is a little gem of a hack and its exactly what i need for my sponsors.

on another note, again probably something i am doing wrong but i also kept seeing an empty advert in placers where i hadn't set them, this only happens when I have the template turned on..

any help would be greatly appreciated

cheers

The Geek
12-14-2006, 01:53 PM
Can you post your debug between [php] tags here for me to see?

wez
12-14-2006, 09:28 PM
i presume i need to re enable it, been threatened of my service provider is all

The Geek
12-15-2006, 07:32 AM
Just enable it, hit the debug and then disable it.

wez
12-18-2006, 12:47 AM
OK Here you go....

>> START SETTINGS -------

$results = array(
'usergroups' => array(
),
'usergroups_view' => array(
'0' =>'4',
'1' =>'6',
'2' =>'8',
'3' =>'7',
'4' =>'2',
'5' =>'5',
'6' =>'1',
'7' =>'3',
),
'fieldtotoggle' =>'1',
'field_value_yes' =>'',
'max_width' =>'',
'max_height' =>'',
'server_path_to_banners' =>'/home/cgempi5/public_html/forum/geek/gab/images',
'media_extensions' =>'',
'url_to_banners' =>'http://www.cgempire.com/forum/geek/gab/images/',
'url_advertising' =>'',
'url_turn_off_ads' =>'',
'redirectpage' =>'gab_redirect.php',
'cyclerate' =>'4300',
'persist_throttle' =>'',
'blocks' => array(
'1' => array(
'title' =>'Default',
'wrapper' =>'0',
'method' =>'1',
'ads' => array(
'0' => array(
'adtype' =>'1',
'number' =>'1',
'cat_option' =>'2',
'cats' =>'',
),
),
),
'2' => array(
'title' =>'art compo sponsor',
'wrapper' =>'0',
'method' =>'2',
'ads' => array(
'0' => array(
'adtype' =>'1',
'number' =>'2',
'cat_option' =>'2',
'cats' => array(
'0' =>'1',
),
),
),
),
'3' => array(
'title' =>'music',
'wrapper' =>'0',
'method' =>'1',
'ads' => array(
'0' => array(
'adtype' =>'1',
'number' =>'1',
'cat_option' =>'2',
'cats' => array(
'0' =>'6',
),
),
),
),
'4' => array(
'title' =>'top of forum1',
'wrapper' =>'1',
'method' =>'1',
),
),
'scripts' => array(
'MASTER' => array(
'name' =>'MASTER',
'description' =>'',
'usemaster' =>'0',
'blocks' => array(
'1' =>'2',
'2' =>'3',
'4' =>'4',
),
),
'forumdisplay' => array(
'name' =>'forumdisplay',
'description' =>'',
'usemaster' =>'0',
'blocks' => array(
'4' =>'4',
),
),
'showthread' => array(
'name' =>'showthread',
'description' =>'',
'usemaster' =>'0',
'blocks' => array(
'1' =>'2',
'2' =>'3',
),
),
'index' => array(
'name' =>'index',
'description' =>'',
'usemaster' =>'',
'blocks' => array(
),
),
'editpost' => array(
'name' =>'editpost',
'description' =>'',
'usemaster' =>'',
'blocks' => array(
),
),
'newthread' => array(
'name' =>'newthread',
'description' =>'',
'usemaster' =>'',
'blocks' => array(
),
),
'calendar' => array(
'name' =>'calendar',
'description' =>'',
'usemaster' =>'',
'blocks' => array(
),
),
'online' => array(
'name' =>'online',
'description' =>'',
'usemaster' =>'',
'blocks' => array(
),
),
'printthread' => array(
'name' =>'printthread',
'description' =>'',
'usemaster' =>'',
'blocks' => array(
),
),
'profile' => array(
'name' =>'profile',
'description' =>'',
'usemaster' =>'',
'blocks' => array(
),
),
'search' => array(
'name' =>'search',
'description' =>'',
'usemaster' =>'',
'blocks' => array(
),
),
'usercp' => array(
'name' =>'usercp',
'description' =>'',
'usemaster' =>'',
'blocks' => array(
),
),
'adv_index' => array(
'name' =>'adv_index',
'description' =>'',
'usemaster' =>'',
'blocks' => array(
),
),
'THIS_SCRIPT' => array(
'usemaster' =>'',
),
),
'frequency' => array(
'0' => array(
'description' =>'Low',
'value' =>'1',
),
'1' => array(
'description' =>'Medium',
'value' =>'2',
),
'2' => array(
'description' =>'High',
'value' =>'3',
),
'3' => array(
'description' =>'Mega High',
'value' =>'4',
),
),
);

>> END SETTINGS -------

Categories
>> START CATS -------

$results = array(
'1' => array(
'id' =>'1',
'title' =>'Header Banners',
'ordinal' =>'5',
),
'2' => array(
'id' =>'2',
'title' =>'Sky Scraper',
'ordinal' =>'20',
),
'3' => array(
'id' =>'3',
'title' =>'Footer Banners',
'ordinal' =>'10',
),
'4' => array(
'id' =>'4',
'title' =>'Other',
'ordinal' =>'30',
),
'5' => array(
'id' =>'5',
'title' =>'Unknown items',
'ordinal' =>'1',
),
'6' => array(
'id' =>'6',
'title' =>'music compo',
'ordinal' =>'3',
),
'7' => array(
'id' =>'7',
'title' =>'top of forum',
'ordinal' =>'0',
),
);

>> END CATS -------
>> START ADS -------

$results = array(
'1' => array(
'id' =>'1',
'title' =>'best3d',
'startdate' =>'0',
'enddate' =>'1170230400',
'img' =>'http://www.cgempire.com/forum/geek/gab/images/0/banner_dogwaffle_rampant.gif',
'hits' =>'1',
'views' =>'492',
'url' =>'http://www.thebest3d.com',
'userid' =>'0',
'max_views' =>'0',
'max_hits' =>'0',
'isactive' =>'1',
'height' =>'0',
'width' =>'0',
'frequency' =>'2',
'type' =>'1',
'template' =>'0',
'catid' =>'1',
'trackviews' =>'1',
'trackhits' =>'1',
'scriptoption' =>'2',
'forumoption' =>'2',
'scripts' =>'|showthread|',
'forums' =>'|129|113|98|',
'html' =>'',
'templatetype' =>'0',
'suspended' =>'0',
'editimage' =>'0',
'editfrequency' =>'0',
'editbanner' =>'0',
),
'2' => array(
'id' =>'2',
'title' =>'RTSquare',
'startdate' =>'0',
'enddate' =>'1170230400',
'img' =>'http://www.cgempire.com/forum/geek/gab/images/0/2rtsquaresmall.jpg',
'hits' =>'0',
'views' =>'177',
'url' =>'http://www.gputech.com/Cms/',
'userid' =>'0',
'max_views' =>'0',
'max_hits' =>'0',
'isactive' =>'1',
'height' =>'0',
'width' =>'0',
'frequency' =>'2',
'type' =>'1',
'template' =>'0',
'catid' =>'1',
'trackviews' =>'1',
'trackhits' =>'1',
'scriptoption' =>'2',
'forumoption' =>'2',
'scripts' =>'|showthread|',
'forums' =>'|129|113|98|',
'html' =>'',
'templatetype' =>'0',
'suspended' =>'0',
'editimage' =>'0',
'editfrequency' =>'0',
'editbanner' =>'0',
),
'4' => array(
'id' =>'4',
'title' =>'bela media',
'startdate' =>'0',
'enddate' =>'1170230400',
'img' =>'http://www.nikolas-sideris.com/cgempire/Bela-D-Media-CG_large.gif',
'hits' =>'1',
'views' =>'261',
'url' =>'http://www.beladmedia.com',
'userid' =>'0',
'max_views' =>'0',
'max_hits' =>'0',
'isactive' =>'1',
'height' =>'0',
'width' =>'0',
'frequency' =>'2',
'type' =>'1',
'template' =>'0',
'catid' =>'6',
'trackviews' =>'1',
'trackhits' =>'1',
'scriptoption' =>'2',
'forumoption' =>'2',
'scripts' =>'|forumdisplay|showthread|index|editpost|newthread |calendar|online|printthread|profile|search|usercp |adv_index|',
'forums' =>'|19|64|65|76|',
'html' =>'',
'templatetype' =>'0',
'suspended' =>'0',
'editimage' =>'0',
'editfrequency' =>'0',
'editbanner' =>'0',
),
);

>> END ADS -------

Templates with $GAB_ads[x] in them:
Styleid 18 Title navbar contains $GAB_ads[1]
Styleid 18 Title navbar contains $GAB_ads[2]
Styleid 18 Title navbar contains $GAB_ads[3]
gab folder check

Warning: fopen(/home/cgempi5/public_html/forum/geek/gab/images/thisisatest.htm): failed to open stream: Permission denied in /admincp/GAB_admin.php on line 1952

Warning: fputs(): supplied argument is not a valid stream resource in /admincp/GAB_admin.php on line 1953

Warning: fclose(): supplied argument is not a valid stream resource in /admincp/GAB_admin.php on line 1954
GAB directory looks valid and I can write to it!

vBulletin® v3.6.4, Copyright ©2000-2006, Jelsoft Enterprises Ltd.

wez
12-18-2006, 12:48 AM
just noticed the this is a test.htm would that cause a constant download ?

The Geek
12-18-2006, 08:26 AM
No, the test.html page is created as a test to see if gab can write to the upload directory. It cant most likely because the directory isnt chmodded right.
The other thing is that no ads will be pulled or displayed with the above configuration. Right now, its set up with only 1 billboard with ads tonly pulled from selected categories - and there are no categories selected, therefore no ads will be pulled.
I cant see for the life of me how this would cause any more than 1 query per page (and a teeny one at that). Are you sure that this is the script causing problems, I cant see how it could be.