My forums are not in my forum root folder. How do I proceed?
This is my error:
Warning: require_once(bitly.php) [function.require-once]: failed to open stream: No such file or directory in [path]/newthread.php(262) : eval()'d code on line 12
Fatal error: require_once() [function.require]: Failed opening required 'bitly.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxxx/public_html/dumontnjforum.com/forums/newthread.php(262) : eval()'d code on line 12
And here's my PHP:
PHP Code:
// The array below are the ids of non-public forums, update these to be your admin forum ids or anything non-public by default
$excludedForums = array(20);
// If you are having trouble getting bitly URL shortening to work... disable it!
$useBitly = true;
if (!in_array($foruminfo[forumid], $excludedForums)) {
$shortUrl = 'http://www.dumontnjforum.com/forums/showthread.php?t='.$newpost[threadid];
if ($useBitly) {
// http://classes.verkoyen.eu/bitly
require_once 'bitly.php';
$bitly = new Bitly('bitly username', 'bitly API KEY');
$shortUrl = $bitly->shorten('http://www.dumontnjforum.com/forums/showthread.php?t='.$newpost[threadid]);
}
$tweet = '';
if (isset($newpost['prefixid']) && $newpost['prefixid'] != '') {
$tweet = $vbphrase['prefix_'.$newpost['prefixid'].'_title_plain'].' ';
}
$tweet .= $newpost['title'].' '.$shortUrl;
// http://classes.verkoyen.eu/twitter/
require_once 'twitter.php';
$twitter = new Twitter('twitter username', 'twitter password');
$twitter->updateStatus($tweet);
}
Can someone please give me a hand?