vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Profile Enhancements - Userlog on profile - Display namechanges,bans and email changes (https://vborg.vbsupport.ru/showthread.php?t=176655)

zappsan 01-12-2009 01:44 PM

From what I know, using vB's functions should help.

Look for this:
PHP Code:

while ($userlogs=mysql_fetch_array($userlogentries)) 

and replace it with
PHP Code:

while ($userlogs=$this->registry->db->fetch_array($userlogentries)) 

Unfortuneately I couldn't test it.

Sorry for the lack of updates, I actually started working on a newer version a long time ago but ran into a problem which I couldn't solve. I'm gonna ask for help on this so there will hopefully be an update soon.

Megatr0n 01-12-2009 07:32 PM

Quote:

Originally Posted by zappsan (Post 1709706)
From what I know, using vB's functions should help.

Look for this:
PHP Code:

while ($userlogs=mysql_fetch_array($userlogentries)) 

and replace it with
PHP Code:

while ($userlogs=$this->registry->db->fetch_array($userlogentries)) 

Unfortuneately I couldn't test it.

Sorry for the lack of updates, I actually started working on a newer version a long time ago but ran into a problem which I couldn't solve. I'm gonna ask for help on this so there will hopefully be an update soon.

Will the original version work with 3.8?

Hannan 01-12-2009 07:45 PM

Quote:

Originally Posted by zappsan (Post 1709706)
From what I know, using vB's functions should help.

Look for this:
PHP Code:

while ($userlogs=mysql_fetch_array($userlogentries)) 

and replace it with
PHP Code:

while ($userlogs=$this->registry->db->fetch_array($userlogentries)) 

Unfortuneately I couldn't test it.

Sorry for the lack of updates, I actually started working on a newer version a long time ago but ran into a problem which I couldn't solve. I'm gonna ask for help on this so there will hopefully be an update soon.

Thanks, I've waiting for the new version!

HaS?R 01-12-2009 09:29 PM

Thanks.

gtcompscientist 02-04-2009 04:27 PM

That last bit fixed it for me!

INSTALLED!

gtcompscientist 02-04-2009 04:43 PM

I did make one quick change. On our site, banning is kind of an honor... unless it's permanent. As such, the pages get BIG, but all people want to know is how many times somebody has been banned.

This code does that.

Find:
PHP Code:

$match=count(array_intersect($membergroup$banlogpermissions)); 

Add below:
PHP Code:

$banCount=0

Find:
PHP Code:

$banlog.='<li><span class="shade">'.$changetime.':</span> Banned</li>'

Add below:
PHP Code:

$banCount=$banCount+1

Find:
PHP Code:

$this->block_data['baninfo'] ="$banlog"

Replace with:
PHP Code:

$this->block_data['baninfo']="Banned a total of: $banCount Times<br/><br/>$banlog"

Works great on mine... first user I tested had been banned 41 times! :up::up:

Sadie Frost 02-16-2009 10:55 PM

Quote:

Originally Posted by WishLine (Post 1600594)
You don't know whether there is a product that does something similar for 3.6, is there?

Hi :) This hack might work for you https://vborg.vbsupport.ru/showthrea...sername+change

It's 3.5 but I *think* I was running it on 3.6. There's an addon that displays results on the profile.


In a corollary to that...does anyone know of a way to show the previous usernames in a tooltip on the postbit (when you hovered on the username) like the above linked hack did?

:) Thanks!

MonkYZ 12-28-2009 09:56 PM

Excelent mod ! 10 out of 10 !

By the way, is there a chance for the old username to be showed in user postbit ? Or somewhere more visible than User Public Profile - User Log ? It would be great if that would be possible.

Thank you in advance and keep up the good work !

MonkYZ 06-15-2011 02:58 PM

Can this be updated for vB 4.x? :)

TAIFUN_T 07-26-2011 12:43 PM

Why two identical phrases?

Code:

<phrase name="setting_ulog_namechanelogpermissions_title" date="1208816052" username="Virtual Headache" version="1.1"><![CDATA[Namechangelog Usergroup Permissions]]></phrase>
Code:

phrase name="setting_ulog_namechangelogpermissions_title" date="1208871522" username="Virtual Headache" version="1.1"><![CDATA[Namechangelog Usergroup Permissions]]></phrase>


All times are GMT. The time now is 03:41 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01325 seconds
  • Memory Usage 1,757KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (12)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete