You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 58 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Theme help... lots of it! [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
joho-noho
Nuke Soldier
Nuke Soldier


Joined: Mar 17, 2003
Posts: 18


PostPosted: Sun Apr 13, 2003 2:27 pm Reply with quoteBack to top

I have been working on customized/upgraded for 6.5 version of skinner (original: For 6.0 on http://www.pixdesign.ch). I have gotten alot of it, but I am having a little bit of trouble:


__________________________________
You can view what I am talking about on http://www.joho-noho.net

1.) On the top, I am trying to make a login form similar to the one on the pd2003 pro (also avalible on http://www.pixdesign.ch). I have created that , but what I am having trouble with is that there is, for some reason a space after it. I have gotten rid of all "<BR>"s and "\n"s, but there is a space after the login. I have also removed the height on the table/tr/td it sits in. I also tried to put in <nobr>...</nobr>, that didn't work either. I am lost on this...

____________________________________
2.) Also, when they log in, I made the same thing that is on this page (with the logout, new private messages, ect.) I am wondendering how I can change it to a public message if there is one, but if there isn't it will just show the logout, new private messages, ect. This is the section of code I put in:


all of those & signs are "& nbsp ;" (take away the spaces in the quotes) in the real code
Code:
   ."<tr><td width=\"100%\" bgcolor=\"$bgcolor8\" background=\"themes/skinner/images/login.png\" align=\"center\" valign=\"absMiddle\">";
         cookiedecode($user);
         $uname = $cookie[1];
         
         $sql = "SELECT username FROM $user_prefix"._users." ORDER BY user_id DESC LIMIT 0,1";
         $result = $db->sql_query($sql);
         $row = $db->sql_fetchrow($result);
         $lastuser = $row[username];
         $numrows = $db->sql_numrows($db->sql_query("SELECT user_id FROM $user_prefix"._users.""));
         
         $sql = "SELECT uname, guest FROM $prefix"._session." WHERE guest=0";
         $result = $db->sql_query($sql);
            
         echo  "<nobr><form action=\"modules.php?name=Your_Account\" method=\"post\"><font color=\"white\">";
         
         if ($public_msg!=""){   
            $public_msg = public_message();
            echo "$public_msg";
         }
         else if (is_user($user)) {
            echo  "<strong>Welcome back $uname!
            &&&&&&&&&";
            
            echo "<a href=\"modules.php?name=Forums&file=search&search_id=newposts\">New Forum Posts</a>
            &&&&&&&&&";
            $sql = "SELECT user_id FROM $user_prefix"._users." WHERE username='$uname'";
            $result = $db->sql_query($sql);
            $row = $db->sql_fetchrow($result);
            $uid = $row[user_id];
            $newpms = $db->sql_numrows($db->sql_query("SELECT privmsgs_to_userid FROM $prefix"._bbprivmsgs." WHERE privmsgs_to_userid='$uid' AND (privmsgs_type='1' OR privmsgs_type='5')"));
            
            if ($newpms==0){
               echo "You have <a href=\"modules.php?name=Private_Messages\">no new Private Messages</a>.";
            }
            else{
               echo  "<img src=\"themes/skinner/images/pmail.gif\" height=\"17\" width=\"21\" align=\"absMiddle\">You have <a href=\"modules.php?name=Private_Messages\">$newpms new Private Messages</a>.";
            }
            
            echo  "&&&&&&&&&
            [ <a href=\"modules.php?name=Your_Account&op=logout\">Logout</a> ]</strong>";
            
         } else {
            echo  ""._NICKNAME." <input type=\"text\" name=\"username\" size=\"10\" maxlength=\"25\">
            &&&";
            echo  ""._PASSWORD." <input type=\"password\" name=\"user_password\" size=\"10\" maxlength=\"20\" onKeyPress=\"checkCapsLock( event )\">
            &&&";
            if (extension_loaded("gd")) {
               mt_srand ((double)microtime()*1000000);
               $maxran = 1000000;
               $random_num = mt_rand(0, $maxran);
               require("config.php");
               $datekey = date("F j");
               $rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey));
               $code = substr($rcode, 2, 10);    
               echo "<input type=\"hidden\" NAME=\"gfx_check\" SIZE=\"11\" MAXLENGTH=\"10\" VALUE=\"$code\">";
               echo "<input type=\"hidden\" name=\"random_num\" value=\"$random_num\">\n";
            }
            echo "<input type=\"hidden\" name=\"redirect\" value=$redirect>\n";
            echo "<input type=\"hidden\" name=\"mode\" value=$mode>\n";
            echo "<input type=\"hidden\" name=\"f\" value=$f>\n";
            echo "<input type=\"hidden\" name=\"t\" value=$t>\n";
         
            echo  "<input type=\"hidden\" name=\"op\" value=\"login\">";
            echo  "<input type=\"submit\" value=\""._LOGIN."\">
            &&&
            [<a href=\"modules.php?name=Your_Account&op=new_user\">"._BREG."</a>]";
         }
         echo  "</font></form></nobr>";
   echo "</td></tr></table>";



_____________________________________
http://www.joho-noho.net/modules.php?name=Forums&file=viewtopic&p=2665#2665 is a reference to what I speak of in #3

3.) when I go to my forums, the posts go out of the main table, I don't know why.

______________________________________

Image

4.) I cannot figure out what is causing that space between the modules block and the logo on every page. Do a view source on http://www.joho-noho.net to see if you can find what is doing it.

______________________________________

That is the end of my problems which I have been saving up.

ANY help will be appreciated.
Find all posts by joho-nohoView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.189 Seconds - 353 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::