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.


All times are GMT. The time now is 10:45 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.02014 seconds
  • Memory Usage 1,791KB
  • 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
  • (6)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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