The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
First let me say that my vb has been hacked to allow the use of multiple usergroups in the calendar. Each usergroup has been named new1, new2, new3, .... , new9, and new10. The site uses a small hack that was part of vbportals that displays the current days events on the main page. Now, I want to be able to display the days events listed by usergroup. I can't seem to get it right without a MySQL error. Can anyone help?
Here is the original code which displays the public events: PHP Code:
PHP Code:
Thanks, -JRW |
#2
|
||||
|
||||
I haven't read your code yet... but I saw you said it gives you an error... Can you post the error? that would help
|
#3
|
||||
|
||||
Ok, I probably should have posted the error to begin with.
Quote:
Thanks, -JRW |
#4
|
||||
|
||||
You have no value after forumid=
You should use quotes around your value, then if it's null, you won't get an error. |
#5
|
||||
|
||||
I know thats what the error says, but it only happens when the code that I posted is modified. The original code is posted first and it work, but it only posts public events. I want to post events by other usergroups....
-JRW |
#6
|
||||
|
||||
I don't know what's causing the error. You should look over your code more closely, you have some errors in your logic.
You have: if ($num_rows < 1) { nested inside: while ($event = $DB_site->fetch_array($events)) { That's no good. |
#7
|
||||
|
||||
Ok, so how should I do this... hopefully you get a feeling about what Im trying to do. I just don't know exactly how to do it...
Thanks, -JRW |
#8
|
||||
|
||||
Well
1) You dont explain clearly what is your prime objective of editing the script 2) You seem to not know scripting very well, like you were using a corrupted phplearn book. Anyway just try surfing around and asking here, and try not to hack until you get a little better, no offense if your good, im no superstar myself, trust me |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|