Frylock
-
Posts
3 -
Credits
0 -
Joined
-
Last visited
Never -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Posts posted by Frylock
-
-
for what I'm trying to do, my code should say: if user is a guest, they see the "log in" code, else if they're not a guest they see the advertisement banner at the top? I've attempted this myself, and it fails:
<div id="top_login"> <div id="login_form"> <?php if (!empty($context['user']['is_guest'])) { <script type="text/javascript" src="', $settings['forum/Themes/mytheme'], '/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> } else { ( wpthemes_options('ad468_location') != '') { <a href="<?php echo wpthemes_options('ad468_url'); ?>"><img src="<?php echo wpthemes_options('ad468_location'); ?>" /></a> } ?> </div> </div> </div> </div>
I'm not really good with php/html (at all), but I'm trying my best... :-\
--
--
If this helps this is what i want the guest to see: "login code"
<script type="text/javascript" src="', $settings['forum/Themes/greenzone99'], '/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>
This is what i want them to see after they're logged in:
<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 } ?>
-
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.
I already know about ssi.php
[HELP] Copy SMF login from header to Wordpress header
in Hacking Discussions & Requests
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
Then i copied the following code from my smf themes index.template.php
Then i pasted it in my WP themes header.php and edited a bit...now it looks like this:
After that i copied and pasted this code (with edits) from my smf theme's index.css into my wordpress style.css
Here is the result:
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:
http://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: