Welcome, Guest. Please Login or Register.
April 27, 2025, 11:03:26 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Graphics and Templates  |  Button Implementation Problem « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Button Implementation Problem  (Read 560 times)
GaleForce
Full Member
***
Posts: 183


Zabrak Fighting for the Rebellion

murphypuppy@hotmail.com WWW
Button Implementation Problem
« on: September 05, 2002, 12:34:58 AM »
Reply with quote

After playing with Subs.php and English.lng to add a button to my forum, a big problem errupted. The Home, Help, and Search buttons are missing. You can see what I mean by logging into my forum (http://www.kotorpa.com/forum) with test:test . I may of messed up my Subs file... here is my $yymenu:

$$yymenu == "<a href=\"$scripturl\">$img[home]</a>$menusep<a href=\"$helpfile\" target=_blank>$img[help]</a>$menusep<a href=\"$cgi;action=search\">$img[search]</a>";
   if($settings[7] == 'Administrator') { $yymenu = $yymenu.$menusep."<a href=\"$cgi;action=admin\">$img[admin]</a>"; }
   if($username == "Guest") { $yymenu .= $menusep."<a href=\"$cgi;action=login\">$img[login]</a>$menusep<a href=\"$cgi;action=register\">$img[register]</a>";
   } else {
      $euser = urlencode($username);
      $yymenu .= "$menusep<a href=\"$cgi;action=profile;user=$euser\">$img[profile]</a>";
      if($enable_notification) { $yymenu .= "$menusep<a href=\"$cgi;action=shownotify\">$img[notification]</a>"; }
      // Calendar.
if ($modSettings['cal_enabled'] == 1)
$yymenu .= "$menusep<a href=\"$scripturl?action=calendar\">$img[calendar]</a>";

      $yymenu .= "$menusep<a href=\"$cgi;action=logout\">$img[logout]</a>";
   }
Logged

A.M.A.
YaBB God
*****
Posts: 685


.:: :-) ::.

evolve_xp@hotmail.com WWW
Re:Button Implementation Problem
« Reply #1 on: September 05, 2002, 12:51:36 AM »
Reply with quote

strange ???
isn't the first line suppose to look like this
 
$yymenu = "<a href=\"$scripturl\">$img[home]</a>$menusep<a href=\"$helpfile\" target=_blank>$img[help]</a>$menusep<a href=\"$cgi;action=search\">$img[search]</a>";
Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Graphics and Templates  |  Button Implementation Problem « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.032 seconds with 18 queries.