MKP Staff and Site Map For C1.2.1
#1
Posted 22 February 2010 - 10:53 PM
#2
Posted 22 February 2010 - 11:09 PM
vaxik, on Feb 22 2010, 11:53 PM, said:
I do not remember if these will work with the C version or not but I think they probably will. If you try them and they have issues let me know and I will try to update them to fix bugs.
MKPStaff: http://www.visiblesoul.net/resources/downl...ils.php?file=59
MKPSiteMap: http://www.visiblesoul.net/resources/downl...ils.php?file=77
Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.
Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.
"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard
#3
Posted 23 February 2010 - 12:42 AM
visiblesoul, on Feb 23 2010, 01:09 AM, said:
vaxik, on Feb 22 2010, 11:53 PM, said:
I do not remember if these will work with the C version or not but I think they probably will. If you try them and they have issues let me know and I will try to update them to fix bugs.
MKPStaff: http://www.visiblesoul.net/resources/downl...ils.php?file=59
MKPSiteMap: http://www.visiblesoul.net/resources/downl...ils.php?file=77
Thank you very much, i will try it tommorow, becouse im very tired..:-)))
i have 2 more question.. i don't want to open new topic:-)
Question N1: how i can change MKMedia, to play video and mp3 with flash player, not with QUICKTIME!!!:-(
Question N2: i have this script
<!-- body {background-color: #DFF6FF;} .lincwind li {padding-bottom: 10px; color: #28A5F8; list-style-type : square;} .lincwind a {color: #0B3F82; text-decoration: underline; fint-size: 11px;} .lincwind a.activ {color: #D1081E; text-decoration: none; fint-size: 11px;} .close {color: #ADC5E1; font-size: 12px; font-weight: bold; font-family: verdana, arial, tahoma, sans-serif; text-decoration: none;} -->
<p style="text-align: center;">
<object id="pleywideo" style="border: 1px solid #000000;" classid="clsid:6bf52a52-394a-11d3-b153-00c04f79faa6" width="320" height="287" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701">
<param name="autostart" value="true" />
<param name="filename" value="mms://live.rfn.ru/rtr-planeta" />
<param name="controltype" value="true" />
<param name="showdisplay" value="false" />
<param name="showcontrols" value="true" />
<param name="quality" value="high" />
<param name="url" value="mms://live.rfn.ru/rtr-planeta" />
<param name="src" value="mms://live.rfn.ru/rtr-planeta" /><embed id="pleywideo" style="border: 1px solid #000000;" type="application/x-mplayer2" width="320" height="287" src="mms://live.rfn.ru/rtr-planeta" url="mms://live.rfn.ru/rtr-planeta" quality="high" showcontrols="true" showdisplay="false" controltype="true" filename="mms://live.rfn.ru/rtr-planeta" autostart="true"></embed>
</object>
</p>
<p style="text-align: center;"><strong><span style="font-size: large;">To View Full Screen, Double Click On Video</span></strong></p>
<p><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></p>
i need to play it in flash player too!!! now it play in Windows MEdia..
#4
Posted 23 February 2010 - 12:51 AM
and this i see when i go to localhost/index.php?ind=sitemap
| Copyright (c) 2005-2006 visiblesoul.net | http://www.visiblesoul.net | Some functions based on module code by Meo aka Luponero | http://www.mkportal.it | Email: luponero@mclink.it +-------------------------------------------------------------------------- */ if (!defined("IN_MKP")) { die ("Sorry !! You cannot access this file directly."); } $idx = new mk_sitemap; class mk_sitemap { var $config = array(); function mk_sitemap() { global $mkportals, $mklib; $mklib->load_lang("lang_sitemap.php"); // To prohibit guest access to module uncomment this code /* if(!$mkportals->member['id']) { $message = "{$mklib->lang['sm_unauth']}"; $mklib->error_page($message); exit; } */ switch($mkportals->input['op']) { case 'credits': $this->credits(); break; default: $this->sitemap(); break; } } function sitemap() { global $mklib, $Skin, $MK_BOARD, $MK_PATH, $blocks; /*********************************************** * Sitemap Configuration **********************************************/ //$list_home = "1"; // List portal home link. No=0, Yes=1 $list_modules = "2"; // List portal modules. //No=0, Yes=1, List with categories=2, List with perms=3, List with categories & perms=4 $list_pages = "1"; // List portal internal pages. No=0, Yes=1, List with perms=2 $list_forums = "1"; // List Forums. No=0, List top level forums only=1, List sub-forums=2 $list_search = "1"; // List Search pages. No=0, Yes=1 /*********************************************/ switch($MK_BOARD) { case 'IPB': $board_functions = "ipb_sitemap_functions.php"; break; case 'PHPBB': $board_functions = "php_sitemap_functions.php"; break; case 'VB': $board_functions = "vb_sitemap_functions.php"; break; case 'IPB13': $board_functions = "ipb13_sitemap_functions.php"; break; case 'MYBB': $board_functions = "mybb_sitemap_functions.php"; break; default: //SMF $board_functions = "smf_sitemap_functions.php"; break; } require $MK_PATH."mkportal/modules/sitemap/board/$board_functions"; $output = " "; $output .= "
images}/locbar.gif\" alt=\"\" />
{$mklib->lang['sm_mkpsitemap']}
"; $output .= "
{$mklib->lang['sm_announce']}
"; $output .= "
"; //if ($list_home == "1") { $output .= "
{$mklib->lang['portal_home']}
"; $output .= "
* {$mklib->lang['home']}
\n"; //} if ($list_modules != "0") { $output .= $this->get_modules(); } $output .= "
"; $output .= "
"; if ($list_pages != "0") { $output .= $this->get_pages(); } if ($list_forums != "0") { $output .= $mksite_board->get_forums(); } if ($list_search != "0") { $output .= $this->get_search(); } $output .= "
"; // !!!! PLEASE BE COOL. DO NOT REMOVE LINK TO CREDITS. LOOK HOW SMALL I MADE IT !!!! $output .= "
{$mklib->lang['sm_footnote']}
{$mklib->lang['sm_credits']}
"; $blocks .= $Skin->view_block("{$mklib->lang['sm_pagetitle']}", $output); $mklib->printpage("1", "1", "{$mklib->lang['sm_pagetitle']}", $blocks); } //Modules function get_modules() { global $mklib; $dselect = $this->row_downloads(); $gselect = $this->row_gallery(); $nselect = $this->row_news(); $rselect = $this->row_reviews(); $content = "
Modules
"; $content .= "
* "; //List all folders in "modules" directory if ($dir = @opendir("./mkportal/modules/")) { while (($dirt = readdir($dir)) !== false) { $selected = ""; //exclude files and directories named with the string "old" or "lock" $nodirect = preg_match('/\.([a-z]+)$/', $dirt); $nodirect2 = preg_match('/old/i', $dirt); $nodirect3 = preg_match('/lock/i', $dirt); //exclude other directories if ($dirt != "." && $dirt != ".." && $dirt != "contents" && $dirt != "search" && $dirt != "sitemap" && $dirt == $nodirect && $dirt == $nodirect2 && $dirt == $nodirect3) { $dirlist[] = $dirt; } } closedir($dir); } //sort modules alphabetically by directory name asort($dirlist); while (list ($key, $val) = each ($dirlist)) { $modperm = "mod_".$val; //Give modules a name if no lang_global.php entry exists if (!array_key_exists($val, $mklib->lang)) { $modtitle = ucfirst($val); $modtitle = str_replace("_", " ", $modtitle); //Remove underscores $mklib->lang[$val] = $modtitle; $modperm = ''; } // Get language entries from lang_global.php $modtitle = "{$mklib->lang[$val]}"; // Fix irregular default language entries if ($val == "downloads") { $modtitle = "{$mklib->lang['download']}"; } if ($val == "sitemap") { $modtitle = "{$mklib->lang['sm_pagetitle']}"; } /*********************************************** * Configuration **********************************************/ //Ported module links - some do not use the index.php?ind=modulename URL $mk_ports = array("coppermine", "gallery2", "oscommerce", "mediawiki", "docs"); /*********************************************/ if (in_array($val, $mk_ports)) { $modlink = "./mkportal/modules/$val/index.php"; } else { //Other module links $modlink = "index.php?ind=$val"; } $showlink = FALSE; //Check config to see if default modules are activated //Display only active modules. if ($modperm != '') { //Don't check module perms for non-default modules // Check default module perms $showlink = $mklib->checklinkperm($modlink); } if($showlink) {continue;} $content .= "$modtitle
\n"; //if ($list_modules == "2" || $list_modules == "4") { // Show module categories if ($val == "downloads") { $content .= "
$dselect "; } if ($val == "gallery") { $content .= "
$gselect "; } if ($val == "news") { $content .= "
$nselect "; } if ($val == "reviews") { $content .= "
$rselect "; } //} } $content .= "
\n"; $output = $content; return $output; } // Internal Pages function get_pages() { global $mkportals, $DB, $mklib; $content = "
{$mklib->lang['internalpages']}
"; $content .= "
* "; /*********************************************** * Configuration **********************************************/ $hidepages = "0"; // Hide individual Internal Pages. Add pages by page ID. Separate by commas // Example: $hidepages = "1, 3, 5, 7, 11"; /*********************************************/ $query = $DB->query("SELECT id, title, file, perms FROM mkp_pages WHERE id NOT IN ($hidepages) ORDER BY title ASC"); while ($row = $DB->fetch_row($query)) { $title_page = stripslashes($row['title']); $id_page = $row['id']; //Check view permissions for each page //Display only links to pages user has perms to view. $perms = array(); if ($row['perms']) { $perms = unserialize($row['perms']); } if (!in_array($mkportals->member['mgroup'], $perms)) { $content .= "".$title_page."
\n"; } } $content .= "
"; $output = $content; return $output; } // Search function get_search() { global $mklib, $mklib_board; $forumsearch = $mklib_board->forum_link("forumsearch"); $content = "
{$mklib->lang['m_search']}
"; $content .= "
* "; //if ($row['id']) { $content .= "siteurl/index.php?ind=search\">{$mklib->lang['internalpages']}"; //} //if (!$mklib->config['mod_gallery']) { //if(!$mkportals->member['g_access_cp'] && !$mklib->member['g_access_gallery']) { $content .= "
* siteurl/index.php?ind=gallery&op=search\">{$mklib->lang['images']}"; //} //} //if (!$mklib->config['mod_downloads']) { //if(!$mkportals->member['g_access_cp'] && !$mklib->member['g_access_download']) { $content .= "
* siteurl/index.php?ind=downloads&op=search\">{$mklib->lang['download']}"; //} //} //if (!$mklib->config['mod_reviews']) { //if(!$mkportals->member['g_access_cp'] && !$mklib->member['g_access_reviews']) { $content .= "
* siteurl/index.php?ind=reviews&op=search\">{$mklib->lang['reviews']}"; //} //} $content .= "
* {$mklib->lang['forum']}"; $content .= "
# "; $output = $content; return $output; } // Modified function from MKPortal M1.1 Pr1 /admin/ad_download.php (function row_select_event) function row_downloads() { global $mkportals, $DB, $mklib; $dselect = ''; $chache_sections = array(); //load cache $DB->query( "SELECT * FROM mkp_download_sections ORDER BY `id`"); while( $row = $DB->fetch_row() ) { $chache_sections[] = $row; } $listall = array(); $children = array(); foreach ($chache_sections as $row) { if ($row['father']) { $children[ $row['father'] ][] = $row; } } foreach ($chache_sections as $row) { $idevento = $row['id']; $evento = $row['evento']; $father = $row['father']; if (!in_array($idevento, $listall) && !$row['father']) { $dselect.= "siteurl/index.php?ind=downloads&op=section_view&idev=$idevento\">$evento
\n"; $listall[] = $idevento; } //$pref = "|"; if (count($children[$idevento]) > 0) { $dselect.= "
* "; foreach($children[$idevento] as $row3) { //$pref = "|--"; if (!in_array($row3['id'], $listall)) { $dselect.= "siteurl/index.php?ind=downloads&op=section_view&idev={$row3['id']}\">{$row3['evento']}
\n"; $listall[] = $row3['id']; } $idevento = $row3['id']; $dselect.= "
o "; while ($idevento) { //$pref .= "--"; $newfather = ""; reset ($chache_sections); foreach ($chache_sections as $row2) { if ($idevento == $row2['father']) { $newfather = $row2['id']; if (!in_array($row2['id'], $listall)) { $dselect.= "siteurl/index.php?ind=downloads&op=section_view&idev={$row2['id']}\">{$row2['evento']}
\n"; $listall[] = $row2['id']; } } } $idevento = $newfather; } $dselect.= ""; } $dselect.= "
# "; } } return $dselect; } // Modified function from MKPortal M1.1 Pr1 /admin/ad_download.php (function row_select_event) function row_gallery() { global $mkportals, $DB, $mklib; $gselect = ''; $chache_sections = array(); //load cache $DB->query( "SELECT * FROM mkp_gallery_events ORDER BY `id`"); while( $row = $DB->fetch_row() ) { $chache_sections[] = $row; } $listall = array(); $children = array(); foreach ($chache_sections as $row) { if ($row['father']) { $children[ $row['father'] ][] = $row; } } foreach ($chache_sections as $row) { $idevento = $row['id']; $evento = $row['evento']; $father = $row['father']; if (!in_array($idevento, $listall) && !$row['father']) { $gselect .= "siteurl/index.php?ind=gallery&op=section_view&idev=$idevento\">$evento
\n"; $listall[] = $idevento; } //$pref = "|"; if (count($children[$idevento]) > 0) { $gselect .= "
* "; foreach($children[$idevento] as $row3) { //$pref = "|--"; if (!in_array($row3['id'], $listall)) { $gselect .= "siteurl/index.php?ind=gallery&op=section_view&idev={$row3['id']}\">{$row3['evento']}
\n"; $listall[] = $row3['id']; } $idevento = $row3['id']; $gselect .= "
o "; while ($idevento) { //$pref .= "--"; $newfather = ""; reset ($chache_sections); foreach ($chache_sections as $row2) { if ($idevento == $row2['father']) { $newfather = $row2['id']; if (!in_array($row2['id'], $listall)) { $gselect .= "siteurl/index.php?ind=gallery&op=section_view&idev={$row2['id']}\">{$row2['evento']}
\n"; $listall[] = $row2['id']; } } } $idevento = $newfather; } $gselect .= ""; } $gselect .= "
# "; } } return $gselect; } function row_news() { global $mkportals, $DB, $mklib; $nselect = ''; $query = $DB->query( "SELECT id, titolo FROM mkp_news_sections ORDER BY `id` DESC"); while( $row = $DB->fetch_row($query) ) { $idevento = $row['id']; $evento = $row['titolo']; $nselect.= "siteurl/index.php?ind=news&op=news_show_category&idc=$idevento\">$evento
# \n"; } return $nselect; } function row_reviews() { global $mkportals, $DB, $mklib; $rselect = ''; $query = $DB->query( "SELECT id, title FROM mkp_reviews_sections ORDER BY `id` DESC"); while( $row = $DB->fetch_row($query) ) { $idevento = $row['id']; $evento = $row['title']; $rselect.= "siteurl/index.php?ind=reviews&op=section_view&idev=$idevento\">$evento
\n"; } return $rselect; } // Credits function credits() { global $mkportals, $mklib, $Skin, $blocks; $output = "
images}/locbar.gif\" alt=\"\" />
{$mklib->lang['sm_mkpsitemap']} > {$mklib->lang['sm_credits']}
MKPSiteMap"; //Some credits displayed to Admin only if ($mkportals->member['g_access_cp']) { $output .= " 1.0 Beta3"; } $output .= "
by visiblesoul
Visible Soul Web Design - Corpus Christi, Texas"; if ($mkportals->member['g_access_cp']) { $output .= "
©2004-2006 visiblesoul.net"; } $output .= "
"; $blocks .= $Skin->view_block("{$mklib->lang['sm_pagetitle']} {$mklib->lang[sm_credits]}", $output); $mklib->printpage("1", "1", "{$mklib->lang['sm_pagetitle']} {$mklib->lang[sm_credits]}", $blocks); } } ?>
#5
Posted 24 February 2010 - 08:47 AM
vaxik, on Feb 23 2010, 01:42 AM, said:
Question N1: how i can change MKMedia, to play video and mp3 with flash player, not with QUICKTIME!!!:-(
Question N2: i have this script
i need to play it in flash player too!!! now it play in Windows MEdia..
http://www.mkportal....ead.php?t=13275
http://www.mkportal....ead.php?t=26961
vaxik, on Feb 23 2010, 01:51 AM, said:
and this i see when i go to localhost/index.php?ind=sitemap
I will try to test this and see if I can fix it for you.
Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.
Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.
"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard
#6
Posted 24 February 2010 - 09:08 AM
visiblesoul, on Feb 24 2010, 10:47 AM, said:
vaxik, on Feb 23 2010, 01:42 AM, said:
Question N1: how i can change MKMedia, to play video and mp3 with flash player, not with QUICKTIME!!!:-(
Question N2: i have this script
i need to play it in flash player too!!! now it play in Windows MEdia..
http://www.mkportal....ead.php?t=13275
http://www.mkportal....ead.php?t=26961
i find the problem!!! :-)) at the first lane i need to change ?> to <?php
vaxik, on Feb 23 2010, 01:51 AM, said:
and this i see when i go to localhost/index.php?ind=sitemap
I will try to test this and see if I can fix it for you.
#7
Posted 01 March 2010 - 02:27 AM
vaxik, on Feb 24 2010, 10:08 AM, said:
Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.
Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.
"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users













