Thread: Usftech
View Single Post
  #24  
Old 06-05-2007, 11:03 PM
Sean James's Avatar
Sean James Sean James is offline
 
Join Date: Apr 2004
Location: Sydney, Australia
Posts: 895
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by iVox View Post
Excellent, and of course installed and marked as installed on my dev server (not yet available to the public, under construction).

First off, for those who opted to remove the flash and use the image method instead for the top right of the header, I used the attached images supplied in this thread and created two new images (which you create on your own) named as follows:

header-right-offline.jpg - the attachment found in this thread
header-right-online.jpg - has the green online graphic copy/pasted via Adobe PS

I wanted the appropriate image to display to the user based on their current login status, so I then edited the common header template as follows - after uploading both images in forums/images/USFTECH/misc:

Code:
 
<!--
<script type="text/javascript" src="$stylevar[imgdir_misc]/swfobject.js"></script>
-->
<!-- logo -->
<a name="top"></a>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
 <tr>
  <td width="50" height="1"><img src="$stylevar[imgdir_misc]/spacer.gif" alt="" /></td>
  <td width="8" height="1"><img src="$stylevar[imgdir_misc]/spacer.gif" alt="" /></td>
  <td width="452" height="1"><img src="$stylevar[imgdir_misc]/spacer.gif" alt="" /></td>
  <td width="100%" height="1"><img src="$stylevar[imgdir_misc]/spacer.gif" alt="" /></td>
  <td width="129" height="1"><img src="$stylevar[imgdir_misc]/spacer.gif" alt="" /></td>
  <td width="11" height="1"><img src="$stylevar[imgdir_misc]/spacer.gif" alt="" /></td>
  <td width="118" height="1"><img src="$stylevar[imgdir_misc]/spacer.gif" alt="" /></td>
 </tr>
 <tr>
  <td colspan="7" width="100%" height="164">
   <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
     <td width="510" height="164"><a href="./" title="Refresh iVoxLIVE.com home page..."><img width="510" height="164" border="0" src="$stylevar[imgdir_misc]/header.jpg" alt="Refresh iVoxLIVE.com home page..." /></a></td>
     <td width="100%" height="164" class="h2"></td>
     <td width="258" height="164" bgcolor="#424951"><!--
<div id="usftech">
  USFTECH template
</div>
<script type="text/javascript">
   var so = new SWFObject("$stylevar[imgdir_misc]/intro1.swf", "header", "258", "164", "7", "#424951");
   so.write("usftech");
</script>
--><if condition="$vbulletin->userinfo['userid'] and $_GET['do']!='logout'"><img src="$stylevar[imgdir_misc]/header-right-online.jpg" alt="Online..." border="0" width="258" height="164" /></if><if condition="$vbulletin->userinfo['userid']<1 or $_GET['do']=='logout'"><img src="$stylevar[imgdir_misc]/header-right-offline.jpg" alt="Offline..." border="0" width="258" height="164" /></if></td>
    </tr>
   </table>
  </td>
 </tr>
 <tr>
  <td colspan="2" width="58" class="i1" valign="top"><img width="58" height="56" border="0" src="$stylevar[imgdir_misc]/h4.jpg" alt="" /></td>
  <td colspan="3" width="100%" height="100%" bgcolor="#222629" valign="top">
<!-- /logo -->
 
<!-- content table -->
$spacer_open
$_phpinclude_output
Look carefully at what I did.

First, I commented out any reference to the Flash .swf file/object. Then I added two conditions which ALSO check the browser URL (stored in PHP's $_GET global) so that it will show offline immediately without need to refresh the screen. I also used the vBulletin class object to reference the login user ID, so it's likely to unchange as you upgrade vB. I also properly referenced the misc directory using vB syntax.

Well, that's how I did it, working nicely on my setup with this most excellent skin.
A very excellent idea, i really like this alot :| if u dont mind i might even add this in TXT file in the next release.

Quote:
NOTE TO GRIFFIN80:

On a side note, I'd like to let Griffin80 know I have removed the verbiage USFTECH in all images and templates including credit copyright in the footer. I paid extra to be able to remove the vB copyright info in the footer when I licensed my vB because I am setting up a complex portal using integrated plugins (blogs, live chat, media gallery and forum) all embedded within your skin. What I've done instead is create a "credits and licensing" page linked in my footer which will inform the public of your hard work and credit you fully. I am so pleased with your skin I wish to donate using the PayPal option here. Please contact me by PM on here with an amount you feel is fair and we'll discuss. This will be in addition to the credit page on my site. Trying to be as fair and honest as possible. Thank you, again, for the great skin. If I don't see a PM or a response in a week or so I'll donate anyway. I edited this to correct a typo in the code.

-jim
Thats fine, i have no problem with my credits being on another page
And i will be happy with any donation u send, thx for your nice compliments
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01113 seconds
  • Memory Usage 1,793KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete