vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Display Unread Posts (https://vborg.vbsupport.ru/showthread.php?t=231060)

Paul M 05-25-2010 03:33 PM

If the hook is there it should show. I cannot guess at why it doesnt.

Eq4bits 05-26-2010 11:51 PM

Weird. On my custom template, if I add the hook a SECOND time it displays... not exactly 'where' I wanted it too (below 'Welcome Xyz & above search box/tab area) but it does show, but there is also displayed an 'error message' (see pic)
https://vborg.vbsupport.ru/external/2010/05/12.png

I also moved the first hook to be after the 'welcome' section but before the < /li> that preceeds the facebook connect code.
Then the second placement is right after the second < /vb:if> code after the 2nd facebook connect code (near end of template)

Eq4bits 05-27-2010 01:33 AM

Been working on the hook placement in my customized style
It's in the right location now at least... if I could just get that Error: Header Template is Customised to go away!
https://vborg.vbsupport.ru/external/2010/05/11.png

I moved the hook to near the bottom of my header template like so:
PHP Code:

</script>
                </
li>
                <
vb:if condition="$vboptions['enablefacebookconnect']">
                    {
vb:raw facebook_header}
                </
vb:if>
            </
ul>
        </
vb:if>
    </
div>
    <
div class="ad_global_header">
        {
vb:raw ad_location.global_header1}
        {
vb:raw ad_location.global_header2}
    </
div>
            <
div align="right">{vb:raw template_hook.header_userinfo}{vb:rawphrase last_visited_x_at_y, {vb:raw pmbox.lastvisitdate}, {vb:raw pmbox.lastvisittime}}</div>
    <
hr />
    {
vb:raw ad_location.ad_header_end}

</
div><br


texasteamplayer 05-28-2010 12:36 AM

installed without a hitch. Good mod.

Been looking for a mod that can be added as a link to the top of every forum category, so users can choose on the forum index to show unread posts only for that category. Sure...it's possible to set up a search to do this every time, but that's not convenient.

such a feature makes it easier for mods and admins in a hurry to select the admin forum category unread posts, and sort through only those, rather than the entire forum index of unread posts.

if someone has one, or can make one, pm me.

texasteamplayer 05-28-2010 12:49 AM

yeah yeah....I actually brought up this mod along with vSA's. just installed this one first.

Quote:

Originally Posted by texasteamplayer (Post 2044376)
but what's the "# l #" for? I assume it means x posts in y categories...perhaps?

doesn't seem necessary, and would like to disable it, and just have the drop down.

really great function that was super needed on big boards with too many posts for mods to deal with globally.

this goes along nicely with it, since it provides a clean drop down, and customization for which categories go in the drop down.

see it on teamplayergaming.com

thanks

chanvl 05-29-2010 05:36 PM

tks Paul M. Installed! :)

dondino 05-30-2010 09:47 AM

How can you make the text in the header look better? its just a plain text but anyone has some snippet to put it more in evidence?
How can I change its colour and font properties?

Paul M 05-30-2010 11:48 AM

Quote:

Originally Posted by Eq4bits (Post 2043870)
Been working on the hook placement in my customized style
It's in the right location now at least... if I could just get that Error: Header Template is Customised to go away!

Thats caused by having the last_visited_x_at_y phrase in your header - you dont need that, remove it.

KURTZ 06-22-2010 11:13 AM

hi Paul, just installed onto a 4.0.4 board and got this error:

Code:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/class_bootstrap.php(394) : eval()'d code on line 24

any fix?

ps. i've tried to disable your hack and the error is gone ...

Paul M 06-22-2010 09:11 PM

Sorry, I cannot replicate that on any of my 4.0.4 forums.


All times are GMT. The time now is 06:18 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.01212 seconds
  • Memory Usage 1,777KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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