Support Forum

  • Page:
  • 1

How can I do it?

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hello everyone,
I was wondering how can I change the text in a tab when I click on it.
This is the code that I use in index.php (template)
<!-- begin top panel -->
				<?php if ($this->countModules('top')) : ?>
					<div id="toppanel-container" class="wrapper">
						<div id="topmod">
							<div class="wrapper">
								<jdoc:include type="modules" name="top" style="xhtml" />
							</div>
							<div id="top-tab">
								<span class="tab-text"><?php echo JText::_('MYOPEN') ?></span>
							</div>
						</div>
					</div>
				<?php endif; ?>
				<!-- end top panel -->
Maybe I have to write some ELSE's mmm? and How?

Here I attached a pic to be more clear
Attachments:
  • selimoff's Avatar
  • selimoff
  • Free Extensions
  • &#1063;&#1090;&#10​86; &#1090;&#1099; &#1076;&#1077;&#10​83;&#1072;&#1077;&​#1096;&#1100;?
  • 30 posts
  • Karma: 0
The administrator has disabled public write access.
Hi Selimoff,

Im not sure which template or extension this is using but it looks like its controlled by a language file and specifically a variable called MYOPEN. Its best to contact the developer directly about this sort of stuff.

Thanks Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Hi Anthony,
The variable I did it by myself, it's a rockettheme template and I use 3 languages on my site, that's why I did it.
This is the original code of the template file (index.php)
<!-- begin top panel -->
				<?php if ($this->countModules('top')) : ?>
					<div id="toppanel-container" class="wrapper">
						<div id="topmod">
							<div class="wrapper">
								<jdoc:include type="modules" name="top" style="xhtml" />
							</div>
							<div id="top-tab">
								<span class="tab-text">Member Login</span>
							</div>
						</div>
					</div>
				<?php endif; ?>
				<!-- end top panel -->

Hope you can help me, I saw something similar on your template VISION
Regards
  • selimoff's Avatar
  • selimoff
  • Free Extensions
  • &#1063;&#1090;&#10​86; &#1090;&#1099; &#1076;&#1077;&#10​83;&#1072;&#1077;&​#1096;&#1100;?
  • 30 posts
  • Karma: 0
The administrator has disabled public write access.
Ah ok - Vision just uses an image so that the open state triggers a different background position for the image.

If you are using Joomfish you could just create a few instances of the module to avoid any need for indepth coding.

Cheers Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers