Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Chief First Post - Every Page - 3.6.x Details »»
Chief First Post - Every Page - 3.6.x
Version: 1.01, by Atakan KOC Atakan KOC is offline
Developer Last Online: Mar 2023 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.8 Rating:
Released: 08-23-2007 Last Update: 08-25-2007 Installs: 339
Uses Plugins Template Edits
 
No support by the author.

Chief First Post - Every Page
With this mod, you can convert the view of the thread in to 4 different type. Additionally you can change the view as you edit click the edit button. The 1st message of the thread will stay at top all the time even while you are checking other messages related to this subject.


Thread Type
Postbit Article
Postbit Flipped
Postbit Normal
Postbit Legacy


install

Go to your admin cp, then:
Plugin System -> Manage Products -> [Add/Import Product] -> Select 'product-chiefpost.xml' from your computer then press 'Import'

Modifications Info

Plugin : 12
Phrases : 3
Template : 3
Setting : 0

Versions:
v1.0 - 24 August 2007
-First release

v1.0.1 - 26 August 2007
-Rating Phrase fixed

With this mod, you can convert the view of the thread in to 4 different type. Additionally you can change the view as you edit click the edit button. The 1st message of the thread will stay at top all the time even while you are checking other messages related to this subject.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 09-25-2007, 04:59 PM
MaXxed MaXxed is offline
 
Join Date: Jun 2002
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works very well!

any way to add some more options to the Article template? Such as more profile fields or the add-rep button?
Reply With Quote
  #83  
Old 09-25-2007, 09:17 PM
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Posts: 758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello Atakan KOC!! :up:

I'm trying to Activate this Great Hack in My Forums, but when I try to see a Thread in the Forum I've designated to have this Functionality (Chief Post Show first post on every thread page? as Yes) I'm receiving an Error.

Also when I try to create a New Thread in the Forum where I've Chosen to Activate this Hack, the Create New Thead Form appears with the Four New Options (postbit Article, Flipped, Normal, and Legacy), but when I create the Thread, I receive the same Error when the Forum try to show it to me!!

What should I do to use this Hack?? What Should I Change?? Do I Have To Edit a Template??

Thank You For Your Help!!

I'm copying the Error Message:

Forum: http://inciarco.com/foros/forumdisplay.php?f=85
Thread: http://inciarco.com/foros/showthread.php?t=1909

Code:
Database error 
The INCIARCO - FOROS - Comunidades Virtuales de Integraci?n database has encountered a problem. 

--------------------------------------------------------------------------------
 
Please try the following: 
Load the page again by clicking the Refresh button in your web browser. 
Open the inciarco.com home page, then try to open another page. 
Click the Back button to try another link. 
 
The inciarco.com forum technical staff have been notified of the error, though you may contact them if the problem persists. 
 
We apologise for any inconvenience. 


Database error in vBulletin 3.6.7:

Invalid SQL:

		SELECT
			post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS isdeleted,
			user.*, userfield.*, usertextfield.*,
			icon.title as icontitle, icon.iconpath,
			avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight,
			deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason,
			editlog.userid AS edit_userid, editlog.username AS edit_username, editlog.dateline AS edit_dateline,
			editlog.reason AS edit_reason,
			postparsed.pagetext_html, postparsed.hasimages,
			sigparsed.signatureparsed, sigparsed.hasimages AS sighasimages,
			sigpic.userid AS sigpic, sigpic.dateline AS sigpicdateline, sigpic.width AS sigpicwidth, sigpic.height AS sigpicheight,
			IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid
			
			, IF(SUM(photoplog_fileuploads.moderate) > 0 AND 1 = 0,COUNT(photoplog_fileuploads.moderate) - SUM(photoplog_fileuploads.moderate),COUNT(photoplog_fileuploads.moderate)) AS photoplog_filecount
		FROM vb_post AS post
		LEFT JOIN vb_user AS user ON(user.userid = post.userid)
		LEFT JOIN vb_userfield AS userfield ON(userfield.userid = user.userid)
		LEFT JOIN vb_usertextfield AS usertextfield ON(usertextfield.userid = user.userid)
		LEFT JOIN vb_icon AS icon ON(icon.iconid = post.iconid)
		LEFT JOIN vb_avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN vb_customavatar AS customavatar ON(customavatar.userid = user.userid)
			LEFT JOIN vb_deletionlog AS deletionlog ON(post.postid = deletionlog.primaryid AND deletionlog.type = 'post')
		LEFT JOIN vb_editlog AS editlog ON(editlog.postid = post.postid)
		LEFT JOIN vb_postparsed AS postparsed ON(postparsed.postid = post.postid AND postparsed.styleid = 3 AND postparsed.languageid = 2)
		LEFT JOIN vb_sigparsed AS sigparsed ON(sigparsed.userid = user.userid AND sigparsed.styleid = 3 AND sigparsed.languageid = 2)
		LEFT JOIN vb_sigpic AS sigpic ON(sigpic.userid = post.userid)
			LEFT JOIN photoplog_fileuploads AS photoplog_fileuploads ON(photoplog_fileuploads.userid = user.userid)
		WHERE post.postid IN (0,8415,8415)
		ORDER BY post.dateline;

MySQL Error  : Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
Error Number : 1140
Date         : Tuesday, September 25th 2007 @ 05:12:30 PM
Script       : http://zzz/showthread.php?t=1909
Referrer     : http://zzz/forumdisplay.php?f=85
IP Address   : zzz.zzz.zzz.zzz
Username     : zzz
Classname    : vb_database
Reply With Quote
  #84  
Old 09-26-2007, 07:24 AM
vitrag24's Avatar
vitrag24 vitrag24 is offline
 
Join Date: Nov 2006
Location: India
Posts: 639
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have installed it but how to enable/configure it.
By screenshots i'm confused
i think it'll show 1st post of thread on each page.
isnt it?
will it do anything else?screenshots are confusing me.
I have lots of sections.
do i have to edit and set yes in all ?there shd be option which globally set yes for all sections.
Reply With Quote
  #85  
Old 09-26-2007, 10:29 AM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Using 3.6.8, when I enable this in a forum, and then go to view that forum, or try to make a post, I get this error:

Quote:
Parse error: syntax error, unexpected $end in /home/mysite/public_html/forum/includes/class_postbit.php(296) : eval()'d code on line 352
uninstalled until it can be fixed... oh well - nice idea, just needs to be fixed
Reply With Quote
  #86  
Old 09-26-2007, 03:32 PM
elmati elmati is offline
 
Join Date: Mar 2007
Location: Argentina
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i dont know if this is a bug o just misconfiguration from me but when i use quickedit for 1st post the 1st post return to default vb postbit...

anyone have this problem too?

thx in advance
Reply With Quote
  #87  
Old 09-26-2007, 10:19 PM
Spermy Spermy is offline
 
Join Date: Oct 2005
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mvigod View Post
Anyone aware of an if condition that would allow only a usergroup to lock the first post instead of it globably applying to the entire forum?
The answered by mvigod below.

Quote:
Originally Posted by mvigod View Post
For other usergroups, just add their usergroup id to the if condition:
=
Code:
<if condition="is_member_of($bbuserinfo, 6,5,7)">
Quote:
Originally Posted by MaXxed View Post
works very well!

any way to add some more options to the Article template? Such as more profile fields or the add-rep button?
For the add-rep button; In your postbit_articles template
Find:
Code:
<a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if>
Add before:
Code:
<if condition="$show['reputationlink']">
            <span id="reputationmenu_$post[postid]"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow" id="reputation_$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a></span>
            <if condition="$show['popups']"><script type="text/javascript"> vbrep_register("$post[postid]")</script></if>
Quote:
Originally Posted by elmati View Post
i dont know if this is a bug o just misconfiguration from me but when i use quickedit for 1st post the 1st post return to default vb postbit...

anyone have this problem too?

thx in advance
If you didn't change anything then it will stay as postbit_article, if you made the changes I posted then this is just part of it, if anything is edited, you must make sure you choose article.
Reply With Quote
  #88  
Old 09-27-2007, 04:54 AM
MaXxed MaXxed is offline
 
Join Date: Jun 2002
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Spermy View Post

For the add-rep button; In your postbit_articles template
Find:
Code:
<a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if>
Add before:
Code:
<if condition="$show['reputationlink']">
            <span id="reputationmenu_$post[postid]"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow" id="reputation_$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a></span>
            <if condition="$show['popups']"><script type="text/javascript"> vbrep_register("$post[postid]")</script></if>
If you didn't change anything then it will stay as postbit_article, if you made the changes I posted then this is just part of it, if anything is edited, you must make sure you choose article.
Im showing an error when trying to do this.

"The conditional on line 43 appears to be missing its end tag (</if>). The template will not function properly unless this is fixed."

I think the replacement code isnt formed right?
Reply With Quote
  #89  
Old 09-27-2007, 04:56 AM
elmati elmati is offline
 
Join Date: Mar 2007
Location: Argentina
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no.

when i create a new topic the system said i am using postbit_article but when i use quick edit for this 1st post and press F5 to reload the page the postbit change to normal postbit...

tomorrow ill make some tests

thx Spermy for your answer!
Reply With Quote
  #90  
Old 09-27-2007, 05:01 AM
Wheezy's Avatar
Wheezy Wheezy is offline
 
Join Date: Jun 2007
Location: USA
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is an awesome hack! One of the best ones Ive downloaded...

I noticed though when I select the "Postbit Article" thread type, it reverts my custom signature edit (**) back to vB default. Is there a template for this Mod I can edit to fix it?

** I have a template edit in place which forces all signatures to the bottom of the post and extends the signature line across the entire length of the post.
Reply With Quote
  #91  
Old 09-27-2007, 09:52 AM
Spermy Spermy is offline
 
Join Date: Oct 2005
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MaXxed View Post
Im showing an error when trying to do this.

"The conditional on line 43 appears to be missing its end tag (</if>). The template will not function properly unless this is fixed."

I think the replacement code isnt formed right?
I had that problem at first when I inserted it in the wrong place.Make sure it is right before<a

Quote:
Originally Posted by elmati View Post
no.

when i create a new topic the system said i am using postbit_article but when i use quick edit for this 1st post and press F5 to reload the page the postbit change to normal postbit...

tomorrow ill make some tests

thx Spermy for your answer!
You are correct it does not work with quick edit.

Quote:
Originally Posted by Wheezy View Post
This is an awesome hack! One of the best ones Ive downloaded...

I noticed though when I select the "Postbit Article" thread type, it reverts my custom signature edit (**) back to vB default. Is there a template for this Mod I can edit to fix it?

** I have a template edit in place which forces all signatures to the bottom of the post and extends the signature line across the entire length of the post.
I had that same problem, so I just took out the code for the sig in the Articles.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07808 seconds
  • Memory Usage 2,331KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (9)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete