Καταρχήν το Homepage (phpNuke) ΑΠΟΣΥΡΕΤΑΙ ΔΙΑ ΠΑΝΤΟΣ
Αυτά !
Ενδιαφέρεται κανείς να με βοηθήσει ;
FINAL REQUESTAnzac έγραψε:... να με βοηθήσει κάποιος να φτιάξουμε κάποια πραγματάκια στην ομάδα μας γιατί έχω εξαντλήσει ότι προσωπικές γνώσεις έχω αλλά καταλλήγω πάντα στο ΜΗΔΕΝ.
Θα ήθελα στο Mambo να προσθέσουμε το RSS Feed του site της ΠΑ
Θα ήθελα να προσθέσουμε την δυνατότητα να ποστάρουν news τα εγγεγραμμένα μέλη του mambo (submit news) (αφού πρώτα τα εγκρίνει ο admin )
Θα ήθελα το παρόν κείμενο που έχει το mambo στην 1η σελίδα να μείνει static ότι και να προσθεθεί στην συνέχεια ως news, δηλαδή να μην μετακινείται.
Αυτά !
Ενδιαφέρεται κανείς να με βοηθήσει ;
Submit News
menu -> usermenu -> click new:
Link - Url
Enter the url
index.php?option=com_content&task=new§ionid=1& Itemid=0
Replace the number 1 of the sectionid with the section id number of the section you wish people to submit to. Look in the Section Manager in the Admin area to find out the proper ID number.
Submit News - All Category fix ;;;;;;
Installation:
1. In components/com_content/content.php find function editItem. In it find comment 'build list of categories'.
Replace line:
$lists['catid'] = mosAdminMenus::ComponentCategory( 'catid', $sectionid, intval( $row->catid ) );
With:
if ($sectionid=="all")
$lists['catid'] = mosAdminMenus::ComponentCategory( 'catid', "0' OR (section > '0' AND section REGEXP '[[:digit:]]') AND section >= '0", intval( $row->catid ), NULL, 'name' );
else
$lists['catid'] = mosAdminMenus::ComponentCategory( 'catid', $sectionid, intval( $row->catid ) );
2. In the same file components/com_content/content.php find function saveContent.
Insert this:
if ($row->sectionid=="all") {
$database->setQuery( "SELECT c.section"
. "\n FROM #__categories AS c"
. "\n WHERE c.id = '". $row->catid ."'");
$row->sectionid = $database->loadResult();
}
Between:
$row = new mosContent( $database );
if ( !$row->bind( $_POST ) ) {
echo "<script> alert('".$row->getError()."'); window.history.go(-1); </script>\n";
exit();
}
And:
$isNew = $row->id < 1;
So it shoul look like:
... $row = new mosContent( $database );
if ( !$row->bind( $_POST ) ) {
echo "<script> alert('".$row->getError()."'); window.history.go(-1); </script>\n";
exit();
}
if ($row->sectionid=="all") {
$database->setQuery( "SELECT c.section"
. "\n FROM #__categories AS c"
. "\n WHERE c.id = '". $row->catid ."'");
$row->sectionid = $database->loadResult();
}
$isNew = $row->id < 1;
...
3. In file components/com_content/content.html.php in function editContent.
Replace (cca line 1012):
if (intval( $row->sectionid ) > 0) {
With:
if (intval( $row->sectionid ) > 0 || $row->sectionid == "all") {
In the same file and same function replace (cca line 1035):
if (intval( $row->sectionid ) > 0) {
With:
if (intval( $row->sectionid ) > 0 || $row->sectionid == "all") {
Now you are finished. You just have to add menu item with link to page:
http://www.yourserver.com/index.php?opt ... ctionid=al l&Itemid=0
Note: In 'sectionid=all' value must be all not All (lowercase).