Jump to content

Recommended Posts

Posted

ok this is how my site is setup.

 

wordpress is installed in the public_html

and smf is installed in public_html/forum

 

I want to copy the smf login from its header into my wordpress theme header. So when someone logs in it will take them into the forum. I don't want to use <?php ssi_login(); ?> method.

S2sRZ.png

 

I already know about ssi.php

  • 4 weeks later...
Posted

BUMP

 

Ok, since no one could help... I've started this on my own  :-\

I've accomplished what i wanted, but i ran into another small problem.

 

This is how i "Copied the smf login from the header of my theme into my wordpress header's theme".

 

First, I added this code to the top of my WP's themes header.php

require_once("forum/SSI.php");

 

Then i copied the following code from my smf themes index.template.php

// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
					else
					{
						echo '
							<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
							<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
								<div id="login_username">
									<p class="form_label">', $txt['username'], '</p>
									<input type="text" name="user" class="login_input" />
								</div>
								<div id="login_password">
									<p class="form_label">', $txt['password'], '</p>
									<input type="password" name="passwrd" class="login_input" />
								</div>
								<div class="clr"></div>
									<input id="login_button" type="submit" value="" name="submit" />
								<div id="reminder">
									<a href="', $scripturl, '?action=reminder">', $txt['forgot_pass'], '</a>
									<a href="', $scripturl, '?action=register">', $txt['create_account'], '</a>
								</div>';

						echo '
								<input type="hidden" name="hash_passwrd" value="" />
							</form>';
					}
			echo '
				</div>
			</div>
		</div>

Then i pasted it in my WP themes header.php and edited a bit...now it looks like this:

<div id="top_login">
	<div id="login_form">

					<script type="text/javascript" src="', $settings['forum/Themes/my-smf-theme'], '/scripts/sha1.js"></script>
							<form action="forum/?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
								<div id="login_username">
									<p class="form_label">Username</p>
									<input type="text" name="user" class="login_input" />
								</div>
								<div id="login_password">
									<p class="form_label">Password</p>
									<input type="password" name="passwrd" class="login_input" />
								</div>
								<div class="clr"></div>
									<input id="login_button" type="submit" value="" name="submit" />
								<div id="reminder">
									<a href="forum/?action=reminder">Forgot Password?</a>
									<a href="forum/?action=register">Register Now!</a>
								</div>
								<input type="hidden" name="hash_passwrd" value="" />
							</form>
				        </div>
			        </div>
		      </div>
	    </div>

After that i copied and pasted this code (with edits) from my smf theme's index.css into my wordpress style.css

/* Login Code - Start */
#top_login {	
background: url(images/site_login.png) 0 0 no-repeat;	
float: right;	
height: 105px;	
width: 420px;	
overflow: hidden;	
color: #ffffff;}

#login_form {	
padding: 10px 0 0 75px;}

#top_login p.form_label {	
padding: 0 0 0 2px;	
margin: 0;}

#login_username, #login_password {	
float: left;}

#login_password {	
padding-left: 20px;}input.login_input {	
background: url(images/login_input.png) 0 0 no-repeat;	
color: #eee;	
border: none;	
outline: none;	
font-size: 12px;	
width: 134px;	
height: 16px;	
padding: 8px 8px 4px;}

#login_button {	
background: url(images/loginbutton.png) no-repeat;	
width: 70px;	
height: 26px;	
border: none;	
padding: 0;	
margin: 6px 25px 0 0;	
cursor: pointer;	
float: right;}

#reminder {	
padding: 12px 0 0 2px;}

#reminder a {	
padding-right: 12px;}

#top_login a:link, 
#top_login a:visited {	
color: #eee;	
font-weight: bold;}

#top_login ul, 
#top_login ul li  {	
list-style: none;	
padding: 0;	
margin: 0;}

#header #navigation {
font-size: 14px;
height: 22px;
overflow: hidden;
padding: 18px 0 0 0px;
font-family: "Times New Roman", Verdana, Arial, Helvetica, sans-serif;
margin-bottom: 4px;
}
/* Login Code - End */

Here is the result:

NomaTqY.png

I know it's not the cleanest, but it works  O:)  i had no 1 to help me...  :-[

 

Anyways, when i log in it takes me into the forum, and everything works fine... I'm logged into the forum.

But when i go back into the "front page", it still shows the login box... username and password.

 

ok, now here's the thing.

before i edited the WP header.php there was a banner at the top:

width=600 height=108http://i.imgur.com/G2qQzCM.png[/img]

What I'm trying to do now, is make it so when someone is logged in, that banner comes back up... and when they logout... it goes back to the login code i edited.

 

 

Hopefully i didn't make this too confusing, and someone could help me please.

Here is part of the original header.php from my wordpress theme:

<div id="wrapper">

<div id="container-wrap">

<div id="container" class="container">

	<div id="header" class="span-24">

		<?php 

        if(wpthemes_options('header_code') != '') {

        echo wpthemes_options("header_code")  . "\n"; 

        }

        ?>

		<div id="navigation" class="span-24">

				<ul id="nav">

                    	<?php if(wpthemes_options('show_dropdown') != '') { ?>

                            <li <?php if(is_home()) { echo ' class="current-cat" '; } ?>><a href="<?php bloginfo('url'); ?>">Home</a></li>

                            <?php custom_cat_menu('exclude_hor_cat'); ?>

                            <?php custom_page_menu('exclude_hor_pages'); ?>

						<?php custom_link_menu('exclude_hor_links'); ?>

                        <?php } ?>

				</ul>

		</div>

		<div id="logo_wrap" >

			<div class="logo">

			<?php if(wpthemes_options('logo') != '') {?>

<div class="blog-name">

<a href="<?php bloginfo('url'); ?>"><img src="<?php echo wpthemes_options('logo'); ?>" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('name'); ?>" /></a>

</div>

<?php

} else { ?>

  <?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>

      <<?php echo $heading_tag; ?> class="blog-name"><a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a></<?php echo $heading_tag; ?>>

  <?php } ?>

		</div>

		<div class="ad-wrap">

				<?php if(wpthemes_options('ad468_googleads') != '') {

                 		echo wpthemes_options('ad468_googleads');

				} elseif ( wpthemes_options('ad468_location') != '') { ?>

					<a href="<?php echo wpthemes_options('ad468_url'); ?>"><img src="<?php echo wpthemes_options('ad468_location'); ?>" /></a>

             		<?php } ?>

			</div>

		</div>

	</div>

  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Dear clients, we strongly advise against holding funds in USDT due to an increase in mass freezes by the issuer. Any wallet can be locked without explanation if your coins happen to be in the wrong place at the wrong time. If you hold savings in USDT, swap them for something safer, such as XMR, BTC, ETH, or similar. When working with crypto, opt for decentralized coins that are technically impossible to freeze. Alternatively, after handling USDT, move your funds into safe assets. To protect your funds, we recommend using XMR, BTC, ETH.
    • Hello everyone, I am looking for a C4 Scions of Destiny (P656) Retail x1 L2OFF Server Pack + Source. My goal is not to launch a server immediately. I want to learn L2OFF server development in C++, understand the original C4 architecture, and eventually build my own project in the future. I have already tried to reach an agreement with a few members who offer C4 projects, but communication has been quite slow, so I decided to ask the community here as well. I'm specifically looking for a Retail x1 version, not a heavily customized x45 or PvP pack. Ideally, the package should include: Complete LoginServer Complete GameServer Source code SQL database AI / NPC scripts Geodata Visual Studio solution/project Everything required to compile, study, and run the server If anyone knows a trusted seller or can recommend a reliable P656 Retail x1 package, I would really appreciate your advice. I would also appreciate hearing from anyone who has purchased a Retail x1 package before and can share their experience. Thank you very much!
    • NEW SEASON OPENING - TODAY ! GRAND OPENING FROM - 10/07/2026, FRIDAY, 20:00 +3 GMT !
    • Elite Lineage II Development | Websites • Master Accounts • Custom Systems • Server Solutions Turn Your Lineage II Project Into a Professional Experience Hello everyone, My name is Frank, and for years I've been developing custom solutions for Lineage II private servers. My focus isn't simply creating attractive websites—it's building complete ecosystems that improve both the player experience and server management. Unlike generic web designers, I understand how Lineage II servers actually work. Every page and system is designed with real gameplay, server administration, and player retention in mind. Whether you're launching your first project or upgrading an established server, I can help you create something that looks and feels like a premium MMORPG. What I Can Build Modern Landing Pages Your landing page is the first impression players have of your server. I create high-end landing pages featuring: • Cinematic hero sections • Animated backgrounds • Countdown timers • Feature showcases • Grand Opening events • Server roadmap • Responsive mobile design • Fast loading and SEO-friendly structure No generic templates. Every landing page is built specifically for your project. Complete Master Account Systems One of my specialties is developing advanced account management panels that integrate naturally with your Lineage II server. Examples include: • Account Dashboard • Character Selection • Character Information • Character Statistics • Combat Power System • Achievement System • Character Mastery • Collections • Daily Rewards • Vote Rewards • Referral Systems • Lucky Wheel • Premium Account Management • Donation Store • Coin Wallet • VIP Services • PIN Protection • Password Management • Inventory Viewer • Warehouse Viewer • Rankings • Online Players • Server Statistics • Event Pages Everything is designed with both usability and visual quality in mind. Custom Web Systems Need something unique? I also develop completely custom features tailored to your server. Examples: • World Boss Event Pages • Raid Boss Tracker • Olympiad Rankings • Castle Siege Overview • Grand Boss Status • Event Management Panels • Daily Hunt Interfaces • Progression Systems • Collection Systems • Custom Shops • Clan Pages • Marketplace • Admin Panels If you have an idea, we can build it. Full Website Development I can create your complete server website, including: • Home • Downloads • News • Patch Notes • Server Information • Wiki • Rankings • Community Pages • Support Center • Knowledge Base • FAQ • Voting Pages • Donation Pages Designed to match your server's identity. Forum Integration Professional integration with community platforms. Examples: • XenForo • phpBB • Discord Integration • Custom Forum Themes • User Synchronization Server Experience Because I actively work with Lineage II servers, I understand much more than web development. Experience includes designing and implementing systems around: • Character progression • Achievement tracking • Collection systems • Daily Hunt mechanics • Lucky Wheel events • Premium services • Server economy • Custom reward systems • World Boss events • Event scheduling • Player dashboards • Administrative tools This allows me to design websites and panels that feel like a natural extension of your server instead of just another website. Technologies • PHP 8 • MySQL / MariaDB • HTML5 • CSS3 • JavaScript • AJAX • Responsive Design • API Integration • Linux Server Environment Why Choose Me? ✔ Years of Lineage II development experience ✔ I understand both the website and the game server ✔ Custom development—not copy-paste templates ✔ Modern UI & UX ✔ Mobile responsive ✔ Clean and optimized code ✔ Long-term support ✔ Fast communication ✔ Flexible solutions for every budget Portfolio Below you'll find examples of projects I've created, including custom landing pages, master account systems, dashboards, progression systems, and unique interfaces developed for real Lineage II servers.     Need Something Unique? Some of the most successful servers stand out because they offer features players haven't seen before. If you have an idea—even if it's only a rough concept—I can help transform it into a polished, fully functional system.     Contact Interested in working together? Feel free to send me a private message with your project details. I'll be happy to discuss your ideas and provide a free estimate. Let's build something your players will remember.     Discord:  https://discord.gg/qnmNkY6D3n
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and 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..