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)

dethfire 09-21-2007 11:21 AM

I put the +- icons in the column where the thread emotes should be, I think it looks and functions better. Demo at http://www.physicsforums.com

muratksk 09-21-2007 12:40 PM

thanks :)

nnjj.net 09-21-2007 09:02 PM

hope to see it for 3.6.8

magnus 09-22-2007 04:26 AM

Quote:

Originally Posted by nnjj.net (Post 1344095)
hope to see it for 3.6.8

It works fine in 3.6.8.

Trana 09-23-2007 02:04 AM

Has anyone tried to use this hack with the latestpost module in VBA CMPS?

Mr.Danko Jones 09-28-2007 12:45 AM

Quote:

Originally Posted by magnus (Post 1344340)
It works fine in 3.6.8.

Not for me either.

magnus 09-28-2007 12:47 AM

Quote:

Originally Posted by Mr.Danko Jones (Post 1348639)
Not for me either.

Can't help you if I don't know the problem.

IrPr 09-28-2007 10:39 AM

i would to suggest integrate this awesome mod into vBAdvanced CMPS Recent Threads threadbit

/me Marks as installed and nominates for MOTM

magnus 09-28-2007 11:05 AM

Quote:

Originally Posted by Mr.Danko Jones (Post 1348639)
Not for me either.

After looking at your forum, it appears you haven't uploaded all the files correctly. Specifically, the file vbpost_ajax.php is missing from your forum root directory.

BIGman2 10-02-2007 03:49 PM

Hi this is superb hack which I really need to have but I have a problem.
I installed it and when I go to the threads and click on the + Nothing happens...
Any suggestions?

magnus 10-02-2007 05:14 PM

Quote:

Originally Posted by BIGman2 (Post 1351513)
Hi this is superb hack which I really need to have but I have a problem.
I installed it and when I go to the threads and click on the + Nothing happens...
Any suggestions?

I would need a link to your forum in order to tell you exactly what's wrong. But, most likely it's due to the vbpost_ajax.php file not being located in your forumroot.

BIGman2 10-03-2007 10:03 AM

My forum is turned off so it won't help you,
The vbpost_ajax.php is in the forum root...the board located in the main directory not in /forum or something else.

magnus 10-03-2007 10:23 AM

Quote:

Originally Posted by BIGman2 (Post 1352018)
My forum is turned off so it won't help you,
The vbpost_ajax.php is in the forum root...the board located in the main directory not in /forum or something else.

Well, sadly there's only so much I can do then. Basically, just verify that you can access the following URLs without getting a 404.

http://yoursite/vbpost_ajax.php
http://yoursite/clientscript/jquery.js
http://yoursite/clientscript/vbulletin_vbpost.js

Also, verify that you're using the default vBulletin style.. to rule out any style related issues.

bandanafz1 10-03-2007 01:10 PM

Great Mod, many thanks... works really slick.

Only problem I have is that I have also added the Who Has Read This Post mod.

If I click the thread title to view the message in full the registers the fact that the message has been read. However with the collapsible thread, this does not register the fact that the messages have been read by the user.

Most of my messages do not contain replies, it is basically a read only board for disseminating information so whilst the collapsible threads are really useful for readers, I as the admin want to see what is getting most interest.

Would it be very easy to incorporate some form of interoperability between the mods? possible switchable for those that hadn't installed the Who Has Read mod.

Many thanks... great work!

Edit> Actually did wonder if setting update read count might help but it unfortunately doesn't, presumable it is the step of open the thread view that initiates the steps to register that the user has read the message.

magnus 10-03-2007 07:15 PM

Quote:

Originally Posted by bandanafz1 (Post 1352105)
Great Mod, many thanks... works really slick.

Only problem I have is that I have also added the Who Has Read This Post mod.

If I click the thread title to view the message in full the registers the fact that the message has been read. However with the collapsible thread, this does not register the fact that the messages have been read by the user.

Most of my messages do not contain replies, it is basically a read only board for disseminating information so whilst the collapsible threads are really useful for readers, I as the admin want to see what is getting most interest.

Would it be very easy to incorporate some form of interoperability between the mods? possible switchable for those that hadn't installed the Who Has Read mod.

Many thanks... great work!

Edit> Actually did wonder if setting update read count might help but it unfortunately doesn't, presumable it is the step of open the thread view that initiates the steps to register that the user has read the message.

Keeping in mind that this untested, go ahead and try this.

In vbpost_ajax.php:

FIND
PHP Code:

    //if ($_SERVER['REQUEST_METHOD'] == 'POST' AND
    
if ($vbulletin->GPC['ajax'])
    {
        eval(
'print_output("' fetch_template('vbpost_postbit') . '");');
    }
    else
    {
        eval(
'print_output("' fetch_template('vbpost_postbit') . '");');
    }
}

?> 

Add ABOVE:
PHP Code:

    if ($vbulletin->userinfo['userid'])
    {
        
$time TIMENOW;
        
$ipaddress IPADDRESS;
        
$threadid $threadinfo[threadid];
        
$userid $vbulletin->userinfo['userid'];
        
$db->query_write("
            REPLACE INTO " 
TABLE_PREFIX "whoread
            (userid, threadid, dateline, ipaddress)
            VALUES
            (
$userid$threadid$time, '$ipaddress')
        "
);
    } 

Let me know if that works for you.

ragtek 10-03-2007 07:38 PM

in my search the posbit images have no id's so it wount work
Code:

<img id="vbpostimg_" src="images/bgold/buttons/expand.gif" onclick="return vbpost_get()"

bandanafz1 10-03-2007 08:52 PM

Quote:

Originally Posted by magnus (Post 1352317)
Keeping in mind that this untested, go ahead and try this.

In vbpost_ajax.php:

FIND
PHP Code:

    //if ($_SERVER['REQUEST_METHOD'] == 'POST' AND
    
if ($vbulletin->GPC['ajax'])
    {
        eval(
'print_output("' fetch_template('vbpost_postbit') . '");');
    }
    else
    {
        eval(
'print_output("' fetch_template('vbpost_postbit') . '");');
    }
}

?> 

Add ABOVE:
PHP Code:

    if ($vbulletin->userinfo['userid'])
    {
        
$time TIMENOW;
        
$ipaddress IPADDRESS;
        
$threadid $threadinfo[threadid];
        
$userid $vbulletin->userinfo['userid'];
        
$db->query_write("
            REPLACE INTO " 
TABLE_PREFIX "whoread
            (userid, threadid, dateline, ipaddress)
            VALUES
            (
$userid$threadid$time, '$ipaddress')
        "
);
    } 

Let me know if that works for you.

Many thanks, will try tomorrow when I get time.

bandanafz1 10-04-2007 12:38 PM

Magnus,

I have tried your update and yes it now registers the read message against the user.

Many thanks for this, both your mod and the who has read mod are ideal for my board.:up:

hichew 10-17-2007 04:35 AM

i tried this on my forum... and it's a mess.... my db server load jump to 1700 !!! :eek:
anybody use this mod and optimize the code?

i do like this mod..

my post table is 11 gig

dbembibre 10-17-2007 10:05 AM

Quote:

Originally Posted by hichew (Post 1362064)
i tried this on my forum... and it's a mess.... my db server load jump to 1700 !!! :eek:
anybody use this mod and optimize the code?

i do like this mod..

my post table is 11 gig

I have a Big board with more than 1000 constant users and no load issues because this mod not add extra queries
The same query is run whether a user clicks on the thread and views the whole thing, or if they click on the expand icon

magnus 10-17-2007 10:28 AM

Quote:

Originally Posted by hichew (Post 1362064)
i tried this on my forum... and it's a mess.... my db server load jump to 1700 !!! :eek:
anybody use this mod and optimize the code?

i do like this mod..

my post table is 11 gig

I couldn't have said it better than dbembibre did above me. By default, this does not add any additional load on the server.

hichew 10-17-2007 08:25 PM

ahhh.. seems like this not the problem.
i think the "Welcome headers - Improve community registration rates" is the problem.
let me try it again, and get back to you guys.

thank you

yoyoyoyo 10-30-2007 09:50 PM

this is not working on my new forum - I tried it with and without the automatic template edits. When I click on the + it does not open the post with ajax, it acts as if you clicked the post and takes you to the thread itself. I had it working in another forum, with pretty much all of the same mods installed and can't imagine what the conflict might be now. I double-checked and all of the files are uploaded to the proper places...

any idea where to start looking?

afmarko99 10-30-2007 10:20 PM

Simple but so awesome. This brings a whole new way to surf my forums.

Thanks a ton.

yoyoyoyo 10-31-2007 05:15 PM

I did some testing and on my forum this does work for guests who are not logged in, but if you are logged in and click on the + then the graphic ajax thingy starts spinning but then it takes you to the actual post. Any ideas on how to fix that?

Booost This 11-04-2007 04:42 AM

I just installed it on my forum, followed the directions and no dice. I don't even get the (+/-) signs.

Any clue? I don't think it can be that hard to screw up the install? It said everything installed ok?

gforce75 11-04-2007 03:18 PM

5 stars in my book! Works perfect. Demo links also check it ...

http://myffnet.com/forum/forumdisplay.php?f=127

Trana 11-23-2007 03:23 AM

Has anybody gotten this to work in the VBA CMPS recentposts module?

Thanks!

Jaxel 11-23-2007 05:54 AM

This mod is GREAT! But it completely kills the AJAX title editing on my forum. I cant do inline title editing with this script. The form field for the edit comes up, but when I change the title, I get a JavaScript error. It also breaks the locking mechanism... anyone else have these issues?

Newfarm 11-24-2007 03:21 PM

Have / had the "undefined function: fetch_coventry() " issue as well, added the custom plugin that hooked into usercp. Now it doesn't crash anymore, but it doesn't work for subscribed threads either. Great little hack though :)

vitrag24 11-24-2007 05:26 PM

does it increases loading time & load on server?
anyways,nice mod.

Jaxel 11-24-2007 07:54 PM

ANyone who has this mod installed on their forums... would you mind checking to see if your AJAX title editing and locking is working correctly?

Mark.B 11-24-2007 07:59 PM

Quote:

Originally Posted by Jaxel (Post 1388808)
ANyone who has this mod installed on their forums... would you mind checking to see if your AJAX title editing and locking is working correctly?

Yup I've been using this for many months and those features are all fine.

vitrag24 11-25-2007 11:32 PM

Quote:

Originally Posted by vitrag24 (Post 1388745)
does it increases loading time & load on server?
anyways,nice mod.

reply this query please.
thanks.

AWJunkies 11-28-2007 02:39 AM

This is an awesome mod I love it. I found a place that the icon shows up but the function does not work. usercp.php file under new subscribed threads. is there a way to get this to work as well? Also if the thread is an event it grabs the first post and not the event which is technically the first post. Is there a way to fix this to work to grab event details instead of post below it?

supramati 11-28-2007 02:51 AM

I Just loved it! Thanks a lot!

Jaxel 11-28-2007 04:28 PM

Quote:

Originally Posted by Mark.B (Post 1388809)
Yup I've been using this for many months and those features are all fine.

Thats weird... I disabled all other mods on my forums and defaulted to the original templates and it still doesnt work for me.

mulesnx 12-08-2007 07:26 AM

Has anyone got this working with vbadvanced? Is it really hard to do this?

adam75south 01-04-2008 09:37 PM

i installed the mod on my board, but only works with the default template. the rest it doesn't hurt, but just doesn't show up. guess i'll just do the manual edit.

magnus 01-05-2008 03:01 AM

Quote:

Originally Posted by adam75south (Post 1415583)
i installed the mod on my board, but only works with the default template. the rest it doesn't hurt, but just doesn't show up. guess i'll just do the manual edit.

It's strange it didn't work on a custom template. The only way I would assume it didn't work is if the custom template is rather heavily modified. Either way, yes, manual edits would be your only option at that point. It's not really a big deal, it's a quick/simple edit.


All times are GMT. The time now is 05:56 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.02022 seconds
  • Memory Usage 1,847KB
  • 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
  • (4)bbcode_php_printable
  • (14)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