Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mightyaf

Pages: [1]
1
Mods & Plugins (Releases & Support) / Re: [MOD] Top 25 uploader
« on: May 08, 2005, 05:57:57 PM »
That got rid of admin. Thanks. I can live with that however how can I also remove Guest? Is guest considered a user? (technically). Can i fake the database by addind a zero so that guest does not appear. How do i do this?
Thank you V@no!!!

2
I have the top 25 mod working, but how do I not include admin and Guest?
Thank you.

3
Mods & Plugins (Releases & Support) / Re: [MOD] Top 25 uploader
« on: May 07, 2005, 04:27:05 PM »
Thanks I had to replace the code
Quote
$sql = "SELECT user_t_images, user_name, user_id FROM ".USERS_TABLE."
WHERE user_level >= '".USER."'
ORDER BY user_t_images DESC
LIMIT 25";
with this one
Quote
$sql = "SELECT COUNT(i.image_id) AS user_t_images, u.user_name, u.user_id
        FROM ".USERS_TABLE." u
        LEFT JOIN ".IMAGES_TABLE." i ON (i.user_id = u.user_id)
        WHERE u.user_level > ".GUEST."
        GROUP BY u.user_id
        ORDER BY user_t_images DESC
        LIMIT 5";
in page_header.php

Thank you very much.

4
The problem is I see 25 users with zeros next to the usernames like this
Guest 0
admin 0
phantom 0
mwenja 0
dhakari 0
bensonn 0
Even after installation I tried to upload pictures to see if the count would increment but no luck. Isn't the zero suppossed to be replaced by the number of pictures uploaded?
I wonder what I did wrong. All the help is greatly appreciated.

5
Ater trying it out step by step, I got it to work. Here is the code, simple but to some not easy.
Quote
<form method="post" action="4images/search.php">
  <table width="100%" border="0" cellspacing="0" cellpadding="1">
    <tr>
      <td class="head1">
        <table width="100%" border="0" cellpadding="4" cellspacing="0">
          <tr>
          <td colspan="2" valign="top" class="head1">&nbsp;</td>
          </tr>
          <tr>
            <td valign="top" class="row1">&nbsp;
         </td>
            <td class="row1" valign="top">
              <input type="text" name="search_keywords" size="40" class="input" />
              <br />
              <input type="checkbox" name="search_new_images" value="1" />
              Search only within the past 14 days </td>
          </tr>
          <tr>
            <td class="row1">&nbsp;</td>
            <td class="row1">
              <input type="submit" value="Search" class="button" />
            </td>
          </tr>
        </table>      </td>
    </tr>
  </table>
</form>
Thanks V@no for the help.

6
I would like my visitors to use the search box right on my front page outside the 4images gallery. I am using PHP I tried to use the same code found in search_form.html inside the default template folder but that does not work. I am looking for the simple search code, not the Advanced search. I searched the forums but can't find the code. All help is appreciated.  :?:

7
Mods & Plugins (Requests & Discussions) / 4IMAGES AND PHPBB QUESTIONS
« on: April 10, 2005, 11:57:41 PM »
I have phpbb and 4images. I just downloaded the mod to merge the two and have some questions.

(1) Can users register from 4images or PHPBB?
(2) Which database do we keep for use, the PHPBB?
Thank you all.

8
 :lol:I tried that and it worked V@no. Here is the code I used on my website.
Quote
<form action=http://www.mysite.com/4images/login.php method=post>
        <input type="text" size="18" name="user_name" class="blackCopy" value="Username" onFocus="if(this.value=='Username')this.value='';">
          <br />
        Password:<br />
        <input type="password" size="18" name="user_password" class="blackCopy" />       
       
        <table border="0" cellspacing="0" cellpadding="0">
        <tr valign="top">
            <td height="20">
              <input type="checkbox" name="auto_login" value="1" />            </td>
            <td><span class="smalltext">Log me on automatically next visit?</span></td>
          </tr>
        </table>
      <input type="hidden" name="url" value="http://www.www.mysite.com/4images/index.php">
        <input type="submit" value="Log In" class="blackCopy" />
      </form>
I made very slight changes but you can make yours too.
Something you may want to keep in mind, I did not test the security of the form.

9
After successful login visitors should be redirected to the usual 4images category selection area which is index.php 4images/index.php
Thanks

10
I tried that but when you enter the username and password then hit enter, it will give you a blank (404) error "this page cannot be displayed" type of page BUT when you refresh the page, you are logged in. It is very weird but I tried that. I don't want to tell my visitors to hit refresh if they get a blank page.

11
 :oops:I have created a php page for my website. 4images gallery is just part of the site. I would like my visitors to see a login box on the very first page of my website example www.mysite.com instead of logging in at www.mysite.com/4images. I want to have the capability of copying this user login box to any page outside the 4images gallery. I tried to use
Quote
<?php require('http://www.mysite.com/4images/index.php?template=user_loginform'); ?>
but when I click on login it gives me a page like
Quote
http://www.mysite.com/login.php?sessionid=8d4f4a38e80fdaa44d80c2a6199e644b
which is missing the gallery name between mysite.com/ and login.php This code is assuming that you are in the gallery. How can I make it work? All the help is appreciated.

Pages: [1]