Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
Report, Edit and IP icons in Profile Details »»
Report, Edit and IP icons in Profile
Version: 1.00, by cheat-master30 cheat-master30 is offline
Developer Last Online: Apr 2010 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.7.x Rating:
Released: 08-03-2008 Last Update: Never Installs: 8
Template Edits
Re-useable Code Translations  
No support by the author.

Well, on behalf of one vBulletin.com member who said he wanted this kind of thing in the next version of vB, and said my profile warning message thing was overkill, I have now actually made such a modification. Behold, it adds simple icons next to the option links in the profiles, the exact same as used elsewhere on the board.

To Install:

In memberinfo_visitormessage:

Find:

Code:
<ul class="list_no_decoration controls">
            <if condition="$show['converse']">
                <li class="smallfont"><a href="converse.php?$session[sessionurl]u=$message[hostuserid]&amp;u2=$message[guestuserid]" title="$message[converse_description_phrase]">$vbphrase[view_conversation]</a></li>
            </if>
            <if condition="$show['edit']">
                <li class="smallfont"><a href="visitormessage.php?$session[sessionurl]u=$userinfo[userid]&amp;do=message&amp;vmid=$message[vmid]">$vbphrase[edit]</a></li>
            </if>
            <if condition="$show['reportlink']">
                <li class="smallfont"><a href="visitormessage.php?$session[sessionurl]do=report&amp;vmid=$message[vmid]">$vbphrase[report]</a></li>
            </if>
            <if condition="$message['messageipaddress']">
                <li class="smallfont"><a href="visitormessage.php?do=viewip&amp;vmid=$message[vmid]">$vbphrase[ip]</a></li>
            </if>
        </ul>
Replace with:

Code:
                <ul class="list_no_decoration controls">
            <if condition="$show['converse']">
                <li class="smallfont"><a href="converse.php?$session[sessionurl]u=$message[hostuserid]&amp;u2=$message[guestuserid]" title="$message[converse_description_phrase]">$vbphrase[view_conversation]</a></li>
            </if>
            <if condition="$show['edit']">
                <li class="smallfont"><a href="visitormessage.php?$session[sessionurl]u=$userinfo[userid]&amp;do=message&amp;vmid=$message[vmid]"><img src="images/misc/userfield_edit.gif" alt="$vbphrase[edit]" border="0"/>$vbphrase[edit]</a></li>
            </if>
            <if condition="$show['reportlink']">
                <li class="smallfont"><a href="visitormessage.php?$session[sessionurl]do=report&amp;vmid=$message[vmid]"><img src="images/buttons/report.gif" alt="$vbphrase[report]" border="0" />$vbphrase[report]</a></li>
            </if>
            <if condition="$message['messageipaddress']">
                <li class="smallfont"><a href="visitormessage.php?do=viewip&amp;vmid=$message[vmid]"><img src="images/buttons/ip.gif" alt="$vbphrase[ip]" border="0" />$vbphrase[ip]</a></li>
            </if>
        </ul>
memberinfo_visitormessage_deleted:

Find:

Code:
            <if condition="$show['edit'] OR $show['reportlink']">
        <ul class="list_no_decoration controls">
            <if condition="$show['edit']">
                <li class="smallfont"><a href="visitormessage.php?$session[sessionurl]u=$userinfo[userid]&amp;do=message&amp;vmid=$message[vmid]">$vbphrase[edit]</a></li>
            </if>
            <if condition="$show['reportlink']">
                <li class="smallfont"><a href="visitormessage.php?$session[sessionurl]u=$userinfo[userid]&amp;do=report&amp;vmid=$message[vmid]">$vbphrase[report]</a></li>
            </if>
        </ul>
    </if>
Change to:

Code:
    <if condition="$show['edit'] OR $show['reportlink']">
        <ul class="list_no_decoration controls">
            <if condition="$show['edit']">
                <li class="smallfont"><a href="visitormessage.php?$session[sessionurl]u=$userinfo[userid]&amp;do=message&amp;vmid=$message[vmid]"><img src="images/misc/userfield_edit.gif" alt="$vbphrase[edit]" border="0" />$vbphrase[edit]</a></li>
            </if>
            <if condition="$show['reportlink']">
                <li class="smallfont"><a href="visitormessage.php?$session[sessionurl]u=$userinfo[userid]&amp;do=report&amp;vmid=$message[vmid]"><img src="images/buttons/report.gif" alt="$vbphrase[report]" border="0" />$vbphrase[report]</a></li>
            </if>
        </ul>
    </if>
Demo:

http://dsultimate.net/Board/upload/m...?u=1&styleid=1

Notes:

Works on all 3.7, and likely 3.8 and 4.0 versions. Never needs to be upgraded. Legend of Zelda potion bottle and treasure chest icons in the screenshot/demo mean report and IP on my forum, and are nothing to do with this mod (which uses whatever icons your board actually has for report and IP in posts).

Screenshots:

Attachment 85000

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-04-2008, 06:42 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, and this was the topic it was asked for in:

http://www.vbulletin.com/forum/showthread.php?t=280283
Reply With Quote
  #3  
Old 08-04-2008, 07:04 PM
macc's Avatar
macc macc is offline
 
Join Date: Feb 2008
Posts: 647
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

could not see anything in live demo ... and first replace code is in which template??

regards

macc
Reply With Quote
  #4  
Old 08-04-2008, 08:07 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It was memberinfo_visitormessage, forgot to put in first post.
Reply With Quote
  #5  
Old 08-05-2008, 07:51 AM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice = Thanx for sharing.

Jacquii.
Reply With Quote
  #6  
Old 11-23-2008, 12:12 PM
IIAnDoII IIAnDoII is offline
 
Join Date: Jul 2008
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

would be sweet if the text was replaced with the image. if you get me
Reply With Quote
  #7  
Old 11-23-2008, 02:23 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you explain a bit more? If you mean use an image instead of text, just remove the text that says 'report' etc, which will leave you with just the image icons.
Reply With Quote
Reply

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

Forum Jump


All times are GMT. The time now is 12:01 PM.


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.04234 seconds
  • Memory Usage 2,260KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete