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)

ricker 08-09-2005 04:25 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.

Could it be possible that the posts are cached somehow?

Logikos 08-09-2005 04:28 PM

Your absolutely right Kirby, I didn't make it as first as 3 pages. Since the bug report said the first post on all pages. Thanks for that fix, works like a charm! :)

Andreas 08-09-2005 04:28 PM

@Boofo
See my edited Post ;)
Didn't notice in first place that there already was Code on this Hook.

Logikos 08-09-2005 04:30 PM

@boobflu

[Edit]nvm, Kirby answered for ya[/edit]

Andreas 08-09-2005 04:31 PM

Quote:

Originally Posted by Live Wire
@boobflu
replace all of it with Kirbys new code.

No. If you do that Postcounts will get messed up.

Logikos 08-09-2005 04:33 PM

Thanks Kirby, fixed and works :)

ricker 08-09-2005 04:40 PM

Quote:

Originally Posted by KirbyDE
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']--;
    }



Sorry, so what exactly are we supposed to do here? I found the code I just want to make sure I edit it correctly.

Andreas 08-09-2005 04:45 PM

As said, replace the Code that is currently on Hook showthread_postbit_create with the 2nd Code I posted (basically it's the first Code merged with the existing Code ;)).

ricker 08-09-2005 04:48 PM

Quote:

Originally Posted by KirbyDE
As said, replace the Code that is currently on Hook showthread_postbit_create with the 2nd Code I posted (basically it's the first Code merged with the existing Code ;)).

Merge! Ok, thanks so much, it seems to be working now.
Thanks for all ya'lls help with this, this is a great feature.

Boofo 08-09-2005 04:59 PM

Quote:

Originally Posted by KirbyDE
@Boofo
See my edited Post ;)
Didn't notice in first place that there already was Code on this Hook.

LOL You posted that just a split second after I posted my question. Great minds think alike? ;)

Marco van Herwaarden 08-09-2005 05:41 PM

Quote:

Originally Posted by Boofo
LOL You posted that just a split second after I posted my question. Great minds think alike?

Great minds, yes. I don't know about flowers.

Boofo 08-09-2005 05:45 PM

Quote:

Originally Posted by MarcoH64
Great minds, yes. I don't know about flowers.

LOL Someone has been following me around it seems. ;)

Like my sig? ;)

vBintense 08-09-2005 06:00 PM

I am just getting to the desk, I will post an update later with the fix Kirby gave :) Thanks once again kirby.

Marco van Herwaarden 08-09-2005 07:37 PM

Quote:

Originally Posted by Boofo
Like my sig?

Already answered that on another thread. Yes i love it. :D

Now let's wait for the first poor punk who feels lucky.

Boofo 08-09-2005 07:44 PM

Quote:

Originally Posted by MarcoH64
Already answered that on another thread. Yes i love it. :D

Now let's wait for the first poor punk who feels lucky.

I didn't see the other thread, I guess. ;)

Be careful, I feel my luck changing for the better already.

vBintense 08-09-2005 07:53 PM

Zip updated, and can either uninstall and reinstall the xml product or manually edit with the fix here https://vborg.vbsupport.ru/showpost....9&postcount=79

Thanks again :)

Boofo 08-09-2005 08:03 PM

Thanks for updating the file, sir. Excellent mod! ;)

vBintense 08-09-2005 08:29 PM

Most welcome, though I can not take much credit for it ;)

Boofo 08-09-2005 08:32 PM

Quote:

Originally Posted by insane-topics
Most welcome, though I can not take much credit for it ;)

Sure you can. You were smart enough to go to Kirby and save everyone file edits. And like you said, you learned something in the process. Your next hack will be even better, I'm sure. ;)

vBintense 08-09-2005 08:36 PM

My next hack idea no one has shown interest in yet, so it may be back to the drawing board or perhaps just release any how once it is done lol.

Boofo 08-09-2005 08:38 PM

Quote:

Originally Posted by insane-topics
My next hack idea no one has shown interest in yet, so it may be back to the drawing board or perhaps just release any how once it is done lol.

What is the idea?

vBintense 08-09-2005 08:42 PM

A application on register , for sites that are more selective of their members.

It makes a thread with the info, makes a vote option stickys it. So can know more about the person before you moderate them.

Boofo 08-09-2005 08:44 PM

Quote:

Originally Posted by insane-topics
A application on register , for sites that are more selective of their members.

It makes a thread with the info, makes a vote option stickys it. So can know more about the person before you moderate them.

I like the idea. I might be able to use that. ;)

theArchitect 08-09-2005 10:47 PM

Quote:

Originally Posted by insane-topics
Zip updated, and can either uninstall and reinstall the xml product or manually edit with the fix here https://vborg.vbsupport.ru/showpost....9&postcount=79

Thanks again :)

You might also want to update the product number. It is still showing 1.0.0 for me. :cheeky:

Plus, it is still not showing anything for me. I.e. the first post is not being listed on each page. :disappointed:

Andreas 08-09-2005 10:48 PM

Then you most likely missed the step of copying the contents of your postbit/postbit_legacy Template to a new Template called postbit_first :)

vBintense 08-09-2005 10:53 PM

Quote:

Originally Posted by theArchitect
You might also want to update the product number. It is still showing 1.0.0 for me.

Opps , ty will do this in a tad.

Quote:

Originally Posted by KirbyDE
Then you most likely missed the step of copying the contents of your postbit/postbit_legacy Template to a new Template called postbit_first

What he said :)

theArchitect 08-09-2005 10:55 PM

Quote:

Originally Posted by KirbyDE
Then you most likely missed the step of copying the contents of your postbit/postbit_legacy Template to a new Template called postbit_first :)

That was my first guess, but according to my screen shot I have made that new template.

Also, did you get the e-mail I sent you the other day?

vBintense 08-09-2005 11:01 PM

Quote:

Originally Posted by theArchitect
That was my first guess, but according to my screen shot I have made that new template.

Also, did you get the e-mail I sent you the other day?

Did you edit forums to show the first post? In forum manager.

Also no I did not get the email, you may wish to try the pm system.

theArchitect 08-09-2005 11:08 PM

Quote:

Originally Posted by insane-topics
Did you edit forums to show the first post? In forum manager.

Also no I did not get the email, you may wish to try the pm system.

Hmm. I can't find that option.

As for the e-mail, I really should not post and work at the same time. I meant the e-mail question to be @ KirbyDE

Boofo 08-09-2005 11:09 PM

Quote:

Originally Posted by theArchitect
Hmm. I can't find that option.

As for the e-mail, I really should not post and work at the same time. I meant the e-mail question to be @ KirbyDE

Edit a forum, it should be at the bottom. ;)

vBintense 08-09-2005 11:10 PM

Forum manager , choose the forum, edit and at the bottom by save should be the option.

theArchitect 08-09-2005 11:19 PM

Quote:

Originally Posted by Boofo
Edit a forum, it should be at the bottom. ;)

This is why I REALLY shouldn't work and modify at the same time.

I installed the hack yesterday and it didn't seem to work. I then read the posts about messages vanishing, so thought (late last night) I had better remove this until I sort the problem. Then this morning I set to work and then installed the new version of the plug-in but ended up installing it in the plug-in manager rather than the product manager.

Sorry guys. I need some sort of special award for this. And I should also have my day release privileges revoked.

Boofo 08-09-2005 11:21 PM

You got it figured out and working, that is the important thing. ;)

vBintense 08-09-2005 11:31 PM

Quote:

Originally Posted by Boofo
You got it figured out and working, that is the important thing.

That and you clicked the install button :)

theArchitect 08-11-2005 01:26 AM

Quote:

Originally Posted by insane-topics
That and you clicked the install button :)

Ok. New problem, sorry.

I have got it working but when I posted about the new feature on my forum some of my members said that they couldn't see it. After some digging this became apparent.

I configured the forum to show posts as Linear - Oldest First; the first post then appeared on every page. I set it back to my normal setting of Linear - Newest First; and the first post does not show up on every page.

Am I doing something wrong, or is this just inevitable?

vBintense 08-11-2005 01:42 AM

I will have to test that, I never have used the newest first option so it is a new thing for me.

Gizmo5h1t3 08-14-2005 06:26 PM

There is an issue with this so i have disabled it.

I had spotted that the odd post or two wasn't showing up in a thread. In numerous sections members posted and it was missing from the thread yet it showed up if you searched their "find all posts" in their profile. Disabling the first post on all pages puts the post back.

anyone else had this issue?

ive had 6 members mention it to me so far

vBintense 08-16-2005 01:46 AM

Quote:

Originally Posted by Gizmo5h1t3
There is an issue with this so i have disabled it.

I had spotted that the odd post or two wasn't showing up in a thread. In numerous sections members posted and it was missing from the thread yet it showed up if you searched their "find all posts" in their profile. Disabling the first post on all pages puts the post back.

anyone else had this issue?

ive had 6 members mention it to me so far

That was fixed here
https://vborg.vbsupport.ru/showpost....9&postcount=79

:)

wolfyman 08-17-2005 02:54 AM

err. sorry, how do you add a new template? I'm lost without the Easy-Hack hack :P

Brandon Sheley 08-17-2005 07:04 AM

*installs*
worked prefect 1st try :)
thank you


All times are GMT. The time now is 05:42 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.02662 seconds
  • Memory Usage 1,836KB
  • 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
  • (2)bbcode_php_printable
  • (23)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
  • (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