PDA

View Full Version : Need help....


Sateknic
11-28-2006, 07:26 PM
I've installed this script over at TalkDevelopers.com.

The problem I have is I'm not quite sure what I have to do in order for the advertisements to display.

Setup: 468x60 banners in header, text links and 125x125 advertisements on the main page.

I tried the string it tells you to use in the skins, but I'm not sure which number, etc.

Any help would be greatly appreciated,
Adam Scoville.

The Geek
11-28-2006, 07:41 PM
Can you post the contents of the debug in a post between [php] tags?

Sateknic
11-28-2006, 07:45 PM
>> 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/sitefana/public_html/geek/gab/images',
'media_extensions' =>'',
'url_to_banners' =>'http://www.talkdevelopers.com/geek/gab/images/',
'url_advertising' =>'',
'url_turn_off_ads' =>'',
'redirectpage' =>'gab_redirect.php',
'cyclerate' =>'4300',
'persist_throttle' =>'',
'blocks' => array(
'1' => array(
'title' =>'Default',
'wrapper' =>'1',
'method' =>'1',
'ads' => array(
'0' => array(
'adtype' =>'1',
'number' =>'1',
'cat_option' =>'1',
'cats' =>'',
),
),
),
),
'scripts' => array(
'MASTER' => array(
'name' =>'MASTER',
'description' =>'',
'usemaster' =>'0',
'blocks' => array(
'0' =>'1',
),
),
'forumdisplay' => array(
'name' =>'forumdisplay',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'showthread' => array(
'name' =>'showthread',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'index' => array(
'name' =>'index',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'editpost' => array(
'name' =>'editpost',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'newthread' => array(
'name' =>'newthread',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'calendar' => array(
'name' =>'calendar',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'online' => array(
'name' =>'online',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'printthread' => array(
'name' =>'printthread',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'profile' => array(
'name' =>'profile',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'search' => array(
'name' =>'search',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'usercp' => array(
'name' =>'usercp',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'adv_index' => array(
'name' =>'adv_index',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'THIS_SCRIPT' =>'',
),
'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',
),
);

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

$results = array(
);

>> END ADS -------

Templates with $GAB_ads[x] in them:
gab folder check

Warning: fopen(/home/sitefana/public_html/geek/gab/images/thisisatest.htm) [function.fopen]: failed to open stream: Permission denied in /admincp/GAB_admin.php on line 1908

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

Warning: fclose(): supplied argument is not a valid stream resource in /admincp/GAB_admin.php on line 1910
GAB directory is valid, but the server process can not write to it. Either give the apache process ownership to the folder or chmod it to 0777

The Geek
11-28-2006, 07:50 PM
According to that configuration - $GAB_ads[0] will have the output in it. You can see what numbers billboards are assigned to by admincp->gab->scripts->master

There you will see a list of each $GAB_ads[x] and which (if any) billboard is assigned to it.

Problem is, you dont have any banners uploaded yet and your permissions are set yet (chmod geek/gab/images and subfolders to 0777)

HTHs!

Sateknic
11-28-2006, 08:49 PM
All I see in the dropdown boxes is Default.

What would I do if I wanted 468x60 ads in the header, text links and some other ads below that to the side of the forums?

I apologize, I'm new to this and want to get it working properly.

The Geek
11-29-2006, 07:03 AM
You need to create additional billboards with additional ads. Right now you only have 1 billboard (default) with 1 ad configured.

Sateknic
11-29-2006, 11:08 PM
I've managed to get text links working.

Now, my other problem is it's only picking up one 1 text link and I have 2 or 3 there right now. Any help on that?

The Geek
11-30-2006, 07:56 AM
can you repost your debug data?

Sateknic
11-30-2006, 10:23 AM
>> 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/sitefana/public_html/geek/gab/images',
'media_extensions' =>'',
'url_to_banners' =>'http://www.talkdevelopers.com/geek/gab/images/',
'url_advertising' =>'',
'url_turn_off_ads' =>'',
'redirectpage' =>'gab_redirect.php',
'cyclerate' =>'4300',
'persist_throttle' =>'',
'blocks' => array(
'1' => array(
'title' =>'Default',
'wrapper' =>'1',
'method' =>'1',
'ads' => array(
'0' => array(
'adtype' =>'1',
'number' =>'1',
'cat_option' =>'1',
'cats' =>'',
),
),
),
'2' => array(
'title' =>'Text Links',
'wrapper' =>'0',
'method' =>'1',
'ads' => array(
'0' => array(
'adtype' =>'3',
'number' =>'30',
'cat_option' =>'2',
'cats' => array(
'0' =>'4',
),
),
),
),
),
'scripts' => array(
'MASTER' => array(
'name' =>'MASTER',
'description' =>'',
'usemaster' =>'0',
'blocks' => array(
'0' =>'1',
'1' =>'2',
),
),
'forumdisplay' => array(
'name' =>'forumdisplay',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'showthread' => array(
'name' =>'showthread',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'index' => array(
'name' =>'index',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'editpost' => array(
'name' =>'editpost',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'newthread' => array(
'name' =>'newthread',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'calendar' => array(
'name' =>'calendar',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'online' => array(
'name' =>'online',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'printthread' => array(
'name' =>'printthread',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'profile' => array(
'name' =>'profile',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'search' => array(
'name' =>'search',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'usercp' => array(
'name' =>'usercp',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'adv_index' => array(
'name' =>'adv_index',
'description' =>'',
'usemaster' =>'1',
'blocks' => array(
),
),
'THIS_SCRIPT' =>'',
),
'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',
),
);

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

$results = array(
'2' => array(
'id' =>'2',
'title' =>'Brius',
'startdate' =>'1164603600',
'enddate' =>'1167195600',
'img' =>'',
'hits' =>'0',
'views' =>'0',
'url' =>'',
'userid' =>'0',
'max_views' =>'0',
'max_hits' =>'0',
'isactive' =>'1',
'height' =>'0',
'width' =>'0',
'frequency' =>'2',
'type' =>'3',
'template' =>'0',
'catid' =>'4',
'trackviews' =>'1',
'trackhits' =>'1',
'scriptoption' =>'1',
'forumoption' =>'1',
'scripts' =>'',
'forums' =>'',
'html' =>'<a href="http://www.brius.com/" target="_blank">Brius Hosting</a> <br />',
'templatetype' =>'0',
'suspended' =>'0',
'editimage' =>'0',
'editfrequency' =>'0',
'editbanner' =>'0',
),
'3' => array(
'id' =>'3',
'title' =>'AdamScoville',
'startdate' =>'1164776400',
'enddate' =>'1167368400',
'img' =>'',
'hits' =>'0',
'views' =>'0',
'url' =>'',
'userid' =>'0',
'max_views' =>'0',
'max_hits' =>'0',
'isactive' =>'1',
'height' =>'0',
'width' =>'0',
'frequency' =>'2',
'type' =>'3',
'template' =>'0',
'catid' =>'4',
'trackviews' =>'1',
'trackhits' =>'1',
'scriptoption' =>'1',
'forumoption' =>'1',
'scripts' =>'',
'forums' =>'',
'html' =>'<a href="http://www.adamscoville.net/" target="_blank">AdamScoville.net</a> <br />',
'templatetype' =>'0',
'suspended' =>'0',
'editimage' =>'0',
'editfrequency' =>'0',
'editbanner' =>'0',
),
);

>> END ADS -------

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

Warning: fopen(/home/sitefana/public_html/geek/gab/images/thisisatest.htm) [function.fopen]: failed to open stream: Permission denied in /admincp/GAB_admin.php on line 1908

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

Warning: fclose(): supplied argument is not a valid stream resource in /admincp/GAB_admin.php on line 1910
GAB directory is valid, but the server process can not write to it. Either give the apache process ownership to the folder or chmod it to 0777


Also all the folders are set to CHMOD 777 and it's still saying that error.

The Geek
11-30-2006, 12:11 PM
THere are only 2 ads in there. You have 2 blocks assigned in your master script:
$GAB_ads[0]
and
$GAB_ads[1]

But you only have $GAB_ads[1] in your forumhome template. Put $GAB_ads[0] in a template and another will appear.

Sateknic
11-30-2006, 07:10 PM
I put it in the header template, but it's still randomly making 1 text link appear of the forumhome.

I want this to be a list of different text links so more than one can appear.

http://www.talkdevelopers.com/ <- is my site

http://www.talkfreelance.com/ <- If you look down the left side you'll see what I mean.

The Geek
11-30-2006, 09:54 PM
Sorry, but what am I looking for there? Right now, you only have 1 block in the forumdisplay template. I would encourage you to place that in the navbar personally, but then again Im not sure what layout you are going for.

The other thing of note is that one of your billboards are set up to only pull from a specific category. You may want to clear that as it could be causing problems.

Sateknic
11-30-2006, 10:31 PM
You're looking at the "Partner Links" box on the left hand side, towards the bottom of http://www.talkfreelance.com/

That is the goal I'm trying to achieve. I hope that helps.

The Geek
12-01-2006, 08:05 AM
send me a pm with an admin account and ill check into it

Sateknic
12-01-2006, 10:15 AM
I've sent you a PM.

Sateknic
12-03-2006, 06:24 PM
Have you had time to look this over with the information in the PM I sent you.

The Geek
12-04-2006, 05:38 PM
Last chance I had was when I PMed you on Saturday about not being able to get in. My wife wisked me away for the weekend on a surprise trip to Prague. I just rolled back in. Ill most likely get it tomorrow.

Thanks :)

Sateknic
12-05-2006, 01:53 AM
Sounds good to me, look forward to it. :)