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 - Simple Postbit by BOP5 (for VB 4.x) (https://vborg.vbsupport.ru/showthread.php?t=281513)

BirdOPrey5 04-12-2012 10:00 PM

Simple Postbit by BOP5 (for VB 4.x)
 
1 Attachment(s)
Brought to you by BirdOPrey5
www.Qapla.com


Version 1.13 - Added option to disable by styleid. (You should disable for all mobile styles)
Version 1.12 - Added a bunch new options and bug fix
Version 1.0 - Initial Release

This mod offers a simple postbit option that admins can specify to replace the standard postbit or postbit_legacy template on specific forums or in specific threads.

The simpler more minimalistic postbit is ideal when you want users focusing only on the post content and not avatars, signatures, or other irrelevant details.

The admin can actually turn the display of virtually every "extra" on or off via the mod options.

This mod is designed for VB 4.1.10 or higher. Versions below 4.1.10 will require a manual FILE EDIT.
(Details in the instructions.)


Live Demo: Simple Postbit Demo at Qapla.com

I would see use for this in a "Classifieds" forum, or perhaps a forum open to guests.

Really you could modify the new template postbit_simple_bop5_vb4 and put anything in it. For example if you replace this template with the code form postbit_legacy then you could use this mod to show the regular postbit template on most forums but choose to show postbit_legacy in specific forums or threads. It can really be thought more of as a "General Postbit Override" mod, it just happens to come pre-configured as a "Simple Postbit."

Please Mark as Installed if you use this. :)
Donations always appreciated. :up:

BirdOPrey5 04-13-2012 03:07 PM

Reserved.

Mr_Running 04-13-2012 03:37 PM

Great idea ! I am just figuring out how I am going / choosing to use it. :)
Testing

FYI: Show Rep Power is set to No
and is displayed.

Checking things on my side :)

BirdOPrey5 04-13-2012 03:42 PM

hmmm... Is Rep being displayed or "Rep Power" ? Rep Power is just a number. Reputation itself is the green (or red) pips.

Mr_Running 04-13-2012 03:43 PM

Oh sorry, it''s Reputation
All good. :)

BirdOPrey5 04-13-2012 03:55 PM

Yeah Reputation showing is a hold-over as this was originally designed for a classifieds forum. User reputation was important so you knew if the person selling was a respected member.

It should be easy enough to disable in the future release, or a simple manual edit of the postbit_simple_bop5_vb4 template can remove it.

BrightStar 04-13-2012 05:35 PM

Hello BirdOPrey5. I like all of your mods and this one looks very interesting too. Thank you for sharing these for free. Much appreciate your time and effort.

RobbieZ 04-14-2012 05:04 AM

Interesting , is it possible to have the thread starter have a full Postbit then everyone after have the simple Postbit?

CoZmicShReddeR 04-14-2012 08:03 AM

I would like to see it with the option to rotate the order of locations rather then to disable if that were possible?

Kraxell 04-14-2012 09:20 AM

Your a fu**ing god of hacks BoP! Great idea and great hack!

is it possible to add thank-hack?

Tagged for future!

sadiq6210 04-14-2012 12:04 PM

This is great idea Joe

I have a question
I am using vBadvanced Links Directory and really need to apply this mod in showlink pages.
Is there anyway to do that?

Thanks

BirdOPrey5 04-14-2012 01:13 PM

Quote:

Originally Posted by RobbieZ (Post 2319946)
Interesting , is it possible to have the thread starter have a full Postbit then everyone after have the simple Postbit?

Yes. I will make an option for the first post to be regular postbit or simple postbit.

Quote:

Originally Posted by CoZmicShReddeR (Post 2319965)
I would like to see it with the option to rotate the order of locations rather then to disable if that were possible?

You mean make a random post in each thread a "full" postbit? I don't understand why that would be useful. Maybe I don't understand what you are asking. :confused:

Quote:

Originally Posted by Kraxell (Post 2319974)
Your a fu**ing god of hacks BoP! Great idea and great hack!

is it possible to add thank-hack?

Tagged for future!

I can add back the postbit hook the thanks mod uses and add an on/off switch for it. Only thing is there would be no way to limit it only to the thanks hack- it would take any hack that uses that hook.

Quote:

Originally Posted by sadiq6210 (Post 2320007)
This is great idea Joe

I have a question
I am using vBadvanced Links Directory and really need to apply this mod in showlink pages.
Is there anyway to do that?

Thanks

Hmmm... I'd have to look into that- it seems like it would be possible but the Links Directory is a premium (paid) add-on so I don't have it for 4.x. Can you tell me the name of the template the Links Directory uses for comments? If you could give me a link to your link directory and turn on Template Names in HTML comments in your general settings I should be able to see what I need to see.

sadiq6210 04-14-2012 01:38 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2320033)
Hmmm... I'd have to look into that- it seems like it would be possible but the Links Directory is a premium (paid) add-on so I don't have it for 4.x. Can you tell me the name of the template the Links Directory uses for comments? If you could give me a link to your link directory and turn on Template Names in HTML comments in your general settings I should be able to see what I need to see.

Great news :rolleyes:
My forum is RTL / Arabic language so it is better to give you the template :)

This is the (ADV_LINKS_SHOWLINK) template
https://vborg.vbsupport.ru/attachmen...1&d=1334414274

The previous template will give us this page (example)
http://f.links4rank.com/dir/informat...est-linux-h-2/


Thanks Joe :up:

BirdOPrey5 04-14-2012 02:17 PM

From this link- http://f.links4rank.com/dir/informat...est-linux-h-2/ - it looks like it's already using the simple postbit?

Can you turn on Template Names in HTML comments so I can see/confirm?
Admin CP -> Settings -> Options -> General Settings?

sadiq6210 04-14-2012 02:35 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2320047)
From this link- http://f.links4rank.com/dir/informat...est-linux-h-2/ - it looks like it's already using the simple postbit?

Can you turn on Template Names in HTML comments so I can see/confirm?
Admin CP -> Settings -> Options -> General Settings?

Please check your inbox Joe
I sent you one link with user and password

:)

BirdOPrey5 04-14-2012 02:46 PM

Thanks, I sent you something to try.

In the Simpe Postbit Override plugin change IF condition to this:

Code:

if ($vbulletin->options['bop5sp_en']
    AND (in_array($thread['threadid'], explode("," , $vbulletin->options['bop5sp_threads'])) OR
    in_array($thread['forumid'], explode("," , $vbulletin->options['bop5sp_forums'])) OR THIS_SCRIPT == 'links_showlink' ))

and see if it works.

sadiq6210 04-14-2012 03:00 PM

1 Attachment(s)
Quote:

Originally Posted by BirdOPrey5 (Post 2320062)
Thanks, I sent you something to try.

In the Simpe Postbit Override plugin change IF condition to this:

Code:

if ($vbulletin->options['bop5sp_en']
    AND (in_array($thread['threadid'], explode("," , $vbulletin->options['bop5sp_threads'])) OR
    in_array($thread['forumid'], explode("," , $vbulletin->options['bop5sp_forums'])) OR THIS_SCRIPT == 'links_showlink' ))

and see if it works.

Working as a charm ! :up:
Thanks Joe ^_^ you are the best

Suggestion:
You may add a new option for (USER RANKS) in next release :rolleyes:

https://vborg.vbsupport.ru/attachmen...1&d=1334419477

Installed + Nominated + 5 stars

Gemma 04-14-2012 03:27 PM

Interesting idea, whereas everyone seems to be falling over themselves to make smartly boxed postbits with tons of extra info this idea strips everything out and actually looks really good.

Nicely done :)

sweetpotato 04-14-2012 03:48 PM

Installed, How to remove rank image and rank title please?

BirdOPrey5 04-14-2012 03:50 PM

Quote:

Originally Posted by sadiq6210 (Post 2320064)
Working as a charm ! :up:
Thanks Joe ^_^ you are the best

Suggestion:
You may add a new option for (USER RANKS) in next release :rolleyes:


Installed + Nominated + 5 stars

Quote:

Originally Posted by sweetpotato (Post 2320077)
Installed, How to remove rank image and rank title please?

Thanks! Yes user ranks will be in the next release later today.


Quote:

Originally Posted by Gemma (Post 2320073)
Interesting idea, whereas everyone seems to be falling over themselves to make smartly boxed postbits with tons of extra info this idea strips everything out and actually looks really good.

Nicely done :)

Thanks!

sadiq6210 04-14-2012 05:12 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2320079)
Thanks! Yes user ranks will be in the next release later today.




Thanks!


Thanks Joe

I have another question, how can I disable this mod in PM?
Now it is working in VBA links directory and PM
I need it only in VBA links directory
:)

BirdOPrey5 04-14-2012 09:09 PM

I'll fix that in this next version.

BirdOPrey5 04-14-2012 11:37 PM

Updated to Version 1.01

Added new options:
  • Use default Postbit for 1st Post? Y/N
  • Use postbit controls hook for mod compatibility? Y/N
  • Option to hide Ranks
  • Option to hide Reputation
  • Option to add THIS_SCRIPT values to work on 3rd party mods (pre-configured to work on vB Advanced Links Directory.)

Also my demo site is down at the moment. Hopefully the host will have it back up soon.

BCP Hung 04-15-2012 04:56 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2320199)
Updated to Version 1.01

Added new options:
  • Use default Postbit for 1st Post? Y/N
  • Use postbit controls hook for mod compatibility? Y/N
  • Option to hide Ranks
  • Option to hide Reputation
  • Option to add THIS_SCRIPT values to work on 3rd party mods (pre-configured to work on vB Advanced Links Directory.)

Also my demo site is down at the moment. Hopefully the host will have it back up soon.

I have downloaded version 1.01 as you said, but, when install, it still display old version number (1.0), also, I dont see any new options :(

sadiq6210 04-15-2012 05:47 AM

I think you re uploaded the old file by mistake

Great changes in the new release
Waiting for the new files, Thanks Joe =)

BirdOPrey5 04-15-2012 10:53 AM

Yeah looks like I did upload the wrong file yesterday, sorry. :o

All fixed now, version 1.1 confirmed. :)

sweetpotato 04-15-2012 11:12 AM

There's a problem. When enable this mod and viewing article I have an error:
Code:

Fatal error: Cannot use object of type vB_Legacy_Thread as array in /home/content...../html/includes/class_core.php(4721) : eval()'d code on line 6
Also, if this mod works with no error. How can I keep Country Flag showing?

BirdOPrey5 04-15-2012 11:43 AM

Quote:

Originally Posted by sweetpotato (Post 2320285)
There's a problem. When enable this mod and viewing article I have an error:
Code:

Fatal error: Cannot use object of type vB_Legacy_Thread as array in /home/content...../html/includes/class_core.php(4721) : eval()'d code on line 6
Also, if this mod works with no error. How can I keep Country Flag showing?

What version of vBulletin are you using?

Where would the country flag normally show?

sweetpotato 04-15-2012 11:47 AM

My Vbulletin is 4.1.12. The country Flag normally show bellow avatar.
Thanks,

sadiq6210 04-15-2012 12:17 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2320278)
Yeah looks like I did upload the wrong file yesterday, sorry. :o

All fixed now, version 1.1 confirmed. :)

The new release isn't working in vba links =(
I uninstalled the old version and install 1.1 but it is not working

You can check my website Joe

BirdOPrey5 04-15-2012 01:18 PM

OK,

New version 1.11... This should fix the fatal error on articles (I saw it too) and hopefully work on links directory. I say should because I'm guessing because I don't have the links directory installed.

sadiq6210 04-15-2012 02:07 PM

1 Attachment(s)
Quote:

Originally Posted by BirdOPrey5 (Post 2320319)
OK,

New version 1.11... This should fix the fatal error on articles (I saw it too) and hopefully work on links directory. I say should because I'm guessing because I don't have the links directory installed.

I got this blank page after upgrade to 1.11
:erm:

BirdOPrey5 04-15-2012 02:30 PM

Quote:

Originally Posted by sadiq6210 (Post 2320341)
I got this blank page after upgrade to 1.11
:erm:

:(

OK Try 1.12- just updated.

This only affects people who are trying to use this with the links directory so not sending out a formal upgrade notice.

sadiq6210 04-15-2012 02:44 PM

Now It is working perfect
Thank you very much Joe :) Appreciate your effort

sweetpotato 04-15-2012 04:43 PM

Just upgraded to 1.12. There is no error for viewing article any more. Please instruct me if I want to show country flag where I should put the template code?
Thanks,

BirdOPrey5 04-15-2012 04:57 PM

There are several hooks "under the avatar." I will need a screenshot or link to see exactly which hook it might be.

Basically you will need to look in your regular postbit_legacy template

Search for "{vb:raw template_hook.postbit_userinfo"

There will be 3 different instances... You need to figure out which one your flag display uses and copy the whole hook code (like: {vb:raw template_hook.postbit_userinfo_right} ) to the corresponding location in the postbit_simple_bop5_vb4 template.

I know this sounds annoying but I purposely left the hooks out so the postbit remains "Simple."

Trevor Matthews 04-15-2012 09:00 PM

Excellent, installed and working perfectly.

I have enabled it in all my reference sections where signatures etc are of no use.

sweetpotato 04-16-2012 01:08 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2320392)
There are several hooks "under the avatar." I will need a screenshot or link to see exactly which hook it might be.

Basically you will need to look in your regular postbit_legacy template

Search for "{vb:raw template_hook.postbit_userinfo"

There will be 3 different instances... You need to figure out which one your flag display uses and copy the whole hook code (like: {vb:raw template_hook.postbit_userinfo_right} ) to the corresponding location in the postbit_simple_bop5_vb4 template.

I know this sounds annoying but I purposely left the hooks out so the postbit remains "Simple."

Thank you for your instruction. I copy and paste in postit_simple_bop5_vb4 template the country flag template code after the rank condition:
Code:

<vb:if condition="$post['field7']"></dt> <img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.field7}.GIF"  alt="{vb:raw post.field7}" border="" /></vb:if>
Now the Country Flag showed but there is no option to turn it on or off.
Thanks,

Trevor Matthews 04-16-2012 01:59 PM

I have Helpful Answers installed by Ted S, basically a thumbs up or down to click on in every post.

It is now not appearing in the sections where I have activated Simple Postbit.

I have ticked the box that says Use Postbit Control Hook but the thums up still won't display.

Is there anything I can do about that?

BirdOPrey5 04-16-2012 03:46 PM

It would depend on how that mod works. Do you have link to it so I can see what it needs?


All times are GMT. The time now is 07:14 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.01588 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
  • (5)bbcode_code_printable
  • (17)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