vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - [DBTech] Postbit Tabs v1 (vB4) (https://vborg.vbsupport.ru/showthread.php?t=257985)

Nimaveli 08-21-2011 10:14 AM

Hello,
Well this should be a really easy question for people who know this stuff. I, however, don't so after 2 hours of trying I've given up. I hope someone can help me with this. Basically I'm trying to get rid of these two things: ''Points'' and ''Level''.

I've basically been deleting small snippets of the postbit_legacy template for 2 hours now but I can't figure out what to do :( (ofcourse I did put them back after seeing they dont do what I want them to do lol)

Also, another question I have is this. I want to add ''rep points: x'' and ''rep power: x'' under the green rep bar but can't do that either. Yeah I suck I know, it's my first time doing anything other than CSS though so can't figure it out on my own :(

https://vborg.vbsupport.ru/external/2011/09/39.png

Thanks in advance hombres,
Peace

DragonByte Tech 08-24-2011 02:16 PM

I don't know what mod those lines come from so I am unfortunately unable to assist with that :(


Fillip

Digital Jedi 09-07-2011 06:13 AM

Quote:

Originally Posted by DragonByte Tech (Post 2155966)
Hehe :)

Just as an addendum: While the result looks similar to the end-user, I can assure everyone that there is no shenanigans going on here :p
We haven't copied any code, not even the JS code :)

The JS was made in collaboration with Darkwaltz4, DBTech's resident jQuery guru, conceptualised / foundation written by myself.

We've also been in contact with DigitalJedi both in public on DBTech's website, and in private communication both there and here on vB.org, so I would think he's fully aware of what has been going on with this mod :)


Fillip

See, this is what I get for going away right before you posted the mod. I didn't get to act all indignant and shake fists and stuff before anyone noticed. There was an actual tin can I was going to kick.

I know, I know. I'm ten. :o

I was never able to sit down and come up with a logical way to handle the tabs via the Admin CP. I like how you've handled it. I haven't got a chance to install this yet, but did you run into any issue with persistent tabs? The JavaScript I was using, for some reason I never pinpointed, kept logging people out when set to persistent.

DragonByte Tech 09-07-2011 07:15 PM

Quote:

Originally Posted by Digital Jedi (Post 2242895)
See, this is what I get for going away right before you posted the mod. I didn't get to act all indignant and shake fists and stuff before anyone noticed. There was an actual tin can I was going to kick.

I know, I know. I'm ten. :o

Haha, aren't we all :D

Quote:

Originally Posted by Digital Jedi (Post 2242895)
I was never able to sit down and come up with a logical way to handle the tabs via the Admin CP. I like how you've handled it. I haven't got a chance to install this yet, but did you run into any issue with persistent tabs? The JavaScript I was using, for some reason I never pinpointed, kept logging people out when set to persistent.

Nope, no cookie issues reported thus far.

Could it be that the cookie you were setting somehow overwrote the userid or password cookies, or some other part of it caused those cookies to be deleted?

These are the functions I use:
Code:

    function setCookie(name,value,days) {
        if (days) {
            var date = new Date();
            date.setTime(date.getTime()+(days*24*60*60*1000));
            var expires = "; expires="+date.toGMTString();
        }
        else var expires = "";
        document.cookie = name+"="+value+expires+"; path=/";
    }
   
    function getCookie(name) {
        var nameEQ = name + "=";
        var ca = document.cookie.split(';');
        for(var i=0;i < ca.length;i++) {
            var c = ca[i];
            while (c.charAt(0)==' ') c = c.substring(1,c.length);
            if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
        }
        return null;
    }
   
    function deleteCookie(name) {
        setCookie(name,"",-1);
    }


Fillip

Digital Jedi 09-07-2011 08:08 PM

Quote:

Originally Posted by DragonByte Tech (Post 2243128)
Nope, no cookie issues reported thus far.

Could it be that the cookie you were setting somehow overwrote the userid or password cookies, or some other part of it caused those cookies to be deleted?

These are the functions I use:

<facepalm> That MUST have been it. Never even occurred to me. :eek:

Digital Jedi 09-07-2011 08:09 PM

Quote:

Originally Posted by Nimaveli (Post 2236100)
Hello,
Well this should be a really easy question for people who know this stuff. I, however, don't so after 2 hours of trying I've given up. I hope someone can help me with this. Basically I'm trying to get rid of these two things: ''Points'' and ''Level''.

I've basically been deleting small snippets of the postbit_legacy template for 2 hours now but I can't figure out what to do :( (ofcourse I did put them back after seeing they dont do what I want them to do lol)

Also, another question I have is this. I want to add ''rep points: x'' and ''rep power: x'' under the green rep bar but can't do that either. Yeah I suck I know, it's my first time doing anything other than CSS though so can't figure it out on my own :(

https://vborg.vbsupport.ru/external/2011/09/39.png

Thanks in advance hombres,
Peace

It looks like you either have some old template edits, or another modification turned on that adds content to that hook.

DragonByte Tech 09-14-2011 01:39 AM

Postbit Tabs v1.0.5
Fix: Any un-recorded hotfixes since the last version released.
Change: The products now support the Product URL and Version Check features of the vBulletin Product Manager

Fillip

TenaciousD 10-11-2011 06:50 PM

Quote:

Originally Posted by DragonByte Tech (Post 2184185)
This is the complete code we use in a View, which works perfectly on all our customers' installations:

HTML Code:

<dl class="userinfo_extra">
    <vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></vb:if>
    <vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></vb:if>
    <vb:if condition="$post['age']"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></vb:if>
    <dt>{vb:rawphrase 'posts'}</dt> <dd>{vb:raw post.posts}</dd>
    <vb:if condition="$post['entries']"><dt>{vb:rawphrase blog_entries}</dt><dd><a href="{vb:link blog, {vb:raw post}, null, 'userid', 'blog_title'}">{vb:raw post.entries}</a></dd></vb:if>
</dl>
{vb:raw template_hook.dbtech_userinfo_right_after_posts}


Finally, several pages in, an example is provided.

The earlier poster was correct, short of installing the other suite of DragonByte mods, this is useless.

I was ambivalent on the entire lite v. premium debate until this mod, but now lean heavily against it. It's simply not worth it.

DragonByte Tech 10-11-2011 07:04 PM

How is this useless? You can move any modification's code along with default vBulletin information using the same syntax as the template.

I'm curious to know what else you'd want. Critisism is only constructive if it offers advice on how to (in your opinion) improve the mod - simply saying "this sucks" doesn't help us make a better mod.

Fillip

CharlieDelta 10-11-2011 10:59 PM

Quote:

Originally Posted by DragonByte Tech (Post 2256015)
How is this useless? You can move any modification's code along with default vBulletin information using the same syntax as the template.

I completely agree. I use this with many mods postbit code and it works very nicely, suits our needs perfectly.


All times are GMT. The time now is 06:46 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.01210 seconds
  • Memory Usage 1,761KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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