PHP in wordpress - No Bridging

Do not post support requests, bug reports or feature requests. Discuss phpBB here. Non-phpBB related discussion goes in General Discussion!
Scam Warning
Post Reply
sao13
Registered User
Posts: 8
Joined: Tue Mar 09, 2010 11:11 pm

PHP in wordpress - No Bridging

Post by sao13 »

So I have been reading quite a bit around here and everytime I see a topic for placing a phpbb3 forum into a wordpress page I either end up reading a 50 page post ranting about something else or it is about bridging it with wp-united. Anyways, all I want is my background, header, and footer so it look exactly like the rest of my site. I don't know a ton of php or html, but if you show me where to look i think I could manage.

This is my current site: (Still workin on it) http://www.s6gaming.net/

Example site of what I want to do: http://gamereuphoria.com/forum/

Both wordpress templates are actually the same. Sorry if this is already a topic here but after reading 120+ pages i got tired of reading haha. Thanks in advance.

P.S. - I do not want to use iframes.
User avatar
Truemedia
Registered User
Posts: 150
Joined: Fri Oct 03, 2008 2:21 pm
Location: Castleford, West Yorkshire

Re: PHP in wordpress - No Bridging

Post by Truemedia »

If you did into the code you can easily do that quite quickly. I have something soon that mite help for your header but paid so I can't post.

These are files you need to edit for header and footer in phpbb:
styles/yourstyle/template/overall_header.html
styles/yourstyle/template/overall_footer.html

somebody can probably post link for an old background answer I seen it answered before.

For wordpress there forum is dreadful for find out code :?, but I reckon I could find you the header and footer equivalent if gave me some info on your theme.
PM me about any topics I have made if you have any questions about them. I'm available for paid hire on creating mods and styles for phpBB, or configuration/installation - PM for quote
Other open source project forums I'm on: Area51
sao13
Registered User
Posts: 8
Joined: Tue Mar 09, 2010 11:11 pm

Re: PHP in wordpress - No Bridging

Post by sao13 »

sick thanks, yea i can probably figure out the background, i really just want to wrap it. I am using the GameNow theme from WP Now, but i did a bit of remodeling. Didn't change much in the theme coding though.

Hear is my header:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<!-- Title -->
		<title><?php wp_title('&laquo;', true, 'right'); ?><?php bloginfo('name'); ?></title>
		
		<!-- Content Type -->
		<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
		
		
		<!-- Link REL / CSS -->
		<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" />
		<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
		<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
		<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
		
		<!-- Default Style -->
		<?php if($_COOKIE['style'] && get_wpn_config('allow_color_switch') == 2) : ?>
			<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/<?php echo $_COOKIE['style'].'.css'; ?>" />	
		<?php elseif(get_wpn_config('default_color')): ?>
			<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/<?php echo get_wpn_config('default_color').'.css'; ?>" />
		<?php else: ?>
			<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/style-dark.css" />
		<?php endif; ?>
		
		<!-- Light / Dark CSS -->
		<link rel="alternate stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/style-light.css" title="style-light" media="screen" />
		<link rel="alternate stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/style-dark.css" title="style-dark" media="screen" />
		
		<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
		<?php wp_head(); ?>
		
		<!-- Javascript -->
		<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery-1.3.2.min.js"></script>
		<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/common.js"></script>
	</head>
	<body>		
		<!-- Top -->
		<a name="top" id="top"></a>
		<div class="topbg"></div>
		
		<!-- Wrapper // -->
		<div class="wrapper">
			<!-- Header // -->
			<div class="header">
				<!-- Logo -->
				<h1><a href="<?php echo get_option('home'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/img/logo-trans.png" alt="" /><span style="display:none;"><?php echo (is_home()) ? bloginfo('name') : single_post_title()  ?></span></a></h1>
				<!-- Top Links // -->
				
				<!-- // Top Links -->
				
				<!-- Search // -->
				
				<!-- // Search -->
				
				<?php if(get_wpn_config('allow_color_switch') == 2) : ?>
				<!-- Buttons -->
				<a class="button button-dark styleswitch" rel="style-dark" href="#">Dark</a>
				<a class="button button-light styleswitch" rel="style-light" href="#">Light</a>
				<?php endif; ?>
				
				<!-- Menu // -->
				<ul class="menu">
					<li><a href="<?php echo get_option('home'); ?>">Home</a></li>
					<?php
					if(get_wpn_config('menu_display') == 2) {
						$menu_filter = '&include='.get_wpn_config('menu_filter');
					}
					if(get_wpn_config('menu_display') == 3) {
						$menu_filter = '&exclude_tree='.get_wpn_config('menu_filter');
					}
					wp_list_pages('sort_column=menu_order&title_li=&depth=0'.$menu_filter);
					?>
				</ul>
				<!-- // Menu -->
				
				<!-- Submenu // -->
				<ul class="submenu">
					<?php
					if(get_wpn_config('submenu_display') == 2) {
						$submenu_filter = '&include='.get_wpn_config('submenu_filter');
					}
					if(get_wpn_config('submenu_display') == 3) {
						$submenu_filter = '&exclude='.get_wpn_config('submenu_filter');
					}
					wp_list_categories('sort_column=menu_order&title_li=&show_count=0'.$submenu_filter);
					?>
				</ul>
				<!-- // Submenu -->
			</div>
			<!-- // Header -->
			
			<?php if(is_home() && !get_query_var('paged')) : ?>
			<!-- Featured / Top Articles // -->
			<div class="ftop">
				<?php if(get_wpn_config('featured_category_id')) : ?>
					<div class="featured">
						<div class="fthumbs">
							<?php $i = 0; $featured = new WP_Query("cat=".get_wpn_config('featured_category_id')."&showposts=5"); while($featured->have_posts()) : $featured->the_post();?>
							<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><img src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="" <?php if($i == 0) echo 'class="active" '; ?>/></a><br />
							<?php $i++; endwhile; $i = 0; ?>
						</div>
						<div class="fwrap">
							<ul>
								<?php $featured = new WP_Query("cat=".get_wpn_config('featured_category_id')."&showposts=5"); while($featured->have_posts()) : $featured->the_post();?>
								<li>
									<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><img src="<?php echo get_post_meta($post->ID, "featured_thumbnail", true); ?>" width="630" height="230" /></a>
									<div>
										<a class="title" href="<?php the_permalink(); ?>"><?php the_title(); ?></a><br />
										<?php wpn_content_limit(get_the_content(),90); ?>
										<a href="<?php the_permalink(); ?>">more</a>
									</div>
								</li>
								<?php endwhile; ?>
							</ul>
						</div>
					</div>
				<?php endif; ?>
				<div class="top">
					<span class="heading1"><span>Top Articles</span></span>
					<ul>
					<?php
						$sql = "
							SELECT *
							FROM $wpdb->posts
							WHERE post_date_gmt > FROM_UNIXTIME(".(time()-1209600).") AND post_type = 'post'
							ORDER BY comment_count DESC LIMIT 5
						";
						
						$top_posts = $wpdb->get_results($sql);

						foreach ($top_posts as $post)  {
							?>
							<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a><span><a class="comments" href="<?php the_permalink(); ?>#comments"><?php echo $post->comment_count; ?> Comments</a>Posted Under: <?php the_category(', '); ?></span></li>
							<?
						}
					?>
					</ul>
				</div>
				<div class="clear"></div>
			</div>
			<!-- // Featured / Top Articles -->
			<?php endif; ?>
			
			<!-- Content // -->
			<div class="content">
				<!--[if lt IE 7]>
				<div style='border: 1px solid #F7941D; background: #FEEFDA; text-align: center; clear: both; height: 75px; position: relative;'>
					<div style='position: absolute; right: 3px; top: 3px; font-family: courier new; font-weight: bold;'><a href='#' onclick='javascript:this.parentNode.parentNode.style.display="none"; return false;'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-cornerx.jpg' style='border: none;' alt='Close this notice'/></a></div>
					<div style='width: 640px; margin: 0 auto; text-align: left; padding: 0; overflow: hidden; color: black;'>
					<div style='width: 75px; float: left;'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-warning.jpg' alt='Warning!'/></div>
					<div style='width: 275px; float: left; font-family: Arial, sans-serif;'>
					<div style='font-size: 14px; font-weight: bold; margin-top: 12px;'>You are using an outdated browser</div>
					<div style='font-size: 12px; margin-top: 6px; line-height: 12px;'>For a better experience using this site, please upgrade to a modern web browser.</div>
					</div>
					<div style='width: 75px; float: left;'><a href='http://www.firefox.com' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-firefox.jpg' style='border: none;' alt='Get Firefox 3.5'/></a></div>
					<div style='width: 75px; float: left;'><a href='http://www.browserforthebetter.com/download.html' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-ie8.jpg' style='border: none;' alt='Get Internet Explorer 8'/></a></div>
					<div style='width: 73px; float: left;'><a href='http://www.apple.com/safari/download/' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-safari.jpg' style='border: none;' alt='Get Safari 4'/></a></div>
					<div style='float: left;'><a href='http://www.google.com/chrome' target='_blank'><img src='http://www.ie6nomore.com/files/theme/ie6nomore-chrome.jpg' style='border: none;' alt='Get Google Chrome'/></a></div>
					</div>
				</div>
				<![endif]-->

Footer:

Code: Select all

				<!-- Clear -->
				<div class="clear"></div>
				
				<!-- Bottom Links // -->
				<div class="bottomlinks">
					<ul class="cats">
						<?php wp_list_categories('sort_column=menu_order&title_li=&depth=1&show_count=0&include='.get_wpn_config('menu_include').'&exclude='.get_wpn_config('menu_exclude')); ?>
					</ul>
					<ul class="pages">
						<li><a href="<?php echo get_option('home'); ?>">Home</a></li>
						<?php wp_list_pages('sort_column=menu_order&title_li=&depth=1&include='.get_wpn_config('toplinks_include').'&exclude_tree='.get_wpn_config('toplinks_exclude')); ?>
					</ul>
				</div>
				<!-- // Bottom Links -->
			</div>
			<!-- // Content -->
			
			<!-- Footer // -->
			<div class="footer">
				<div class="fleft">
					<img src="<?php bloginfo('stylesheet_directory'); ?>/img/logo_small-trans.png" alt="" /><br />
					Copyright &copy; 2010 <?php bloginfo('name'); ?>. All rights reserved.
				</div>
			
			</div>
			<!-- // Footer -->
		</div>
		<!-- // Wrapper -->
		<?php wp_footer(); ?>
	</body>
</html>
Pony99CA
Registered User
Posts: 4783
Joined: Thu Sep 30, 2004 3:13 pm
Location: Hollister, CA
Name: Steve
Contact:

Re: PHP in wordpress - No Bridging

Post by Pony99CA »

sao13 wrote:[...]i can probably figure out the background, i really just want to wrap it. I am using the GameNow theme from WP Now, but i did a bit of remodeling. Didn't change much in the theme coding though.
I don't know if it will help much, but you could try looking at the Problems Getting Common Site Logo and Menu Bar Positioned topic.

Steve
Silicon Valley Pocket PC (http://www.svpocketpc.com)
Creator of manage_bots and spoof_user (ask me)
Need hosting for a small forum with full cPanel & MySQL access? Contact me or PM me.
sao13
Registered User
Posts: 8
Joined: Tue Mar 09, 2010 11:11 pm

Re: PHP in wordpress - No Bridging

Post by sao13 »

Thats actually very close to what i am looking for thank you, from one steve to another haha. Just gotta put the footer in there then. I will look more into it once i get some of my work done tonight, hopefully will start coding it tonight and tomorrow.
User avatar
Truemedia
Registered User
Posts: 150
Joined: Fri Oct 03, 2008 2:21 pm
Location: Castleford, West Yorkshire

Re: PHP in wordpress - No Bridging

Post by Truemedia »

If you are struggling to get it done, I just started coding the wordpress part of my module today and am willing to write a phpbb part if you want to negotiate something. :D
PM me about any topics I have made if you have any questions about them. I'm available for paid hire on creating mods and styles for phpBB, or configuration/installation - PM for quote
Other open source project forums I'm on: Area51
sao13
Registered User
Posts: 8
Joined: Tue Mar 09, 2010 11:11 pm

Re: PHP in wordpress - No Bridging

Post by sao13 »

not that im struggling i just have a ton of college work. But i want to try to code it myself so I can do it in the future if need be :P Thanks for the offer though.
Post Reply

Return to “phpBB Discussion”