Jump to content

circpros

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

circpros's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello.... I am basically familiar with PHP, but mostly from taking existing code and tweaking it for my uses.... this issue is related to just such a venture... I use an outdated and heavily hacked up phpbb2 board to serve formatted posts through a syndication script, syndicating the data to various places around my site. The script worked great for a few years, but I was doing some updating of some elements and screwed up and overwrote the main site. When I have tried to duplicate the previous function, I am getting 'headers already sent' errors. Here are the errors: Here is the block of code that is producing the error: <?php $phpbb_root_path = './listings/'; define ('IN_PHPBB', true); if (!file_exists($phpbb_root_path . 'extension.inc')) { die ('<tt><b>phpBB Fetch All:</b> $phpbb_root_path is wrong and does not point to your forum.</tt>'); } include_once ($phpbb_root_path . 'extension.inc'); include_once ($phpbb_root_path . 'common.' . $phpEx); include_once ($phpbb_root_path . 'includes/bbcode.' . $phpEx); include_once ($phpbb_root_path . 'mods/phpbb_fetch_all/common.' . $phpEx); include_once ($phpbb_root_path . 'mods/phpbb_fetch_all/posts.' . $phpEx); [b]$userdata = session_pagestart($user_ip, PAGE_INDEX); init_userprefs($userdata); [/b]$news = phpbb_fetch_posts(); phpbb_disconnect(); ?> <?php for ($i = 0; $i < count($news); $i++) { ?> Posted: <?php echo $news[$i]['date']; ?> <h2> <?php echo $news[$i]['topic_title']; ?> </h2> <br> <?php echo $news[$i]['post_text']; ?> <hr size="1"/> <p /> <?php } ?> I'm thinking that the issue is related to the session management request (bold in the code), but I am not sure, and even if it is, I can't figure out the correction to resolve the error.... Any help would be greatly appreciated. I can provide any additional info that might help you help me .
  2. I had just tried that, but left out a ". Thanks so much..... I was getting a headache.
  3. What is showing as [/url] is really a </a> . Presumably the forum here is replacing the offending html.....
  4. oops.... I've got to many snippets on the clipboard. There is the section I wanted..... WHen I try it like this: I get this:
  5. I'm trying to get this bit of code to call as it currently does, but to open in a new window. But I can't figure out where to put the Target="_blank". I keep trying, but everytime I get parse errors..... am I trying something that won't work here? TIA
  6. phpbb_users is generally what it is called. Unless you have altered it, that is.....
  7. PHP_fetch_all is a script I've used to be able to do a portal of sorts. It allows you to syndicate virtually any forum data onto (an)other page(s) of your site. If all you're wanting to do is to be able to serve data from your forums onto other pages of your site and to be able to log in from the site home, PHP_fetch_all and the previously mentioned login mod will do what you're wanting. If you're wanting to fully port your forum, why not select one of the full portals that have already been written? I guess I'm not understanding what it is you're wanting that nuke or another portal wont do.... And you can always just skin your forum to look like your current site and add blank pages to your forum installation so that you can integrate static/informational pages (there are several mods to do it effectively). THe final suggestion would be what I'd probably do if the forum is the main drawing card for your site....... If you can clarify what it is you're hoping to accomplish, maybe I can be of assitance. I'm not a pro, but my thinking is regimented and I can read a manual.
  8. Got it... Missing the "PRIMARY KEY ( `cat_id` )". I knew it had to be an easy fix, but the error syntax was leading me to belive it was more intricate.
  9. I'm trying to create a table from a forum modification with this command: CREATE TABLE `phpbb_ina_cat` ( `cat_id` mediumint(8) NOT NULL auto_increment, `mod_id` mediumint(8) default NULL, `cat_name` varchar(100) default NULL, `cat_desc` text, `icon` varchar(255) default NULL, `special_play` smallint(5) NOT NULL default '0', `last_game` varchar(25) default NULL, `last_player` mediumint(8) default NULL, `last_time` int(11) default NULL ); And it gives me this error: I'm new to using mysql, and I'm not certain how to define the key. I'm also not seeing where I am defininf multiple auto colums. I'm hoping someone more experienced than I can point out the problem for me.... Thanks in advance.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.