![]() |
hmm this one shouldn't muck it up as it relies on the updateforumcount function, so if you move or delete threads it gets the last thread and updates its value, its the main editing in /admin/functions.php which allows this to do so.
And one query per page view it alot and puts alot of extra server load. |
@PPN
I installed the hack as you described in the txt-file. The problem now is that I have an Admin&MOD-Forum eg. and i dont want the normal user to see the last title in these forum. How can I do this? THX for help |
Make that forum private. :)
|
in your vBulletin Options select hide private forums.
|
the problem is that useres who are not registred can see the forums but can not access those. When I turn on the "hide private forum" option then those useres can´t see any forum, and that´s bad.
The optimal solution for me would be the following: All forums are visible, but the lasttitle is only displayed at forums the user can access and view. Forums the user dont have the premission to access (eg Admin-Fourm) are visible but the user dont see the lasttitle... Is it possible to configure it so...??? THX BigMo |
The code i adjusted sorted this cause it checks if the user has permission to view the forum and if they don't have it then it is hidden. Though this could be changed to check if they are allowed to view other threads or any other sort of permission for a forum. Will show the changes when i get home.
|
Oh THX that would be fine...
BigMo |
umm.. i installed this hack and now my post and thread counts are acting screwy. When i reply to a thread, the thread count goes to 0 or something along that line.
http://planetplastica.com/forums/index.php - see for yourself. |
the support on this forum is simply stunning.
|
NO need to bump the topic after a couple of hourse, some of us actually do things outside of vBulletin. Try updating forum info within the Update Counters part of the admin panel.
If this doesn't work then you have made an error while applying it to /admin/functions.php |
i just figured that i'd get SOMETHING after 10 hours of waiting, but alas, i got nothing.
Thanks for the response PPN. Right now my vB is offline, but the ftp seems to still work.. strange, anyway, i had previously updated everything in attempt to fix it, and just now i re-modified functions.php and i'll let you know how it turns out when my site comes back online. thanks. |
Quote:
|
Quote:
(The text limiting I mean - Opera users get a big long line of text...) |
Quote:
Have you forgotten me???? Please post the changes here...thats would be fine THX BigMo |
you can change
PHP Code:
such as canview, canpostnew, canviewothers, canreplyothers, canreplyown |
OK THX...
My last question: in which file at which position I must add/change the Quote:
|
It doesn't work 4 me.
:( The hack works perfectly, but it shows last post for private forums, too...and that's baaaad. |
Yes I tested it vesterday (I changed the index.php und the forumdisplay.php) and it dont work for me too. The lastpost is still displayed at forums the user dont have the right to access...
Some other solutions ??? THX |
ok, here is an better but still untested!!! version.
It looks up, if a registered user can view a forum. if Yes: put the title into the forum and the patents. if No: put "(private message)" into the forum and the patents. This design is because IMHO it is impossible to look up if the title is from a private subforum without doing a query. First apply the changes from PPN then my changes then post dummy threads in the private forums. Sorry for not testing, I currently have no testforum. |
Doesn't work.
Code:
Invalid SQL: max(canview) as cveiw ,count(canview) as cnt from forumpermission where usergroupid=2 and forumid=5 |
ups - forgotten "select "
Thank you |
I guessed that...but I see you just noticed by yourself :)
It works...but it still gives an error in "Update Counters" --> "Forum Info" Code:
SELECT max(canview) as cveiw ,count(canview) as cnt from forumpermission where usergroupid=2 and forumid= Code:
.$getchildforum[forumid] |
ok, I dont understand the reason for it (I don't think it's from misc.php). I have to create a test system, but this week I have no time.
|
Harvey you decide if it should set the thread title if they can view it, what if they can't view the forum, why would they be posting in it :D
This is done in vBulletin 3 anyway, why can't you all just hide private forums within the general settings part of the admin panel. |
PPN, the actual problem is, if you have a privat subforum inside a nonprivate mainforum, everybody can see the the title in the mainforum, if the latest thread is in the private forum. No matter if you hide the private forum or not. You can see it, because it's the same with last time and last poster.
Sorry that my solution does not work yet, I tried it in theorie because I have currently not the time to test it. Perhaps with the hope, that I find a Betatester ;) My boss wants that I install your hack, and we can live with the decision if a new post belongs to a thread a registered user may see or not. I hope you can understand me, I can't translate your first sentence because of my terrible english. Perhaps I can learn by posting in your forum. PS: Great hack. |
Parse error: parse error in /usr/local/plesk/apache/vhosts/whatthefrag.com/httpdocs/forums/admin/functions.php on line 1892
Fatal error: Call to undefined function: makelogincode() in /usr/local/plesk/apache/vhosts/whatthefrag.com/httpdocs/forums/global.php on line 337 I'm running 2.2.5. This happens when I upload functions with the changes |
ALTER TABLE `forum` ADD `lasttitle` VARCHAR(100) NOT NULL AFTER `lastposter`
How would I go about removing this from my table? |
alter table forum drop column lasttitle
|
hi anybody tested this on v2.25 ?
TIA :) |
Quote:
It works perfectly. (even the Omero sub-hack...look at it if you need to hide thread titles from private forums). :laugh: |
I have it work on my board too (vbb 2.2.5) :squareeyed:
http://www.kelvinlo.net/vbb/ But I found that after I deleted or moved the post, I will saw the Last Post field will turn into Never... It is normal or anyway can fix it? |
After i do forum update counter..
https://vborg.vbsupport.ru/ .I need to wait new members post/reply topic to get that field back.. anyway I can fix it? |
Ok i'll load this onto my test board just now, this is probably due to the editing done in functions.php
|
Just installed it on 2.2.5 and receiving this parse error when creating a new thread:
Quote:
|
<a href="http://www.sfpunk.com/forum/forumdisplay.php?forumid=2" target="_blank">http://www.sfpunk.com/forum/forumdisplay.php?forumid=2</a>
I get a parse error when going to a forum. I have rehacked forumdisplay 3 times to make sure it wasn't me and it still does not work. :ermm: |
Strange thing...works fine x me in 2.2.5 too...
|
bump.
|
@zachb
Why don't you post line 355-364, so we can see what's wrong with it.... Or send me your forumdisplay.php so I can check it. Mystics |
Quote:
Quote:
|
aagghh, just noticed the forum post counters are all wrong on the front page, most show 0 posts etc. How do i fix this ?
TIA |
All times are GMT. The time now is 06:37 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|