[Aphrodite] Adding a flash login to overall header

Specific instructions on how to apply certain mods to certain styles.

Moderator: Moderators

[Aphrodite] Adding a flash login to overall header

Postby kvfb97 on Mon Apr 04, 2005 11:17 pm

This will add a flash login box (like Morpheus) to the top left of the screen when the user is logged out (instead of the search box). When a user is logged in it will be a normal search box.

Taken from MorpheusX and slightly modified.

Code: Select all
#
#-----[ OPEN ]-----
#
ca_aphrodite.cfg

#
#-----[ FIND ]-----
#
$board_config['vote_graphic_length'] = 205;
$board_config['privmsg_graphic_length'] = 175;

#
#-----[ AFTER, ADD ]-----
#
//
// adding custom template variables
//
$template->assign_vars(array(
   'S_LOGIN_ACTION2'   => htmlspecialchars(append_sid('login.'.$phpEx)),
   'S_LOGIN_ACTION3'   => urlencode('login.php?sid='.$userdata['session_id']),
   'S_SID'            => $userdata['session_id'],
   ));

#
#-----[ OPEN ]-----
#
overall_header.tpl

#
#-----[ FIND ]-----
#
<td class="forum-header" align="left"><a href="{U_INDEX}" title="{L_INDEX}"><img src="templates/ca_aphrodite/images/logo.gif" height="63" alt="{L_INDEX}" /></a></td>
   <td class="forum-header header-search" align="right" valign="bottom">
      <form action="{U_SEARCH}" method="get"><input name="search_keywords" type="text" class="post" style="width: 100px;" /> <input type="submit" class="liteoption" value="{L_SEARCH}" /></form>
   </td>

#
#-----[ REPLACE, WITH ]-----
#
<td class="forum-header" align="left" valign="top"><a href="{U_INDEX}" title="{L_INDEX}"><img src="templates/ca_aphrodite/images/logo.gif" height="63" alt="{L_INDEX}" /></a></td>
   <!-- BEGIN switch_user_logged_out -->
   <td class="forum-header" align="right" valign="bottom">
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="200" height="63" id="swf_login">
      <param name="movie" value="templates/ca_aphrodite/images/login.swf?sid={S_SID}&amp;action={S_LOGIN_ACTION3}" />
      <param name="quality" value="high" />
      <param name="bgcolor" value="#FFFFFF" />
      <embed src="templates/ca_aphrodite/images/login.swf?sid={S_SID}&amp;action={S_LOGIN_ACTION3}" quality="high" bgcolor="#FFFFFF" width="200" height="63" name="swf_login" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
      </embed>
      </object>
   </td>
   <!-- END switch_user_logged_out -->
   </td>
   <!-- BEGIN switch_user_logged_in -->
   <td class="forum-header header-search" align="right" valign="bottom">
      <form action="{U_SEARCH}" method="get"><input name="search_keywords" type="text" class="post" style="width: 100px;" /> <input type="submit" class="liteoption" value="{L_SEARCH}" /></form>
   </td>
   <!-- END switch_user_logged_in -->
#
#-----[ SAVE/CLOSE ALL FILES ]-----
#
# EoM


Download the .swf files Here (Blue, Green & Liteblue)
Last edited by kvfb97 on Mon Mar 13, 2006 10:23 am, edited 3 times in total.
Tip: Don't argue with idiots, they'll drag you down to their level and beat you with experience.
User avatar
kvfb97
Registered User
Registered User
 
Posts: 1774
Joined: Mon Aug 02, 2004 8:18 am
Location: Northern Ireland, UK

Postby pentapenguin on Tue Apr 05, 2005 4:21 am

Very nice!
I'll add it to my site when I can.
One question--does it work with the green version too?
User avatar
pentapenguin
Moderator
Moderator
 
Posts: 1466
Joined: Tue Sep 14, 2004 4:15 pm
Location: Georgia, USA

Postby kvfb97 on Tue Apr 05, 2005 9:24 am

[quote user="pentapenguin" post="27079"]Very nice!
I'll add it to my site when I can.
One question--does it work with the green version too?[/quote]

Nope, ill do up a green version in a minute and post the login swf - thats all you will need to change
Tip: Don't argue with idiots, they'll drag you down to their level and beat you with experience.
User avatar
kvfb97
Registered User
Registered User
 
Posts: 1774
Joined: Mon Aug 02, 2004 8:18 am
Location: Northern Ireland, UK

Postby kvfb97 on Tue Apr 05, 2005 10:02 am

zip has now got both blue and green versions
Tip: Don't argue with idiots, they'll drag you down to their level and beat you with experience.
User avatar
kvfb97
Registered User
Registered User
 
Posts: 1774
Joined: Mon Aug 02, 2004 8:18 am
Location: Northern Ireland, UK

Postby Uniko on Tue Apr 05, 2005 8:26 pm

there is no green :S
+------------------------------+
+--------Hi there
+------------------------------+
User avatar
Uniko
Registered User
Registered User
 
Posts: 310
Joined: Thu Feb 03, 2005 8:42 pm

Postby Thatbitextra on Tue Apr 05, 2005 8:29 pm

Strange, they both seem to be green for me :?
User avatar
Thatbitextra
Moderator
Moderator
 
Posts: 1821
Joined: Thu Mar 24, 2005 1:11 pm
Location: A place where something is or could be located; a site.

Postby kvfb97 on Tue Apr 05, 2005 8:38 pm

fixed...
Tip: Don't argue with idiots, they'll drag you down to their level and beat you with experience.
User avatar
kvfb97
Registered User
Registered User
 
Posts: 1774
Joined: Mon Aug 02, 2004 8:18 am
Location: Northern Ireland, UK

Postby Thatbitextra on Tue Apr 05, 2005 8:39 pm

Still both green for me...
User avatar
Thatbitextra
Moderator
Moderator
 
Posts: 1821
Joined: Thu Mar 24, 2005 1:11 pm
Location: A place where something is or could be located; a site.

Postby kvfb97 on Tue Apr 05, 2005 8:50 pm

make sure you download the new 1... maybe ur browser is cache'd it or sumthing...

it shud have 2 folders, blue n green
Tip: Don't argue with idiots, they'll drag you down to their level and beat you with experience.
User avatar
kvfb97
Registered User
Registered User
 
Posts: 1774
Joined: Mon Aug 02, 2004 8:18 am
Location: Northern Ireland, UK

Postby Thatbitextra on Tue Apr 05, 2005 8:55 pm

Yeah, downloaded in IE, guess it was cached. Cool, thanks :) .
User avatar
Thatbitextra
Moderator
Moderator
 
Posts: 1821
Joined: Thu Mar 24, 2005 1:11 pm
Location: A place where something is or could be located; a site.

Postby Bicet on Wed Jun 08, 2005 6:29 am

I have a request, if it's possible....

Is it possible to have a lite blue (see psd source color) flash login?
User avatar
Bicet
Coder
Coder
 
Posts: 247
Joined: Mon Nov 15, 2004 7:50 pm

Postby kvfb97 on Wed Jun 08, 2005 7:46 am

What do you mean Bicet?

BTW, has anyone got the zip still as my host has changed and i lost all my files and i would need to upload it again...
Tip: Don't argue with idiots, they'll drag you down to their level and beat you with experience.
User avatar
kvfb97
Registered User
Registered User
 
Posts: 1774
Joined: Mon Aug 02, 2004 8:18 am
Location: Northern Ireland, UK

Postby Bicet on Wed Jun 08, 2005 8:58 am

If you download the source psd file for aphrodite, and you open it with photoshop, you can see there's another color that's has not be released and it's called liteblue.So I need the login in flash for this color ;)
You can grab the zip with your source here:

http://www.vagito.net/files/login.zip

Thnx for the fast reply
User avatar
Bicet
Coder
Coder
 
Posts: 247
Joined: Mon Nov 15, 2004 7:50 pm

Postby Thatbitextra on Thu Jun 09, 2005 2:35 am

I have a request :)
Would it be possible for you to make the Enter button submit? Thanks :)
My MODs: [NEW] Choose Who to Accept PMs From (Prevents you from receiving unwanted PMs!) | Warn of Old Topic Before Posting Reply
Style: subBlack (Now updated to phpBB 2.0.22 and 5 new color schemes!)

Please note, I do NOT offer support via PM. It's a forum, so post your question, then everyone can help.
User avatar
Thatbitextra
Moderator
Moderator
 
Posts: 1821
Joined: Thu Mar 24, 2005 1:11 pm
Location: A place where something is or could be located; a site.

Postby kvfb97 on Thu Jun 09, 2005 11:34 am

Updated (see first post)

Now has all three colours in the zip file, and also has 'Submit' on the button ;)
Tip: Don't argue with idiots, they'll drag you down to their level and beat you with experience.
User avatar
kvfb97
Registered User
Registered User
 
Posts: 1774
Joined: Mon Aug 02, 2004 8:18 am
Location: Northern Ireland, UK

Next

Return to How to mod some styles

Who is online

Users browsing this forum: No registered users and 1 guest