The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Message for unregistered users!

View previous topic View next topic Go down

Solved Message for unregistered users!

Post by DeathDunk98* on April 1st 2014, 6:40 pm



Last edited by andiikadriu on April 1st 2014, 11:35 pm; edited 1 time in total

DeathDunk98*
Forumember

Posts : 479
Reputation : 3
Language : Shqip

Back to top Go down

Solved Re: Message for unregistered users!

Post by Ange Tuteur on April 1st 2014, 6:51 pm

Hello andiikadriu,

Administration panel > display > templates > general > overall_header

Find :
Code:
<table cellspacing="0" cellpadding="0" border="0" align="{MENU_POSITION}">
 <tr>
 <td align="{MENU_POSITION}"{MENU_NOWRAP}>{GENERATED_NAV_BAR}</td>
 </tr>
 </table>

Replace by :
Code:
<table cellspacing="0" cellpadding="0" border="0" align="{MENU_POSITION}">
 <tr>
 <td align="{MENU_POSITION}"{MENU_NOWRAP}>{GENERATED_NAV_BAR}</td>
 </tr>
 </table>
 
  <!-- BEGIN switch_user_logged_out -->
  <div id="logged_out_popup">
  Hello guest !<br/>
  Please <a href="/login">login</a> or <a href="/register">register</a> to gain full access to the forum.
  </div>
  <!-- END switch_user_logged_out -->

Then add this to your CSS :
Code:
#logged_out_popup {
  color:#FFF;
  font-size:12px;
  background:rgba(0,0,0,0.5);
  border:1px solid #000;
  position:fixed;
  left:5px;
  bottom:5px;
  width:250px;
  padding:3px;
}

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Message for unregistered users!

Post by Pizza Boi on April 1st 2014, 6:58 pm

Hi Very Happy

Hmm... after experimenting, I formulated something like this:

#1 Create a new widget in Widgets Management < Paste this Code < Save and set it in the widget area on your forum:

Code:
<div id="custom red">Register <a href="URL">here</a></div>

#2 Add this in the CSS:

Code:
#custom red {
  position: fixed;
  line-height: 16px;
  left/bottom/top/right: #px; /* Edit this */
  z-index: 999;
  opacity: 0.8;
  height: #px; /* Edit this */
  width: #px; /* Edit this */
  border: ; /* Radius style */
  border-radius: 3px;
  background-color: #hex color; /* Remove this if you're using an image */
  background: ; /* Style this on your own */
  padding: #px; /* Edit this */
  margin: #px /* Edit this */
  }

#custom red:hover {
  opacity: 1;
  }

If you want it hover like that one on the site, I included it. Anyway, just style the ones I indicated. you can even add more if you want Smile.

Edit: Ange already posted... but I posted my solution too e.e" ...

Regards,
Pizza Boi

Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

Solved Re: Message for unregistered users!

Post by DeathDunk98* on April 1st 2014, 7:01 pm

I dont have this code in my Overall Header ?
Code:


[code]<table cellspacing="0" cellpadding="0" border="0" align="{MENU_POSITION}">
<tr>
<td align="{MENU_POSITION}"{MENU_NOWRAP}>{GENERATED_NAV_BAR}</td>
</tr>
</table>[/code]


DeathDunk98*
Forumember

Posts : 479
Reputation : 3
Language : Shqip

Back to top Go down

Solved Re: Message for unregistered users!

Post by Ange Tuteur on April 1st 2014, 7:07 pm

Then add this code somewhere in the overall_header :
Code:
<!-- BEGIN switch_user_logged_out -->
  <div id="logged_out_popup">
  Hello guest !<br/>
  Please <a href="/login">login</a> or <a href="/register">register</a> to gain full access to the forum.
  </div>
  <!-- END switch_user_logged_out -->

Or if you're using widgets, you can add this to a widget :
Code:
<div id="logged_out_popup">
  Hello guest !<br/>
  Please <a href="/login">login</a> or <a href="/register">register</a> to gain full access to the forum.
  </div>

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Message for unregistered users!

Post by DeathDunk98* on April 1st 2014, 7:19 pm

I used the widget way because the other one was not working and this is what it did to the forum, Im loged in and this message pop's up! and the foorum table is not right, its not in line, so what I want is that this message needs to pop up only to unregistered or not loged in users, and the forum table to be in his place!

DeathDunk98*
Forumember

Posts : 479
Reputation : 3
Language : Shqip

Back to top Go down

Solved Re: Message for unregistered users!

Post by Pizza Boi on April 1st 2014, 7:22 pm

Hi Very Happy

Try changing the position from fixed to relative instead and make other adjustments. Also, click on its permissions and set it to guests instead : Perms

Edit: Sorry, I forgot to mention that for you to hide the 'widget' space, just add this also in your CSS:

Code:
#content-container #left {
  width: 0px !important;
}

Regards,
Pizza Boi

Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

Solved Re: Message for unregistered users!

Post by DeathDunk98* on April 1st 2014, 7:27 pm

in relative it is displaying same as before :/

DeathDunk98*
Forumember

Posts : 479
Reputation : 3
Language : Shqip

Back to top Go down

Solved Re: Message for unregistered users!

Post by Pizza Boi on April 1st 2014, 7:35 pm

Hi Very Happy

Can you please provide me an admin test account? I'll fix it for you. Private message me it please.

Regards,
Pizza Boi

Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

Solved Re: Message for unregistered users!

Post by Ange Tuteur on April 1st 2014, 7:50 pm

Hello,

Add this to your CSS :
Code:
#left { width:0 !important; }

It should remove the empty space created by the column.

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Message for unregistered users!

Post by Pizza Boi on April 1st 2014, 8:17 pm

Hi Very Happy

I did this for him via forum and I just used the same ID:

Code:
#custom\20 red {
position: fixed;
line-height: 16px;
top: 270px;
z-index: 999;
opacity: 0.8;
height: 100px;
width: 350px;
border: 1px solid #AA0000;
border-radius: 3px;
background-color: #FF0000;
padding: 5px;
margin: 5px;
left: 0px;
color: white !important;
opacity: 0.8;
}
#custom\20 red a {
color: white !important;
}
#custom\20 red:hover {
    opacity: 1;
    }
#content-container #right {
  width: 0px !important;
}

That's the CSS I implemented on his forum.

@OP: Please post if you still have questions about it, thank you.

Regards,
Pizza Boi

Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

Solved Re: Message for unregistered users!

Post by SLGray on April 2nd 2014, 4:37 am

Since this is marked solved, it will be archived.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36648
Reputation : 2443
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum