vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Post Edit History Viewer (https://vborg.vbsupport.ru/showthread.php?t=105989)

Lieva 01-21-2006 10:00 PM

Post Edit History Viewer
 
When someone edits a post, the old message is stored in another table before the new one overwrites the old message.

Posts that have been edited will have "view edit history" displayed below the post count in the postbit.

Clicking "view edit history" allows previous versions of a post to be seen.

The postbit and postbit_legacy templates are altered using a similar method to the one used in the vbshout extension by Zero Tolerance, i.e. a search and replace. This means that no manual alterations to these templates are required.

Normally, everyone can see the post history for all the posts, however, the XML file post_hist_mods_only.xml restricts it to mods only (and the poster themselves). (Both versions should not be installed at the same time).

--------------------------------

Updated:

use post-hist_1_1b.zip

Changes

- Enable/Disable by forum
-- On/Off by forum

- Enable/Disable by usergroup
-- Can see own history: Yes/No
-- Can see everyone's history: Yes/No

- Indicates who made the edit (if it wasn't the original author)

- Workaround for unknown templates
-- Insert <<Insert Post History>> into postbit and postbit_legacy templates
-- (This is only for templates where the auto-match doesn't work)

The options are controlled by admincp.

By default, nobody can see any of the histories. At minimum, you should set the admin usergroup to see all histories.

Request

I don't know how 3.6.x products work, but if someone tries it on 3.6.x and it works, that would be good to know. I don't actually have 3.6 on our own forums, so can't test it.

Also, if you find out any bugs for < 3.6, that would be good to know too.

Install Info

The zip file contains:

bit_field_post_hist.xml -> XML for permissions
post_hist_1_1.xml -> product file

To install:

copy bit_field_post_hist.xml to /includes/xml

and install the product.

In theory, this should work as an upgrade to the previous version. However, I haven't tested that.

If you uninstall the old version and install the new version, you will lose any saved post histories.

Troubleshooting

bitfield cache
You might have to open:

yourserver.com/admincp/index.php?do=buildbitfields

This re-calculates the bitfields that have been altered. On some versions, the product installer will automatically do it.

Moderators
The postbits determine if a post is a person's own post by seeing if they have permission to edit the post. This means that if you give mods the rights to see their own post histories, then they will be able to click to see everyone elses post histories as they have the rights to edit all posts. However, the link won't have any effect as the actual viewer is restricted based on actual poster.

Usage

The XML file should add 2 options that can be set when setting up a usergroup and 1 new option for each forum.

New options for each usergroup:

Can See Post History (Yes/No)
---- Allows members of this usergroup to see all post histories

Can See Own Post History (Yes/No)
---- Allows members of this usergroup to see their own post history

New option for each forum:

Post History Displayed (Yes/No)
---- Shows post history for every post in this forum

SnickersTK 01-22-2006 10:40 AM

Where is the file?

oh and I love the sound of this!!1

Lieva 01-22-2006 10:42 AM

Sorry forgot to include it :p

Have attached it now.

SnickersTK 01-22-2006 10:43 AM

Thanks, sounds wonderful!

But I am confused, does all moderators and administrators see this or?

and can you decide who is able?

Lieva 01-22-2006 10:44 AM

Quote:

Originally Posted by SnickersTK
Thanks, sounds wonderful!

But I am confused, does all moderators and administrators see this or?

and can you decide who is able?

At the moment it is everyone.

SnickersTK 01-22-2006 10:46 AM

Oh.....

Well are you able to code it so only administrators and/or moderators are able to see the before edited posts, this is what I am looking for and I am sure more wants the same :)

I hate when I see a member has edited his/her's post and not knowing the original post :(

Lieva 01-22-2006 11:17 AM

Quote:

Originally Posted by SnickersTK
Oh.....

Well are you able to code it so only administrators and/or moderators are able to see the before edited posts, this is what I am looking for and I am sure more wants the same :)

I hate when I see a member has edited his/her's post and not knowing the original post :(

The 2nd file restricts it to mods only, install that instead of the standard version.

redspider 01-22-2006 11:23 AM

nice mod will check later for out of beta version .

bashy 01-22-2006 11:34 AM

I have the Moderator 1 installed yet i cannot view my edits as a Admin nor as a MOD, do i need to do anything else other than install??

Gizmo5h1t3 01-22-2006 11:41 AM

Quote:

Originally Posted by bashy
I have the Moderator 1 installed yet i cannot view my edits as a Admin nor as a MOD, do i need to do anything else other than install??


same situation here, cant see anything

Developer 01-22-2006 11:52 AM

nice hack as they said it has a proplem plz fix to install it

Yorixz 01-22-2006 12:12 PM

Seriously something that should be standard in vB 3.5, I'll try it out later this week, thanks a lot!

murrtex 01-22-2006 12:52 PM

thanks lieva, can we delete the histories by this hack??

Lieva 01-22-2006 01:05 PM

Quote:

Originally Posted by bashy
I have the Moderator 1 installed yet i cannot view my edits as a Admin nor as a MOD, do i need to do anything else other than install??

Does the standard one work ?

Another possibility is that you have edited the postbit template. The system works by searching for a string the the postbit template and replacing it.

Lieva 01-22-2006 01:06 PM

Quote:

Originally Posted by murrtex
thanks lieva, can we delete the histories by this hack??

Well uninstalling and reinstalling would wipe the history as it deletes the new table that stores all the edits.

bashy 01-22-2006 01:15 PM

Just tried the standard 1, still nothing....
but to be honest i aint sure where im meant to be looking,
Is it where it tells you that the post has been editied?

Lieva 01-22-2006 01:26 PM

Quote:

Originally Posted by bashy
Just tried the standard 1, still nothing....
but to be honest i aint sure where im meant to be looking,
Is it where it tells you that the post has been editied?

No, it is just under the post count in the field with the username.

for example:

Join Date: Feb 2003
Posts: 621

View Edit History:

It also only appears if the post has been editted since the plugin was installed (as previous edits aren't recorded).

If that doesn't help, could you post the contents of your postbit template.

bashy 01-22-2006 01:39 PM

no, still aint showing....I will post my post bit after you have seen my
postbit working ;)

Take a gander HERE

If ya still want me postbit i wil post when ya ask again :)

Lieva 01-22-2006 01:51 PM

Quote:

Originally Posted by bashy
no, still aint showing....I will post my post bit after you have seen my
postbit working ;)

Take a gander HERE

If ya still want me postbit i wil post when ya ask again :)

Looking at your forum, it looks like you have pretty extensively changed the postbit template :).

The plugin searches for

"<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>"

and adds code for the history link after that section.

I assume that section doesn't exist for your forum (or is changed) ?

Another possibility is that the default template is different in 3.5.3

bashy 01-22-2006 01:57 PM

I am 90% sure that is there...2 secs, gonna check...

here ya go..this is mine, copied exact as i see it
Although a search didnt bring it up....

Code:

                                        <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
Quote:

Originally Posted by Lieva
Looking at your forum, it looks like you have pretty extensively changed the postbit template :).

The plugin searches for

"<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>"

and adds code for the history link after that section.

I assume that section doesn't exist for your forum (or is changed) ?

Another possibility is that the default template is different in 3.5.3


bashy 01-22-2006 01:59 PM

heres my full postbit ;)

Code:

<!-- post #$post[postid] -->
<if condition="$show['spacer']">
        $spacer_open
        <div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
        <if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>       
</if>


<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="thead" $post[scrolltothis]>
                <div class="normal" style="float:$stylevar[right]">
                        &nbsp;
                        <if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a> &nbsp;</if>
                        <if condition="$show['reputationlink']"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a> &nbsp;</if>
<!-- [START HACK='vB Pager' AUTHOR='UAEWEB.COM' VERSION='3.0.0' CHANGEID= 6 ] -->
                        <if condition="$vboptions['vbpager_active'] AND $bbuserinfo[userid]">
<a href="#" onclick="window.open('pager.php?do=buddylist&amp;puserid=$post[userid]','pagerbuddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=$vboptions[vbpager_width],height=$vboptions[vbpager_height]'); return false;"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/vbpager_icon.gif" alt="<phrase 1="$post[username]">$vbphrase[pager_send_pager_message_to_x]</phrase>" border="0" /></a> &nbsp;</if>
<!-- [END HACK='vB Pager' AUTHOR='UAEWEB.COM' VERSION='3.0.0' CHANGEID= 6 ] -->
                        <if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a> &nbsp;</if>
                        $post[iplogged]
                        <if condition="$show['inlinemod']">
                        <input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" onclick="inlineMod.toggle(this)" />
                        </if>
                </div>
               
                <div class="normal">
                        <!-- status icon and date -->
                        <a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
                        <if condition="!$show['announcement']">
                                $post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
                        <else />
                                <phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
                        </if>
                        $post[firstnewinsert]
                        <!-- / status icon and date -->
                </div>
        </td>
</tr>
<tr>
        <td class="alt2" style="padding:0px">
                <!-- user info -->
                <table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
                <tr>
                        <if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
                        <td nowrap="nowrap">
                       
                                <div id="postmenu_$post[postid]">
                                        <if condition="$show['profile']">
                                        <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
                                        $post[onlinestatus]
                                        <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
                                        <else />
                                        $post[musername]
                                        </if>
                                </div>
                               
                                <if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<div class="smallfont"><strong>$WWU002_ranktext</strong></div>
                                <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
<if condition="$post[userid]">
        <div>UserID: $post[userid]</div>
</if>
                        <!-- mood hack display start -->
                                <if condition="$post[field19] != ''"><div class="smallfont">
                                Current Mood: <img src="images/mood/$post[field19].gif" title="$post[field19]" align="center">
                                </div></if>
                                <!-- mood hack display end -->       
<if condition="$show['warning']"><div class="smallfont">$post[warning]</div></if>
                        </td>
                        <td width="100%">&nbsp;</td>
                        <td class="WWU002postbit">
    <table cellspacing="2" cellpadding="0">
      <tr>
        <td><img src="$stylevar[imgdir_misc]/activity/textactivity.gif" /></td>
        <td><img src="$stylevar[imgdir_misc]/activity/textlongevity.gif" /></td>
      </tr>
      <tr>
        <td title="$WWU002_activityinfo"><img src="$stylevar[imgdir_misc]/activity/activity$WWU002_activitylevel.gif" class="i" /></td>
        <td title="$WWU002_longevityinfo"><img src="$stylevar[imgdir_misc]/activity/long$WWU002_longevitylevel.gif" class="i" /></td>
      </tr>
      <tr>
        <td><img src="$stylevar[imgdir_misc]/activity/texttoday.gif" /></td>
        <td><img src="$stylevar[imgdir_misc]/activity/textposts.gif" /></td>
      </tr>
      <tr>
        <td title="$WWU002_todayinfo"><img src="$stylevar[imgdir_misc]/activity/today{$WWU002_todaylevel}_$WWU002_maxtodaylevel.gif" class="i" /></td>
        <td dir="ltr"><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[1].gif" class="il" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[2].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[3].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[4].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[5].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[6].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[7].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[8].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[9].gif" class="ir" /></td>
      </tr>
    </table>
  </td>
                        <td valign="top" nowrap="nowrap">
                       
                                <div class="smallfont">
                                        <if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
<if condition="$post[field18] != ''"><div>
                                        State/County: <img src="images/state/$post[field18].gif" title="$post[field18]" align="center">
                                </div></if>
                                        <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
                               
<if condition="$vboptions['vbookiecashon']">
                                                vCash: $post[vbookie_cash]
                                                </if>
<!-- Start Post Thank You Hack -->
<if condition="$post[userid]">
<br />
$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount]
<br />
<if condition="$post[post_thanks_thanked_times_on] == 1">
$vbphrase[post_thanks_time_post]
<else />
<if condition="$post[post_thanks_thanked_posts_on] == 1">
<phrase 1="$post[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase>
<else />
<phrase 1="$post[post_thanks_thanked_times]" 2="$post[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase>
</if>
</if>
</if>
<!-- End Post Thank You Hack -->                                </div>
                                        <if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>
<!--System Specs-->
<if condition="$post[field5] == YES">
<div id="sysinfo_$post[postid]" align="left" class="info" nowrap>
<a href="#sysinfo"><b>My System</b> </a><script type="text/javascript"> vbmenu_register("sysinfo_$post[postid]"); </script></div>
</if>
<br />
<!--/System Specs-->
                                        <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
                                </div>
                               
                        </td>
                </tr>
                </table>
                <!-- / user info -->
        </td>
</tr>
<tr>
        <td class="alt1" id="td_post_$post[postid]">
        <!-- message, attachments, sig -->
       
                <if condition="$show['messageicon'] OR $post['title']">
                        <!-- icon and title -->
                        <div class="smallfont">
                                <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
                                <if condition="$post['title']"><strong>$post[title]</strong></if>
                        </div>
                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                        <!-- / icon and title -->
                </if>

                <!-- message -->
                <div id="post_message_$post[postid]"><if condition="$post[field21]"><font face="$post[field21]">$post[message]</font><else />$post[message]</if></div>
                <!-- / message -->
        <!-- #### SHOW REPUTATION GIVEN IN POST START - BY LEVI THORNTON ####  -->
<if condition="$show['post_reputation_gv']">
<br>
        <fieldset class="fieldset" style="border-color:#DDDDDD;">
        <legend>Comments on this post</legend>
        <div style="padding:12px">
        $post_rep_gv
        </div>
        </fieldset>
</if>
<!-- #### SHOW REPUTATION GIVEN IN POST END - BY LEVI THORNTON ####  -->
                <if condition="$show['attachments']">
                <!-- attachments -->
                        <div style="padding:$stylevar[cellpadding]px">
                       
                        <if condition="$show['thumbnailattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_thumbnails]</legend>
                                        <div style="padding:$stylevar[formspacer]px">
                                        $post[thumbnailattachments]
                                        </div>
                                </fieldset>
                        </if>
               
                        <if condition="$show['imageattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_images]</legend>
                                        <div style="padding:$stylevar[formspacer]px">
                                        $post[imageattachments]
                                        </div>
                                </fieldset>
                        </if>
                       
                        <if condition="$show['imageattachmentlink']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_images]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[imageattachmentlinks]
                                        </table>
                                        </fieldset>
                        </if>
                       
                        <if condition="$show['otherattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_files]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[otherattachments]
                                        </table>
                                </fieldset>
                        </if>
                       
                        <if condition="$show['moderatedattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attachments_pending_approval]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[moderatedattachments]
                                        </table>
                                </fieldset>               
                        </if>
                       
                        </div>
                <!-- / attachments -->
                </if>
               
                <if condition="$post['signature']">
                <!-- sig -->
                        <div>
                                __________________<br />
                                $post[signature]
                        </div>
                <!-- / sig -->
                </if>
               
                <if condition="$show['postedited']">
                <!-- edit note -->
                        <div class="smallfont">                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                                <em>
                                <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
                                <if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
                                </em>
                        </div>
                <!-- / edit note -->
                </if>
       
                <div align="$stylevar[right]">
                        <!-- controls -->
<!-- Start Post Thank You Hack -->
$post_thanks_button
<!-- End Post Thank You Hack -->
<if condition="$post[userid] != $bbuserinfo[userid]"><if condition="$show['pmlink']"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" target="_blank" rel="nofollow"><img src="$stylevar[imgdir_button]/sendpm.gif" alt="sendpm.gif" title="<phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase>" border="0" /></a></if></if>
                        <if condition="$post['editlink']">
                                <a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
                        </if>
                        <if condition="$post['forwardlink']">
                                <a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
                        </if>
                        <if condition="$post['replylink']">
                                <a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
                        </if>
                        <if condition="$show['quickreply'] AND !$show['threadedmode']">
                                <a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
                        </if>
                        <if condition="$show['moderated']">
                                <img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
                        </if>
                        <!-- / controls -->
                </div>
               
        <!-- message, attachments, sig -->
       
        </td>
</tr>
</table>

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr>
                <td class="thead">$post[username]</td>
        </tr>
        <if condition="$show['profile']">
                <tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
        </if>
        <if condition="$show['pmlink']">
                <tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
        </if>
        <if condition="$show['emaillink']">
                <tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
        </if>
        <if condition="$show['homepage']">
                <tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
        </if>
        <if condition="$show['search']">
                <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td></tr>
        </if>
        <if condition="$post[usergroupid]!= 6 AND $bbuserinfo[usergroupid] == 6">
        <tr><td class="vbmenu_option"><a

href="moderator.php?$session[sessionurl]do=useroptions&u=$post[userid]"><phrase

1="$post[username]">Edit User</phrase></a></td></tr>
        </if>
        </table>
</div>
<!-- / post $post[postid] popup menu -->
<!--System Specs-->
        <div class="vbmenu_popup" id="sysinfo_$post[postid]_menu" style="display:none">

                <table cellpadding="4" cellspacing="1" border="0">

<td class="thead">My System Information</td>

<if condition="$post[field6]"><tr><td class="vbmenu_option"><b>CPU:</b> $post[field6]</td></tr></if>

<if condition="$post[field7]"><tr><td class="vbmenu_option"><b>Motherboard:</b> $post[field7]</td></tr></if>

<if condition="$post[field8]"><tr><td class="vbmenu_option"><b>Mem:</b> $post[field8]</td></tr></if>

<if condition="$post[field9]"><tr><td class="vbmenu_option"><b>HDD:</b> $post[field9]</td></tr></if>

<if condition="$post[field10]"><tr><td class="vbmenu_option"><b>Graphics:</b> $post[field10]</td></tr></if>

<if condition="$post[field11]"><tr><td class="vbmenu_option"><b>Sound:</b> $post[field11]</td></tr></if>

<if condition="$post[field12]"><tr><td class="vbmenu_option"><b>OS:</b> $post[field12]</td></tr></if>

<if condition="$post[field13]"><tr><td class="vbmenu_option"><b>Modem:</b> $post[field13]</td></tr></if>

<if condition="$post[field14]"><tr><td class="vbmenu_option"><b>Internet:</b> $post[field14]</td></tr></if>

<if condition="$post[field15]"><tr><td class="vbmenu_option"><b>DigiBox:</b> $post[field15]</td></tr></if>

<if condition="$post[field16]"><tr><td class="vbmenu_option"><b>Area:</b> $post[field16]</td></tr></if>

                </table>
        </div>
  <if condition="$post['hasbday']">
  <img src="$stylevar[imgdir_misc]/birthday_small.gif" alt="<phrase 1="$post[username]">$vbphrase[x_has_a_birthday]</phrase>" />
  </if>
<!--/System Specs-->

<if condition="$show['spacer']">
        </div>
        $spacer_close
</if>
<!-- / post #$post[postid] -->
<!-- Start Post Thank You Hack -->
$post_thanks
<!-- End Post Thank You Hack -->


Lieva 01-22-2006 02:01 PM

Quote:

Originally Posted by bashy
I am 90% sure that is there...2 secs, gonna check...

here ya go..this is mine, copied exact as i see it
Although a search didnt bring it up....

Code:

                                        <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>

That is not exactly the same as my version.

Is "$post[skypeicon]" a mod that you made or is it a change that was made to the default since v3.5.0 ?

I was looking through the template trying to find a more stable insert point.

bashy 01-22-2006 02:03 PM

I think that was default in 3.5.2?

Lieva 01-22-2006 02:11 PM

Quote:

Originally Posted by bashy
I think that was default in 3.5.2?

I have modified the postbit section of the plugin so that it should work with your postbit. (only the mod version of the XML atm)

bashy 01-22-2006 02:13 PM

elxcellent m8, so just redownload ya plugin and overwrite?

Lieva 01-22-2006 02:14 PM

yeah, you have to uninstall the first one.

Also, to test make sure you edit a post after installing as it doesn't store old edits.

bashy 01-22-2006 02:15 PM

ok m8 will do, thanks alot! :)

Lieva 01-22-2006 02:19 PM

Quote:

Originally Posted by bashy
ok m8 will do, thanks alot! :)

np, just say if it works now :p.

bashy 01-22-2006 02:20 PM

Ok done this, it now shows View Edit History: 0 1 2
I made 3 seperate edits, click each edite number and no edit
history shows?

I have a feeling it just aint gonna play ball for me pmsl

Lieva 01-22-2006 02:31 PM

Quote:

Originally Posted by bashy
Ok done this, it now shows View Edit History: 0 1 2
I made 3 seperate edits, click each edite number and no edit
history shows?

I have a feeling it just aint gonna play ball for me pmsl

Hmm, the post should change as you click each number so you can see each version of the post ... however, at least we are making progress :).

bashy 01-22-2006 02:37 PM

i m8, we is getting somewhere lol

Lieva 01-22-2006 02:38 PM

Quote:

Originally Posted by bashy
i m8, we is getting somewhere lol

So when you click the numbers it always shows the most up to date version of the post ? When you edited, did you change the post or just re-save it?

bashy 01-22-2006 02:41 PM

Yes it just shows the most recent edit,
all 3 links show the same, the latest edit.

When i edited the post i changed it from say 123456789 (orginal)
to 12345 and then 1234

and saved each time...

Does this make sense lol

Lieva 01-22-2006 02:43 PM

Quote:

Originally Posted by bashy
Yes it just shows the most recent edit,
all 3 links show the same, the latest edit.

When i edited the post i changed it from say 123456789 (orginal)
to 12345 and then 1234

and saved each time...

Does this make sense lol

maybe its a problem with the moderator check code. I will update the version which allows everyone to see the code and see if that works.

bashy 01-22-2006 02:44 PM

Just tried it again with 6 changes this time and it worked...

Lieva 01-22-2006 02:48 PM

Quote:

Originally Posted by bashy
Just tried it again with 6 changes this time and it worked...

Hmm, wierd. Maybe it was a cache issue or something.

Anyway, have updated the non-mod version too.

Lieva 01-22-2006 02:49 PM

Quote:

Originally Posted by Lieva
Hmm, wierd. Maybe it was a cache issue or something.

Anyway, have updated the non-mod version too.

Does the old post that had 3 edits that didn't work, work now ?

bashy 01-22-2006 02:52 PM

No m8 it dont...

I have a feeling its because i have installed the Prefix hack since creating that thread and when i edited it it asked for a prefix, i think this is why i aint showing the edits.

Just a hunch mind,

Im gonna try 1 that dont require a prefix

bashy 01-22-2006 02:56 PM

Seems to work 100% when it dont ask for a prefix during the edit :)
Gonna make the prefixes not mandatory i think although most sections
arnt anyway!!

So other than that, all is well m8, tis a great idea, well done and thanks for you time :)

Lieva 01-22-2006 02:58 PM

Quote:

Originally Posted by bashy
Seems to work 100% when it dont ask for a prefix during the edit :)
Gonna make the prefixes not mandatory i think although most sections
arnt anyway!!

So other than that, all is well m8, tis a great idea, well done and thanks for you time :)

np, and thanks for your help in testing.


All times are GMT. The time now is 07:54 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.01652 seconds
  • Memory Usage 1,957KB
  • 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
  • (3)bbcode_code_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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