Quick Login   
 
Register AdminFusion Tutorials Post Fusion Forum Matrix
 
Old 04-07-2007, 07:44 PM   #1
Veteran
 
htmlmaster's Avatar
 
Join Date: Oct 2005
Posts: 652
htmlmaster is a name known to allhtmlmaster is a name known to allhtmlmaster is a name known to allhtmlmaster is a name known to allhtmlmaster is a name known to allhtmlmaster is a name known to all
SMF Registration Bar

-Edit- Problem solved folks! I managed to work with an old mod and got it to work!

I've looked forever, but I can't seem to find a mod for SMF that shows a welcome message to guests. Does anyone with other software who uses a mod like this have some source code to share with me so I could add it to my forum?

Thanks!
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
htmlmaster is offline   Reply With Quote
Old 04-07-2007, 09:09 PM   #2
Chadwick ≥ Cadence
 
Adam's Avatar
 
Join Date: Sep 2005
Posts: 1,639
Adam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant futureAdam has a brilliant future
Well all you would need to do is use an if condition and set it to guest.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Adam is offline   Reply With Quote
Old 04-07-2007, 09:54 PM   #3
Veteran
 
htmlmaster's Avatar
 
Join Date: Oct 2005
Posts: 652
htmlmaster is a name known to allhtmlmaster is a name known to allhtmlmaster is a name known to allhtmlmaster is a name known to allhtmlmaster is a name known to allhtmlmaster is a name known to all
Well, I'll give myself some credit, I know that much, but I'm not sure how to combine the PHP along with the HTML/CSS of the message. If I had some example code, I could probably figure out how to put it together for SMF.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
htmlmaster is offline   Reply With Quote
Old 04-09-2007, 03:47 AM   #4
Veteran
 
DrkSnpr14's Avatar
 
Join Date: Sep 2006
Location: Alberta Canada
Posts: 920
DrkSnpr14 is a glorious beacon of lightDrkSnpr14 is a glorious beacon of lightDrkSnpr14 is a glorious beacon of lightDrkSnpr14 is a glorious beacon of lightDrkSnpr14 is a glorious beacon of lightDrkSnpr14 is a glorious beacon of light
Send a message via MSN to DrkSnpr14
I wish I could help you, I've been messing around with it myself. I'm going to start working on a new skin soon, and this is definitely something on my checklist.

I believe I've narrowed it down to just editing a line of text in one of the templates to what you want.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
DrkSnpr14 is offline   Reply With Quote
Old 04-09-2007, 02:23 PM   #5
Veteran
 
htmlmaster's Avatar
 
Join Date: Oct 2005
Posts: 652
htmlmaster is a name known to allhtmlmaster is a name known to allhtmlmaster is a name known to allhtmlmaster is a name known to allhtmlmaster is a name known to allhtmlmaster is a name known to all
I can show you how I did it if you want. All I did was add some CSS to the template's main stylesheet...
Code:
#infobar a, #infobar a:link, #infobar a:visited, #infobar a:active {
    display: block;
    color: #000;
    width:100%;
    background: #FFFFE1 url(warning.gif) no-repeat fixed .3em .3em;
    border-bottom: .16em outset;
    text-decoration: none;
    cursor: default;
}

#infobar a:hover {
    color: #FFF;
    background: #3169B6 url(warning.gif) no-repeat fixed .3em .3em;
}

#infobar p{
    margin:0px;
    padding: .45em 0em .45em 22px;
    font-size:14px;
        font-weight: bold;
        text-align: center;
}
Then, to the index.template.php file, I added this code right after the <body> tag...
Code:
      if($context['user']['is_guest'] && $context['current_action'] != 'register')
         echo '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="100%"><div id="infobar"><a href="' . $scripturl . '?action=register"><p>YOUR MESSAGE HERE</p></a></div></td></tr></table>';
That should work.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
htmlmaster is offline   Reply With Quote
Old 04-09-2007, 08:32 PM   #6
Veteran
 
DrkSnpr14's Avatar
 
Join Date: Sep 2006
Location: Alberta Canada
Posts: 920
DrkSnpr14 is a glorious beacon of lightDrkSnpr14 is a glorious beacon of lightDrkSnpr14 is a glorious beacon of lightDrkSnpr14 is a glorious beacon of lightDrkSnpr14 is a glorious beacon of lightDrkSnpr14 is a glorious beacon of light
Send a message via MSN to DrkSnpr14
Excellent, works perfectly for me. I moved it down a bit though, didn't like it at the top
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
DrkSnpr14 is offline   Reply With Quote
Old 04-11-2007, 02:19 AM   #7
Veteran
 
htmlmaster's Avatar
 
Join Date: Oct 2005
Posts: 652
htmlmaster is a name known to allhtmlmaster is a name known to allhtmlmaster is a name known to allhtmlmaster is a name known to allhtmlmaster is a name known to allhtmlmaster is a name known to all
Hehe, for anyone who doesn't have a welcome message like this already, I highly recommend adding one. In just the past two days, 3 members joined. That's compared to our average one member joining per 3 days.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
htmlmaster is offline   Reply With Quote
Old 04-11-2007, 02:50 AM   #8
Veteran
 
DrkSnpr14's Avatar
 
Join Date: Sep 2006
Location: Alberta Canada
Posts: 920
DrkSnpr14 is a glorious beacon of lightDrkSnpr14 is a glorious beacon of lightDrkSnpr14 is a glorious beacon of lightDrkSnpr14 is a glorious beacon of lightDrkSnpr14 is a glorious beacon of lightDrkSnpr14 is a glorious beacon of light
Send a message via MSN to DrkSnpr14
Myself as well. Two new registrations in the past couple days It really makes a difference

EDIT - Now I've got a problem. This isn't working properly with the table I just set up as mentioned in the other thread. I've tried rearranging things to see if it might help, but nothing is working with this bar anymore
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
DrkSnpr14 is offline   Reply With Quote
Old 04-11-2007, 04:38 AM   #9
Groupie
 
nitins60's Avatar
 
Join Date: Nov 2006
Posts: 45
nitins60 has a little shameless behaviour in the past
@Htmlmaster, packup it as a mod, please submit to SMF MOD site! This will be handy to many people!

but altering the style.css is not a good idea
nitins60 is offline   Reply With Quote
Old 05-03-2007, 09:53 PM   #10
Veteran
 
htmlmaster's Avatar
 
Join Date: Oct 2005
Posts: 652
htmlmaster is a name known to allhtmlmaster is a name known to allhtmlmaster is a name known to allhtmlmaster is a name known to allhtmlmaster is a name known to allhtmlmaster is a name known to all
Yeah; I should do that... That'll be my goal for the weekend. Wish me luck everyone!

Quote:
EDIT - Now I've got a problem. This isn't working properly with the table I just set up as mentioned in the other thread. I've tried rearranging things to see if it might help, but nothing is working with this bar anymore
Sorry, but I don't know how to help you. Maybe just play with the code and change the div for the registration bar into a table.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
htmlmaster is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

 
Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
Templates: User Registration Ashley Graphics and Design 3 03-05-2007 06:11 PM
Stop Spambot Registration ohc PostFusion Chat 1 01-13-2007 02:17 PM
Registration for Registration? demojames Creating Interest 7 04-17-2006 11:39 PM

AdminFusion

All times are GMT +1. The time now is 01:08 AM. Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

© 2009 AdminFusion | Advertising Opportunities | Legal | A member of the Crowdgather Forum Community
 
From:
Title:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77