Jump to content

Kitty

Members
  • Posts

    31
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://rock-kitty.net

Profile Information

  • Gender
    Female

Kitty's Achievements

Member

Member (2/5)

0

Reputation

  1. Hello guys! I want to create something similar to http://themes.wordpress.net I know it would be very hard, that's why I'm here asking for your help. I'm running a Wordpress blog where people can create accounts. Now I want them to be able to submit themes, but only those users who have an account. Basically what I want is a site where users can submit zip files. Then the system will unzip them and place into a new numeric folder that it will create itself. And then there will be a preview link that will select the requested folder. Do you guys think I should hire someone to do this for me? Cos I'm really bad at php....
  2. Thanks! I tried SourceGuardian, but I got this error: footer.php is protected by SourceGuardian and requires the SourceGuardian loader ixed.4.4ev.lin. The SourceGuardian loader has not been installed, or is not installed correctly. Please find the required loader in the ixed subdirectory within your SourceGuardian installation directory. So, I found that ixed.4.4ev.lin file but I don't know what to do with it. Do you know? Thanks!
  3. Hello guys! I'm making Wordpress themes and put a link back to my site in the footer.php and now I see people using my themes with removed copyright. What I'm trying to do is encrypt my footer.php so that people won't be able to see the codes and remove them. Something like: kljdlksjaiowuquwoiueoiqwu Someone recommended me to use base64_encode, but I'm not very good at PHP, so I don't understand how to use it. Simply I don't want people to be able to edit the code and if they remove the code completely they receive a php error or a messed layout or something like that. Maybe there's an encryptor I can use? Any help would be greatly appreciated! Thanks!
  4. I'm trying to integrate my layout into wordpress and I ran into a big problem. When I edit my sidebar template I want my links to look like this: <div class="nav"> <h2>Categories</h2> <ul class="nav"> <li><a href="#">Uncategorized</a></li> </div> But I've no idea what to do with this <?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?> <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?> <?php wp_list_bookmarks(); ?> I only added the <div> tags and when I viewed my page's source it showed: <div class="nav"> <li class="categories"><h2>Categories</h2><ul> <li><a href="http://rock-kitty.net/wordpress/?cat=1" title="View all posts filed under Uncategorized">Uncategorized</a> (3) </li> </ul></li> <li id="linkcat-2" class="linkcat"><h2>Blogroll</h2> <ul> <li><a href="http://www.alexking.org/">Alex</a></li> <li><a href="http://inphotos.org/">Donncha</a></li> <li><a href="http://dougal.gunters.org/">Dougal</a></li> <li><a href="http://photomatt.net/">Matt</a></li> <li><a href="http://zengun.org/weblog/">Michel</a></li> <li><a href="http://zed1.com/journalized/">Mike</a></li> <li><a href="http://boren.nu/">Ryan</a></li> </ul> </li> </div> So, my question is, how can I edit that? And where can I find those "categories" and "bookmarks" files? If anyone can help me, please reply ASAP! Thanks!!!
  5. Kitty

    CSS Rollovers

    I have a CSS rollover menu and it works great in Firefox, but not in IE. When I hover over the buttons they look ugly and the background disappers for a few seconds. I tried fixing it by adding * html .nav a:hover { visibility: visible;} but that only fixed the font. Here's my CSS: .nav a { display: block; width: 188px; background: inherit; background-image: url(images/link.jpg); padding: 11px 0px 11px 0px; text-indent: 17px; text-decoration: none; text-transform: capitalize; font: bold 9pt Verdana, arial; color: #CCCCCC;} .nav a:hover { background: inherit; background-image: url(images/hover.jpg); color: #FFFFFF;} * html .nav a:hover { visibility: visible;} And HTML: <div class="nav"> <a href="#">» Link goes here</a> <a href="#">» Link goes here</a> <a href="#">» Link goes here</a> <a href="#">» Link goes here</a> </div> I can't use javascript, cos it requires to put my buttons directly on the page, but I have them all as backgrounds... So, is there anything I can do to fix this, or is IE hopeless? Hope someone can help!
  6. No worries! Thank you very much!
  7. Hmm, thanks, but if I use || instead of && my files number increases with 3! ???
  8. You guys are quick and awesome! Thanks a lot!
  9. Hello everyone who's reading this! I have a script that counts how many files I have in a specific folder, but I recently added index.html files with a redirect script in them to all of my folders and now I don't want my script to count that index.html file. So, is it possible to make it count all files except for 1? This is the script I'm using: <?php $path_layouts = opendir("/home/***/public_html/graphics/layouts"); while ($directory_layouts = readdir($path_layouts)) { if ($directory_layouts != "." && $directory_layouts != "..") { $counter_layouts++; } } echo $counter_layouts; closedir($path_layouts); ?> Thanks!
  10. The layouts that are in a database. Do you know what I need to add to my code?
  11. I found a code, that selects the layouts from my database and displays the number of the downloads/previews. Here it is: [code]<?php //MySQL connection variables $user="blah";  $host="localhost";  $password="blah";  $database="blah";  $connection = mysql_connect($host,$user,$password)  or die ("couldn't connect to server"); $db = mysql_select_db($database,$connection)  or die ("Couldn't select database");  //Which mySQL table to select from and in what order $query = "select * from `layouts` order by id desc";  $result = mysql_query($query, $connection) or die ("Could not execute query : $query ." . mysql_error());  $rows = mysql_num_rows($result); if ($rows=="0") { echo "No layouts found."; } //Gets and assigns variables to array     while ($row=mysql_fetch_array($result)) {      $id=$row["id"];      $title=$row["title"];      $date=$row["date"];     $type=$row["type"];     $size=$row["size"];      $designer=$row["designer"];      $designerurl=$row["designerurl"];        $previewimage=$row["previewimage"];     $download=$row["download"];      $dcounter=$row["dcounter"];     $preview=$row["preview"];     $pcounter=$row["pcounter"];      //Prints out results     echo "<table id=\"box_top\"><tr>     <tr><td>     <b>$title</b>     </td>     </tr>     </table>         <table id=\"box\">     <tr>     <td valign=\"top\">     <img src=\"$previewimage\" width=\"160\" height=\"110\" border=\"0\" alt=\"\">     </td>      <td valign=\"top\" width=\"170\">     <b>Added</b>: $date     <br><b>Type</b>: $type     <br><b>Size</b>: $size     <br><b>Designer</b>: <a href=\"$designerurl\" target=\"_blank\">$designer</a>     <br><b>Previews</b>: $pcounter     <br><b>Downloads</b>: $dcounter     <br><br> <a href=\"preview.php?id=$id\"><b>Preview</b></a> &nbsp; <a href=\"download.php?id=$id\"><b>Download</b></a>     </td>     </tr>     </table><br>"; }         ?> [/code] And here's my download.php file: [code]<?php //connection info $user="blah"; $host="localhost"; $password="blah"; $database="blah"; $connection = mysql_connect($host,$user,$password) or die ("couldn't connect to server"); $db = mysql_select_db($database,$connection) or die ("Couldn't select database"); //chooses which table in the layout to load from $q="SELECT * from layouts where id='$id'"; $result= mysql_query($q) or die ("Could not execute query : $q." . mysql_error()); while ($row=mysql_fetch_array($result)) { //table fields [this may not be the same if you have different fields compared to mine]     $id=$row["id"];      $title=$row["title"];      $date=$row["date"];     $type=$row["type"];     $size=$row["size"];      $designer=$row["designer"];      $designerurl=$row["designerurl"];        $previewimage=$row["previewimage"];     $download=$row["download"];      $dcounter=$row["dcounter"];     $preview=$row["preview"];     $pcounter=$row["pcounter"];  header('Location: '.$download); $q="update layouts set dcounter=dcounter+1 where id='$id'"; $result= mysql_query($q) or die ("Could not execute query : $q." . mysql_error()); } ?> [/code] I have another file called preview.php that is the same as download.php, but I only changed: [code]header('Location: '.$preview); $q="update layouts set pcounter=pcounter+1 where id='$id'"; [/code] Now, the problem is when I click on the download or preview link I get a blank white page. Does anyone know what is wrong? Thanks!
  12. These ones? [code=php:0]if(isset($_POST['mail'])) {   //Do this IF post is TRUE   echo("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td>");   if ($message!="") {     //Do this IF message is TRUE     if ($name!="") {       //Do this IF name is TRUE       if ($subject!="") {         //Do this IF subject is TRUE       if ($email!="") { } else { $email="Anonymous"; }//IF there is no email set by sender, SET it to Anonymous[/code] Sorry, I'm not good at php!
  13. I have this email form, but everytime I try to send an email, it says[i] Please, go back and fill in a message![/i] even if I enter my message. Also, if I don't enter an email it sets it to anonymous, but I want it to be required and check if the email is valid. Here's the code: [code] <?php //Change these variables to your needs $yourmail = "mail@mail.com"; if(isset($_POST['mail'])) {   //Do this IF post is TRUE   echo("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td>");   if ($message!="") {     //Do this IF message is TRUE     if ($name!="") {       //Do this IF name is TRUE       if ($subject!="") {         //Do this IF subject is TRUE       if ($email!="") { } else { $email="Anonymous"; }//IF there is no email set by sender, SET it to Anonymous         $message=htmlspecialchars($message); //htmlspecialchars makes sure " will show as " , instead of \"         $name=htmlspecialchars($name); //Lets convert our name to htmlspecialchars as well         $subject=htmlspecialchars($subject);         $ip=GetHostByName($REMOTE_ADDR);         $emailmessage= " Mail generated by: PHP Mail Script\n Script coded by: Arjan Peters\n ---------------------------------------------------------\n Name: $name\n E-Mail: $email\n IP: $ip\n ---------------------------------------------------------\n $message "; //This is the layout for the e-mail message, \n indicates a New Line           mail($yourmail, $subject, $emailmessage); //Send the mail PHP Function > mail(yourmail, subject, message)           echo("<font size=\"2\" face=\"Verdana\">Thanks, $name. Your email has been sent.</font></td></tr></table>");     } else {         //Do this IF subject is FALSE         echo("<font size=\"2\" face=\"Verdana\">Please, go <a href=\"javascript:history.back();\">back</a> and fill in a subject!</font></td></tr></table>");       }     } else {       //Do this IF name is FALSE       echo("<font size=\"2\" face=\"Verdana\">Please, go <a href=\"javascript:history.back();\">back</a> and fill in your name!</font></td></tr></table>");     }   } else {     //Do this IF message is FALSE     echo("<font size=\"2\" face=\"Verdana\">Please, go <a href=\"javascript:history.back();\">back</a> and fill in a message!</font></td></tr></table>");   } } else {   //Do this IF post is FALSE   ?> <table border="0" cellpadding="0" cellspacing="0">       <form method="post">       <tr>           <td>               <font size="2" face="Verdana"><b>Name<font color="#FF0000">*</font>:</b></font>               </td>           <td>               <input type="text" name="name" value="" size="25" maxlength="40">               </td>       </tr>       <tr>           <td>               <font size="2" face="Verdana"><b>E-Mail:</b></font>               </td>           <td>               <input type="text" name="email" value="" size="25" maxlength="50">               </td>       </tr>       <tr>           <td>               <font size="2" face="Verdana"><b>Subject:</b></font>               </td>           <td>         <select name="subject">         <option value="QuestionComment">Question/Comment</option>         <option value="Affiliation">Affiliation</option>         <option value="LinkExchange">Link Exchange</option>         <option value="GraphicRequest">Graphic Request</option>         <option value="Bug">Bug Report</option>         </select>               </td>       </tr>       <tr>           <td colspan="2">               <font size="2" face="Verdana"><b>Message<font color="#FF0000">*</font>:</b></font>               </td>       </tr>       <tr>             <td colspan="2">                 <textarea rows="5" cols="35" name="message" maxlength="300"></textarea>                 </td>       </tr>       <tr>           <td colspan="2">               <input type="reset" value="Reset">               <input type="submit" name="mail" value="Send">               </td>       </tr>       <tr>           <td colspan="2" align="center">               <font size="2" face="Verdana"><font color="#FF0000">*</font> Required </font>               </td>       </tr> </table> <?php } ?>[/code] Please, help!
  14. Anyone? Please!!  :'( I found this update code somewhere: [code=php:0] $db2_query="update `".$prefix_mysql."_layouts` set `downloads`=downloads+'1' where id='$lid'"; $db2_result = mysql_query($db2_query) or die ("Error: $db2_query." . mysql_error()); [/code] how would I change it? Pretty please!!!
  15. Thank you, should I write all pages like that? EDIT// It didn't work..
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.