vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Miscellaneous Hacks - DJ's Dynamic Tab Content for Postbit_Legacy (https://vborg.vbsupport.ru/showthread.php?t=184136)

Digital Jedi 07-13-2008 01:16 AM

I do explain, actually, in great detail at the very beginning of Post 2 of this thread. ;)

You don't do anything with it, unless you want to change the mouseover, or put text over the background images.

FRANKTHETANK 2 07-13-2008 07:46 AM

Quote:

Originally Posted by Digital Jedi (Post 1573908)
I do explain, actually, in great detail at the very beginning of Post 2 of this thread. ;)

You don't do anything with it, unless you want to change the mouseover, or put text over the background images.

ok sorry i was reading it and made it more difficult than what it was but this doesn't work for me. I will play with it some more and if i can't figure it out i will ask some more questions. Thanks

AWJunkies 07-14-2008 08:18 AM

Nice I will be definitely checking this out.

Boosted Panda 07-16-2008 06:55 PM

1 Attachment(s)
I have it successfully working on my postbit!!!

There are some additional modifications needed:
https://vborg.vbsupport.ru/showthrea...89#post1577089

Deepdog009 07-17-2008 03:52 AM

Great job Digital Jedi

Digital Jedi 07-17-2008 01:10 PM

Quote:

Originally Posted by Boosted Panda (Post 1577116)
I have it successfully working on my postbit!!!

There are some additional modifications needed:
https://vborg.vbsupport.ru/showthrea...89#post1577089

That doesn't look bad Panda. I'll be sure to add your link to one of the tutorial posts as soon as I get to next update.

Leo Brazil 07-17-2008 03:34 PM

That's awsome !!

I'm gonna have to work out a lot to make it work on my site (first train at my test forum) but this is insane.

Any cool tips to create a good view when working with vBExperience ?

Tks

Digital Jedi 07-17-2008 09:17 PM

I've not used it, but I imagine it would be as simple as moving the postbit variables for the rank bars and badges into a block. It's really up to you and what you want for your postbit. Each style might demand something a little different.

Boosted Panda 07-17-2008 10:28 PM

Yeah just move the variable over.

Leo Brazil 07-18-2008 02:39 PM

Thanks guys. I'm gonna try it let's see how it goes.

As vBExperience is getting popular here probably more ideas about it will come up here in the future.

Chadi 07-19-2008 01:20 AM

Anyone know how to fix the problem with the quick edit / reply where the tab contents all display at once?

Boosted Panda 07-19-2008 08:28 PM

Quote:

Originally Posted by chadi (Post 1578776)
Anyone know how to fix the problem with the quick edit / reply where the tab contents all display at once?

Can you post a screen shot?

Chadi 07-19-2008 08:34 PM

Well its a reported bug by the author himself so its not just me

Quote:

Known Bugs
There is one minor issue with the tabs that I've noticed only occurs when using the AJAX quick reply and inline editing. Actually it's two issues, but I've only seen one or the other on my live site vs. my demo board. In one instance, the entire content of all your tabs displays all at once when posting/editing using AJAX. This is not a huge deal, as the only person who sees it do that is the person doing the posting/editing. And it will return to normal anytime he reloads or refreshes the page. The other instance is when after posting/editing through AJAX, no tab content appears, except the dot tabs. This is also not a huge deal as the same thing will happen here; only the poster sees it and it will look normal anytime he returns or reloads the page. I think it's a minor trade off for the sleek look it gives your forum the rest of the time.
Here are screenshots either way :)

Normal

http://img185.imageshack.us/img185/9537/65338870vt7.gif

After quickedit via ajax

http://img185.imageshack.us/img185/9008/59882789gd2.gif

RobbieZ 07-20-2008 05:05 PM

Absolutely awesome work.. way too difficult for me to administer.. im new to all this..

Plus i love the actual website/forum skin.. really slick..

Bustah 07-21-2008 12:17 AM

Does this work on 3.6.8?

Digital Jedi 07-21-2008 10:58 AM

Yes, it will work on any version because it's just utilizing javascript that would work on any webpage. Your just putting additional HTML in your postbit and moving the content around.

Chadi 07-21-2008 04:24 PM

Hi DJ,

Curious if your working on the bug problem as you posted in your OP.

Thanks. I even asked around at Dynamic Drive too, not resolution yet.

Digital Jedi 07-21-2008 04:51 PM

I haven't gone in depth into yet, but it's next on my list of things to do. I kind of was hoping to have that solution as part of the next update, which is why it's taking longer then usual. Plus, I'm a little behind on my AME updates again, so I want to try and work them in together somehow.

Chadi 07-21-2008 08:04 PM

Thanks for the effort, appreciated.

TimberFloorAu 07-23-2008 06:12 AM

I have just totally redone our Postbit, and I am thrilled !

Many thanks.

Just one KWIK question...

Is it possible to whack the postbit items into a coloured div container one diff colour per div item in the menu.

Ste

TimberFloorAu 07-23-2008 10:16 AM

the excitement was short lived :(

Our users keep getting logged off, inc admin.

Checked code, and notice you have <head> tag added?

Is this correct ?

Could it be that we need to change postbit and postbit_legacy ( wouldnat have thought so )

TimberFloorAu 07-23-2008 10:17 AM

the excitement was short lived :(

Our users keep getting logged off, inc admin.

Checked code, and notice you have <head> tag added?

Is this correct ?

Could it be that we need to change postbit and postbit_legacy ( wouldnat have thought so )

surely

Code:

<head>
<link rel="stylesheet" type="text/css" href="postbit_tabs/tabcontent.css" />
<script type="text/javascript" src="postbit_tabs/tabcontent.js">
/***********************************************
* Tab Content script v2.2- ? Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
</head>

should be added to header template not postbit!

TimberFloorAu 07-23-2008 11:12 PM

Have checked everything:

Wrapped the if round divs etc. Here is our postbit_legacy template.

Members keep getting logged out. Driving them mad, so have reverted to old postbit_legacy ( prior to adding this hack )

Code:

$template_hook[postbit_start]
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
        <if condition="$show['announcement']">
                <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]" colspan="2">
                        <img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" />
                        <phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
                </td>
        <else />
                <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[right]: 0px" $post[scrolltothis]>
                        <!-- 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>
                        $post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
                        $post[firstnewinsert]
                        <!-- / status icon and date -->
                </td>
                <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px" align="$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></if>
                        <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]" />
                        </if>
                </td>
        </if>
</tr>
<tr valign="top">
        <td class="alt2" width="175" $mh_pbc_color_userinfo style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">

                        <div id="postmenu_$post[postid]">
                                <if condition="$show['profile']">
                                <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
                                <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
                                <else />
                                $post[musername]
                                </if>
                        </div>
<!--BEGIN VB STATUS-->
<if condition="$vbulletin->options['vbstatus_active']">

        <div class=smallfont>
        $post[username]
        <em id="vbstatus_$post[postid]">
        $post[vbstatus_status]
        <if condition="$bbuserinfo['userid']==$post['userid'] OR $vbstatus_isadmin==1">
                <if condition="$vbulletin->options['vbstatus_inline']">
                        <a href="javascript:Att_AjaxDiv('inline=1&userid=$post[userid]&postid=$post[postid]','vbstatus/vbstatus_ajax.php','vbstatus_$post[postid]')">Edit</a>

                <else />
                        <a href="javascript:Att_Ajax('userid=$post[userid]&postid=$post[postid]','vbstatus/vbstatus_ajax.php')">Edit</a>
                </if>
       
        </if>       
        </em>
        </div>


</if>
<!--END VB STATUS-->
                        <if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
                        <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
                       

                        <if condition="$show['avatar']">
                                <div class="smallfont">
                                        &nbsp;<br /><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>
                                </div>
                        </if>
<!-- BEGIN AJAX CONTENT -->
<head>
<link rel="stylesheet" type="text/css" href="postbit_tabs/tabcontent.css" />
<script type="text/javascript" src="postbit_tabs/tabcontent.js">

</script>
</head>
 
<div id="$post[postid]postbittabs" class="djdot">
<ul>
<li><span title="Info"><a href="#" rel="$post[postid]tab1">&nbsp;</a></span></li>
<li><span title="My Info"><a href="#" rel="$post[postid]tab2">&nbsp;</a></span></li>
<li><span title="Stats"><a href="#" rel="$post[postid]tab3">&nbsp;</a></span></li>
<li><span title="VB Experience"><a href="#" rel="$post[postid]tab4">&nbsp;</a></span></li>
</ul>
<br style="clear: left" />
</div>
 
 
 
<div class="smallfont">
 
<!--TAB 1 CONTENT -->
<div id="$post[postid]tab1" class="tabcontent">
<if condition="$post[userid]"><div class="info">
        $vbphrase[bf2_local_time]: $post[localtime]
        $vbphrase[bf2_local_date]: $post[localdate]
</div></if>
<if condition="$post['joindate']"><div class="info">$vbphrase[join_date]: $post[joindate]</div></if>
</div>
 
<!-- TAB 2 CONTENT -->
<div id="$post[postid]tab2" class="tabcontent">
<if condition="$post['field2']"><div class="info">$vbphrase[location_perm]: $post[field2]</div></if>
<if condition="$post[field5]"><div class="info">Visa Type: $post[field5]</div></if>
<div class="info">$post[findme]</div>
<div class="info">$post[crowns]$post[champtext]</div>
<if condition="$post[field11]"><div class="info">$vbphrase[gender]: <img src="$stylevar[imgdir_misc]/$post[field11].gif" alt="$post[field11]" /></div></if>
<if condition="$post['age']"><div class="info">$vbphrase[age]: $post[age]</div></if>
</div>
 
<!-- TAB 3 CONTENT -->
<div id="$post[postid]tab3" class="tabcontent">
<if condition="$post['userid']"><div class="info">YoBroMoFo Mates: (<b><a href="member.php?u=$post[userid]">$post[friendcount]</a></b>)</div></if>
<div class="info">$vbphrase[posts]: $post[posts]</div>
<if condition="$vboptions['vbookiecashon']"><div class="info">
      $vbphrase[vbookie_vcash]: $post[vbookie_cash]
  </div></if>
<if condition="$post['threads']"><div class="info">
                                       
                                                $vbphrase[threads]: <a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]&amp;starteronly=1" rel="nofollow">$post[threads]</a>
                                       
                                        </div></if>
<if condition="$show['credits_post']"><div class="info">
                                       
                                                $vbphrase[credits]: <span id="cdt_$post[postid]_$post[userid]">$post[credits]</span> <if condition="$show['credits_donate']">[<a href="credits.php?$session[sessionurl]do=manage&amp;u=$post[userid]#donate">$vbphrase[donate]</a>]</if> <if condition="$show['credits_check']">[<a href="credits.php?$session[sessionurl]do=banking&amp;u=$post[userid]">$vbphrase[check]</a>]</if>
                                       
                                </div></if>
<div class="info">$template_hook[postbit_userinfo_right_after_posts]</div>
<if condition="$show['infraction']"><div class="info">$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
</div>
 
<!-- TAB 4 CONTENT -->
<div id="$post[postid]tab4" class="tabcontent">
<div class="info">$template_hook[postbit_userinfo_left]</div>
</div>
 
 
</div>
 
<script type="text/javascript">
var mytabs=new ddtabcontent("$post[postid]postbittabs")
mytabs.setpersist(true)
mytabs.setselectedClassTarget("link")
mytabs.init()
</script>
<!-- END AJAX CONTENT -->
                       
                                       
<div class=smallfont>
                                <if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
                                $template_hook[postbit_userinfo_right]
                                <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div></div>


        </td>
        <if condition="$show['moderated']">
        <td class="alt2" id="td_post_$post[postid]" style="border-$stylevar[right]: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
        <else />
        <td class="alt1" id="td_post_$post[postid]" $mh_pbc_color_message style="border-$stylevar[right]: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
        </if>
                $template_hook[postbit_messagearea_start]
                <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]; background-color:$stylevar[tborder_bgcolor]" />
                        <!-- / icon and title -->
                </if>

                <!-- message -->
                <div id="post_message_$post[postid]">$post[message]</div>
                <!-- / message -->

                <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>

                $template_hook[postbit_signature_start]

                <if condition="$post['signature']">
                <!-- sig -->
                        <div>
                                __________________<br />
                                $post[signature]
                        </div>
                <!-- / sig -->
                </if>

                $template_hook[postbit_signature_end]

                <if condition="$show['postedited']">
                <!-- edit note -->
                        <div class="smallfont">
                                <hr size="1" style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />
                                <em>
                                        <if condition="$show['postedithistory']">
                                                <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]" 4="posthistory.php?$session[sessionurl]p=$post[postid]">$vbphrase[last_edited_link_by_x_on_y_at_z_postid]</phrase>.
                                        <else />
                                                <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
                                        </if>
                                        <if condition="$post['edit_reason']">
                                                $vbphrase[reason]: $post[edit_reason]
                                        </if>
                                </em>
                        </div>
                <!-- / edit note -->
                </if>

        </td>
</tr>
<tr>
        <td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
<a href="album.php?u=$post[userid]" title="View $post[username]'s Album" rel="nofollow"><img src="images/buttons/add_album.png" alt="View $post[username]'s Photo Album" border="0"/></a>               
$post[onlinestatus]
                <if condition="$show['reputationlink']">
                        <span id="reputationmenu_$post[postid]"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow" id="reputation_$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a></span>
                        <if condition="$show['popups']"><script type="text/javascript"> vbrep_register("$post[postid]")</script></if>
                </if>
<if condition="$show['credits_postadd']">
                        <span id="creditsmenu_$post[postid]"><a href="credits.php?$session[sessionurl]p=$post[postid]" rel="nofollow" id="credits_$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/credits.gif" alt="<phrase 1="$post[username]" 2="$vbphrase[credits]">$vbphrase[credits_threadaward]</phrase>" border="0" /></a></span>
                        <if condition="$show['popups']"><script type="text/javascript"> vbcdt_register("$post[postid]")</script></if>
                </if>
                <if condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&amp;p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</phrase>" border="0" /></a></if>
                <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></if>
                $post[iplogged]
                &nbsp;
        </td>
        <if condition="$show['moderated']">
        <td class="alt2" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px; border-top: 0px">
        <else />
        <td class="alt1" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[left]: 0px; border-top: 0px">
        </if>
                <!-- controls -->
                <if condition="$post['editlink']">
                        <img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />
                        <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['multiquote_post']">
                        <a href="$post[replylink]" rel="nofollow" onclick="return false"><img src="$stylevar[imgdir_button]/multiquote_<if condition="$show['multiquote_selected']">on<else />off</if>.gif" alt="$vbphrase[multi_quote_this_message]" border="0" id="mq_$post[postid]" /></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>
                <if condition="$show['spam']">
                        <img src="$stylevar[imgdir_misc]/spam_detected.png" alt="$vbphrase[spam_post]" border="0" />
                </if>
                <if condition="$show['deletedpost']">
                        <if condition="$show['managepost']">
                                <a href="postings.php?$session[sessionurl]do=managepost&amp;p=$post[postid]"><img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[manage]" border="0" /></a>
                        <else />
                                <img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]" border="0" />
                        </if>
                </if>
                <if condition="$show['redcard']">
                        <a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a>
                <else />
                        <if condition="$show['yellowcard']">
                                <a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
                        </if>
                </if>
                $template_hook[postbit_controls]
                <!-- / controls -->
        </td>
</tr>
</table>
$template_hook[postbit_end]

<!-- 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['smscontact']">
                <tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;type=sms&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_sms_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_more_posts_by_x]</phrase></a></td></tr>
        </if>
        <if condition="$post['userid'] AND $show['member']">
        <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_contacts]</phrase></a></td></tr>
        </if>
        $template_hook[postbit_user_popup]
        </table>
</div>
<!-- / post $post[postid] popup menu -->
<div id="award$post[postid]" style="padding:$stylevar[cellpadding]px 0px 0px 0px;">
$awardbox
</div>

If you can see any errors please let me know

Digital Jedi 07-24-2008 05:02 AM

This modification wouldn't have any effect on login, nor would the extra <head> tag. You can move the <head> content to your headinclude template to conform to XHTML standards, but for the sake of expediency and ease of install, I've left it the way it is, as it still functions on the three browsers I've tested it in. But none of that would have an affect on login. That's likely another modifications or a server issue that just happen to coincide with the template edit.

One thing I should mention, if you do use this modification, your required to keep the copyright info intact for legal use.

Also note, that if a good number of your users are using FireFox to browser your forums, I've noticed that FireFox is having some problems keeping you logged in.

TimberFloorAu 07-24-2008 07:01 AM

Cheers Jedi.

The code I posted was minus the copyright info, as I had added the head stuff to header include ( along with dynamic drives link back )

Inadvertantly leaving it in header include.

The Code works great but alas, keeps logging everyone out, on both Int Exp and FF

My only possible concern is that its a javascript collision somewhere.. not sure where, so for now, its been removed .

Bloody shame cos it looked great and everyone loved it.

Thanks Anyway

TimberFloorAu 07-24-2008 07:04 AM

Im just wondering if its the VB STATUS mod we run?

If we <!-- commented out VB Status script --> re enabling your script in our postbit legacy... that should effectively rule that out huh

TimberFloorAu 07-24-2008 07:35 AM

Your Code for contacts.

Code:

<div class="info">
<if condition="$show['pmlink'] OR $show['emaillink'] OR $post['userid'] AND $show['member']">
Send $post[username]:<br /></if>
        <if condition="$show['pmlink']">
  <a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">a Private Message</a><br />
 </if>
 <if condition="$show['emaillink']">
  <a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow">an Email</a><br />
 </if>
 <if condition="$post['userid'] AND $show['member']">
 <a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]">a Friend Request</a>
 </if></div>

Shouldnt the <if statements be before the <div tags?

If so can you repost exact code.

Ste

Digital Jedi 07-24-2008 01:42 PM

Quote:

Originally Posted by TimberFloorAu (Post 1582883)
Im just wondering if its the VB STATUS mod we run?

If we <!-- commented out VB Status script --> re enabling your script in our postbit legacy... that should effectively rule that out huh

That's a possibility. Also check your code real closely, as I ran into some parsing errors when I first designed it from a simple improperly nested tag. Little things like that can be easily overlooked when shuffling content around.


Quote:

Originally Posted by TimberFloorAu (Post 1582901)
Your Code for contacts.

Code:

<div class="info">
<if condition="$show['pmlink'] OR $show['emaillink'] OR $post['userid'] AND $show['member']">
Send $post[username]:<br /></if>
        <if condition="$show['pmlink']">
  <a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">a Private Message</a><br />
 </if>
 <if condition="$show['emaillink']">
  <a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow">an Email</a><br />
 </if>
 <if condition="$post['userid'] AND $show['member']">
 <a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]">a Friend Request</a>
 </if></div>

Shouldnt the <if statements be before the <div tags?

If so can you repost exact code.

Ste

In this case, it doesn't need to be, because everyone on your forum is going to have at least one method of contact. Unless you have PMs disabled or optional somehow, a user could always be contacted by PM and anyone can add a person to their Buddy List. So the info box doesn't need to be in an IF conditional, because it will always be there.

Boosted Panda 07-24-2008 04:08 PM

Yeah I am having problems with members logging out randomly :(

TimberFloorAu 07-24-2008 09:51 PM

Quote:

Originally Posted by Boosted Panda (Post 1583212)
Yeah I am having problems with members logging out randomly :(

Could you share what other mods you are running?

Perhaps we can fine tune it

Ljusya 07-25-2008 01:52 AM

I have problems with members logging out too
I solved it!!!
in postbit disable function mytabs.setpersist set is mytabs.setpersist(false)

TimberFloorAu 07-25-2008 05:10 AM

Quote:

Originally Posted by Ljusya (Post 1583510)
I have problems with members logging out too
I solved it!!!
in postbit disable function mytabs.setpersist set is mytabs.setpersist(false)

Gonna try that now thanks
Will let you know how it goes

PoetJA-1975 07-25-2008 03:59 PM

Quote:

Originally Posted by Ljusya (Post 1583510)
I have problems with members logging out too
I solved it!!!
in postbit disable function mytabs.setpersist set is mytabs.setpersist(false)

I've had issues with Members staying logged in as well
I hope this solves it - thanx ;)

Jacquii.

Boosted Panda 07-25-2008 07:28 PM

Let me know if this solves the trick!

TimberFloorAu 07-25-2008 08:39 PM

Quote:

Ljusya I have problems with members logging out too
I solved it!!!
in postbit disable function mytabs.setpersist set is mytabs.setpersist(false)
Gotta say its working for us !!!!

No complaints yet !!!

We even whacked a tutorial on for our users.

http://www.yobromofo.com/forum/tutor...w_postbit.html

PoetJA-1975 07-25-2008 08:47 PM

Nice tutorial - reminds me I need to do a few for my updated site design...

Anyway - I have to say I've been browsing all afternoon and have not had one issue with being logged out since I made this edit... Hopefully the issue has been resolved!

Thanx,

Jacquii.

g0dfather1984 07-25-2008 09:29 PM

Is there one for a mood changer?

TimberFloorAu 07-25-2008 09:47 PM

Quote:

Originally Posted by PoetJA-1975 (Post 1584174)
Nice tutorial - reminds me I need to do a few for my updated site design...

Anyway - I have to say I've been browsing all afternoon and have not had one issue with being logged out since I made this edit... Hopefully the issue has been resolved!

Thanx,

Jacquii.

Thanks.

It seems to have done the trick !

Somehow, switching to false, stops the js failing cache or something, not sure what or how, but seems to work

Boosted Panda 07-25-2008 10:26 PM

I would like more information on making sure this works :p I was having the logout problems and just want every nook and cranny covered!

TimberFloorAu 07-25-2008 10:30 PM

Quote:

Originally Posted by Boosted Panda (Post 1584228)
I would like more information on making sure this works :p I was having the logout problems and just want every nook and cranny covered!

We are only a small forum, but :

On average 10,000 page views to forum home per day.
always about 40 members online.

10% were having issues.

Since the change not one reported incident.


All times are GMT. The time now is 02:33 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.01848 seconds
  • Memory Usage 1,967KB
  • 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
  • (4)bbcode_code_printable
  • (12)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
  • (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