The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
moderate.php
just a quick question, i was just reading the script (as i need to make a moderation script) and i'm left wondering, whehter or not this could've been done so much simpler than it was done by jelsoft?
|
#2
|
||||
|
||||
I guess it depends what your moderating. Personally I don't find moderate.php overly complex.
|
#3
|
||||
|
||||
i just want to take some text in a database and display it, with the options to leave it in the queue, authorise it or delete, i guess my limited knowledge of php is causing problems here, i dunno i just read the script and it seemed to be doing so much more than it needed to
i expected to see; an if //moderation is on and a while // to show the data and give the options to moderate it and that's it really. |
#4
|
||||
|
||||
You can probably get away with just adding a column to the table called visible and set it to either 1 (visible) or 0 (invisible/hidden) and add that to the where clause on the query.
eg to get all unmoderated items: [sql]SELECT * FROM tablename WHERE visible = 0[/sql] |
#5
|
||||
|
||||
that''s how i've got the database set up, it's just a matter of getting the page in the admincp to moderate the items, i guess i'll have to stop being lazy and actually learn how to make an admincp page, to think all i need is;
Code:
text to moderate | option to approve | option to delete | option to do nothing |
#6
|
||||
|
||||
i hate the admin cp, it baffles me completely, everything is 20 times harder than coding for vB front end i just don't seem to be able to comprehend the coding, well i can kinda, i can read and understand what it's saying in the moderate.php but then it comes to applying that, it's practically impossible
[high]* sabret00the goes for a breather before heading back in for round 3[/high] |
#7
|
|||
|
|||
Just keep at it, the only way to learn is to get your hands dirty. That admin cp will look much harder to code for at first, because their is alot of extra code for html output.
|
#8
|
||||
|
||||
thanks for that, i'll keep at it
i think my main problem is how i would've gone about it and how vb went about doing it is so different, so i'm trying to think like someone else would and it's causing problems but i'll persevere(sp:?) |
#9
|
||||
|
||||
Quote:
|
#10
|
||||
|
||||
well i strapped on my php hat and dove right in, and it's not proving to be all that hard, bar one line that refuses to work
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|