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.


Topics - Stoleti

Pages: [1] 2 3 4
1
Requests for paid modifications / Jobbörse / Steam connect
« on: July 30, 2011, 02:57:16 AM »
hello everyone

i've seen sites using Steam as way to connect to their sites, without need a whole own registration only needs to connect the user steam account (bit like how facebook does), since i'm gammer i want to use steam account using steam api (and using steam info, like profile id, avatar, etc).


anyone can tell me how to do this? 

maybe useful link http://steamcommunity.com/dev

2
Mods & Plugins (Requests & Discussions) / [req] Last Action / Location
« on: October 11, 2006, 02:41:03 AM »
hi

how can i added at user profile the last location (action) ? before him(her) logout ?

like: Last Action:http://www.yoursite.com/lightbox.php?action=manage

how can i do it ? :?:

3
Discussion & Troubleshooting / Need help to track posts
« on: October 09, 2006, 09:22:48 PM »
I'm using dreamboard and i'm trying track the topics started per user, trying use this code but this ill not working what i need do ?

my code:
Quote
//-----------------------------------------------------
//--- Topics By User---------------------------------------
//-----------------------------------------------------
   $sql = "SELECT SUM(thrtopic) AS sum
         FROM ".BOARD_TCONT_TABLE."  WHERE user_id = '".$user_info['user_id']."' AND thrtopic  ORDER by thrdate DESC  ";
 $row = $site_db->query_firstrow($sql);

 $sum = (isset($row['sum'])) ? $row['sum'] : 0;
 $foruminfo = "".$row['sum']."\n";
 
 $site_template->register_vars("foruminfo", $foruminfo);
unset($foruminfo);

What i need do or change to make show the topics started by each user ?????


4
Chit Chat / How set at myphpadmin DB user,Db pass...
« on: September 25, 2006, 04:11:39 PM »
I'm using a software called NetServer, this allow me to run websites at my own computer, having sql,php,apache,etc etc , but this don't have cpanel , so how can i create via myphpadmin :

DB USER
DB NAME
DB PASSWORD


????

or if someone knows another program like NetServer...  :roll:

5
hi

i'm wondering about how make viewable , show who is browsing a specific page  :?:

i.e

who's viewing this page
user 1, user 2 , user 3 ...

any ideia ??

6
Well i've make it for my website and i've decided share it , its my first tiny mod !!

BACKUP ALL FILES BEFORE !!!

This mod requires:

[MOD] Select country and gender with gif when register => http://www.4homepages.de/forum/index.php?topic=7385.0


First create a new php file "gender_stats.php" and upload to 4images/includes/

Quote
<?PHP
if (!defined('ROOT_PATH')) {
  die("Security violation");
}
//-----------------------------------------------------
//--- Show number of Girls ----------------------------
//-----------------------------------------------------
  $sql = "SELECT COUNT(*) as users
         FROM ".USERS_TABLE."
         WHERE user_id >= '".GUEST."' AND user_gender = 'Female'";
 $row = $site_db->query_firstrow($sql);

 $total_girls = "".$lang['users_girls']." ".$row['users']."\n";
 
 $site_template->register_vars("total_girls", $total_girls);
unset($total_girls);
//-----------------------------------------------------
//--- Show number of Boys ----------------------------
//-----------------------------------------------------
  $sql = "SELECT COUNT(*) as users
         FROM ".USERS_TABLE."
         WHERE user_id >= '".GUEST."' AND user_gender = 'Male'";
 $row = $site_db->query_firstrow($sql);

 $total_boys = "".$lang['users_boys']." ".$row['users']."\n";
 
 $site_template->register_vars("total_boys", $total_boys);
unset($total_boys);
//-----------------------------------------------------
//--- Show number of Bisexual ----------------------------
//-----------------------------------------------------
  $sql = "SELECT COUNT(*) as users
         FROM ".USERS_TABLE."
         WHERE user_id >= '".GUEST."' AND user_gender = 'Bisexual'";
 $row = $site_db->query_firstrow($sql);

 $total_bisexual = "".$lang['users_bisexual']." ".$row['users']."\n";
 
 $site_template->register_vars("total_bisexual", $total_bisexual);
unset($total_bisexual);
?>

Open Main.php and add before ?>

Quote
$lang['users_boys'] = "Total Boys:";
$lang['users_girls'] = "Total Girls:";
$lang['users_bisexual'] = "Total Bisexual:";

Now at your index.php find:

Quote
require(ROOT_PATH.'includes/sessions.php');

Add after:

Quote
include(ROOT_PATH.'includes/gender_stats.php');

After you just need added the tags at your html template:

{total_bisexual}
{total_boys}
{total_girls}

Remenber i've test it at my own gallery using 1.7.1 , so use it at your own risk !!  :wink:


7
Mods & Plugins (Requests & Discussions) / [Profile Rating - I Need Help]
« on: August 27, 2006, 06:05:00 PM »
i've tried make a users rate another users , using same codes used at images but without success, so if someone would help ...

Page_Header:

Quote
$rate_profile = "";
  if ($user_info['user_id']) {
    $site_template->register_vars("rate", $lang['rate']);
    $rate_profile = $site_template->parse_template("rate_profile");
  }
  $site_template->register_vars("rate_profile", $rate_profile);
  return true;
}

Functions:

Quote
    "user_votes" => $user_row['user_votes'],
    "user_rating" => $user_row['user_rating'],

Quote
$rate_profile = "";
  if ($user_info['user_id']) {
    $site_template->register_vars("rate", $lang['rate']);
    $rate_profile = $site_template->parse_template("rate_profile");
  }
  $site_template->register_vars("rate_profile", $rate_profile);
  return true;
}


rate_profile.html

Quote
<form method="post" action="{self}">
  <table border="0" cellspacing="0" cellpadding="1">
    <tr>
      <td class="head1">
        <table border="0" cellspacing="0" cellpadding="3" class="row1">
          <tr>
            <td valign="bottom">
              <select name="rating" class="select">
                <option value="">--</option>
                <option value="5">5</option>
                <option value="4">4</option>
                <option value="3">3</option>
                <option value="2">2</option>
                <option value="1">1</option>
              </select>
            </td>
            <td>
              <input type="hidden" name="action" value="rateuser" />
              <input type="hidden" name="id" value="{user_id}" />
              <input type="submit" value="{rate}" class="button" name="submit" />
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</form>

What i need change or added to make rating bar work at users profiles ????

8
i've installed a mod before for i lost it, and i can't find it !!

how can i (or find) it ??? show the last 5 or 20 registred users at my site ??  :|

9
Discussion & Troubleshooting / help to fix Top 10 by gender at index.php
« on: August 23, 2006, 10:12:24 PM »
hi

I'm trying add at my index.php page a top 10 users by gender, but this isn't working giving a eval(), error....

here the code:

Code: [Select]
<?
include "config.php";
$profile_img = '<img src="http://www.site.com/templates/default/images/profile.gif" border="0" align="absmiddle" alt="Member profile">';
$pm_img = '<img src="http://www.site.com/templates/default/images/pm.gif" border="0" align="absmiddle" alt="Private message">';
$db = mysql_connect("$db_host", "$db_user", "$db_password") or die ("Error");
@mysql_select_db("$db_name", $db) or die ("DB not found");
$result = mysql_query("SELECT profile_hits, user_name,user_gender, user_id FROM 4images_users ORDER BY profile_hits WHERE user_level >= '".GUEST."' AND user_gender = 'male'  DESC LIMIT 10");
while ($row = mysql_fetch_array($result)) {
echo
"<a href=http://www.blacktragedies.com/private_message.php?action=new&user_id=".$row['user_id'].">".$pm_img."</a>
<a href=http://www.blacktragedies.com/member.php?action=mailform&user_id=".$row['user_id'].">".$mail_img."</a>
<a href=http://www.blacktragedies.com/member.php?action=showprofile&user_id=".$row['user_id'].">".$row['user_name']."</a><br/>";
}
?>

I'm trying added this at my home.html , what is wrong , or how fix it ??

10
Mods & Plugins (Requests & Discussions) / Request: Lightbox Modification
« on: August 20, 2006, 05:04:19 AM »
I've a simple question !!

How make lightbox added The Image Owner (user_name) or user_id , and not by image ??

11
Mods & Plugins (Requests & Discussions) / Request: Profile Rating
« on: August 18, 2006, 11:18:13 PM »
Hi

I'm using my site as community, and i would know if its possible added a "rating bar" at profiles, simply rating system (1-10) for each profile ??

PS: showing rating/nºvotes !

 :mrgreen:

12
Requests for paid modifications / Jobbörse / PHP Coder Needed
« on: August 10, 2006, 11:20:11 PM »
Hi

i'm looking for help , i've a problem , i need some stuff (php) but i don't have paypal (more coz paypal don't accept any of my cards) so i've the money but not paypal, so i'm wondering if any php coder (if possible inside europe) accept cash (euros) for mod's ?

i can pay (send money) before....

 :(

13
Its possible make option for users show/not show them all added images at thumbnails at them profile page ??

 :?:

14
Well i had small problem , more because my server are on US and the hour of comments and another stuff posted by me and user shows the server gmt , for example who lives in uk , or another country with gmt 0 , this ill show the -5 hours (on comments hour) , so i'm wondering if its possible users define them gmt hour at editprofile ?? and make it show the hour at them gmt time ?

 :?:

15
I would know how make the user_name show at page bar " {user_name} at SITENAME.COM - Microsoft ........ "

how can i do it ? :?:

Pages: [1] 2 3 4