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)

glorify 04-27-2007 08:59 PM

Quote:

Originally Posted by magnus (Post 1236529)
You can edit the vbpost_postbit template to look however you like.

Is that for legacy as well?

magnus 04-27-2007 09:18 PM

Quote:

Originally Posted by glorify (Post 1236676)
Is that for legacy as well?

There is no vbpost_postbit_legacy. There is only 1 template. You design it to look however you like. I opted to release it looking like the normal 'legacy' template.

rayw 04-27-2007 11:47 PM

Upgraded to 1.2.1 and everything appears to be working great.

Thanks a lot for this. :)

Slave 04-28-2007 10:38 AM

Installed 1.2.1 .. seems to be working :) (I've always used auto templates)

I've now got it set to show the first unread post .. but I notice that when you've already read the thread and you have no new posts it still says "Click here to read the first unread post" any chance of having that as "Click here to read the last post"? .. and when a post is showing to have it say "Click here to close this post" .. It would just make it a bit cleaner :)

Any luck with the forward/back links for the post? (to show the next post without having to go into the thread) .. or are you expecting us to add that ourselves?

Not sure you saw my idea about polls as you didn't respond? .. thanks :)

subnet_rx 04-28-2007 02:01 PM

What does this mod do to views? Are views still accurately recorded when a post is viewed using this addon?

magnus 04-28-2007 03:37 PM

Quote:

Originally Posted by subnet_rx (Post 1237039)
What does this mod do to views? Are views still accurately recorded when a post is viewed using this addon?

It's a toggle in the AdminCP. You can either have it track views or not.

magnus 04-28-2007 03:39 PM

Quote:

Originally Posted by Slave (Post 1236955)
Installed 1.2.1 .. seems to be working :) (I've always used auto templates)

I've now got it set to show the first unread post .. but I notice that when you've already read the thread and you have no new posts it still says "Click here to read the first unread post" any chance of having that as "Click here to read the last post"? .. and when a post is showing to have it say "Click here to close this post" .. It would just make it a bit cleaner :)

Any luck with the forward/back links for the post? (to show the next post without having to go into the thread) .. or are you expecting us to add that ourselves?

Not sure you saw my idea about polls as you didn't respond? .. thanks :)

The forward/back links will be a bit tricky, I'll put it under the future development category.

Polls, I'll take a look at.

I'll also make appropriate changes to the hover text in the next release. :)

blastup 04-28-2007 05:19 PM

i got some problems.. when i click on the expand button.. it don't show anything.. i double click it.. it could now edit.. the threads title.. that is some wierd bug.. check out http://blastup.com/forumdisplay.php?f=11 help would be appreciated. thanx

ragtek 04-28-2007 05:59 PM

i like your hack very much

now i have added a toolbox to the link so the 1. post(saved in the link title tag) is shown on mouseover
the last is shown with your hack

its realy fine

magnus 04-28-2007 06:14 PM

Quote:

Originally Posted by blastup (Post 1237159)
i got some problems.. when i click on the expand button.. it don't show anything.. i double click it.. it could now edit.. the threads title.. that is some wierd bug.. check out http://blastup.com/forumdisplay.php?f=11 help would be appreciated. thanx

I visited your link, but apparently the hack is not loaded. The problems are you describing are indicative of not loading the JavaScript.

Verify the following:
  • That vbulletin_vbpost.js and jquery.js both reside in your clientscript directory.
  • That Automatic Template Editing is enable in the AdminCP.
  • That the JavaScript(s) are being properly loaded. Click on a forum, select "View Source" and search for the above JavaScript files.

blastup 04-29-2007 12:58 AM

yea it was the same thing before.. .. i don't know what is wrong... i checked everthing .. everthing is uploaded. js are in the source.. help?

beduino 04-29-2007 02:23 AM

Hi,
first of all: tks for your work and support here.

And ... the 'mystery' ;)
I install your lovely hack and don't work - apparently... I read the first posts and begin a manual edition in templates. Nothing happens. Then ... i resolve see in other set of templates [called 'vB Brasil New'] and already work.

Then i see the location of images [ (+).gif etc ] and make the correct upload.
And the mystery begun ...

http://www.vb-brasil.org/mystery.gif

I can't ripped out the duplicate images!!! I look in my edited templates and is fine [no php duplicated]...

How can i solve this mystery???? :D

All the best
And tks again
Beduino
www.vb-brasil.org
skin VB BRASIL
[vB Brasil New is ok...]

magnus 04-29-2007 02:56 AM

You have duplicated images because you've applied manual edits without disabling the automatic ones. In essence, you're editing the templates TWICE.

You need to pick one or the other. I'd recommend the automatic edits.

blastup 04-29-2007 03:10 PM

so how should i fix mine? should i do manuel edits?

magnus 04-29-2007 05:01 PM

Quote:

Originally Posted by blastup (Post 1237623)
so how should i fix mine? should i do manuel edits?

No, all of your edits are performed correctly. The JavaScript just isn't being loaded. I'd attribute it to a problem with your style.

Do you still have the Default Style? Try it. If it works, then you know the problem lies with your modified style. Run it through the W3C XHTML Validator. Fix as many problems as you can and see if that helps.

beduino 04-29-2007 05:50 PM

Hi Magnus,
works fine - i re-done all mods in templates and the mystery ... you solved.
Tks a lot
Beduino

LockeAG 04-30-2007 05:35 AM

I found a BUG.....

It's a really strange behavior, when I active the Plugin , USERGROUPS that I add have this problem when trying to access to their CP.

Fatal error: Call to undefined function: fetch_coventry() in /hsphere/local/home/#/#/Forum/usercp.php(500) : eval()'d code on line 16

The normal USERGROUPS (7,6,5,4,3,2,1) have no problems.

See'a

ragtek 04-30-2007 07:22 AM

i have a problem

in the forumdisplay it works fine(i have set up to read the last post) but in the search i see the first

magnus 04-30-2007 02:14 PM

Quote:

Originally Posted by LockeAG (Post 1238026)
I found a BUG.....

It's a really strange behavior, when I active the Plugin , USERGROUPS that I add have this problem when trying to access to their CP.

Fatal error: Call to undefined function: fetch_coventry() in /hsphere/local/home/#/#/Forum/usercp.php(500) : eval()'d code on line 16

The normal USERGROUPS (7,6,5,4,3,2,1) have no problems.

See'a

I've tested this on my development forum. I created a new usergroup (ID: 9) based off standard "Registered Users" permissions. I cannot replicate this problem. Everything appears to be working fine.

As a test, try using the default style. See if you still receive the error. The function fetch_coventry() is found in /includes/functions_bigthree.php -- and I've hooked into the usercp to include it. So, I can't see why one usergroup could use it and another cannot.

magnus 04-30-2007 02:16 PM

Quote:

Originally Posted by ragtek (Post 1238065)
i have a problem

in the forumdisplay it works fine(i have set up to read the last post) but in the search i see the first

This is by design.

Search results will always return the first post. I have it this way for temporary simplicity. Search doesn't use the same SQL queries as FORUMDISPLAY -- so the same information isn't available without adding extra queries. Until I can find a cleaner, saner way to allow for different post viewing configurations on the search page, I've defaulted it to First Post.

ragtek 04-30-2007 04:03 PM

alright
thx 4 info

LockeAG 04-30-2007 04:22 PM

Ok , Curiously , I Optimize and Repair Tables and all is working like charm, I would like to understand the problem but , Whatever , everything is working ok.

Thanks Magnus!

@ngel 04-30-2007 05:03 PM

Quote:

Originally Posted by magnus (Post 1238233)
This is by design.

Search results will always return the first post. I have it this way for temporary simplicity. Search doesn't use the same SQL queries as FORUMDISPLAY -- so the same information isn't available without adding extra queries. Until I can find a cleaner, saner way to allow for different post viewing configurations on the search page, I've defaulted it to First Post.

How can it be defaulted to the last post?

LockeAG 05-01-2007 07:20 AM

Another curious thing I found... when you colapse the post and if you have the Spoiler SHOW/HIDE method it will open in showing the spoiler, how can I fix this ?

thanks!

see'a

magnus 05-01-2007 10:26 AM

Quote:

Originally Posted by LockeAG (Post 1238751)
Another curious thing I found... when you colapse the post and if you have the Spoiler SHOW/HIDE method it will open in showing the spoiler, how can I fix this ?

thanks!

see'a

Make the same modifications to vbpost_postbit that you had to make to your postbit or postbit_legacy for the spoiler modification.

Tralala 05-01-2007 12:19 PM

Thanks for the AdminCP setting for: first post, last post, or first unread post.

It might be nice to see that as an individual user preference, too (set within the UserCP.)

Also, it might be nice to have separate preferences for threads in UserCP vs. threads in forumhome. Because personally for threads in ForumHome I'd rather see "first post" and for threads in UserCP I'd like to see "first unread."

---

I have just applied the update and now, going to UserCP on my forum resulted in an error:
Quote:

Fatal error: Call to undefined function: fetch_coventry() in /home/.odell/myname/myforum.com/forums/usercp.php(500) : eval()'d code on line 30
I presume this has something to do with this new feature:
Quote:

Included JavaScript in USERCP_SHELL to allow expand/collapse of subscribed threads.
Perhaps my UserCP_Shell template wasn't properly modified by the product? Is that Javascript something I can try manually inserting?

Lea Verou 05-01-2007 03:00 PM

It's a pity that such a nice mod has such a lame thread title. :p

Probably will install at July :)

@ngel 05-01-2007 03:28 PM

Quote:

Originally Posted by @ngel (Post 1238348)
How can it be defaulted to the last post?


Any ideas on this? :confused:

magnus 05-01-2007 04:08 PM

Quote:

Originally Posted by Michelle (Post 1238960)
It's a pity that such a nice mod has such a lame thread title. :p

Probably will install at July :)

I try to be descriptive. Would you rather it be called: ExpanjaX! v1.0 Beta 9 Release [Special Edition] ?

magnus 05-01-2007 04:10 PM

Quote:

It might be nice to see that as an individual user preference, too (set within the UserCP.)
That's the eventual plan.

Quote:

Also, it might be nice to have separate preferences for threads in UserCP vs. threads in forumhome. Because personally for threads in ForumHome I'd rather see "first post" and for threads in UserCP I'd like to see "first unread."
Noted.

Quote:

I have just applied the update and now, going to UserCP on my forum resulted in an error:


I presume this has something to do with this new feature:


Perhaps my UserCP_Shell template wasn't properly modified by the product? Is that Javascript something I can try manually inserting?
A previous person had this problem and resolved it here. Let me know if that works for you, too.

magnus 05-01-2007 04:10 PM

Quote:

Originally Posted by @ngel (Post 1238978)
Any ideas on this? :confused:

Wait for a future release.

Lea Verou 05-01-2007 04:30 PM

Quote:

Originally Posted by magnus (Post 1238996)
I try to be descriptive. Would you rather it be called: ExpanjaX! v1.0 Beta 9 Release [Special Edition] ?

No but "Collapsable First Post using AJAX (or Last Post!) in Forumdisplay" would be better I think :p

magnus 05-01-2007 04:43 PM

Quote:

Originally Posted by Michelle (Post 1239006)
No but "Collapsable First Post using AJAX (or Last Post!) in Forumdisplay" would be better I think :p

But it's also in USERCP and search_results.. :p

So, rather than pigenholing myself, I can be ambiguous and leave it as it.

ragtek 05-01-2007 06:15 PM

in usercp?

LockeAG 05-01-2007 06:50 PM

Quote:

Originally Posted by magnus (Post 1238824)
Make the same modifications to vbpost_postbit that you had to make to your postbit or postbit_legacy for the spoiler modification.

But this is a TAG , this spoiler code , doesn't touch the posbit's templates!

magnus 05-01-2007 07:42 PM

Quote:

Originally Posted by LockeAG (Post 1239121)
But this is a TAG , this spoiler code , doesn't touch the posbit's templates!

Provide me a link to the modification. I'll look at it.

Realturktiger 05-01-2007 08:43 PM

awesome .............installed !

Tralala 05-01-2007 08:44 PM

Quote:

Originally Posted by magnus (Post 1238998)
A previous person had this problem and resolved it here. Let me know if that works for you, too.

I just tried it... repaired/optimized tables... but it had no effect. Still got an error when going into the UserCP. (The mod works inside the forums themselves though.)

LockeAG 05-01-2007 08:46 PM

Quote:

Originally Posted by magnus (Post 1239170)
Provide me a link to the modification. I'll look at it.

thanks .. this is the bbcode I use:

Code:

<div style="margin:5px 20px 20px 20px">

<div class="smallfont" style="margin-bottom:2px"><b>Spoiler:</b>

<input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">{param}</div></div></div>

based on this one: https://vborg.vbsupport.ru/showthrea...hlight=spoiler

Thanks again for your help , if you need help with design (icons, logos, templates, css or whatever) , I for sure will give you a hand!

see'a

magnus 05-01-2007 09:14 PM

Quote:

Originally Posted by Tralala (Post 1239231)
I just tried it... repaired/optimized tables... but it had no effect. Still got an error when going into the UserCP. (The mod works inside the forums themselves though.)

As a test, could you create a new plugin with the following information:


Product: Collapsable First Post using AJAX
Hook Location: usersub_start
Title: Include functions_bigthree.php
Execution Order: 5
Plugin PHP Code::
PHP Code:

require_once(DIR '/includes/functions_bigthree.php'); 

Plugin is Active: Yes


.. let's see if that fixes it.


All times are GMT. The time now is 06:31 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.02106 seconds
  • Memory Usage 1,849KB
  • 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
  • (25)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