Search Results for 'code'
-
Search Results
-
I know there’s a way to hide a certain part of the front page by using this:
<?php if ( bb_is_user_logged_in() ) : ?>
INSERT HIDDEN CODE HERE
<?php endif; else : // $forums ?>but I was wondering if you could have a section that only nonregistered users can view. This will make more sense after visiting my site:
http://tapestry.endless-sonata.net
At the bottom, I have a table that contains Hot Tags, Views, Users Online, and Top Posters. What I want is for that view to be only visible to registered users. Then, when a nonregistered user views this site, I want just the Hot tags to show in an expanded version, not off to the left. Is there a way to do this? I tried entering the alternate code after this:
<?php endif; else : // $forums ?>but it didn’t display anything.
Topic: RSS Feed Page is all Code?!!
Alright, I will fully admit I am a complete newbie to RSS feeds and while I’m trying to learn more… I have a weird error I think.
When you have an active RSS feed on my forums it just shows a page with a white background and expandable/collasping script.
Forums: http://forums.hooligans-gaming.net
Help a brother out!
I had not seen this posted before and I just (finally) figured it out so I thought I’d share.
If you’d like to give the user a friendly redirect back to the topic (or forum) they were at just before they logged in (instead of the front page) simply open the
login-form.phptemplate in your theme and add this BEFORE the final</form><input type="hidden" name="re" value="<?php echo "http://".$_SERVER['HTTP_HOST'].$_SERVER["REQUEST_URI"].'?'.$_SERVER["QUERY_STRING"]; ?>" />
<input type="hidden" name="_wp_http_referer" value="<?php echo bb_get_option( 'uri' ) ?>" />Should work on anything except maybe IIS.
