vBulletin Modifications

Mini Mods - IP address in the postbit

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > vBulletin Hacker Forum

Reply
 
LinkBack Thread Tools
Old 12-22-2006, 05:04 AM   #1
Coder
Join Date: Sep 2006
mhackl is on a distinguished road

Default Mini Mods - Country Flags by IP address in the postbit

I'm very green so please forgive me if this is a stupid question.

I inserted:
You must first be a registered member to view any code.
into the postbit hoping that the ip addresses assigned to the individual posts in a thread would be populated by the $postinfo[ipaddress] portion of this image url. I need this to occur so that members country flags will appear in the postbit. It's not working. I can manually enter an foreign ip and works fine. So, what am I doing wrong.

Please help, it'll be greatly appreciated.

Last edited by mhackl; 12-22-2006 at 12:32 PM..




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 12-23-2006, 03:30 PM   #2
Coder
Magnumutz's Avatar
Join Date: Sep 2006
Real Name: Alex Smen
Location: Romania
Magnumutz is on a distinguished road

Default

I guess $postinfo[ipaddress] cannot be replaced just like that in a link...
The code has to be modified. I don't know how it should be either, but i'm sure $postinfo[ipaddress] can't be used.
Maybe some of our fellow members can think of coming with a mod to do that?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-31-2006, 01:41 PM   #3
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

hm try:
You must first be a registered member to view any code.
EDIT: Hey wait, is that even a valid variable? xD
EDIT #2: No it's not, use:
You must first be a registered member to view any code.

Last edited by Nick R; 12-31-2006 at 01:47 PM..




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-04-2007, 06:39 AM   #4
Coder
Join Date: Sep 2006
mhackl is on a distinguished road

Default

Well that didn't work but this did.
You must first be a registered member to view any code.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-04-2007, 07:12 AM   #5
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

Interesting. That variable doesn't exist for me.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-04-2007, 08:12 AM   #6
Coder
Join Date: Sep 2006
mhackl is on a distinguished road

Question $post[ip]

Here's another question if $post[ip] shows the posts IP what command would show the registration ip? I need this so that I can also include these flags in the memberlists and user profiles.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-04-2007, 08:18 AM   #7
Coder
Join Date: Sep 2006
mhackl is on a distinguished road

Default

Quote:
Originally Posted by rogersnm View Post
Interesting. That variable doesn't exist for me.
I had noticed when you moused over the little icon in the postbit that it showed the posts ip address. So, I went into the postbit_ip template and found it in the "title" attribute.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-04-2007, 08:35 AM   #8
Coder
Join Date: Sep 2006
mhackl is on a distinguished road

Default

Quote:
Originally Posted by mhackl View Post
I had noticed when you moused over the little icon in the postbit that it showed the posts ip address. So, I went into the postbit_ip template and found it in the "title" attribute.
okay, it looks like that's gonna be:
You must first be a registered member to view any code.
Thanks for the help!
your input led me to the solution!




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
last online in postbit error BigJohnny General vBulletin Support 4 08-15-2006 09:21 PM
Disabling IP address Viewing for Moderators doggy1 vBulletin Modification Requests 2 06-05-2006 06:32 PM
Urgent appeal; Please get this user a brain Your S. & D. Off Topic 10 11-15-2005 06:11 PM
Postbit Suggestions Ken Iovino Site Feedback 1 04-16-2004 01:38 PM


All times are GMT -3. The time now is 01:42 PM.

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)