vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - Chief First Post - Every Page - 3.6.x (https://vborg.vbsupport.ru/showthread.php?t=156141)

MaXxed 09-25-2007 04:59 PM

works very well!

any way to add some more options to the Article template? Such as more profile fields or the add-rep button?

inciarco 09-25-2007 09:17 PM

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?? :confused:

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

:)

vitrag24 09-26-2007 07:24 AM

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.

yoyoyoyo 09-26-2007 10:29 AM

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

elmati 09-26-2007 03:32 PM

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

Spermy 09-26-2007 10:19 PM

Quote:

Originally Posted by mvigod (Post 1346063)
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 (Post 1346852)
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 (Post 1346931)
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 (Post 1347582)
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.

MaXxed 09-27-2007 04:54 AM

Quote:

Originally Posted by Spermy (Post 1347798)

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?

elmati 09-27-2007 04:56 AM

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!

Wheezy 09-27-2007 05:01 AM

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.

Spermy 09-27-2007 09:52 AM

Quote:

Originally Posted by MaXxed (Post 1347957)
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 (Post 1347959)
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 (Post 1347965)
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.

gbml4u 09-27-2007 10:35 AM

Can u change to Set the Normal Postbit as default

Because I got some problems when posting a new thread with default Postbit article.

inciarco 09-27-2007 01:35 PM

Quote:

Originally Posted by inciarco (Post 1347085)
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?? :confused:

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

:)

Atakan KOC, have you Tested the Forum I've referred in my message?? :confused:

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

I've been keeping Active this Hack in that Forum only for you to Test It!!

You can Create an Account in my Forum to Test the Error!!

Please Test it and Tell me What's Wrong, so that I can Correct the necessary options for it to Work Fine in my Forums!!

I appreciate Your Help!!

I'll Wait for your Answer!!

My Best Regards!!

:)

inciarco 09-27-2007 02:20 PM

It seems like an Error Caused for Not Compatibility with the Hack PhotoPlog Lite Gallery!! :(

Thread: PhotoPlog: The Lite Gallery
https://vborg.vbsupport.ru/showthread.php?t=101368

http://www.photoplog.com/forum/forumdisplay.php?f=5

When I Disable the PhotoPlog Lite Hack in the Forum, Your Hack Works but I Receive The Error Message, repeated Several Times:

Quote:

Parse error: parse error, unexpected '\'' in /hsphere/local/home/inciarco/inciarco.com/foros/includes/class_postbit.php(296) : eval()'d code on line 36
I Hope You Can Correct that Not Compatibility with the PhotoPlog Lite Gallery, I think is Related with the Code I've referred in my Previous Messages!! :(

For Now, I'll Not Use This Hack Because Causes Conflict with the Hack PhotoPlog Lite Gallery!! (I'm Very Sad, Because I'd have Liked to be able to Use this Hack in my Forums, to have the Similar Behavior like the VBulletin.Org Site where the First Post is shown in all the Pages of a Thread) :(

My Best regards!! :(

:)

rapidphim 09-27-2007 03:25 PM

How are you going to make postbit_article as default?

Wheezy 09-27-2007 04:03 PM

Quote:

Originally Posted by Spermy (Post 1348096)
I had that same problem, so I just took out the code for the sig in the Articles.

Could you advise me how to do that? Or do you just mean you didnt attach a signature in the thread?

vitrag24 09-27-2007 04:28 PM

Quote:

Originally Posted by vitrag24 (Post 1347321)
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.

no one rpelied so quoting my own post.
plz reply.

MaXxed 09-27-2007 04:35 PM

Quote:

Originally Posted by Spermy (Post 1348096)
I had that problem at first when I inserted it in the wrong place.Make sure it is right before<a

checked, and rechecked, its just not happening. I get an error every time.

Any other ways to get this working?

Defkalion 09-27-2007 09:46 PM

This is a great hack. Congrats to the author.

Is it possible to keep the "thread type" selection, but NOT the "sticky" 1st post in thread function? anyone knows how to do this?

Spermy 09-27-2007 10:58 PM

Quote:

Originally Posted by Wheezy (Post 1348334)
Could you advise me how to do that? Or do you just mean you didnt attach a signature in the thread?

To remove the sig form articles read Rat1972's post below.

Quote:

Originally Posted by Rat1972 (Post 1325313)
I don't like the sign in the first post, so i removed it. So the first thread looks a lot better without an anoying sign.


All you have to do is this:

Go to postbit_articles

Find:
PHP Code:

        <if condition="$post['signature']">
        <!-- 
sig -->
            <
div>
                
__________________<br />
                
$post[signature]
            </
div>
        <!-- / 
sig -->
        </if> 

And delete it.

Quote:

Originally Posted by gbml4u (Post 1348124)
Can u change to Set the Normal Postbit as default

Because I got some problems when posting a new thread with default Postbit article.

Search this thread, it has been posted both for normal and legacy.

Quote:

Originally Posted by rapidphim (Post 1348298)
How are you going to make postbit_article as default?

That is automatic after installation.

Quote:

Originally Posted by MaXxed (Post 1348353)
checked, and rechecked, its just not happening. I get an error every time.

Any other ways to get this working?

What version of VB? I run 3.6.8
It might be different for another version.

elmati 09-28-2007 01:27 AM

Quote:

Originally Posted by inciarco (Post 1348247)
It seems like an Error Caused for Not Compatibility with the Hack PhotoPlog Lite Gallery!! :(

Im using Photoplog and vb 3.6.8 with chief 1st post active and works fine :)

i think u have done something wrong or misconfiguration...


@Spermy

I think we need to add the postbit selector with quick edit... i dont have time rite now, maybe weekend.

Thank for your reply

Wheezy 09-28-2007 03:14 AM

Quote:

Originally Posted by Spermy
To remove the sig form articles read Rat1972's post below.

Thanks much :D

Aeolian 09-28-2007 10:57 AM

I think the developer must incorporate the changes suggested/submitted in the posts above to the actual MOD itself..
Thanks

inciarco 09-28-2007 01:29 PM

Quote:

Originally Posted by elmati (Post 1348661)
Im using Photoplog and vb 3.6.8 with chief 1st post active and works fine :)

i think u have done something wrong or misconfiguration...

Please Tell me what's wrong and where can I locate the Error, because I've tryed reinstalling this Hack and the same Error keeps appearing when I set to yes the Displaying of the First Post in a Forum. :(

Could you Please analyze the Error and Tell me what's wrong?? :confused:

What should I check?? What should I change?? :confused:

The only way for the Hack to Work is by Disabling the Photoplog Hack in my Forum, that's why I deduced that some Incompatibility is Happening, also by the Error Message and the piece of code that says "COUNT(photoplog_fileuploads.moderate) - SUM(photoplog_fileuploads.moderate),COUNT(photoplo g_fileuploads.moderate)) AS photoplog_filecount" that includes "COUNT" and is related with Photoplog; but this Error only happens when the Chief First Post Hack is Activated and set to Yes in a Forum, so something isn't working, at least in Version 3.6.7 PL1; I hope you could analyze the Error and Orient me in what should I check/change/set for this Hack to work Ok in my Forums!! :confused:

I appreciate your Help and your Patience!! ;)

My Best Regards!! :)

I copy/paste again the Error Message for you to Analyze it:

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

:)

mvigod 09-28-2007 04:15 PM

Quote:

Originally Posted by mvigod
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
For other usergroups, just add their usergroup id to the if condition:
= Code:
<if condition="is_member_of($bbuserinfo, 6,5,7)">



Spermy,
That works for the postbit selection, however it is still globally locking the first post. What would be even better is if this had a selection in the usergroup permissions that allowed an admin to set "can lock first post" yes/no. And then have it as a radio button within the postbit.

Failing that I guess a new user field could be generated and then added to the template:

Code:

if ($forum['chiefpost'] AND $vbulletin->userinfo[fieldx]=='Yes'

However change that to a specific bbgroup.

Spermy 09-28-2007 07:12 PM

Sorry, but that I don't know about.

MaXxed 09-29-2007 01:21 AM

Quote:

Originally Posted by Spermy (Post 1348594)
What version of VB? I run 3.6.8
It might be different for another version.

Same, 3.6.8.

Perhaps im pasting it incorrectly? How should it be formatted in there?

xandizitxu 09-29-2007 02:01 AM

I don't get this plugin working with VBTT properly... Disappointed.

Spermy 09-29-2007 10:51 AM

Quote:

Originally Posted by MaXxed (Post 1349302)
Same, 3.6.8.

Perhaps im pasting it incorrectly? How should it be formatted in there?

Can you copy and paste your whole postbit_articles template to me in a PM?

Quote:

Originally Posted by xandizitxu (Post 1349322)
I don't get this plugin working with VBTT properly... Disappointed.

I haven't used vbtt in awhile, but all you should need to do is add the vbtt edits you would do in any of the postbits into the postbit_articles. Can you send me a link to the new vbtt and when I get some time I will look at it.

xandizitxu 09-29-2007 11:36 AM

I already tried it. Didn't work, the link is
www.torrenttrader.org

Freesteyelz 09-30-2007 10:04 PM

For those who just want to keep the "Article" layout and not have the other postbit options in (new thread/edit post) can simply disable plugins:

editpost_edit_complete
editpost_update_complete
newpost_complete
newthread_form_complete

FireFish 09-30-2007 11:12 PM

This is a great mod & I like the ease of installation as well as the way it works.

However, I disabled it & see I cannot use it until you add Usergroup Permission controls to it.

I as a Forum Admin would like to be able to use this as an option when starting threads, but don't necessarily want others to be able to.

Is anyone else with me on this?

Freesteyelz 09-30-2007 11:59 PM

At FireFish:

I haven't tested it but I know with a conditional you can hide the ability to change template based on Usergroup. The conditional is:

Code:

<if condition="is_member_of($bbuserinfo, 6)">
postbit_select code here
</if>

In postbit_select, you would add the first <'if" at the top and at the very bottom add the ending "</if>".

If you want to add Usergroups just add a "," (e.g., 6,5,7) then the Usergroup ID #. See if that works.

CarpHunter 10-02-2007 04:56 AM

I really love this hack so I use it alot.

There is one little thing that bugged me and that was the wierd positioning of the "editted msg"
In the article postbit it is placed really wierd so I fixed it a little to make it better looking.
See the attached images what I mean.
The first was how it looked at first. The second is how it looks after.

I also Fixed what I think is a bug that caused the word Rating and a "(" and a ")" (don't know the english words for them sorry :o ) to show without rating being given to the thread.
The third screen shows you the rating "bug"
The fourt is w/o rating and the fifth with rating after the fix.

Because I don't know if it is as designed I included 2 XML files.
One with only the edit msg fix and one with both the edit msg fix and the rating fix.

Hope this is ok by Atakan OCK :)

mvigod 10-02-2007 01:33 PM

I like that better as well. Is the only difference in the postbit article template? Wouldnt it be easier to just copy the template code from the xml and manually paste it in the postbit article template? I have made some changes to the order and added <if conditions>. Installing from this XML will overwrite those.

CarpHunter 10-02-2007 07:51 PM

Thats also possible. If needed I can give the template in txt file.

I also noticed something when I made this.
Some styles use empty rating starts or other images for rating display. The standard vB skin has an empty gif for the 0 rating picture.
I will make a new version later that suites those rating pictures better (then the text Rating is neede or else the pictures look out of place)

elmati 10-02-2007 09:03 PM

anyone fix out the quick edit bug?

if you quick edit the first post for an article thread the postbit automatically change to default postbit... i dont really know how to fix out that...

Atakan KOC are you there? :)

mvigod 10-03-2007 03:08 PM

If you have the order to set default as postbit legacy or postbit, the quick edit will assign default. I just make sure that if I am editing an article, I always go into the advanced and ensure I reselect article.

elmati 10-05-2007 02:24 AM

yeah, i go to advanced edit too, but users forgot and keep using quick edit that it's more easy...

i need a way to keep the postbit using post quick edit... maybe an update would be nice :)

Michael2 10-05-2007 04:36 PM

Sorry this is slightly unrelated to the hack but can you tell me how to make my postbit look like this...

https://vborg.vbsupport.ru/attachmen...6&d=1187968602

I don't really need the mod but I love the way that postbit looks. :)

rapidphim 10-05-2007 07:44 PM

You need to hack the mod to have that postbit look


All times are GMT. The time now is 10:54 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.01695 seconds
  • Memory Usage 1,943KB
  • 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
  • (10)bbcode_code_printable
  • (1)bbcode_php_printable
  • (27)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