Back to vBulletin 3.7 Template Modifications

Report, Edit and IP icons in Profile
Mod Version: 1.00, by cheat-master30

This modification is in the archives.
vB Version: 3.7.x Rating: (2 votes - 5.00 average) Installs: 8
Released: 04 Aug 2008 Last Update: Never Downloads: 1
Not Supported Template Edits Re-usable Code Translations  

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/member.php?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:

Download

No files for download.

Screenshots

Click image for larger version
Name:	Iconsnexttoreportlinksinprofile.jpg
Views:	576
Size:	66.8 KB
ID:	85000  

Similar Mods

[v1.2] Edit / Report Button Hack vBulletin 2.x Full Releases
[Tweak] Edit, Quote, and Report like here vBulletin 2.x Template Modifications

vblts.ru supports vBulletin®, 2022-2024