MyBB Community Forums

Full Version: Plugins never work
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
nither one of my 2 diffrent ad programs seem to be willing to work. Here is a picture of an error I breafly saw while setting some stuff to activate.

[Image: error.gif]



Does anyone here use a plugin to add ad space to their sites? I am trying to insert the following code in the ad plugin and it does not seem to be working.

<?php
if (@include(getenv('DOCUMENT_ROOT').'/adrotate/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('', 0, '', '', '0', $phpAds_context);
echo $phpAds_raw['html'];
}
?>


It works on other pages. Let me know what you think
Make sure inc/settings.php has CHMOD 777 permissions.
But I removed the settings.php


???????/
like I said before it regenerates itself!

Do people never listen? Rolleyes
Sorry I should have said this. The settings.php did not redo itself. The last file listed in my inc folder now is init.php. So the settings.php is no there but the forum seems to be working just fine. hmmmmmm
You need to make your inc folder chmod 777, then go to your forum, then change the chmod back to 755 or something, then change the chmod of your settings.php to 777.
Then I go the error of

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/journey/public_html/petchat/inc/settings.php on line 39
Upload the settings.php here.
ok I have attached it to the post
I don't see anything wrong.
Pages: 1 2 3