![]() |
Uncheck Auto Parse by default
Is there a way to have Auto Parse URL's unchecked by default, or disabled altogether, in a particular forum? Keep in mind, I don't want this to be global.
|
You can do it by default yes.... with no hacking :D (I can help you with that if you like)
But in a particular forum would require hacking :) - miSt |
Any idea how to do it? I only want it disabled, or unchecked by default, in one forum.
|
In one forum would require hacking..
Let me look into it :D... |
Ok here it is
Not tested but should work :D In newreply.php replace this: PHP Code:
PHP Code:
Remember to replace x to the forumid of the forum you want the parseurl box to be not checked in :D Let me know if it works Regards - miSt |
Thanks! I'll give it a try when I get home. I'll let ya know how it works. Mucho gracias! :classic:
|
Hmmmmmm....that doesn't seem to work, unless I did something wrong. The forum ID is just the name of the forum, right?
Parse error: parse error in newreply.php on line 464 How do you learn php coding anyway? It makes no sense to me. :confused: :lick: |
Yes thats my poor PHP coding..
I'm sure one of our local geniuses will help fix that code i posted :) - miSt |
Oh! I think I see what you mean now. The forum ID is at the end of the url to that forum? I'll try that instead... :confused:
Nope, that didn't work either. DOH! :nervous: Help!!!! :disappointed: |
Try using $threadinfo['forumid'] and not $forum[forumid]
|
Like this???
PHP Code:
The error is in that first line somewhere. That's line 464, anyway. |
Try this:
PHP Code:
|
Ah, maybe too many parenthesis? I'll try it. :o
|
That won't work as the is a ) missing.
This is what it should look like: PHP Code:
|
But why is there an extra bracket NTDLR on the end of the line?
I'm still learning php so please feel free to explain it to me :D - miSt |
To match up with the one at the start ;)
Quote:
|
I get the same error. This is what I used....
PHP Code:
|
Yes NTDLR but look at your post you didn't have the correct number of brackets :) Lol i hope im right there
Try this: PHP Code:
- miSt |
Ok, I'll try this. :D I'll let ya know. ;)
|
Lol please do :)
- miSt |
Quote:
|
Nope, there must be something else wrong. Same thing. :confused: Damn, php is some confusing sh*t, ain't it? LOL
|
Lol i got the syntax right :)
Hmmm... Sloppygoat - post up the errors your getting :) - miSt |
It's the same error as before. It just says "Parse error in line 464" in newreply.php", when I replace that section....no matter what I do. I've tried a bunch of combo's now and kept track of all of them. Here's what hasn't worked....
if (!isset($parseurl)) and ($threadinfo[forumid]!=22]) { $parseurlchecked="CHECKED"; } else { $parseurlchecked=""; if (!isset($parseurl)) and ($forum[forumid]!=22]) { $parseurlchecked="CHECKED"; } else { $parseurlchecked=""; if (!isset($parseurl) and ($threadinfo[forumid]!=22])) { $parseurlchecked="CHECKED"; } else { $parseurlchecked=""; if (!isset($parseurl) and ($forum[forumid]!=22])) { $parseurlchecked="CHECKED"; } else { $parseurlchecked=""; if ((!isset($parseurl) and ($threadinfo[forumid]!=22])) { $parseurlchecked="CHECKED"; } else { $parseurlchecked=""; if ((!isset($parseurl) and ($forum[forumid]!=22])) { $parseurlchecked="CHECKED"; } else { $parseurlchecked=""; |
Bump! Anyone else have any ideas? I gotta find someone who can figure this one out. It's driving me crazy. :(
|
Damnit! Someone's gotta know this one. :(
|
Try this:
Code:
if (!isset($parseurl) and ($threadinfo['forumid']!=22])) { |
No offense but has anybody heard of the phpinclude template? No hacking required.
|
But don't you start getting a load on the server doing it that way? Because it adds it to every page instead of just where he needs it.
|
I'd much rather have a hack to do this, since it is only needed in one thread, and should be a small and simple change....if I just knew exactly how to do it. :ermm:
Thanks Boofo, I'll give that a try too. |
Yes filburt... not everyone loves the phpinclude template as much as you hehe ;)
|
Mist, where's the bee? I like the bee much better. ;)
|
Quote:
[edit] I also tested it in newthread.php, just out of curiosity, and I get the same error there too. (different line number, of course) |
Try this. I forgot the bracket.
Code:
if (!isset($parseurl) and ($threadinfo['forumid']!=22])) { |
Nope. Damn! Man, this isn't turning out to be the easiest hack, but I just know it's something pretty simple like what you guys are suggesting. I'm sure we're on the right track, anyway.
|
Ok, give me the place you are trying to insert it at and I will try it here.
|
Make sure you are replacing the right code snippet again and try this:
PHP Code:
- miSt |
Mist, you have 1 too many brackets now. You need a right bracket for every left one. You have 4 left brackets and 3 right ones. :)
|
Quote:
if (!isset($parseurl)) { $parseurlchecked="CHECKED"; } with: All the suggested code so far....except the one above, which I'll try when I get home tonight. :lick: |
Ahhh i think i might have it this time!
Replace this: PHP Code:
PHP Code:
That shouldn't give you a parse error and boofo i don't have an extra bracket do i? You missed out the one on the left which I highlighted - miSt |
All times are GMT. The time now is 04:46 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:
|