SMF Support > SMF 2.0.x Support
Cant get my board to redirect to my home page
(1/1)
sake cat:
While I am not a wiz at this kind of thing I don't think this option is working properly. I am in the process of waiting for the theme developer to get back to me on how to insert a link back to my homepage, centered in my footer. In the interim I made to new categories with two new boards both trying to redirect users to my home page. Since these redirects exist on my Forum index and they are redirecting you back to the forum index all i have done is create a really snazzy button that counts how many times you push it.
The redirect will add "hxxp:www.mydomaine.com [nonactive]" after forum/index.php? in my browsers address bar but beyond that no change. Before you ask i did input it as "hxxp:www.mydomaine.com [nonactive]" no dice. What am I doing wrong or what is wrong with my board. I have tweaked allot of Css on this theme but i doubt any of that would screw up some thing like this???
WebDevandPhoto:
I'm familiar with MyBB that allows calling variables in the theme design such as {$mybb->settings['bburl']} which you can append to the front of a url string to allow the string to be universal in relation to wherever the forum is installed. I'm not sure if SMF has this since I'm brand new to it but for inserting html you can see the example of the home button used on this forum which I pasted in the code wraps at the bottom of this post.
If you wanted to automatically redirect ANYONE who first visited your site without a specific page in the link you could edit the .htacces file if you're on an apache server as so:
DirectoryIndex index.php <- you can replace the index.php with any page you want.
You can paste that near the top of the ,htaccess file after your navigation related restrictions such as:
Options -MultiViews +FollowSymlinks -Indexes
--- Code: --- <a class="active firstlevel" href="http://www.simplemachines.org/community/index.php">
<span class="last firstlevel">Home</span>
</a>
--- End code ---
--- Code: ---CSS:
#wrapper {
width: 90%;
}
#site_menu {
font-family: tahoma,sans-serif;
font-size: 1.1em;
margin: 0;
overflow: hidden;
padding: 12px 0 4px 1em;
}
h1.forumtitle {
font-family: "Century Gothic",tahoma,sans-serif;
position: absolute;
}
#main_menu {
float: none;
margin-top: 1em;
}
#site_nav li a.active {
background: url("../images/theme/menu_gfx.png") no-repeat scroll 100% -31px transparent;
}
#site_nav li a.active span.firstlevel {
background: url("../images/theme/menu_gfx.png") no-repeat scroll 0 -31px transparent;
}
#siteInfo {
margin: -1.2em 0 0;
padding: 1em 0 0;
}
#siteInfoPanel {
line-height: 1.3em;
margin: 7px 0.5em 0;
overflow: visible;
}
#siteInfoPanel p {
line-height: 1em;
margin: 0;
padding: 0;
}
#siteInfoPaneLink {
float: right;
height: 1em;
margin: -15px 1em 0;
position: relative;
}
#siteInfoPaneLink a {
background: none repeat scroll 0 0 #FAFAFF;
border: 1px solid #CCCCCC;
display: block;
font-size: 0.9em;
padding: 2px 5px;
}
#siteInfoPaneLink a:hover {
background: none repeat scroll 0 0 #FFFFFF;
text-decoration: none;
}
#teaminfo p, #helperbox p, #apprenticebox p, #siteInfoPanel p {
margin: 0 0 0.5em;
padding: 5px 10px 0;
}
#teaminfo p.unread_links, #helperbox p.unread_links, #apprenticebox p.unread_links, #siteInfoPanel p.unread_links {
padding-top: 0;
}
.meet_time_now, #siteInfoPanel .m meet_time_now {
color: red;
font-size: larger;
font-weight: bold;
text-decoration: blink;
}
.meet_time_soon, #siteInfoPanel .meet_time_soon {
color: red;
font-weight: bold;
text-decoration: blink;
}
.meet_time_tomorrow, #siteInfoPanel .meet_time_tomorrow {
color: #375976;
font-weight: bold;
}
.meet_time_today, #siteInfoPanel .meet_time_today {
color: #BB0000;
font-weight: bold;
}
#header, #content_section {
min-width: 750px;
}
#advert {
float: right;
}
img#upshrink {
margin: 1em 1em 0 0;
}
#site_menu ul li {
position: static;
}
#site_menu ul li ul {
width: 12.2em;
}
#site_menu ul li ul li {
width: 12em;
}
.pm-warning {
background-color: #FFE4E9;
border: 2px dashed #CC3344;
color: black;
margin: 2ex;
padding: 2ex;
}
h4.grid_header, h3.grid_header {
height: 25px;
}
#secondarybody h4.grid_header {
margin: 2em 0 0;
}
h3.grid_header {
margin: 0;
}
div.grid_header {
margin-top: 0;
padding-top: 1em;
}
div.grid_header span.topslice {
display: none;
}
--- End code ---
sake cat:
So i want to bump this because I think i posted on the weekend everyone one was out of the forums. Also I looked at the code and your directions above and I am afraid to say at this stage it is beyond me i am not even really sure what you are suggesting.
I thought that the way the redirects worked is I simply put in the url i want the board to send people to and wham bam thank you mam it works. From the little I understand of what you wrote maybe I am wrong. Will the redirects not send some one off site.
Krash.:
Not sure I understand the problem, but if you create a new board, check Redirect to a web address:, and enter a valid url in Address to redirect users to:, users will be redirected to that url when they click on the board name on the main index.
Not to belabor the obvious, but hxxp:www.mydomaine.com is not a valid url. Should be hxxp://www.mydomaine.com.
sake cat:
Ok WTF I put " " around the URL for my home page so it looked just as it dose in the instructions on the admin panel and then pasted my url into that. Guess what just a copy past and bam its working. :o :o :o
My own anal retentive attention to detail tripped me up, sorry for the dumb question thanks for the help.
Navigation
[0] Message Index
Go to full version