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)
-   -   Forum Display Enhancements - Collapsable First Post using AJAX (or Last Post!) (https://vborg.vbsupport.ru/showthread.php?t=145187)

magnus 06-04-2007 04:37 PM

Quote:

Originally Posted by anzo (Post 1261033)
hmm... I've installed everything as it was instructed, but it doesn't work!
I don't even see the "+" signs...

http://latforums.lv/forum1.html

I'm using Aria skin and vBSEO,
maybe it has something to do with it?

No, I checked your site. It's working. You just haven't uploaded the images to the correct folders.

On your forum, it looks like they should be uploaded to the /17_lat/ directory.

Once done correctly, you should be able to access both images at:

http://latforums.lv/17_lat/expand.gif
http://latforums.lv/17_lat/expand_collapsed.gif

anzo 06-04-2007 07:26 PM

https://vborg.vbsupport.ru/external/2007/06/4.png
Thank You! :)

magnus 06-04-2007 10:25 PM

best. picture. ever.

:)

Evaporate 06-06-2007 06:02 PM

Brilliant.

Simple but effective. I haven't tried it with lots of traffic yet but should I guess actually reduce database load.

SemperFideles 06-08-2007 04:38 AM

Quote:

Originally Posted by magnus (Post 1260953)
This is by design. The search results SQL doesn't contain all the necessary information to display anything other than the first post, so regardless of what you've selected within the AdminCP, anything involving the search results will always display first post.

It's something that may possibly be worked in later. If you wish to change the template layout, the template you're looking for is vbpost_postbit. As for trying to find changes made by the automatic template edits, you can't. They are done on-the-fly.

I'm sorry magnus to bother you if you covered it previously. I tried searching for the term I was using.

When I click on Today's Posts, the results display not only the title of all the threads (if I click on the thread titles I'm taken to the first post). But, each thread listing also contains a clickable icon to "View Last Post".

Thus, it seems that the search results are, in fact, returning the Thread ID and Post ID of bost the first and last posts for each thread in the list. I'm not sure I understand, then, when you say that it doesn't contain "necessary information" to display anything other than the first post.

When I click on a particular forum for instance, it seems like the only thing I see are the thread title (which I can click on for the first post) and a clickable icon to "View Last Post". Thus, like search results, the forum listing seems to contain thread id and post id for each thread.

Why, on the one hand, does the forum listing contain the information needed while, on the other, the search results do not?

magnus 06-08-2007 01:57 PM

Quote:

Originally Posted by SemperFideles (Post 1263885)
I'm sorry magnus to bother you if you covered it previously. I tried searching for the term I was using.

When I click on Today's Posts, the results display not only the title of all the threads (if I click on the thread titles I'm taken to the first post). But, each thread listing also contains a clickable icon to "View Last Post".

Thus, it seems that the search results are, in fact, returning the Thread ID and Post ID of bost the first and last posts for each thread in the list. I'm not sure I understand, then, when you say that it doesn't contain "necessary information" to display anything other than the first post.

When I click on a particular forum for instance, it seems like the only thing I see are the thread title (which I can click on for the first post) and a clickable icon to "View Last Post". Thus, like search results, the forum listing seems to contain thread id and post id for each thread.

Why, on the one hand, does the forum listing contain the information needed while, on the other, the search results do not?

There's no (easily) available way to pull the first unread postid within search. So, to prevent accidental breakage, search results were restricted to firstpostid. Yes, they can display lastpostid. It was just simpler, at the time, to just force forstpostid. My logic was that someone searching was looking for something specific, and generally, that information would be found in the first post.

If you want lastpostid results within search, edit the Make changes to 'threadbit' template plugin.

FIND:
PHP Code:

            if (THIS_SCRIPT == 'search')
            {
                
$postidtype 'firstpostid';
                
$titlephrase $vbphrase['first_post'];
            } 

REPLACE WITH:
PHP Code:

            if (THIS_SCRIPT == 'search')
            {
                
$postidtype 'lastpostid';
                
$titlephrase $vbphrase['last_post'];
            } 

This will only work for firstpostid and lastpostid. It will not work for the first unread post.

Quickness 06-08-2007 02:12 PM

Thanks for this awesome mod -- clicks install

macshrine 06-18-2007 10:23 PM

Love it, great job! :)

Terrasoft 06-29-2007 07:11 AM

Its weird, the hack works great but not in the search feature. The pluses are there, but when they are clicked on...nothing happens. I installed it and had to do the manual template edits and nothing...any suggestions?

magnus 06-29-2007 10:37 AM

Quote:

Originally Posted by Terrasoft (Post 1278999)
Its weird, the hack works great but not in the search feature. The pluses are there, but when they are clicked on...nothing happens. I installed it and had to do the manual template edits and nothing...any suggestions?

You're using the latest version and you had to use manual template edits? That's weird..

Browse to your search page, click view source, and make sure the javascript is being loaded. That's the culprit 99.9% of the time, especially with manual edits.


All times are GMT. The time now is 08:38 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.01571 seconds
  • Memory Usage 1,755KB
  • 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
  • (2)bbcode_php_printable
  • (4)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