![]() |
Well, I don't allow users to select styles on my board. Each category ties into a site with its own layout, thus each category has its own layout that blends it into the site.
www.lmalla.com and click on the Everquest logo for an example (It's the only one I have public atm). Click on forums and you'll see what I mean. When you click on forums, you're looking at a category under forumdisplay, not forumhome. Also the news on that page is with your hack, though I have the style hardcoded in the templates atm. |
hmkay, well, it's quite easy to get a page to use a different style.
1) install freddie's User's Style in Post hack; 2) set the variable $changestyle with a styleid of choice _before_ including global.php in the file :) you can pass the variable through the URL also... So then you can send people from each category to see it in that cat's style. But note that each of them will still see the exact same _content_, just not in the same style :) |
Does this work for 2.3.0?
Coz I cant find this in newthread.php: PHP Code:
|
Actually, you can do it without the newthread.php modification and the mysql database modification. Instead, you can use this hack WITHOUT MODIFYING ANYTHING to your site. Just open newsportal.php from the hack, and use this query at the start:
PHP Code:
|
^What you posted is another bugfix? Or it fixes the same bug? Or is it not related to the random post bug?
Or am I confused! ;) |
Quote:
Thanks in advance, Shart |
I think he means we replace the existing query :s
|
Yeah, there's a query VERY much like that one at the start of newsportal.php, just replace it with the one you see above :)
|
What will this new query do? Fix the bug?
|
Yes.
|
You mean the bug which is mentioned on the first page with a 3-page long solution to resolve it?
|
Yes.
|
Greatr :D :D
(PS: Add it on the first page too :)) |
First post updated :)
|
Thanks you kind Sir.
I have been postponing the release of this for days becuase the hack-removal looked scary ;) |
*grins* :)
|
Quote:
I changed p to post, then it works, but the error is still there. :( :cry: :cry: :cry: :cry: |
oh, my bad..
*fixes* see the first post, the fix is: make it MIN(post.postid) instead of MIN(p.postid) :) |
Somehow, after changing that, the error remains....
Odd... *goes to kill himself* |
I mean the random post bug
|
just out of curiosity, this wouldnt have made my forums delete threads when i go to close them would it?
|
Nope, it can't delete anything from your board.
Robink, that's .... very odd :) |
Darn...
Well, I used the old solution anyway... By using isfirst='Y' and stuff. And it works great :D |
*sighs*
mysql-- stupid, stupid mysql! :( *goes fix newsportal.php to use entirely new approach* |
:/
you can do it! :D |
Just did it!
^_^ </lame nike pun> Anyhoo, see the first post, I released version 2 of the Newsportal hack, the new .php file is in the (new) attachment in the first post of this thread, you can just overwrite your online newsportal.php with that one (mind you, you'll have to check the variables at the start of the file for your personal forum id settings etc. *sends out update* |
Invalid SQL: SELECT pagetext,postid FROM post WHERE postid IN () ORDER BY postid DESC
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY postid DESC' at line 1 mysql error number: 1064 I got this message when i went to it.... so I know its somthing to do with running querys... but how and what querys? |
what are the two querys every keeps saying Im must run.
I have sombody on the side ready to run them so just post what querys I must run. Ive uploaded my newsportal to the server and Ive added the templets in the zip file... but I havent ran any querys because I SEE NONE. but I see people in this thread saying they ran querys and it works great. Sombody HELP! |
Genocide, those queries are old and you no longer need to run them. So forget about all that.
You're getting an error because you've selected a Newsforum id which has no threads yet, that's why it can't find any post id's. |
Okay, now for some reason, on the last active threads thing, people are able to see my private forums!!
This isnt supposed to happen, right??? |
Ofcourse, when they click on it they get a no-permission page, since the thread is in my moderator foum.
|
Ok, sorry for the triple post, but I can give you a more detailed idea of the problem now.
I made a test account and changed its usergroup to check what happens. I have 3 private forums, One for moderators, one for supermoderators and one for the admins. Now, when my test account is a Registered User, in the active threads thing, he can see threads from the Mod Forum, but not from Super Mod forum or the admin Forum. When I click on the thread, it gives me the no permission screen. When he is a moderator, he can see Mod forum titles, and read them, but cannot see threads of the supermod or Admin Forum. When I am super mod, I can see supermod threads but not admin threads. and when I am admin, I can see everything .... So, now do you have any idea what the problem is? If you want a demo go here: www.anime-fanatics.com And there should be an active thread somewhere called "Mods please read", if you click you'll get a no perms screen. The rest of my forums can be read by unregistered users :) |
do you use hostmasks or usergroups for making those forums private?
|
err, ignore the previous post, that was made before you made your 3rd one :)
erm... I have no idea, it works fine everywhere else... and the permissions section was supplied by PPN, so.... I dunno what goes wrong there, sorry :( |
Ok ... :(
Thanks for the really really prompt reply !!! :D :D OK, I realised since the problem is only with the one moderator forum being visible, can I edit the query in some way so that the mod forum with forumid = x, is visible only if usergroup id is either 5,6,7. Or, is there any way to simply exclude teh modertor forum from the thread lists? Thanks anyway :) |
yeah, give me the forum id of that particular forum and I'll see what I can do tomorrow from work. I can't really do much right now. Kay? :)
|
Yeah... thanks...
the forumid is 39 .... thanks a lot :-) Or maybe I should make a new thread and ask other people?? |
Double check that your forum permissions are set correctly for those forums and that users not in your admin or mod groups don't have permission to view threads in those forums. Also be sure that "Use custom settings" at the top of the forum permissions page is checked (that seems to be a very common thing that is overlooked. ;))
|
Hmm, Robink, lemme know if Tigga's tips worked or not, kay? :)
|
maybe a stupid comment, but I thought I had this problem too, but it was just that I hadn't refreshed my browser!!!!
|
All times are GMT. The time now is 11:07 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:
|