vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - [OzzModz] First Post On All Pages Per Thread/Forum (https://vborg.vbsupport.ru/showthread.php?t=306348)

ozzy47 12-26-2013 11:00 PM

[OzzModz] First Post On All Pages Per Thread/Forum
 
Another mod brought to you by,
https://vborg.vbsupport.ru/external/2015/01/1.png

Here is a small modification you can use to the first post on all pages, per forum or by thread id.

It is a simple installation, just import the product XML, ozzmodz_firstpost_display

You can edit the options under the settings, [OzzModz] First Post Display Settings

Complete Feature List
  • Option to disable the mod completely.
  • Option to choose which forums, will show the first post on all pages.
  • Option to set which thread ID's, will show the first post on all pages.
  • Option to use the default postbit template, or use a custom one, which will allow you to add different styling to the elements.
  • Option to select which usergroups this mod will affect.
Frequently Asked Questions.

Q. Why do I need such a thing, you ask?

A. You may have a thread that has tens or hundreds of pages, and this will allow you to see the original post on all pages, much like you see here on vB.org in the modification threads.

Q. How do I use the custom template?

A. Note: Make sure you know what you are doing if you attempt this!
This may be a bit tricky for some users.

You can copy what ever template you are using, ( postbit or postbit_legacy ) into the template, ozzmodz_firstpost_display_postbit.
Now once you have done that, you can change the styling of the post, by adding css to the elements.
For example, if you want the first post to have a different background, when it is on any other page except for the first page, you can look for this in the template,
Code:

<div class="postbody">
and change it to this,
Code:

<div class="postbody" style="background: darkgrey;">
That will give the first post a dark grey background on any pages other than the first page.

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

If you like this mod please hit the https://vborg.vbsupport.ru/external/2015/08/1.png button to the right ---->

Please remember to click the, https://vborg.vbsupport.ru/external/2015/08/2.png button to the right if you installed the mod ---->

What does 'Marking As Installed' do ?

* It helps you to stay on top of updates - members who have installed modifications will be notified whenever new updates are available.

* For security issues - vbulletin.org will contact all members who have installed a modification whenever a security issue is brought to their attention.

* Marking a modification as installed also helps me know how many people are using my work, giving me extra incentive to provide more features and new modifications.

I appreciate the support!
-------------------------------------------------------------------------------------------

* History (Changelog) *
-------------------------
v1.0.0 (December 27, 2013)
- Initial public release
v1.0.1 (December 28,2013)
Fixed a issue where you could only choose one forum, now you can choose multiple forums.
v1.1.0 (January 26,2014)
Fixed a issue where the custom option would not work in some instances.
v1.1.1 (October 14,2014)
Fixed a incorrect phrase in one of the settings.

ozzy47 12-27-2013 10:35 PM

Reserved.

megabink 12-28-2013 04:32 PM

Thanks for the mod Ozzy but one problem tho....it doesn't update the existing threads!
I used this mod https://vborg.vbsupport.ru/showthread.php?t=239282 first then i uninstalled it and installed your mod but now all my threads are standard it doesn't show the op first on all pages!
Please advice!

ozzy47 12-28-2013 05:24 PM

This will work on all threads, old and new, as long as you set up the options correctly.

ozzy47 12-28-2013 05:39 PM

v1.0.1 Available.
Fixed a issue where you could only choose one forum, now you can choose multiple forums.

megabink 12-28-2013 11:13 PM

Quote:

Originally Posted by ozzy47 (Post 2471002)
This will work on all threads, old and new, as long as you set up the options correctly.

Well my settings where correct...almost the same as the other mod i mentioned!
But i will try the updated version and will report back.

ozzy47 12-28-2013 11:29 PM

OK let me know how it goes.

megabink 12-28-2013 11:37 PM

Quote:

Originally Posted by ozzy47 (Post 2471054)
OK let me know how it goes.

Nope not working for me..even if i choose the multiple forums option or the forum id's and save it will not set the OP's first!
Anyway thanks bud.

ozzy47 12-28-2013 11:39 PM

Can you PM me a admin account so I can see what the issue may be on your site?

Alan_SP 12-29-2013 05:01 PM

Excellent mod and it's nice idea to include option for choosing which usergroups see first post on every page, so it doesn't creates problem with SEO. :up:

ozzy47 12-29-2013 05:17 PM

Thanks, glad ya like it. I figured it may be a possibility to have issues with SEO and duplicate content, so that's why I added that.

Thanks for marking as installed. :)

Alan_SP 12-30-2013 06:11 PM

Thank you for making it. :up:

ozzy47 12-30-2013 06:56 PM

Glad ya like it, and thanks for marking as installed.

ckgb 01-08-2014 01:35 PM

Installed. Thank you Sir.

ozzy47 01-08-2014 03:15 PM

Glad ya like it, and thanks for marking as installed.

nSecure 01-10-2014 05:19 PM

This mod seem to modify the RSS behaviour, before I install this mod, it wasn't included all the useless data for RSS stream, now it looks like it copy the entire postbit template and parse it to RSS stream, do you have any fix for RSS?

ozzy47 01-10-2014 07:37 PM

Can you show me a screenshot of what it looks like with the mod enabled, and the mod disabled?

nSecure 01-11-2014 01:59 PM

This is a bit more complicated than I thought, please give me a few days to analyze what is the problem.

mitch84 01-11-2014 03:05 PM

installed and work fine, thx

ozzy47 01-11-2014 04:13 PM

Glad to hear, and thanks for marking as installed. :)

Alibass 01-14-2014 04:47 AM

I tried your mod and like megabink 'it does not work for me either. It's not that hard of a mod to setup, I did everything but fool with the custom toggle and sing it a lullaby.

Sorry no install.... will keep it tagged and check back later to see if it's working for everybody.

ozzy47 01-14-2014 10:42 AM

Well I never got any admin credentials form megabink, perhaps you con supply me with a admin account, so I can see what is going on.

Limality 01-15-2014 01:28 PM

Great Mod =) almost what I'm looking for. How hard would it be to implement this on a per thread basis as well? Let's say a forum member would be able to choose if the first post should stay on top on all pages.

On my forum some threads would greatly benefit from this, other threads not really...

Alan_SP 01-15-2014 04:03 PM

Now you can do this by setting thread ID in ACP manually, but it really would be great if we can set it in front end, with usergroup permissions in place (who can make thread's first post visible on all pages).

ozzy47 01-15-2014 09:15 PM

That will be something I look into for a future version. :)

mariannet 01-24-2014 07:41 PM

I have set Set Template to Custom

I have copied my postbit_legacy to ozzmodz_firstpost_display_postbit
I have changed <div class="postbody"> to <div class="postbody" style="background: darkgrey;">

It works great for showing the first post on next pages, but it does not use the ozzmodz_firstpost_display_postbit content

ozzy47 01-25-2014 10:38 AM

That makes no sense, if you have that option ticked, and remove the contents of the ozzmodz_firstpost_display_postbit what happens?

mariannet 01-25-2014 01:05 PM

Quote:

Originally Posted by ozzy47 (Post 2476776)
That makes no sense, if you have that option ticked, and remove the contents of the ozzmodz_firstpost_display_postbit what happens?

Nothing, I have tried everything now, uninstalled, reinstall, uninstall everything that has effect on postbit. Tried both postbit and legacy. Default style (mother of all), other styles. Choose one forum, all forum..
It does show first on all pages just fine, but I would really like the css for it to make sense :)
It simply does not use the Ozz template :(

I run vB 4.2.2

ozzy47 01-25-2014 02:15 PM

If you want, pm me a admin account and I can look into it for you. :)

mariannet 01-25-2014 02:30 PM

Quote:

Originally Posted by ozzy47 (Post 2476803)
If you want, pm me a admin account and I can look into it for you. :)

Sure, but not before tomorrow, I'm going out and won't be back till then :)
I'll PM you :)

ozzy47 01-25-2014 02:32 PM

Ok no problem, I'll be waiting. :)

ozzy47 01-26-2014 08:49 PM

v1.1.0 Available.
Fixed a issue where the custom option would not work in some instances.

RedFoxy 01-27-2014 02:30 PM

there is a way to have specific custom template for specific forum/thread?

ozzy47 01-27-2014 05:57 PM

No, either the standard post bit or a custom one, not multiple templates.

goxy63 01-28-2014 10:05 PM

Quote:

Originally Posted by megabink (Post 2470993)
Thanks for the mod Ozzy but one problem tho....it doesn't update the existing threads!
I used this mod https://vborg.vbsupport.ru/showthread.php?t=239282 first then i uninstalled it and installed your mod but now all my threads are standard it doesn't show the op first on all pages!
Please advice!

Same here, any suggestions?

ozzy47 01-28-2014 10:07 PM

Quote:

Originally Posted by goxy63 (Post 2477591)
Same here, any suggestions?

Have you set up the forums for this to work in in the settings?

goxy63 01-28-2014 10:11 PM

Sure, did that for all forums as I need it on all places except for guests

Edit:
For some reason after I marked all forums and clicked "save" settings were not saved...repeated this several times and 3rd time it was saved...for some reason it did not save options first 2 times did not noticed that after first try...it was not marked after save...

Maybe cause I got bunch of forums marked around 30 or so...

Now its ok :]

nominated rated thank you

Edit2:
not nominated as I cant, voted for mod of a month :]

ozzy47 01-28-2014 10:14 PM

That's certainly strange behavior. But glad it's sorted anyway. :)

goxy63 01-28-2014 10:37 PM

Maybe because I have bunch of forums +30 so...?

Anyways, just one small question:

Quote:

You can copy what ever template you are using, ( postbit or postbit_legacy ) into the template, ozzmodz_firstpost_display_postbit.
Now once you have done that......
So to copy whole "postbit_legacy" template there and change it within "ozzmodz_firstpost_display_postbit"....I can be free to play with it there no worries for some f*** up ? :D

ozzy47 01-28-2014 10:40 PM

Correct, that is if you are going to use the custom option. :)

Copy the entire postbit_legacy to ozzmodz_firstpost_display_postbit, then change the setting to custom.


All times are GMT. The time now is 06:13 PM.

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.01360 seconds
  • Memory Usage 1,819KB
  • 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_code_printable
  • (7)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