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 02-04-2008 06:53 PM

Quote:

Originally Posted by baz_kingfish (Post 1436220)
That did it! :up: Not sure which one :D...but I ran all of the counter/rebuild updates for threads, forums, and posts. The only issue now is dealing with the members being disappointed about their Post Count being reduced. yeah, I know I can hard plug them in, but they'll just get wiped out the next time I have to rebuild!

Glad it turned out to be something simple! :)

Quote:

Originally Posted by baz_kingfish (Post 1436220)
Magnus,
I know there have been alot of post regarding "First Post" vs "Last Post" which is why I am sure you put the option in the AdminCP, but I've got an idea about that. What if your hack provided for the + sign on the left to show the "First Post/First Unread", and then somehow get the little arrow icon in the "Last Post" field/box to the right side of the thread name to perform the EXACT same functionality, but show the "Last Post". This would allow the user to view BOTH before entering into the thread. vB is already showing the last post in that field, it just needs to somehow get thrown into your hack display table on click. Then you could simply provide a "GoTo" button if they wanted to go to the last post like is currently the case when you quick that little blue arrow.

That's not a bad idea, I'll look into that.

I appreciate the donation, thank you. ;)

baz_kingfish 02-04-2008 07:17 PM

np.

It's a great function you created, and I know you have put alot of work into supporting it and making it even better. I'll donate again when you implement my suggestion! :D Please email me if you get it working and upload an update.
Cheers,
KF

haris_led 02-06-2008 05:47 AM

Quote:

Originally Posted by magnus (Post 1435448)
Now we're getting somewhere! :)

Anyone else with this problem using the above (or similar) modification? We may be able to track this down..

i have the same problem. when passivevid is enabled, i get
Code:

Warning
: Invalid argument supplied for foreach() in
/includes/class_postbit.php(296) : eval()'d code
on line
39

:(

binevi 02-11-2008 10:52 PM

Warning: Invalid argument supplied for foreach() in /includes/class_postbit.php(296) : eval()'d code on line 209

unfortunately i got same problem too

im using vb. 3.7

falguni1 02-12-2008 05:36 AM

very nice mod.

falguni1 02-12-2008 05:37 AM

can you make for 3.7 beta3 and 4.

Kiint 02-12-2008 09:29 AM

Just installed this on version 3.6.8, love the search functionality that's a great idea and love how you can select which forums you want this to appear in.

*Clicked Installed*

I'm currently asking my users if they want to keep this functionality and to which view they would prefer (opened a poll) I'm sure they will want to keep it even if it's just for the search results.

Installation went like a dream, uploaded files, ran xml file, configured through options, worked first time....but with one little problem of the images not showing....had to copy the button images to my custom style folder (error on my part, but may want to clarify that for beginners).

Thanks for a great mod.

binevi 02-12-2008 06:02 PM

Quote:

Originally Posted by falguni1 (Post 1441274)
can you make for 3.7 beta3 and 4.

i've installed that mods to my forum( im using 3.7.4). But as i said i hade an error only. but it works normally except that

magnus 02-12-2008 09:55 PM

The foreach() error experienced by a few seems to be related to various YouTube (and other video site) embedding hacks. I, personally, do not use any hacks with this functionality -- however, now that we've found a common link, I'll install one of the known offenders into my sandbox and see if I can replicate/fix the error.

magnus 02-14-2008 02:42 PM

Quote:

Originally Posted by haris_led (Post 1437255)
i have the same problem. when passivevid is enabled, i get
Code:

Warning
: Invalid argument supplied for foreach() in
/includes/class_postbit.php(296) : eval()'d code
on line
39

:(

Ok, here's a fix. This is for passiveVid - (YouTube, Myspace, Google...) Not BBCODE :D users ONLY.

In AdminCP > Plugins & Products > Plugin Manager, look for passiveVid - Showthread Replacement under Product : passiveVid and select [Edit].

FIND:
PHP Code:

               foreach ($passiveVid as $k => $v) {
                   if ( 
$this->registry->options['passiveVid_sites'] & $v['id'] ) {
                       
$this->post['message'] = preg_replace_callback($v['string'],create_function('$matches',$v['replacement']),$this->post['message']);
                       
                   }
               } 

REPLACE WITH:
PHP Code:

               if ($passiveVid) {
                   foreach (
$passiveVid as $k => $v) {
                       if ( 
$this->registry->options['passiveVid_sites'] & $v['id'] ) {
                           
$this->post['message'] = preg_replace_callback($v['string'],create_function('$matches',$v['replacement']),$this->post['message']);
                       
                       }
                   }
               } 


Disclaimer:
Note that this was tested on my development board. I do not actively use passiveVid (or any video embedding tools) so I cannot be held responsible for any undesired effects that may occur as a result of making these changes.

That being said, the changes simply check for the existence of a variable. There are no destructive functions being added or implemented, however, I just like to cover my rear. :)


All times are GMT. The time now is 01:43 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.03086 seconds
  • Memory Usage 1,759KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (5)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