PDA

View Full Version : Forum Display Enhancements - Collapsable First Post using AJAX (or Last Post!)


Pages : 1 2 [3]

exportforce
03-06-2008, 04:04 PM
.. as in? Everything works.

Nope not all at a time, only post by post.
A button "Next post" and "previous post" so I can go through one by one :)
like that ? =)

magnus
03-06-2008, 07:25 PM
like that ? =)

I'll be honest, I still haven't grasped exactly what you're asking for.

marquisite
03-07-2008, 03:22 AM
Hello there, this mod is great! I have a request however...

Is it possible to specify a maximum line/character count for the thread preview? Some posts on a forum this modification was installed on are huge, and for preview purposes the first couple of lines, first paragraph, or first 100 or so characters would be more than sufficient.

Is this easily implementable into this modification? Thank you :D

magnus
03-07-2008, 12:20 PM
Hello there, this mod is great! I have a request however...

Is it possible to specify a maximum line/character count for the thread preview? Some posts on a forum this modification was installed on are huge, and for preview purposes the first couple of lines, first paragraph, or first 100 or so characters would be more than sufficient.

Is this easily implementable into this modification? Thank you :D

While I can't see myself adding this as a standard option in future releases, you can achieve this yourself via a quick edit to /forum/vbpost_ajax.php.

FIND:
//if ($_SERVER['REQUEST_METHOD'] == 'POST' AND

ABOVE THAT, ADD:
$post['message'] = fetch_trimmed_title($post['message'], 100, true);

Obviously, change 100 to however many characters you would like displayed. Also, changing true to false will remove the trailing ellipses (...) if desired.

jedrus
03-07-2008, 03:45 PM
Hi,
i've got a problem with this modification. Everything looks ok but after I click the [+] icon it's loading and loading and loading.... ;) and nothing happens :(
you can see this situation here:
http://forum.vw-passat.pl/forumdisplay.php?f=19

What can be a reason? I've edited templates manually...

Sayrex
03-07-2008, 04:45 PM
me too ...

marquisite
03-07-2008, 07:11 PM
While I can't see myself adding this as a standard option in future releases, you can achieve this yourself via a quick edit to /forum/vbpost_ajax.php.

FIND:
//if ($_SERVER['REQUEST_METHOD'] == 'POST' AND

ABOVE THAT, ADD:
$post['message'] = fetch_trimmed_title($post['message'], 100, true);

Obviously, change 100 to however many characters you would like displayed. Also, changing true to false will remove the trailing ellipses (...) if desired.

Works great, now no longer are posts of up to 2000 or 3000 characters showing in full via this preview method. :)

ksitguy
03-07-2008, 08:01 PM
Hi,
i've got a problem with this modification. Everything looks ok but after I click the [+] icon it's loading and loading and loading.... ;) and nothing happens :(
you can see this situation here:
http://forum.vw-passat.pl/forumdisplay.php?f=19

What can be a reason? I've edited templates manually...

I had the same problem and traced it to the mod "Chief First Post", if you have that installed that's probably the reason. Once I disabled it this mod worked fine.

jedrus
03-08-2008, 10:20 AM
hmm.... i don't have mod "Chief First Post" installed... is there any other reason?

magnus
03-08-2008, 12:26 PM
Hi,
i've got a problem with this modification. Everything looks ok but after I click the [+] icon it's loading and loading and loading.... ;) and nothing happens :(
you can see this situation here:
http://forum.vw-passat.pl/forumdisplay.php?f=19

What can be a reason? I've edited templates manually...

You've not placed vpost_ajax.php into your forum's root directory.

jedrus
03-08-2008, 02:04 PM
heh, thanks... I don't know how it happens.... sorry!

exportforce
03-12-2008, 04:59 PM
I'll be honest, I still haven't grasped exactly what you're asking for.

....
Just 2 buttons that appears in the opened Place where I can read the First/last post with which I can swap to the next or previous post in the thread...
Am I really that hard to understand :confused::(

magnus
03-12-2008, 05:48 PM
....
Just 2 buttons that appears in the opened Place where I can read the First/last post with which I can swap to the next or previous post in the thread...
Am I really that hard to understand :confused::(

So I was right previously when I concluded you wanted to browse a thread a post at a time without going into the thread.

This hack is not meant to be an alternate browsing method. The magic is its simplicity, to view either the first post, last post or first unread post. Not to peruse an entire thread. To browse an entire thread would be to perform an SQL query for each post on demand rather than a single query for multiple posts.

Basically, this request is beyond the scope of this modification. I understand what you want, it's just not something I see myself adding support for. I'm sorry.

DragonBlade
03-13-2008, 07:01 AM
magnus: thanks for this awesome mod

I found 2-3 errors, one that is commonly found but has not been resolved.

Fatal error: Call to undefined function: fetch_coventry() in /home/---.net/public_html/forums/usercp.php(503) : eval()'d code on line 16

That error is reproduced by having to subscribed to a thread and that thread has gotten a new post.

The other error is:
Fatal error: Call to undefined function: fetch_coventry() in /home/---.net/public_html/forums/moderation.php(405) : eval()'d code on line 16

Reproduced by click on Moderated or deleted Threads in usercp

magnus
03-13-2008, 10:33 AM
magnus: thanks for this awesome mod

I found 2-3 errors, one that is commonly found but has not been resolved.

Fatal error: Call to undefined function: fetch_coventry() in /home/---.net/public_html/forums/usercp.php(503) : eval()'d code on line 16

That error is reproduced by having to subscribed to a thread and that thread has gotten a new post.

The other error is:
Fatal error: Call to undefined function: fetch_coventry() in /home/---.net/public_html/forums/moderation.php(405) : eval()'d code on line 16

Reproduced by click on Moderated or deleted Threads in usercp
Man, this error pops up every so often and I've yet to be able to replicate it. I've performed the actions mentioned above and on both my test forum and live forum everything is fine. I'll do yet some more digging to see why the fetch_coventry function isn't being defined. It's a default vBulletin function, it doesn't make any sense..

DragonBlade
03-13-2008, 10:47 AM
I am currently performing more tests as I do have many plugins installed

fetch_coventry() in /home/---.net/public_html/forums/usercp.php(503) : eval()'d code on line 16
this only occurs if you have 0 new PMs and have a new subscribed post.

I have disabled all my plugins/mods and the error still occurs

magnus
03-13-2008, 11:40 AM
Ok, let's try something. Try installing/overwriting using the attached product. Let me know if it fixes it.

DragonBlade
03-13-2008, 02:18 PM
It works! Thanks :)

magnus
03-13-2008, 02:22 PM
Thank God, glad to be done with that stupid bug. :)

tobias_t
03-20-2008, 08:11 AM
OK here are the two things that are missing to make this mod perfect IMO:

- expanding a thread should mark it read if it only consists of a single post

- clicking anywhere in the text area of the expanded post should take you directly into that thread

Magnus, I would love to hear what you think of these suggestions :)

baz_kingfish
03-20-2008, 04:05 PM
Mangus,
Any chance you'll ever implement the suggestion I gave you about Expanding/Collapsing the LAST Post when you hit the little blue arrow in the default vB "Last Post" field? This would allow users to hit your little plus/minus sign to expand/collapse the First/First Unread Post and then hit the default vB blue arrow to expand/collapse the Last Post. A user could then get a good overview of the recent thread activity before clicking into it to read it in its entirety. You liked this suggestion when I submitted it before...so, I was just wondering if/when you might be uploading another update that has this feature? :D

BTW, I love this hack and use it regularly!
Thanks,
KF

codershark
03-24-2008, 11:47 AM
dont works on vb3.7 RC1 :( (its load only and show nothing)

magnus
03-24-2008, 11:56 AM
dont works on vb3.7 RC1 :( (its load only and show nothing)

As you can tell from previous posts, it works fine. Verify that you've copied the files to the correct locations. There's not much else I can help you with without having a URL to check.

codershark
03-24-2008, 12:08 PM
perhaps the problem is vbseo ? I use vbseo and when I click on the plus-picture it show me only the load-image and nothing else.

magnus
03-24-2008, 12:59 PM
Again, check your file locations. Verify that vbpost_ajax.php is in your root directory. I use vbSEO as well, with no ill effects.

There's not much I can do other than speculate without seeing it first hand.

codershark
03-24-2008, 01:10 PM
I have checked all file, with the same result :(

codershark
03-24-2008, 01:36 PM
Now I have change the jquery.js file against the newest (1.2.3) and now it works fine, but when I click on the minus-button it dont close...

tobias_t
04-09-2008, 10:49 AM
Which edits needs to be made so that the function only shows up for certain usergroups? I would like to limit it to moderators at first.

ThomasR
04-12-2008, 03:25 PM
I had to disable this plugin, because I had a php error when trying to access the usercp :
Fatal error: Call to undefined function fetch_coventry() in /my/server/path/forums/www/usercp.php(503) : eval()'d code on line 21
Everything was workng fine yesterday, I didn't edit/change a file for a week.

toucan42
04-12-2008, 11:23 PM
Have upgraded to 3.7RC3 and it no longer works. It displays the plus icon but clicking it just makes the image disappear and does not open the preview. I have tried both the manual and auto template edits. This was working for me prior to the RC3 release

tmiland
04-13-2008, 12:47 AM
Have upgraded to 3.7RC3 and it no longer works. It displays the plus icon but clicking it just makes the image disappear and does not open the preview. I have tried both the manual and auto template edits. This was working for me prior to the RC3 release

Try to re-import the product xml file...

However, i just installed it on 3.7.0 RC2 without any issues at all.

Marked as installed & nominated. :)

toucan42
04-13-2008, 12:51 AM
re-import worked for opening but now they won't close! lol

appears i have the same problem as codershark above

tmiland
04-13-2008, 01:10 AM
Thats weird :confused:

Try the latest jquery.js version, see if that helps :)

toucan42
04-13-2008, 03:31 AM
I tried - doesn't do it =(

Andyrew
04-13-2008, 07:53 AM
When i click the [+] i get

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

Just above the post that displays and no way to close post. 3.6.9

Update: It does work if i turn off passivevid

toucan42
04-13-2008, 08:25 AM
It appears to be an issue with the AJAX fisheye menu here https://vborg.vbsupport.ru/showthread.php?t=160422

magnus
04-13-2008, 05:27 PM
toucan42, I visted the site in the URL you sent me via PM and the modification appears to be working fine. The post preview opens and closes without issue. The only issue I see is you haven't copied ajaxsmall.gif to your custom images directory (cb/buttons).

toucan42
04-13-2008, 11:26 PM
Yeah it works because I disabled the other hack referenced in the post above. Thanks for checking!

baz_kingfish
04-16-2008, 01:56 PM
Mangus,
Any news on whether you are working on an update to this hack? I was hoping you would implement my previous suggestion of adding the same functionality to the vB default blue arrow for "last post". Love the hack...just wish I could do the same type of preview on the last post in addition to the first/first unread.
thanks,
KF

SCuN
05-04-2008, 11:49 AM
great mod :D work 3.7.0 ;]

maidos
05-04-2008, 01:34 PM
thanks but the text got green color :S pleae help

Jase2
05-04-2008, 07:32 PM
Works in 3.7.0 apart from the "friends" under username drop down is missing.

shadowevil
05-05-2008, 04:56 AM
does this MOD unable to run along with MOD [Ajax] Check for similar thread before posting a new one (https://vborg.vbsupport.ru/showthread.php?t=151714&highlight=check) by MrNase. can you version update newly runs this 2 MOD?

magnus
05-05-2008, 11:45 AM
Now that the 3.7 branch is final, I'll see what needs to be modified and release a 3.7.x version.

Coop1979
05-07-2008, 12:43 PM
Works fine for me on 3.7

baz_kingfish
05-08-2008, 10:38 PM
While you are making the modifications for 3.7.x, please consider adding the Collapsable Last Post feature when the vB deault blue arrow is clicked.
Thanks,
KF

Jase2
05-09-2008, 04:25 PM
magnus, please can we have an option to show this to registered members only ?

SBlueman
05-15-2008, 04:18 AM
First off I want to say that I love this modification....I have it working on my site and with the Zoints Topic Tags results. I was wondering though...

1. Can this work in your private message box?
2. Any chance to get this to work with a vbAdvanced module?

The way I have my front page setup shows the vbAdvanced news archive module listing the stories. Having the ability to click and open the story right there would be huge.

DJ Matt4684
05-22-2008, 09:48 AM
I have vbadvanced. Will it work with that installed? Also, it would be nice if a future version of this came with usergroup options. I would primarily like this mod for mainly the moderators.

edit: I installed this and nothing is showing up. I am not getting any collapse button or anything. I have 3.6.7 Beta 6 version and I have placed the files in their correct locations. What could be the problem?

I also went to www.mysite.com/clientscript/vbulletin_vbpost.js and the file was not found. Well, I figure I must have misplaced the file when uploading to the ftp, but this is not the case. The file is there. All other files in the clientscript directory works. I am stumped here. When I try going to the page, I just get 3 simple words which are 'Page not found'. I don't get the 404 error or anything though.

shadowevil
05-25-2008, 02:34 PM
no compatible with GARS, You can do with next version for well compatible with Gars ? thanks

dethfire
06-04-2008, 04:18 PM
works with 3.7.1?

brasolino
06-05-2008, 01:10 PM
works with 3.6.10 ?

fragov
07-18-2008, 12:04 PM
May anybody suggest how to make next: On forums and search - it collapse first post, but on "New post" search it show last post?

PoetJA-1975
07-19-2008, 07:55 AM
Works fine on my 3.7.2 PL1 board: http://jpicforum.info/discussion-poetic-types/
Thanx again for sharing.

Jacquii.

AWJunkies
07-23-2008, 01:05 AM
FYI you need to upgrade this mod to work with latest jquery 1.2.6

Your mod relies on 1.1.2

That is OLD and there is a MINI gzipped and MINI non compressed as well as FULL.

As other mods use jquery for there mods you need to set your software to work with latest as this is causing much conflict with a lot of mods.

Now to let you know your mod DOES work with latest 1.2.6 all platforms EXCEPT when trying to collapse it back down and open a new one. It will not collapse and stay expanded.

xorex
07-29-2008, 10:25 AM
for IE work fine :up: FireFox and Opera i see only loading image :(

vb3.7.2

bartek24m
07-30-2008, 03:35 AM
hello

when i add in bbcode google adsene after click in "+" i can see blank pages instead of content post :(

i suppose it's javascript problem

what do you think will help me ?

of course it is not nesseserlly to show the google adsense
i would rather agree for hide any java scripts which contains posts or bbcode :(

its greath hack and if you could help me i'am weeling to make a donate for this great work !

bye

toprak
08-04-2008, 09:39 PM
can yopu please add a picture support too. we would like to show pictures in the thread like first 3 2 pictures in the thread

freecodevn
08-05-2008, 02:51 AM
Thanks, work very good ver 3.7.2

*Installed*

MDK-Indy
08-05-2008, 04:44 AM
Salü,

this Add-on is incompatible with the "rowmOVA" Add-on.

Can you fix it please?

greeting Indy

DJ Matt4684
10-02-2008, 02:48 AM
This expands the first post, but I can't seem to be able to collapse it in Firefox. In IE it seems to work with no problem. It does nothing when you try to collapse it while using Firefox. Anyone know why?

wolfe
10-20-2008, 04:46 PM
is it possible to make it automatically collapse a box when you expand another ? thx

also m8 is there any chance you can add the bounce effect to the js file ?.

home9000
11-05-2008, 02:43 AM
Very nice hack
if I click [+] I can see the post but I can't see the thanks button

Magnumutz
11-07-2008, 04:28 PM
@home9000: Edit the templates for the preview.
@All the others: This mod is working just fine for me, on 3.7.3... Haven't upgraded to 3.7.4 YET.

home9000
11-07-2008, 05:16 PM
@home9000: Edit the templates for the preview.
@All the others: This mod is working just fine for me, on 3.7.3... Haven't upgraded to 3.7.4 YET.

I did but the same

SteamyLightning
11-23-2008, 12:08 AM
is it possible to make it automatically collapse a box when you expand another ? thx

also m8 is there any chance you can add the bounce effect to the js file ?.
I agree that this would be very nice.

And it is working in 3.7.

columbusgeek
12-30-2008, 01:15 PM
FYI you need to upgrade this mod to work with latest jquery 1.2.6

Your mod relies on 1.1.2

That is OLD and there is a MINI gzipped and MINI non compressed as well as FULL.

As other mods use jquery for there mods you need to set your software to work with latest as this is causing much conflict with a lot of mods.

Now to let you know your mod DOES work with latest 1.2.6 all platforms EXCEPT when trying to collapse it back down and open a new one. It will not collapse and stay expanded.

I can confirm this. Upgrading your .js will cut down on a lot of "help" posts here.

Fancy Qtr
01-03-2009, 07:08 AM
it's not work with 374

Shishir
01-15-2009, 03:40 AM
Just installed on 3.7.5 and works fine so far. :)

Shishir

superthang
02-03-2009, 01:20 PM
does this work with 3,8?

dbembibre
02-06-2009, 03:52 PM
does this work with 3,8?

This great mod dont work for me later to upgrade to vB3.8 :(

dbembibre
02-06-2009, 04:33 PM
This great mod dont work for me later to upgrade to vB3.8 :(

My fault yujuuuuu !!!! still working right with 3.8 :D

GrendelKhan{TSU
02-13-2009, 12:31 PM
hmm.. not working for me in 3.8
too bad sooo cool I wish I could get it to work for 3.8 :(

luckywilly
03-28-2009, 05:52 PM
it works for me in 3.8 :)

SteamyLightning
04-21-2009, 04:56 AM
Works on 3.8.

Anyway for it to work for threads listed in the tag thread? I notice that it adds the option "read first post" to the threads in the tag list, but it doesn't do anything if clicked.

Nordinho
04-29-2009, 12:27 PM
Anyway for it to work for threads listed in the tag thread? I notice that it adds the option "read first post" to the threads in the tag list, but it doesn't do anything if clicked.

Noticed that as well. For the rest it seems to work fine in 3.8.2 except for the old spoiler bug as mentioned before in this thread.

Would love to see an 'official' update though!

NNJJ
05-21-2009, 03:17 PM
not working for me 3.8.2

hope we get update for it sooooon

sector77
05-21-2009, 10:26 PM
Hi there! Thanks for this!

I have it installed but I'm experiencing two problems.

1. I'm able to click on the plus sign and it expands as it should. However, when I attempt to click on the negative sign, it doesn't do anything. When I double click it, it gives me the ability to edit the Thread Title???

I've read a post where you recommended to check the all the .js files are being read and I've checked the source and see that they are.

Can you please help me with this? It would be great if I could make it so that my members and I could collapse it after viewing.

2. I can't figure out how to include the edit and/or reply button into the expanded post. Are there any detailed (somewhat simple) instructions to follow with this? It would be very helpful!

Thank you again!

dancue
06-05-2009, 10:21 PM
I can't seem to get this to work on 3.8.

dancue
06-07-2009, 01:34 PM
It seems to only work with the sticky threads.

dancue
06-07-2009, 06:27 PM
Alright the issue was with rowMova mod.

What I did was move the plus/minus sign to the last post column and I'm using the last post feature of this mod. That way people can get a sneak peak of the last post of the thread.

If the author ever decides to continue support for this mod I would love for it to update the thread as read by the author.

drsli
07-25-2009, 05:01 PM
Great addon anyway - I had to uninstall it unfortunately. In vb383 it only seems to work fully with Internet Explorer (8 in this case, within Windows7 RC1), in Firefox 3.51 (Windows and MacOSX) and Opera (latest version, Windows) the loading image shows up, but nothing happens. Using Safari4 in MacOSX gives an expanded view of the post, but the minus-button to collapse it has no effect.

mad@Max
08-15-2009, 09:30 PM
For those who want to upgrade to jQuery v1.3.2 and use it with this hack.
Just replace original js of hack with attached.

alfaowner
08-15-2009, 10:14 PM
You just needed to upload the latest jquery script and it would have worked.

Hi there! Thanks for this!

I have it installed but I'm experiencing two problems.

1. I'm able to click on the plus sign and it expands as it should. However, when I attempt to click on the negative sign, it doesn't do anything. When I double click it, it gives me the ability to edit the Thread Title???

I've read a post where you recommended to check the all the .js files are being read and I've checked the source and see that they are.

Can you please help me with this? It would be great if I could make it so that my members and I could collapse it after viewing.

2. I can't figure out how to include the edit and/or reply button into the expanded post. Are there any detailed (somewhat simple) instructions to follow with this? It would be very helpful!

Thank you again!

mad@Max
08-16-2009, 12:01 AM
Hack wouldn't work correctly with latest version of jQuery without the changes that i made in post above.

reddyink
10-15-2009, 04:53 PM
SOLVED!

Works If you do
1) download latest Jquery +
2)Update of Mad@max file

columbusgeek
10-15-2009, 05:34 PM
Thanks for getting this fixed. :)

reddyink
10-17-2009, 04:55 PM
How to add extra material to this feature.
I want to add ratings and extra thread fields.

thanks

columbusgeek
11-03-2009, 08:04 PM
Can this be changed to include the first and second posts of the thread? We use "answer forums" and it would be swell if you clicked the little plus and got the question and the answer, without having to see the rest of the chaff.

Ghostt
12-13-2009, 11:11 AM
WHY i have a bad granularity font, with that ajax mod?
HOW can it be fixed? is it because of ajax effect??

http://i.imagehost.org/0174/Unbenannt_1.jpg

and the [spoiler] bbcode isn`T working it expand automaticaly...

joshskeety
12-31-2009, 10:42 AM
This mod is awesome. It'd be pretty cool to give users an option in their profiles so that they can select whether they want to see First Post or First Unread Post.

BobbyBig
05-20-2010, 10:09 PM
Working with 4.0.3 ?

Tettinntil
05-24-2010, 09:31 PM
SOLVED!

Works If you do
1) download latest Jquery +
2)Update of Mad@max file

Should I rename the Jquery-file in M@dmax post?

Kaitlyn2004
10-05-2010, 01:57 PM
Is anyone working on a version for vB4?

qubed
01-13-2011, 04:19 PM
i am using it on vb3.8.5 i am able to get the + open, but i can't get the - to collapse it back. i updated to jquery 1.4.4, is there any advice anyone can offer? thanks!

EDIT - GOT IT WORKING.

Be sure to download the file in Mad M@x's post and also update to your latest jquery (just google jquery, download the latest, change file name of latest jquery to jquery.js and upload to the clientscript folder

WORKING FINE ON 3.8.5 now.

BirdOPrey5
01-26-2011, 01:48 AM
I noticed if spoiler tags bb code is used in the post it won't be collapsed (hidden) when you open a post with ajax- basically defeats the use of the bb code. I'd image all javascript based bb codes would have issues.

drsli
06-19-2011, 05:43 PM
Awesome, works perfectly within my vb3.8.5-installation. Many thanks! :)

Tyran1
06-04-2013, 04:53 PM
Works nice on 3.8.7 !!

weinstoc
05-17-2015, 05:54 PM
Running vb3.8.7. Getting Uncaught TypeError: newrow.find(...).addClass(...).end(...).vbshowRow is not a function in vbulletin_vbpost.js. Doesn't matter if I've upgraded to the file in Mad M@x's post or not. Any thoughts?