#1  
Old 01-09-2008, 08:11 PM
wheelstv wheelstv is offline
phpFox Fanatic
 
Join Date: Jul 2007
Location: Earth
Posts: 1,112
Thanks: 76
Thanked 302 Times in 126 Posts
Feedback Score: (4)
wheelstv is on a distinguished road
Default [1.6+] Free Mod: Horizontal Login Bar

Want more free mods?
Check out: http://ced-media.com/phpfoxmods/index.php
Donations are always welcomed!



PHPFOX USERS: Test this mod first on a staging server or setup of phpfox. As you will read throughout the thread, some users have this working fine for them and others do not. As my disclaimer says below, I'm not responsible for things not working with this mod. Use this mod at your own discretion!!

Per request of user ianwilcox, I decided to accept the challenge and develop a horizontal login bar that would appear at the top of anyones phpfox site, above the top nav links.

Code:
Content visible to registered users only.
Although not an attractive layout when you've got this login bar above the top nav like this, this is just proof of concept. If you really want this mod to look and feel a certain way according to your site, I'm available for hire to customize this mod further. PM me for details. On with the mod...

Requirements: phpfox v1.6
*This mod was not built with VB login integration, but joeloar has added this to the mod further down in the thread*

Note: Mods like these can screw up elements on your site. This one was tested on one site, with a particular design template (my own custom one). This doesn't mean it's going to work for everyone perfectly but it's more then likely to work fine. Just as a disclaimer, you may find some css styles or layout elements get a little out of wack. Don't freak out, just take baby steps and make sure you ALWAYS have a backup.

Create a new file and call it LoginBar.html. Copy and paste this code into that file:
Code:
Content visible to registered users only.
Upload LoginBar.html to "design/templates/default/public/account"

Create a new file and call it errors_bar.html. Copy and paste this code into it:
Code:
Content visible to registered users only.
Upload errors_bar.html to "design/templates/default/_blocks"

Open "design/templates/default/public/_template.html"

Look for:
Code:
Content visible to registered users only.
Insert this before the first <tr> tag:

Code:
Content visible to registered users only.
So it will look like this:
Code:
Content visible to registered users only.
That's it! Refresh your homepage (not logged in) and have a look.

Side note:
As you can see in the code above, in this portion...

Code:
Content visible to registered users only.
...it checks to see if the user is logged in or not. If they are logged in, the login bar will not show. If they are not logged in however, the bar will show. Some users may want to modify this as to not have the bar disappear, or to have other elements inside this area. Whatever it may be, I'm available for custom work to expand on this mod. PM me or contact me here if you're interested: http://ced-media.com/contact/index.php

Good luck and enjoy!

Want more free mods?
Check out: http://ced-media.com/phpfoxmods/index.php
Donations are always welcomed!
__________________
----------------------------------
CED MEDIA: PHPFOX MODS & CUSTOMIZATIONS
http://ced-media.com/phpfox
Please reach me via my site if you have questions. I don't check PM's on the forums often.
Like me or my mods?
Click Here to Leave Feedback!

Last edited by wheelstv : 07-11-2008 at 03:19 AM.
The Following 14 Users Say Thank You to wheelstv For This Useful Post:
cybersiin (09-16-2008), Equadore (01-22-2008), felipemozqueda (01-09-2008), free297 (01-09-2008), hippychick (03-21-2009), ianwilcox (01-09-2008), JANEMARCIA26 (07-24-2008), joeloar (02-13-2008), kraze2007 (01-09-2008), live (04-16-2009), ourlordsfriends.com (06-20-2008), Scooty (01-09-2008), tpestano (04-05-2008), VTI (01-10-2008)
  #2  
Old 01-09-2008, 08:45 PM
free297 free297 is offline
phpFoX Wannabe
 
Join Date: May 2007
Posts: 34
Thanks: 21
Thanked 2 Times in 2 Posts
Feedback Score: (0)
free297 is on a distinguished road
Default

very nice one, will try this out later
__________________
GO!
  #3  
Old 01-09-2008, 09:20 PM
kraze2007 kraze2007 is offline
phpFox Fanatic
 
Join Date: Oct 2007
Location: PSL, FL
Posts: 2,927
Thanks: 1,814
Thanked 287 Times in 225 Posts
Feedback Score: (1)
kraze2007 is on a distinguished road
Default

Thanks for posting this! I really appreciate it
__________________
V2.0.5
  #4  
Old 01-09-2008, 09:23 PM
ianwilcox's Avatar
ianwilcox ianwilcox is offline
phpFox Fanatic
 
Join Date: Nov 2006
Location: Bristol United Kingdom
Posts: 428
Thanks: 56
Thanked 21 Times in 20 Posts
Feedback Score: (0)
ianwilcox is on a distinguished road
Default

nice one mate! your a legend!!

i will donate some cash to you at the end of this month when i get paid!!! $$$

__________________
TalkBristol.com My phpfox website for the people of Bristol!
  #5  
Old 01-09-2008, 09:35 PM
wheelstv wheelstv is offline
phpFox Fanatic
 
Join Date: Jul 2007
Location: Earth
Posts: 1,112
Thanks: 76
Thanked 302 Times in 126 Posts
Feedback Score: (4)
wheelstv is on a distinguished road
Default

No problem. It kills me to not put more time into the look of this, but because everyones sites are so different I had to hold back haha. If you want to heal my pain, pay me to go all out on this for you =)

Glad you all enjoy it! I may have to implement this on one of my sites....hmmmm :)
__________________
----------------------------------
CED MEDIA: PHPFOX MODS & CUSTOMIZATIONS
http://ced-media.com/phpfox
Please reach me via my site if you have questions. I don't check PM's on the forums often.
Like me or my mods?
Click Here to Leave Feedback!
  #6  
Old 01-09-2008, 10:22 PM
kraze2007 kraze2007 is offline
phpFox Fanatic
 
Join Date: Oct 2007
Location: PSL, FL
Posts: 2,927
Thanks: 1,814
Thanked 287 Times in 225 Posts
Feedback Score: (1)
kraze2007 is on a distinguished road
Default

Its funny , you say that I was just wondering , how can we change the background (black color) what file do we need to edit? Thanks in advance!!
__________________
V2.0.5
  #7  
Old 01-09-2008, 10:29 PM
wheelstv wheelstv is offline
phpFox Fanatic
 
Join Date: Jul 2007
Location: Earth
Posts: 1,112
Thanks: 76
Thanked 302 Times in 126 Posts
Feedback Score: (4)
wheelstv is on a distinguished road
Default

only because it's simple to do will i help for free =P

Open your LoginBar.html file and look for (up top):
Code:
Content visible to registered users only.
Change bgcolor="#000000" to whatever color code you want to use.

ie: white would be bgcolor="#FFFFFF"
__________________
----------------------------------
CED MEDIA: PHPFOX MODS & CUSTOMIZATIONS
http://ced-media.com/phpfox
Please reach me via my site if you have questions. I don't check PM's on the forums often.
Like me or my mods?
Click Here to Leave Feedback!
The Following User Says Thank You to wheelstv For This Useful Post:
kraze2007 (01-09-2008)
  #8  
Old 01-09-2008, 10:47 PM
kraze2007 kraze2007 is offline
phpFox Fanatic
 
Join Date: Oct 2007
Location: PSL, FL
Posts: 2,927
Thanks: 1,814
Thanked 287 Times in 225 Posts
Feedback Score: (1)
kraze2007 is on a distinguished road
Default

Ok , another question sorry if i am being annoying but i am like OCD


Now that the bar is their and the right color


How can i remove - Welcome Guest Login or Signup
from the next line, I also want to move my nav for flash chat and such to the middle since I wont have; Welcome Guest Login or Signup no more , do you know where I can get rid of that ?


Ok I went into phrase manger searched welcome_guest ... found it made the field bland it relvolved that issue for me , looks a lot neater.. thanks again !
__________________
V2.0.5

Last edited by kraze2007 : 01-10-2008 at 01:35 AM.
  #9  
Old 01-10-2008, 04:05 PM
joeloar joeloar is offline
phpFox Fanatic
 
Join Date: Feb 2007
Posts: 484
Thanks: 26
Thanked 88 Times in 42 Posts
Feedback Score: (0)
joeloar is on a distinguished road
Default

This is a great free mod, except it doesnt work for people that have VB integrated like me. So, for all of you that do, heres the fix...

Copy and paste this to your loginbar.html file you made above. Its the whole file, so just copy and paste everything.

If your not using vb, you dont need this.

Code:
Content visible to registered users only.
The only problem with including the vb code is because this feature is skipping over the login.html file, it doesnt know what page to redirect to after login, so it looks for a user and in my case, comes up with a "user not found" page.

Anyone know how to give the vb a proper redirect with this mod?
__________________
Currently Running : PhpFox 2.0.4

Want an excellent chat room for your site? I can help! I am available to set up an IRCD for your phpfox site. Setup includes a full IRCD, Anope Services, SSL Support, Proxy Protection, a "How-to" guide, and technical support. PM me for details.
The Following User Says Thank You to joeloar For This Useful Post:
wheelstv (01-10-2008)
  #10  
Old 01-10-2008, 04:19 PM
wheelstv wheelstv is offline
phpFox Fanatic
 
Join Date: Jul 2007
Location: Earth
Posts: 1,112
Thanks: 76
Thanked 302 Times in 126 Posts
Feedback Score: (4)
wheelstv is on a distinguished road
Default

If I was using VB I would certainly look into this and include it with the Mod. Anyone that knows how to fix this, good luck and thanks for the extra-code to allow VB login integration.
__________________
----------------------------------
CED MEDIA: PHPFOX MODS & CUSTOMIZATIONS
http://ced-media.com/phpfox
Please reach me via my site if you have questions. I don't check PM's on the forums often.
Like me or my mods?
Click Here to Leave Feedback!
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 07:02 PM.