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)
-   -   First post on every page of thread. (https://vborg.vbsupport.ru/showthread.php?t=93706)

Boofo 08-06-2005 10:38 PM

[high]* Boofo takes a bow as thanks insane-topics and Kirby for doing their magic. ;)[/high]

vBintense 08-06-2005 10:45 PM

[high]* vBintense welcomes Boofo back to the thread, and says most welcome.
[/high]

I got the most out of this though, I learned a few things ;)

Boofo 08-06-2005 10:49 PM

Quote:

Originally Posted by insane-topics
[high]* insane-topics welcomes Boofo back to the thread, and says most welcome.
[/high]

I got the most out of this though, I learned a few things ;)

So ... then ... that would make me a teacher by Proxy, right? ;)

chanzero 08-07-2005 03:55 AM

i uploaded the plugin and updates but i don't see where in my forum admin i can indicate which forums use the plugin? i must be missing something?

vBintense 08-07-2005 10:02 AM

Quote:

Originally Posted by chanzero
i uploaded the plugin and updates but i don't see where in my forum admin i can indicate which forums use the plugin? i must be missing something?

Forum manager , edit the forum you want to use it in, and use the yes / no select at the bottom :)

chanzero 08-07-2005 04:39 PM

Quote:

Originally Posted by insane-topics
Forum manager , edit the forum you want to use it in, and use the yes / no select at the bottom :)

i tried that but there is no option there. the last option at the bottom is "Show this Forum and Child Forums on the Forum Jump Menu"

attached is a screenshot of my plugins (the top one is yours although it doesn't show the title for some reason)

thanks

vBintense 08-07-2005 04:41 PM

It looks as though you did not install the main 'product'

phlogiston 08-07-2005 04:44 PM

Working perfectly for me straight from the box today - goodstuff (Y)


Although... ;)
On the second and further pages the $post[postcount] shown isn't technically correct,
the attached .xml is how I sorted such a minor cosmetic thing, shared for others and can be included in the zip if it seems sensible :)


**edit**
removed my version as insane-topics' is nicer & cleaner: https://vborg.vbsupport.ru/showthread.php?p=751527

vBintense 08-07-2005 04:47 PM

The reason for the post count on first post , second page is due to it is a stock template.

I may do some template work later but in all rights it needs no post number on it, such as vb.org does not show a post number on theirs.

chanzero 08-07-2005 04:54 PM

Quote:

Originally Posted by insane-topics
It looks as though you did not install the main 'product'

doh. you're absolutely right. sorry, i'm new to the plugins, but thank you very much!

phlogiston 08-07-2005 04:59 PM

Quote:

Originally Posted by insane-topics
The reason for the post count on first post , second page is due to it is a stock template.

I may do some template work later but in all rights it needs no post number on it, such as vb.org does not show a post number on theirs.

yep, I'm gonna remove the post count from the first post template too, but on the second+ pages the other posts will be numbered wrong as well.

As I said, it's just cosmetic as I don't know if postcount is used for anything at all!

vBintense 08-07-2005 05:00 PM

Ya they can be some what confusing at first, due to there are two places to import xml files.

Hope is working well now :)

Boofo 08-07-2005 05:47 PM

So, what's the concensus here now? Do we remove the postcount or leave it alone as is?

vBintense 08-07-2005 05:49 PM

It does not 'hurt' anything, it just tosses the number off by one (but if you use the go to newest and all that it works right)

I plan to try out phlogiston code after I get back from boating, if it works as well as it looks, then I will release an update with it (per his permission)

Boofo 08-07-2005 05:52 PM

Quote:

Originally Posted by insane-topics
It does not 'hurt' anything, it just tosses the number off by one (but if you use the go to newest and all that it works right)

I plan to try out phlogiston code after I get back from boating, if it works as well as it looks, then I will release an update with it (per his permission)

Ok, great! I might hold off installing it until you do the upgrade. I clicked the install button though. ;)

vBintense 08-07-2005 08:13 PM

Updated with the new postnumber fix (I changed it a tad so it does not show the post count to the first post on other pages)

If you wish to apply this fix use this file in 'plugins'.

The zip has also been updated with the new product.

Thanks phlogiston for pointing out this issue and offering code :)

hydrostatic 08-07-2005 08:32 PM

Quote:

Originally Posted by insane-topics
Updated with the new postnumber fix (I changed it a tad so it does not show the post count to the first post on other pages)

If you wish to apply this fix use this file in 'plugins'.

The zip has also been updated with the new product.

Thanks phlogiston for pointing out this issue and offering code :)

Can't we just re-import the product and "allow overwite"?

vBintense 08-07-2005 08:34 PM

I did not choose that route due to I have seen others have alot of trouble with that (update)

And I find it just as easy to solve one trouble with an update plugin, and fix zip for all those who dl after.

phlogiston 08-07-2005 08:42 PM

Quote:

Originally Posted by insane-topics
(I changed it a tad so it does not show the post count to the first post on other pages)

that's probably a more expected behaviour actually, and I'm glad you tidied up the if()
I knew mine was too messy to be the easiest way but I've always had a blind spot for matching firstpostid!


[high]* phlogiston deletes his own version & uses insane-topics'[/high]

vBintense 08-07-2005 08:46 PM

Quote:

Originally Posted by phlogiston
that's probably a more expected behaviour actually, and I'm glad you tidied up the if()
I knew mine was too messy to be the easiest way but I've always had a blind spot for matching firstpostid!

Ya it was a minor change of yours, not much though.

I allowed it to show post number 1 in first page, after that it just shows no post count number for the first post....... seemed cleaner to me.

Boofo 08-08-2005 12:04 AM

Thank you, sir. Installing now. ;)

(I'm going in! Cover me!)

vBintense 08-08-2005 12:12 AM

/me hides the zip from boofo ...
It should be painless, well almost? lol

Boofo 08-08-2005 12:27 AM

LOL Once I found the setting, all was well. ;)

Excellent job, sir. Now all we need is a postbit that is a little different so it stands out. ;)

[high]* Boofo had the file before you hid it. ;)[/high]

vBintense 08-08-2005 12:31 AM

Ya on mine I use legecy so the new postbit stands out alot ;)

But I plan to change it a bit one day unless someone is willing to share one before I get to it.

Boofo 08-08-2005 12:42 AM

Quote:

Originally Posted by insane-topics
Ya on mine I use legecy so the new postbit stands out alot ;)

But I plan to change it a bit one day unless someone is willing to share one before I get to it.

I was going to do that, but since I don't use that anyway else, I thought it might look strange. And then I thought if members saw that I would get a bunch of pms wanting me to enable to legacy postbit and then I would really be in trouble. ;)

Brinnie 08-08-2005 02:00 AM

Having a small problem with the XML import... It shows up as product "vBulletin" and nothing inside of it.

vBintense 08-08-2005 02:01 AM

If this is your first time installing , you install the xml in the zip as product not plugin (the files that where used in plugin where only updates.)

Brinnie 08-08-2005 02:11 AM

Quote:

Originally Posted by insane-topics
If this is your first time installing , you install the xml in the zip as product not plugin (the files that where used in plugin where only updates.)

what are the exact files that need to be uploaded and where?

Thanks. :)

vBintense 08-08-2005 02:13 AM

If this is fresh install, download the zip, inport the xml into products (not plugins)

Brinnie 08-08-2005 02:16 AM

ok, I got it working, thanks 4 ur patience.

Question, do I still have to do further editing to show attachments?

vBintense 08-08-2005 02:18 AM

Nope it is now just one import, the updates thru out the thread where fixed in the import , and no file edits are needed thanks to kirby :)

ricker 08-09-2005 04:43 AM

I just downloaded an installed this plugin yesterday, and thought it was great. Today, my posts are disappearing. It seems that whichever post should be first on all subsequent pages is being "covered up" by the plugin. Does that make sense?

Anyway, when I disabled the product, I can see my posts again. Has anyone else experienced this? I have no code edits and I used the fresh postbit template with only a few edits. The rest of my board uses the postbit_legacy. Running 3.5Rc2.

theArchitect 08-09-2005 06:29 AM

Hmm. For some reason I am managing to complicate the simple.

I have installed the xml file, in the Product manager, and added the additional template.

I am running RC2 and the legacy style of postbit but for some reason the first post is not showing up. Can't think what I am doing wrong.

TTG 08-09-2005 09:06 AM

Quote:

Originally Posted by ricker
I just downloaded an installed this plugin yesterday, and thought it was great. Today, my posts are disappearing. It seems that whichever post should be first on all subsequent pages is being "covered up" by the plugin. Does that make sense?

Anyway, when I disabled the product, I can see my posts again. Has anyone else experienced this? I have no code edits and I used the fresh postbit template with only a few edits. The rest of my board uses the postbit_legacy. Running 3.5Rc2.

Same problem .. disabled plugin and posts re-appeared !?

Logikos 08-09-2005 09:45 AM

I had this same problem on my board. Though I'm not using your hack at the moment, I've created my own long ago in 3.0.7 for my hack system. When I had this problem, it was caused by a condition I was using. This was the condition.

HTML Code:

<if condition="$forum[ishack] == 1 AND $post[postid] == $GLOBALS['FIRSTPOSTID']">
&nbsp
<else />
<!-- the rest of the postbit template here -->
</if>

I don't know if you using a simalar condtion, but that will grab the first post and hide it. The only problem is, that will grab the first post on everypage...

The only way I was able to fix this was to create a query that grabed the firstpostid out from the thread table.

Hope this helps you out some. I havn't used your hack yet, But I do plan on using it for my upgraded version of my hack install system.

ricker 08-09-2005 03:22 PM

Hmm, I haven't learned enough about the plugin system yet to troubleshoot this. For now, it seems that this is a very big bug and this should at least be noted in the first post.

Logikos 08-09-2005 03:54 PM

I just installed this hack on my test board, and it's working fine. All post are showing up as they should. I tested with old threads that have mutiable pages, and a created 2 new threads that split into mutiable pages. Seems everything is working just fine for me.

Boofo 08-09-2005 04:01 PM

Quote:

Originally Posted by Live Wire
I just installed this hack on my test board, and it's working fine. All post are showing up as they should. I tested with old threads that have mutiable pages, and a created 2 new threads that split into mutiable pages. Seems everything is working just fine for me.

Same here. ;)

Do you have a different postbit for the first message?

Andreas 08-09-2005 04:20 PM

Actually the last Post of every Page (that is not the first Page) disappears into Nirvana.
Explaining in detail why this does happen is not that easy, therefor i'll just post the fix :)

Hook: showthread_postbit_create
PHP Code:

if ($post['postid'] == $thread['firstpostid'] AND $vbulletin->GPC['pagenumber'] > 1)
{
    
$counter--;


Edit:
As this Hack already has Code on this Hook, replace that with
PHP Code:

if ($forum['showfirstpost'] AND $vbulletin->GPC['pagenumber'] > 1)
{
    if (
$post['postid'] == $thread['firstpostid'])
    {
        
$counter--;
        
$post['postcount'] = '';
    }
    else
    {
        
$post['postcount']--;
    }



Boofo 08-09-2005 04:24 PM

We replace all of this with that?

PHP Code:

 if($forum['showfirstpost'] AND $vbulletin->GPC['pagenumber'] > 1)
{
    if (
$post['postid'] == $thread['firstpostid'])
    {
        
$post['postcount'] = '';
    } else
    {
        
$post['postcount']--;
    }




All times are GMT. The time now is 08:39 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.01497 seconds
  • Memory Usage 1,839KB
  • 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_html_printable
  • (3)bbcode_php_printable
  • (13)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