News: ..download any of my Theme's without registering..
Welcome, Guest.
Please login or register.
Loading...
  • Home
  • Forum
  • Search
  • Calendar
  • Downloads
  • Login
  • Register
  • Cripzone
  • Forum
  • Theme Support
  • Theme Support
  • Almost afraid to ask...
* * *

Get FireFox!

Best Viewed With FireFox!

User

Welcome, Guest. Please login or register.
May 21, 12, 03:45:59 AM

Login with username, password and session length

CZ Friends

  •      TPsupport
  •      build&Tell
  •      tentDwellers
  •      BlocweB

“Random Quotes”

PROV 16:4 The LORD hath made all things for himself: yea, even the wicked for the day of evil.
« previous next »
  • Reply
  • Send this topic
  • Print
Pages: [1]   Go Down

Author Topic: Almost afraid to ask...  (Read 2090 times)

0 Members and 1 Guest are viewing this topic.

Druwish

  • Guest
Almost afraid to ask...
« on: Jul 01, 10, 10:37:34 AM »
  • Quote
Do you have a link to, or can you tell me how to add an arcade button to the original Black Rain theme?  I already have the .gif button for it. The button .gif is a little animated space invaders guy.

I'm using smf version 1.1.11
Report to moderator   Logged

Offline ZarPrime

  • Site Admin
  • Hero Member
  • *
  • Posts: 950
  • Gender: Male
  • ~~~ Knowledge is Power
Re: Almost afraid to ask...
« Reply #1 on: Jul 01, 10, 11:29:39 AM »
  • Quote
Druwish,

Welcome to Cripzone.

You say you have the original Black Rain theme but this is somewhat problematic as there have been several versions of that theme.  Can you give us a link from where you downloaded the theme from so that we know for sure which version you are using.  Also, when Crip logs in here, he might need to see your site so could you provide a link to your site.  Finally, when you talk about an arcade button, are you talking about the top menu?  The reason I ask is that I had thought that all versions of Black Rain used a tab rather than a button but I could be wrong.  Crip will know the answer to that better than I will.

ZarPrime
Report to moderator   Logged

Druwish

  • Guest
Re: Almost afraid to ask...
« Reply #2 on: Jul 01, 10, 02:26:42 PM »
  • Quote
I call top menu tabs "buttons".  Its a bad habit of mine that sometimes confuses people when I say it.

Here's the link to the theme I have loaded on my message board: 

http://custom.simplemachines.org/themes/index.php?lemma=118

Here's the link to my site: 

*Removed*
Report to moderator   Logged

Offline Crip

  • Administrator/Owner
  • Hero Member
  • *
  • Posts: 5,770
  • Gender: Male
  • Say it ant true?
    • Cripzone
Re: Almost afraid to ask...
« Reply #3 on: Jul 01, 10, 02:50:27 PM »
  • Quote
Quote from: Druwish on Jul 01, 10, 02:26:42 PM
I call top menu tabs "buttons".  Its a bad habit of mine that sometimes confuses people when I say it.
Here's the link to the theme I have loaded on my message board: 
http://custom.simplemachines.org/themes/index.php?lemma=118
Here's the link to my site: 
http://evilbastages.net/forum/index.php

Hi ,
this small bit of code should work , if not , we can try another way:
Index.template.php Add Like:
Code: [Select]
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;

   // Work out where we currently are.
   $current_action = 'home';
   if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
      $current_action = 'admin';
   if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'arcade', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
      $current_action = $context['current_action'];
   if ($context['current_action'] == 'search2')
      $current_action = 'search';
   if ($context['current_action'] == 'theme')
      $current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';

   // Are we using right-to-left orientation?
   if ($context['right_to_left'])
   {
      $first = 'last';
      $last = 'first';
   }
   else
   {
      $first = 'first';
      $last = 'last';
   }
The above is just for the "$current_action"


The below is how your Arcade button_tab _ link is added >>>>

Code: [Select]
   echo '
             <div id="tabs6">
             <ul>';

// Show the [home] button.
    echo '<li', $current_action == 'home' ? ' id="chosen"' : '', '><a href="', $scripturl, '"><span>' , $txt[103] , '</span>< / a ></li>';

// Show the [arcade] button.
    echo '<li', $current_action == 'arcade' ? ' id="chosen"' : '', '><a href="', $scripturl, '?action=arcade"><span>Arcade</span>< / a ></li>';

Report to moderator   Logged
I have become comfortably numb!

No PM's for Support unless invited!
I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -


Donate A Bible! | Quad Link | TOTM Winner.

Druwish

  • Guest
Re: Almost afraid to ask...
« Reply #4 on: Jul 01, 10, 06:57:10 PM »
  • Quote
I'll give it a shot.  It's been quit a while since I've worked with code.  I'll take it nice and slow. :)
Report to moderator   Logged

Offline ZarPrime

  • Site Admin
  • Hero Member
  • *
  • Posts: 950
  • Gender: Male
  • ~~~ Knowledge is Power
Re: Almost afraid to ask...
« Reply #5 on: Jul 01, 10, 07:25:41 PM »
  • Quote
Druwish,

Quote from: Druwish on Jul 01, 10, 02:26:42 PM
I call top menu tabs "buttons".  Its a bad habit of mine that sometimes confuses people when I say it.

It's an honest mistake.  Most older themes did indeed use buttons but, these days, most themes use tabs.  Let us know if you need any additional help.

ZarPrime
Report to moderator   Logged

Druwish

  • Guest
Re: Almost afraid to ask...
« Reply #6 on: Jul 01, 10, 07:56:52 PM »
  • Quote
THANK YOU!!!  I had to close 2 spaces that were in the code, but other than that it worked like a charm!  You da man!  Thanks again, it's very much appreciated! O0 :)
Report to moderator   Logged

  • Reply
  • Send this topic
  • Print
Pages: [1]   Go Up
« previous next »
  • Cripzone
  • Forum
  • Theme Support
  • Theme Support
  • Almost afraid to ask...
 

Translate Cripzone

Recent

  • Theme that takes advantag... by Maxx
    [May 16, 12, 06:48:40 PM]
  • Style400 - smf logo click... by Crip
    [May 13, 12, 02:25:42 PM]
  • FireFox=12.0 by Maxx
    [May 12, 12, 09:22:05 AM]
  • Styx! by Crip
    [May 08, 12, 01:47:47 PM]
  • CZ-Casual]theme by Crip
    [May 07, 12, 01:19:32 PM]
  • Starship - We Built This ... by Allan
    [May 07, 12, 12:18:31 PM]
  • Bon Scott Era! by Crip
    [May 07, 12, 08:05:20 AM]
  • SMF 2.0.2 | SMF © 2011, Simple Machines
    TinyPortal © 2005-2012
  • XHTML
  • RSS
  • WAP
  • iMOTE
  • WAP2
Style308 by, Crip