phpBBHacks.com - need OS version on post
YanksBlog.com, an unofficial New York Yankees fan blog
StatsForums Home   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in
FAQFAQ   SearchSearch   MemberlistMemberlist   TutorialsTutorials   ContactContact Us
Add Us:     MySpace     Facebook     StumbleUpon
Username:    Password:
Remember Me?    
need OS version on post
Goto page 1, 2  Next
BlinkList
del.icio.us
Furl
linkaGoGo
reddit
Simpy
Mister Wong
Yahoo! My Web

Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> phpBB 2 Hack Requests
 See a User Guidelines violation? Please contact us.
Author Message

rector321
New User

Joined: 18 Feb 2007
Posts: 7

PostPosted: February 18th 2007, 9:23 am    Post subject: need OS version on post Reply with quote

hmmm, i see on some forums that under location have OS: Win Xp (Exp)
And under that name of broswer ..

Can phpBB have this (i think that can )
And how to put i in my board?

tnx. and sorry for bad English
Back to top
View user's profile Send private message

Ricky_Racer
Dedicated User

Joined: 19 Jul 2003
Posts: 1398
Location: Middle of Nowhere, USA

PostPosted: February 18th 2007, 11:14 am    Post subject: Reply with quote

Using information provided by Add new field to profile mod by: Acid
I came up with this,
Code:
#
#------[SQL:]-------------------------------------------
#
# If you have a different table prefix then change this command accordingly.
# I have used the default table prefix!
#
ALTER TABLE phpbb_users ADD user_opersys VARCHAR(255)
ALTER TABLE phpbb_users ADD user_browser VARCHAR(255)
#
#------[OPEN:]------------------------------------------
#
./language/lang_english/lang_main.php
#
#------[FIND:]------------------------------------------
#
$lang['Interests'] = 'Interests';
#
#------[AFTER, ADD:]------------------------------------
#
$lang['Opersys'] = 'OS';
$lang['Browser'] = 'Browser';
#
#-----[OPEN:]------------------------------------------
#
./includes/usercp_viewprofile.php
   'INTERESTS' => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : ' ',
#
#-----[AFTER, ADD:]------------------------------------
#
   'OPERSYS' => ( $profiledata['user_opersys'] ) ? $profiledata['user_opersys'] : ' ',
   'BROWSER' => ( $profiledata['user_browser'] ) ? $profiledata['user_browser'] : ' ',
#
#-----[FIND:]------------------------------------------
#
   'L_INTERESTS' => $lang['Interests'],
#
#-----[AFTER, ADD:]------------------------------------
#
   'L_OPERSYS' => $lang['Opersys'],
   'L_BROWSER' => $lang['Browser'],
#
#-----[OPEN:]------------------------------------------
#
./includes/usercp_register.php
#
#-----[FIND:]------------------------------------------
#
   $strip_var_list = array('username' => 'username', 'email' => 'email',
#
#-----[IN-LINE, FIND:]---------------------------------
#
, 'interests' => 'interests'
#
#-----[IN-LINE AFTER, ADD:]----------------------------
#
, 'opersys' => 'opersys', 'browser' => 'browser'
#
#-----[FIND:]------------------------------------------
#
      $interests = stripslashes($interests);
#
#-----[AFTER, ADD:]------------------------------------
#
      $opersys = stripslashes($opersys);
      $browser = stripslashes($browser);
#
#-----[FIND:]------------------------------------------
#
         $sql = "UPDATE " . USERS_TABLE . "
            SET " . $username_sql . $passwd_sql
#
#-----[IN-LINE, FIND:]---------------------------------
#
, user_interests = '" . str_replace("\'", "''", $interests) . "'
#
#-----[IN-LINE AFTER, ADD:]----------------------------
#
, user_opersys = '" . str_replace("\'", "''", $opersys) . "', user_browser = '" . str_replace("\'", "''", $browser) . "'
#
#-----[FIND:]------------------------------------------
#
         $sql = "INSERT INTO " . USERS_TABLE . "   (user_id, username, user_regdate
#
#-----[IN-LINE, FIND:]---------------------------------
#
, user_interests
#
#-----[IN-LINE AFTER, ADD:]----------------------------
#
, user_opersys, user_browser
#
#-----[FIND:]------------------------------------------
#
            VALUES ($user_id, '" . str_replace("\'", "''", $username) . "'
#
#-----[IN-LINE, FIND:]---------------------------------
#
, '" . str_replace("\'", "''", $interests) . "'
#
#-----[IN-LINE AFTER, ADD:]----------------------------
#
, '" . str_replace("\'", "''", $opersys) . "', '" . str_replace("\'", "''", $browser) . "'
#
#-----[FIND:]------------------------------------------
#
   $interests = stripslashes($interests);
#
#-----[AFTER, ADD:]------------------------------------
#
   $opersys = stripslashes($opersys);
   $browser = stripslashes($browser);
#
#-----[FIND:]------------------------------------------
#
   $interests = $userdata['user_interests'];
#
#-----[AFTER, ADD:]------------------------------------
#
   $opersys = $userdata['user_opersys'];
   $browser = $userdata['user_browser'];
#
#-----[FIND:]------------------------------------------
#
   display_avatar_gallery($mode,
#
#-----[IN-LINE, FIND:]---------------------------------
#
, $interests
#
#-----[IN-LINE AFTER, ADD:]----------------------------
#
, $opersys, $browser
#
#-----[FIND:]------------------------------------------
#
      'INTERESTS' => $interests,
#
#-----[AFTER, ADD:]------------------------------------
#
      'OPERSYS' => $opersys,
      'BROWSER' => $browser,
#
#-----[FIND:]------------------------------------------
#
      'L_INTERESTS' => $lang['Interests'],
#
#-----[AFTER, ADD:]------------------------------------
#
      'L_OPERSYS' => $lang['Opersys'],
      'L_BROWSER' => $lang['Browser'],
#
#-----[OPEN:]------------------------------------------
#
./includes/usercp_avatar.php
#
#-----[FIND:]------------------------------------------
#
function display_avatar_gallery($mode,
#
#-----[IN-LINE, FIND:]---------------------------------
#
, &$interests
#
#-----[IN-LINE AFTER, ADD:]----------------------------
#
, &$opersys, &$browser
#
#-----[FIND:]------------------------------------------
#
   $params = array('coppa',
#
#-----[IN-LINE, FIND:]---------------------------------
#
, 'interests'
#
#-----[IN-LINE AFTER, ADD:]----------------------------
#
, 'opersys', 'browser'
#
#-----[OPEN:]------------------------------------------
#
./admin/admin_users.php
#
#-----[FIND:]------------------------------------------
#
      $interests = ( !empty($HTTP_POST_VARS['interests']) ) ? trim(strip_tags( $HTTP_POST_VARS['interests'] ) ) : '';
#
#-----[AFTER, ADD:]------------------------------------
#
      $opersys = ( !empty($HTTP_POST_VARS['opersys']) ) ? trim(strip_tags( $HTTP_POST_VARS['opersys'] ) ) : '';
      $browser = ( !empty($HTTP_POST_VARS['browser']) ) ? trim(strip_tags( $HTTP_POST_VARS['browser'] ) ) : '';
#
#-----[FIND:]------------------------------------------
#
         $interests = htmlspecialchars(stripslashes($interests));
#
#-----[AFTER, ADD:]------------------------------------
#
         $opersys = htmlspecialchars(stripslashes($opersys));
         $browser = htmlspecialchars(stripslashes($browser));
#
#-----[FIND:]------------------------------------------
#
         $sql = "UPDATE " . USERS_TABLE . "
            SET " . $username_sql
#
#-----[IN-LINE, FIND:]---------------------------------
#
, user_interests = '" . str_replace("\'", "''", $interests) . "'
#
#-----[IN-LINE AFTER, ADD:]----------------------------
#
, user_opersys = '" . str_replace("\'", "''", $opersys) . "', user_browser = '" . str_replace("\'", "''", $browser) . "'
#
#-----[FIND:]------------------------------------------
#
         $interests = htmlspecialchars(stripslashes($interests));
#
#-----[AFTER, ADD:]------------------------------------
#
         $opersys = htmlspecialchars(stripslashes($opersys));
         $browser = htmlspecialchars(stripslashes($browser));
#
#-----[FIND:]------------------------------------------
#
      $interests = htmlspecialchars($this_userdata['user_interests']);
#
#-----[AFTER, ADD:]------------------------------------
#
      $opersys = htmlspecialchars($this_userdata['user_opersys']);
      $browser = htmlspecialchars($this_userdata['user_browser']);
#
#-----[FIND:]------------------------------------------
#
         $s_hidden_fields .= '<input type="hidden" name="interests" value="' . str_replace("\"", "&quot;", $interests) . '" />';
#
#-----[AFTER, ADD:]------------------------------------
#
         $s_hidden_fields .= '<input type="hidden" name="opersys" value="' . str_replace("\"", "&quot;", $opersys) . '" />';
         $s_hidden_fields .= '<input type="hidden" name="browser" value="' . str_replace("\"", "&quot;", $browser) . '" />';
#
#-----[FIND:]------------------------------------------
#
         'INTERESTS' => $interests,
#
#-----[AFTER, ADD:]------------------------------------
#
         'OPERSYS' => $opersys,
         'BROWSER' => $browser,
#
#-----[FIND:]------------------------------------------
#
         'L_INTERESTS' => $lang['Interests'],
#
#-----[AFTER, ADD:]------------------------------------
#
         'L_OPERSYS' => $lang['Opersys'],
         'L_BROWSER' => $lang['Browser'],
#
#-----[OPEN:]------------------------------------------
#
./templates/ALL_TEMPLATES/profile_add_body.tpl
#
#-----[FIND:]------------------------------------------
#
   <tr>
     <td class="row1"><span class="gen">{L_INTERESTS}:</span></td>
     <td class="row2">
      <input type="text" class="post"style="width: 200px"  name="interests" size="35" maxlength="150" value="{INTERESTS}" />
     </td>
   </tr>
#
#-----[AFTER, ADD:]------------------------------------
#
   <tr>
     <td class="row1"><span class="gen">{L_OPERSYS}:</span></td>
     <td class="row2">
      <input type="text" class="post"style="width: 200px"  name="opersys" size="35" maxlength="150" value="{OPERSYS}" />
     </td>
   </tr>
   <tr>
     <td class="row1"><span class="gen">{L_BROWSER}:</span></td>
     <td class="row2">
      <input type="text" class="post"style="width: 200px"  name="browser" size="35" maxlength="150" value="{BROWSER}" />
     </td>
   </tr>
#
#-----[OPEN:]------------------------------------------
#
./templates/ALL_TEMPLATES/profile_view_body.tpl
#
#-----[FIND:]------------------------------------------
#
      <tr>
        <td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_INTERESTS}:</span></td>
        <td> <b><span class="gen">{INTERESTS}</span></b></td>
      </tr>
#
#-----[AFTER, ADD:]------------------------------------
#
      <tr>
        <td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_OPERSYS}:</span></td>
        <td> <b><span class="gen">{OPERSYS}</span></b></td>
      </tr>
      <tr>
        <td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_BROWSER}:</span></td>
        <td> <b><span class="gen">{BROWSER}</span></b></td>
      </tr>
#
#-----[OPEN:]------------------------------------------
#
./templates/ALL_TEMPLATES/admin/user_edit_body.tpl
#
#-----[FIND:]------------------------------------------
#
   <tr>
     <td class="row1"><span class="gen">{L_INTERESTS}</span></td>
     <td class="row2">
      <input class="post" type="text" name="interests" size="35" maxlength="150" value="{INTERESTS}" />
     </td>
   </tr>
#
#-----[AFTER, ADD:]------------------------------------
#
   <tr>
     <td class="row1"><span class="gen">{L_OPERSYS}</span></td>
     <td class="row2">
      <input class="post" type="text" name="opersys" size="35" maxlength="150" value="{OPERSYS}" />
     </td>
   </tr>
   <tr>
     <td class="row1"><span class="gen">{L_BROWSER}</span></td>
     <td class="row2">
      <input class="post" type="text" name="browser" size="35" maxlength="150" value="{BROWSER}" />
     </td>
   </tr>
#
#-----[OPEN:]------------------------------------------
#
./viewtopic.php
#
#-----[FIND:]------------------------------------------
#
$sql = "SELECT u.username, u.user_id
#
#-----[IN-LINE, FIND:]---------------------------------
#
, u.user_posts
#
#-----[IN-LINE AFTER, ADD:]----------------------------
#
, u.user_opersys, u.user_browser
#
#-----[FIND:]------------------------------------------
#
   $poster_posts = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Posts'] . ': ' . $postrow[$i]['user_posts'] : '';
#
#-----[AFTER, ADD:]------------------------------------
#
   $poster_opersys = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Opersys'] . ': ' . $postrow[$i]['user_opersys'] : '';
   $poster_browser = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Browser'] . ': ' . $postrow[$i]['user_browser'] : '';
#
#-----[FIND:]------------------------------------------
#
      'POSTER_POSTS' => $poster_posts,
#
#-----[AFTER, ADD:]------------------------------------
#
      'POSTER_OPERSYS' => $poster_opersys,
      'POSTER_BROWSER' => $poster_browser,
#
#-----[OPEN:]------------------------------------------
#
./templates/ALL_TEMPLATES/viewtopic_body.tpl
#
#-----[FIND:]------------------------------------------
#
      <td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b>
#
#-----[IN-LINE, FIND:]---------------------------------
#
<br />{postrow.POSTER_POSTS}<br />
#
#-----[IN-LINE AFTER, ADD:]----------------------------
#
{postrow.POSTER_OPERSYS}<br />{postrow.POSTER_BROWSER}<br />
#
#------[SAVE/CLOSE/UPLOAD/ENJOY !!!]--------------------
#
# ..:: -= END =- ::..

your users/members will have to edit their profiles and add it in.
Back to top
View user's profile Send private message Visit poster's website

rector321
New User

Joined: 18 Feb 2007
Posts: 7

PostPosted: February 18th 2007, 2:37 pm    Post subject: Reply with quote

hmm, tnx. but it is to user enter information, right?

i want to board get from users on posting ... and display which os and broswer use for that posting ....
understand me?

ty.
Back to top
View user's profile Send private message

Ricky_Racer
Dedicated User

Joined: 19 Jul 2003
Posts: 1398
Location: Middle of Nowhere, USA

PostPosted: February 18th 2007, 8:43 pm    Post subject: Reply with quote

The user enters their OS and browser in their profile, and then when they post the information is added to the post, in with the other user information, name, location, posts, join date.
Or are you looking to "sniff" the user's OS and browser, and make it part of the post information ?
Back to top
View user's profile Send private message Visit poster's website

rector321
New User

Joined: 18 Feb 2007
Posts: 7

PostPosted: February 19th 2007, 7:28 am    Post subject: Reply with quote

yes yes, that i want
i didn`t nou how to write
Back to top
View user's profile Send private message

~HG~
Dedicated User

Joined: 08 Nov 2003
Posts: 3183
Location: Australia

PostPosted: February 19th 2007, 1:24 pm    Post subject: Reply with quote

http://www.phpbbhacks.com/download/3348
_________________
~HG~

|| rodneyangell.com || My Hacks || Tutorial - Stopping Spam Bots
Back to top
View user's profile Send private message Send e-mail Visit poster's website

rector321
New User

Joined: 18 Feb 2007
Posts: 7

PostPosted: February 20th 2007, 7:35 pm    Post subject: Reply with quote

dude, read my post pls.
Back to top
View user's profile Send private message

Ricky_Racer
Dedicated User

Joined: 19 Jul 2003
Posts: 1398
Location: Middle of Nowhere, USA

PostPosted: February 22nd 2007, 5:56 pm    Post subject: Reply with quote

Hey, anybody having any luck getting this to "sniff" the user's browser and OS, and making it insert the values into the posts_table ?
I found a php script that appears to do it into it's own table on a non-phpbb page here but integrating it into phpBB2 is straining my abilities.
Back to top
View user's profile Send private message Visit poster's website

rector321
New User

Joined: 18 Feb 2007
Posts: 7

PostPosted: March 2nd 2007, 10:40 pm    Post subject: Reply with quote

huh, noone? :S
Back to top
View user's profile Send private message

dwright2104
New User

Joined: 13 Dec 2007
Posts: 1

PostPosted: July 3rd 2008, 11:50 am    Post subject: Reply with quote

yeh, i would reli like a mod this this too
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> phpBB 2 Hack Requests All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2
Jump to:  
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



Links: Big Message Boards - Free JavaScript - phpBB2 - phpbb styles - Suporte phpBB - phpBB.it - phpBB Česky - phpBB Turkiye - phpBBArabia.com - phpBB-fr.com - Romanian phpBB online community - phpBB-TW.net - phpBBservice.nl - phpBB Brasil

Network: iFroggy Network Blog - iFroggy Hosting - SportsForums.net - KarateForums.com - YanksBlog.com - PhotoshopForums.com - DeveloperCube - Managing Online Forums - ManagingCommunities.com - CommunityAdmins.com - DrGregHouse.com - Bad Boy Blog - BadBoyForums.com - SodaRatings.com - Patrick O'Keefe

< Advertising - Contact Us - Staff - User Guidelines >

Copyright © 2001-2008. iFroggy Network, phpBBHacks.com. All Rights Reserved. Privacy Policy. We Support phpBBHacks.com (of course!).
Powered by phpBB © phpBB Group. phpBB SEO. Hosted by 100MegsWebHosting. We are in no way affiliated with the phpBB Group. phpBB is copyright to the phpBB Group.