Aiuto x la mod dm_video

Area dedicata al phpBB 3.0.X
Rispondi
Avatar utente
italianews
Utente
Utente
Messaggi: 100
Iscritto il: 14/05/2012, 22:35
Link del Forum: http://anonymousnews.altervista.org/forum/index.php
Contatta:

Aiuto x la mod dm_video

Messaggio da italianews »

Allora raga chiedo se e possibile aiutarmi a risolvere questo problema :boss:
o istallato dm_video tutto ok votazioni ok, ma se vedete in fondo alla pagina ci sono dei link dei video messi con dm_video
ma cliccandoci in un link di uno qualsiasi link mi da questo
pagina non trovata un consiglio me lo date grazie
il link e questo http://tentatore.altervista.org/forum/index.php
Avatar utente
Mark
Utente
Utente
Messaggi: 81
Iscritto il: 18/05/2012, 18:26
Link del Forum:
Contatta:

Re: Aiuto x la mod dm_video

Messaggio da Mark »

Scusa, ma non ho capito proprio tutto, potresti fare degli screenshot per favore?
Avatar utente
diavoletta
Utente
Utente
Messaggi: 128
Iscritto il: 14/05/2012, 14:32
Link del Forum:
Contatta:

Re: Aiuto x la mod dm_video

Messaggio da diavoletta »

Mark ha scritto:Scusa, ma non ho capito proprio tutto, potresti fare degli screenshot per favore?
Mark te li metto io i screenshot
Immagine
in pratica cliccando dove e evidenziato il video porta ha pagina non trovata ,invece che portare al video :ciao:
"Se Proprio Devo Andare all'Inferno, Tanto Vale Andarci in Gran Stile..."
Edward (Twilight)


Immagine
Avatar utente
Mark
Utente
Utente
Messaggi: 81
Iscritto il: 18/05/2012, 18:26
Link del Forum:
Contatta:

Re: Aiuto x la mod dm_video

Messaggio da Mark »

Io i link proprio non li ho neanche, vedo solo il testo. Dato che non ho i link posso vedere la pagina di errore e cosa dice in particolare?
Avatar utente
diavoletta
Utente
Utente
Messaggi: 128
Iscritto il: 14/05/2012, 14:32
Link del Forum:
Contatta:

Re: Aiuto x la mod dm_video

Messaggio da diavoletta »

Mark ha scritto:Io i link proprio non li ho neanche, vedo solo il testo. Dato che non ho i link posso vedere la pagina di errore e cosa dice in particolare?
Tu forse non li hai perche di sicuro ai istallato la 1.0.5
quella di tentatore e la 1.0.6 forse e questo che tu non ai i link cliccabili
comunque dice pagina non trovata e va su altervista
"Se Proprio Devo Andare all'Inferno, Tanto Vale Andarci in Gran Stile..."
Edward (Twilight)


Immagine
Avatar utente
Dr.House
Amministratore
Amministratore
Messaggi: 2173
Iscritto il: 08/01/2012, 8:24
Link del Forum: www.phpbb-italia.it
Località: Reggio Calabria
Contatta:

Re: Aiuto x la mod dm_video

Messaggio da Dr.House »

il problema è legato ad un percorso che non trova,perchè se ci vai col mouse sopra non ti da un file con estensione valido.
Avatar utente
italianews
Utente
Utente
Messaggi: 100
Iscritto il: 14/05/2012, 22:35
Link del Forum: http://anonymousnews.altervista.org/forum/index.php
Contatta:

Re: Aiuto x la mod dm_video

Messaggio da italianews »

Codice: Seleziona tutto

<!-- INCLUDE overall_header.html -->
<!-- INCLUDE fusionwelcome_body.html -->
<!-- INCLUDE Trailer.html -->
<p class="{S_CONTENT_FLOW_END}<!-- IF S_USER_LOGGED_IN --> rightside<!-- ENDIF -->"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ELSE -->{CURRENT_TIME}<!-- ENDIF --></p>
<!-- IF U_MCP --><p>{CURRENT_TIME} <br />[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</p><!-- ELSEIF S_USER_LOGGED_IN --><p>{CURRENT_TIME}</p><!-- ENDIF -->
<!-- Start DM Music Charts -->
<!-- IF S_DM_MC_CHECK_FIRST and S_USER_LOGGED_IN -->
<div id="message" class="rules">
	<div class="inner"><span class="corners-top"><span></span></span>
		<!-- IF S_LAST_WINNERS -->
			<div style="text-align: center;"><h3>{L_DM_MC_INDEX_WINNER} {PERIOD}</h3></div>
			<table width="100%">
				<tr>
					<!-- BEGIN winners -->
					<td style="text-align: center; width: 33%; vertical-align: top;">
						{winners.RANK}<br /><br />
						<b>{winners.SONG}</b><br />
						{winners.FROM}<br />
						<b>{winners.ARTIST}</b>
						<br /><br />
						<!-- IF S_HIGHSLIDE -->
							<a href="{winners.VIDEO}" onclick="return hs.htmlExpand(this, { objectType: 'iframe' } )">{winners.IMG}</a>
						<!-- ELSE -->
							<a href="{winners.VIDEO}" onclick="return popup2(this, 'showpopup')">{winners.IMG}</a>
						<!-- ENDIF -->
						<br /><br />
						{winners.USER}: {winners.WIN}
					</td>
					<!-- END winners -->
				</tr>
			</table>
			<br />
			<!-- IF S_BONUS_WINNER -->
			<br />
			<table width="100%">
				<tr>
					<td style="text-align: center;">
						<br />
						{BONUS_WINNER}
						<br /><br />
					</td>
				</tr>
			</table>
			<br /><br />
			<!-- ENDIF -->
		<!-- ENDIF -->
		<strong>{L_INFORMATION}:</strong> {VOTE}
	<span class="corners-bottom"><span></span></span></div>
</div>
<br />
<!-- ENDIF -->

<!-- IF S_DM_MC_CHECK_SECOND and S_USER_LOGGED_IN -->
<div id="message" class="rules">
	<div class="inner"><span class="corners-top"><span></span></span>
		<strong>{L_INFORMATION}:</strong> {REMINDER}
		<!-- IF S_NEWEST -->
		<h3>{L_DM_MC_NEWEST_PERIOD}</h3>
		<table width="100%">
			<tr>
				<!-- BEGIN newest -->
				<td style="text-align: center; width: 24%; vertical-align: top;">
					<b>{newest.SONG}</b><br />
					{newest.FROM}<br />
					<b>{newest.ARTIST}</b><br /><br />
					<!-- IF S_HIGHSLIDE -->
						<a href="{newest.VIDEO}" onclick="return hs.htmlExpand(this, { objectType: 'iframe' } )">{newest.IMG}</a>
					<!-- ELSE -->
						<a href="{newest.VIDEO}" onclick="return popup2(this, 'showpopup')">{newest.IMG}</a>
					<!-- ENDIF -->
					<br />
				</td>
			<!-- IF (newest.S_ROW_COUNT % 4) == 3 --></tr><tr><!-- ENDIF -->
				<!-- END newest -->
			</tr>
		</table>
		<!-- ENDIF -->
		<br />
	<span class="corners-bottom"><span></span></span></div>
</div>
<br />
<!-- ENDIF -->
<!-- End DM Music Charts -->

<!-- IF S_DISPLAY_SEARCH or (S_USER_LOGGED_IN and not S_IS_BOT) -->
<ul class="linklist">
	<!-- IF S_DISPLAY_SEARCH -->
		<li><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a><!-- IF S_LOAD_UNREADS --> &bull; <a href="{U_SEARCH_UNREAD}">{L_SEARCH_UNREAD}</a><!-- ENDIF --><!-- IF S_USER_LOGGED_IN --> &bull; <a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><!-- ENDIF --> &bull; <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></li>
	<!-- ENDIF -->
	<!-- IF not S_IS_BOT and U_MARK_FORUMS --><li class="rightside"><a href="{U_MARK_FORUMS}" accesskey="m">{L_MARK_FORUMS_READ}</a></li><!-- ENDIF -->
</ul>
<!-- ENDIF -->

<!-- INCLUDE forumlist_body.html -->

<!-- IF not S_USER_LOGGED_IN and not S_IS_BOT -->
	<form method="post" action="{S_LOGIN_ACTION}" class="headerspace">
	<h3><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a><!-- IF S_REGISTER_ENABLED -->&nbsp; &bull; &nbsp;<a href="{U_REGISTER}">{L_REGISTER}</a><!-- ENDIF --></h3>
		<fieldset class="quick-login">
			<label for="username">{L_USERNAME}:</label>&nbsp;<input type="text" name="username" id="username" size="10" class="inputbox" title="{L_USERNAME}" />
			<label for="password">{L_PASSWORD}:</label>&nbsp;<input type="password" name="password" id="password" size="10" class="inputbox" title="{L_PASSWORD}" />
			<!-- IF S_AUTOLOGIN_ENABLED -->
				| <label for="autologin">{L_LOG_ME_IN} <input type="checkbox" name="autologin" id="autologin" /></label>
			<!-- ENDIF -->
			<input type="submit" name="login" value="{L_LOGIN}" class="button2" />
			{S_LOGIN_REDIRECT}
		</fieldset>
	</form>
<!-- ENDIF -->


<!-- INCLUDE top_flags.html -->
<!-- IF S_DISPLAY_ONLINE_LIST -->
	<!-- IF U_VIEWONLINE --><h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3><!-- ELSE --><h3>{L_WHO_IS_ONLINE}</h3><!-- ENDIF -->
	<p>{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /> <br />{LOGGED_IN_USER_LIST}
	<!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF --></p>
	<!-- IF WHO_WAS_HERE_TOTAL -->
		<h3>{L_WHO_WAS_HERE}</h3>
		<p>{WHO_WAS_HERE_TOTAL} ({WHO_WAS_HERE_EXP})<br />{WHO_WAS_HERE_RECORD}<br />{WHO_WAS_HERE_LIST}</p>
	<!-- ELSEIF U_ACP -->
		<h3>{L_WHO_WAS_HERE}</h3>
		<p>{L_WWH_UPDATE_NEED}</p>
	<!-- ENDIF -->
<!-- ENDIF -->

<!-- IF S_DISPLAY_BIRTHDAY_LIST and BIRTHDAY_LIST -->
	<h3>{L_BIRTHDAYS}</h3>
	<p><!-- IF BIRTHDAY_LIST -->{L_CONGRATULATIONS}: <strong>{BIRTHDAY_LIST}</strong><!-- ELSE -->{L_NO_BIRTHDAYS}<!-- ENDIF --></p>
<!-- ENDIF -->

<!-- IF NEWEST_USER -->
	<h3>{L_STATISTICS}</h3>
	<p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {TOTAL_USERS} &bull; {NEWEST_USER}</p>
<!-- ENDIF -->


<!-- Start DM Video -->
<!-- IF S_VIDEO_EXIST -->
	<h3>{L_DMV_MOST_SEEN_VIDEOS}</h3>
	<p>{NUMBER_VIDEOS}<br/><!-- BEGIN videoline --><!-- IF not videoline.S_FIRST_ROW --> &bull; <!-- ENDIF --> {videoline.TITEL} ({videoline.VIDEO_COUNTER}) <!-- END videoline --></p>
<!-- ENDIF -->
<!-- End DM Video -->
<!-- INCLUDE overall_footer.html -->
ecco
Avatar utente
Barrnet
Globalmod
Globalmod
Messaggi: 547
Iscritto il: 13/05/2012, 19:10
Link del Forum: https://videogamezone.eu/forum
Località: Bergamo
Contatta:

Re: Aiuto x la mod dm_video

Messaggio da Barrnet »

Questo pezzo:

Codice: Seleziona tutto

<!-- Start DM Video -->
<!-- IF S_VIDEO_EXIST -->
   <h3>{L_DMV_MOST_SEEN_VIDEOS}</h3>
   <p>{NUMBER_VIDEOS}<br/><!-- BEGIN videoline --><!-- IF not videoline.S_FIRST_ROW --> &bull; <!-- ENDIF --> {videoline.TITEL} ({videoline.VIDEO_COUNTER}) <!-- END videoline --></p>
<!-- ENDIF -->
<!-- End DM Video -->
Prova cosi:

Codice: Seleziona tutto

<!-- Start DM Video -->
<!-- IF S_VIDEO_EXIST -->
   <h3>{L_DMV_MOST_SEEN_VIDEOS}</h3>
   <p>{NUMBER_VIDEOS}<br/><!-- BEGIN videoline --><!-- IF not videoline.S_FIRST_ROW --> &bull; <!-- ENDIF --><a href="{toptenrow.U_SHOW_VIDEO}"><strong>{toptenrow.VIDEO_TITLE}</strong></a>({videoline.VIDEO_COUNTER}) <!-- END videoline --></p>
<!-- ENDIF -->
<!-- End DM Video -->
Avatar utente
italianews
Utente
Utente
Messaggi: 100
Iscritto il: 14/05/2012, 22:35
Link del Forum: http://anonymousnews.altervista.org/forum/index.php
Contatta:

Re: Aiuto x la mod dm_video

Messaggio da italianews »

Codice: Seleziona tutto

<?php
/**
*
* @package phpBB3
* @version $Id$
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
*/

/**
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('viewforum');

display_forums('', $config['load_moderators']);

// Set some stats, get posts count from forums data if we... hum... retrieve all forums data
$total_posts	= $config['num_posts'];
$total_topics	= $config['num_topics'];
$total_users	= $config['num_users'];

$l_total_user_s = ($total_users == 0) ? 'TOTAL_USERS_ZERO' : 'TOTAL_USERS_OTHER';
$l_total_post_s = ($total_posts == 0) ? 'TOTAL_POSTS_ZERO' : 'TOTAL_POSTS_OTHER';
$l_total_topic_s = ($total_topics == 0) ? 'TOTAL_TOPICS_ZERO' : 'TOTAL_TOPICS_OTHER';

// Grab group details for legend display
if ($auth->acl_gets('a_group', 'a_groupadd', 'a_groupdel'))
{
	$sql = 'SELECT group_id, group_name, group_colour, group_type
		FROM ' . GROUPS_TABLE . '
		WHERE group_legend = 1
		ORDER BY group_name ASC';
}
else
{
	$sql = 'SELECT g.group_id, g.group_name, g.group_colour, g.group_type
		FROM ' . GROUPS_TABLE . ' g
		LEFT JOIN ' . USER_GROUP_TABLE . ' ug
			ON (
				g.group_id = ug.group_id
				AND ug.user_id = ' . $user->data['user_id'] . '
				AND ug.user_pending = 0
			)
		WHERE g.group_legend = 1
			AND (g.group_type <> ' . GROUP_HIDDEN . ' OR ug.user_id = ' . $user->data['user_id'] . ')
		ORDER BY g.group_name ASC';
}
$result = $db->sql_query($sql);

$legend = array();
while ($row = $db->sql_fetchrow($result))
{
	$colour_text = ($row['group_colour']) ? ' style="color:#' . $row['group_colour'] . '"' : '';
	$group_name = ($row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $row['group_name']] : $row['group_name'];

	if ($row['group_name'] == 'BOTS' || ($user->data['user_id'] != ANONYMOUS && !$auth->acl_get('u_viewprofile')))
	{
		$legend[] = '<span' . $colour_text . '>' . $group_name . '</span>';
	}
	else
	{
		$legend[] = '<a' . $colour_text . ' href="' . append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=group&g=' . $row['group_id']) . '">' . $group_name . '</a>';
	}
}
$db->sql_freeresult($result);

$legend = implode(', ', $legend);

// Generate birthday list if required ...
$birthday_list = '';
if ($config['load_birthdays'] && $config['allow_birthdays'] && $auth->acl_gets('u_viewprofile', 'a_user', 'a_useradd', 'a_userdel'))
{
	$now = phpbb_gmgetdate(time() + $user->timezone + $user->dst);

	// Display birthdays of 29th february on 28th february in non-leap-years
	$leap_year_birthdays = '';
	if ($now['mday'] == 28 && $now['mon'] == 2 && !$user->format_date(time(), 'L'))
	{
		$leap_year_birthdays = " OR user_birthday LIKE '" . $db->sql_escape(sprintf('%2d-%2d-', 29, 2)) . "%'";
	}

	$sql = 'SELECT u.user_id, u.username, u.user_colour, u.user_birthday
		FROM ' . USERS_TABLE . ' u
		LEFT JOIN ' . BANLIST_TABLE . " b ON (u.user_id = b.ban_userid)
		WHERE (b.ban_id IS NULL
			OR b.ban_exclude = 1)
			AND (u.user_birthday LIKE '" . $db->sql_escape(sprintf('%2d-%2d-', $now['mday'], $now['mon'])) . "%' $leap_year_birthdays)
			AND u.user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDER . ')';
	$result = $db->sql_query($sql);

	while ($row = $db->sql_fetchrow($result))
	{
		$birthday_list .= (($birthday_list != '') ? ', ' : '') . get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']);

		if ($age = (int) substr($row['user_birthday'], -4))
		{
			$birthday_list .= ' (' . max(0, $now['year'] - $age) . ')';
		}
	}
	$db->sql_freeresult($result);
}


// Start DM Music Charts
if (!function_exists('check_charts_voted'))
{
	include($phpbb_root_path . 'includes/functions_dm_music_charts.' . $phpEx);
}

if ($auth->acl_gets('u_dm_mc_view') && $user->data['user_id'] != ANONYMOUS)
{
	$user->add_lang('mods/dm_music_charts');
	check_charts_voted();
}
// End DM Music Charts

if (!class_exists('phpbb_mods_who_was_here'))
{
	include($phpbb_root_path . 'includes/mods/who_was_here.' . $phpEx);
	phpbb_mods_who_was_here::update_session();
}
phpbb_mods_who_was_here::display();
// BEGIN Welcome Mod
//--Welcome_Mod--get the hour number-->
$date = $user->format_date(time(), 'H');

if ($user->data['is_registered'])
{
    $u_user_name = get_username_string('full', $user->data['user_id'], $user->data['username'], $user->data['user_colour']);
}
else
{
    $u_user_name = $user->lang['WELCOME_GUEST'];
}   

switch (true)
{
        case ($date < 1):
            // if the hour is 11am-12am (18-23)
            $s_welcome = sprintf($user->lang['GOOD_NIGHT'], $u_user_name);;
        break;
      
      	case ($date < 4):
            // if the hour is 1-3 am
            $s_welcome = sprintf($user->lang['UP_LATE'], $u_user_name);
        break;
       
        case ($date < 8):
            // if the hour is 4-7 am
            $s_welcome = sprintf($user->lang['UP_EARLY'], $u_user_name);
        break;
       
        case ($date < 12):
            // if the hour is 8-11 am
            $s_welcome = sprintf($user->lang['GOOD_MORNING'], $u_user_name);
        break;
       
        case ($date < 18):
            // if the hour is 12-5pm
            $s_welcome = sprintf($user->lang['GOOD_AFTERNOON'], $u_user_name);
        break;
       
        case ($date < 24):
            // if the hour is 6pm-11pm
            $s_welcome = sprintf($user->lang['GOOD_EVENING'], $u_user_name);;
        break;
} 

// how long a member for
$member_for = '';
if ($user->data['is_registered'] && !$user->data['is_bot'])
{
    $member_length = time() - $user->data['user_regdate'];
    $years = $months = $days = 0;
    $member_for = '';
    if ($member_length)
    {   
        if ($member_length >= 31536000)
        {
            $years = floor($member_length / 31536000);
            $member_length = $member_length - ($years * 31536000);
            $member_for .= $years > 1 ? ($years . '&nbsp;' . $user->lang['WELCOME_YEARS'] . ', ') : ($years . '&nbsp;' . $user->lang['WELCOME_YEAR'] . ', ');
        }
        $months = floor($member_length / 2628000);
        if ($months)
        {
            $months = $months > 1 ? ($months . '&nbsp;' . $user->lang['WELCOME_MONTHS'] . ', ') : ($months . '&nbsp;' . $user->lang['WELCOME_MONTHS'] . ', ');
            $member_length = $member_length - ($months * 2628000);
            $member_for .= $months;
        }
        $days = floor($member_length / 86400);
        if ($days)
        {
            $days = $days > 1 ? ($days . '&nbsp;' . $user->lang['WELCOME_DAYS']) : ($days . '&nbsp;' . $user->lang['WELCOME_DAY']);
            $member_for .= $days;
        }       
    }
}
//END Welcome Mod
// INIZIO - Topic più Visto
            $sql = "SELECT topic_id, forum_id, topic_title, topic_views FROM " . TOPICS_TABLE . " ORDER BY topic_views DESC LIMIT 0,5";
            $result = $db->sql_query($sql);

            while ($row = $db->sql_fetchrow($result))
            {
               if ($auth->acl_get('f_read', $row['forum_id']) == 1) {
                  $template->assign_block_vars('topicvisto', array(
                     'LINK'    => append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=" . $row['forum_id'] . "&t=" . $row['topic_id']),
                     'TITOLO'    => $row['topic_title'],
                     'VIEWS'    => $row['topic_views'])
                  );
               }
            }
            $db->sql_freeresult($result);
            // FINE
           
// INIZIO - Ultimi Topic -- by Sir Xiradorn           
           $sql_lasttopic = "SELECT topic_id, forum_id, topic_title, topic_time, topic_moved_id FROM ".TOPICS_TABLE."
           WHERE topic_moved_id = 0
           ORDER BY topic_time
           DESC LIMIT 0,15";
            $risultato_lasttopic = $db->sql_query($sql_lasttopic);
           
           
           $ltcount = 0;
            while ($row_lasttopic = $db->sql_fetchrow($risultato_lasttopic))
            {
              $time_lasttopic = $user->format_date($row_lasttopic['topic_time']);
             
              if ($ltcount < 5) {
                 if ($auth->acl_get('f_read', $row_lasttopic['forum_id']) == 1) {
                    $template->assign_block_vars('lasttopic', array(
                       'LASTTOPIC_LINK'      => append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=" . $row_lasttopic['forum_id'] . "&t=" . $row_lasttopic['topic_id']),
                       'LASTTOPIC_TITOLO'         => $row_lasttopic['topic_title'],
                       'LASTTOPIC_TIME'         => $time_lasttopic,
                    ));
                 }
                 $ltcount = $ltcount + 1;
              }
           }   
            $db->sql_freeresult($risultato_lasttopic);
           
// FINE           
           
// INIZIO - Top Posters -- by Sir Xiradorn           
           $sql_topposter = "SELECT user_id, username, user_posts, user_colour FROM ".USERS_TABLE." WHERE group_id != 6 AND group_id != 1 ORDER BY user_posts DESC LIMIT 0,10";
            $risultato_topposter = $db->sql_query($sql_topposter);

            while ($row_topposter = $db->sql_fetchrow($risultato_topposter))
            {
               $template->assign_block_vars('topposter', array(
               'TOPPOSTER'      => get_username_string('full', $row_topposter['user_id'], $row_topposter['username'], $row_topposter['user_colour']),
               'TOPPOSTER_NUM'      => $row_topposter['user_posts'],
               ));
            }
            $db->sql_freeresult($risultato_topposter);
// FINE            
           
// INIZIO - Last Sign Members List -- by Sir Xiradorn           
           $sql_lastusersign = "SELECT user_id, username, user_regdate, user_colour FROM ".USERS_TABLE." ORDER BY user_regdate DESC LIMIT 0,10";
            $risultato_lastusersign = $db->sql_query($sql_lastusersign);

            while ($row_lastusersign = $db->sql_fetchrow($risultato_lastusersign))
            {
               $template->assign_block_vars('lastusersign', array(
               'LASTUSERSING'      => get_username_string('full', $row_lastusersign['user_id'], $row_lastusersign['username'], $row_lastusersign['user_colour']),
               ));
            }
            $db->sql_freeresult($risultato_lastusersign);
// FINE
// INIZIO - Ultimi Topic Utente -- by Sir Xiradorn
           $sql_lastusertopic = 'SELECT topic_id, forum_id, topic_title, topic_time, topic_moved_id FROM '.TOPICS_TABLE.'
           WHERE topic_moved_id = 0 AND topic_poster = '.$user->data['user_id'].'
           ORDER BY topic_time
           DESC LIMIT 0,50';
            $risultato_lastusertopic = $db->sql_query($sql_lastusertopic);
           
           $ltucount = 0;
            while ($row_lastusertopic = $db->sql_fetchrow($risultato_lastusertopic))
            {
              $time_lastusertopic = $user->format_date($row_lastusertopic['topic_time']);
             
              if ($ltucount < 5) {
                 if ($auth->acl_get('f_read', $row_lastusertopic['forum_id']) == 1) {
                    $template->assign_block_vars('lastusertopic', array(
                       'LASTUSERTOPIC_LINK'      => append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=" . $row_lastusertopic['forum_id'] . "&t=" . $row_lastusertopic['topic_id']),
                       'LASTUSERTOPIC_TITOLO'         => $row_lastusertopic['topic_title'],
                       'LASTUSERTOPIC_TIME'          => $time_lastusertopic,
                    ));
                 }
                 $ltucount = $ltucount + 1;
              }
           }   
            $db->sql_freeresult($risultato_lastusertopic);
// FINE                        

//Begin: National_Flag
if (!empty($config['allow_flags']))
{
	if (!function_exists('top_flags'))
	{
		include($phpbb_root_path . 'includes/functions_flag.' . $phpEx);
	}
	top_flags();
}
//End: National_Flag
// Assign index specific vars
$template->assign_vars(array(
	'TOTAL_POSTS'	=> sprintf($user->lang[$l_total_post_s], $total_posts),
	'TOTAL_TOPICS'	=> sprintf($user->lang[$l_total_topic_s], $total_topics),
	'TOTAL_USERS'	=> sprintf($user->lang[$l_total_user_s], $total_users),
	'NEWEST_USER'	=> sprintf($user->lang['NEWEST_USER'], get_username_string('full', $config['newest_user_id'], $config['newest_username'], $config['newest_user_colour'])),
// BEGIN Welcome Mod   
    'S_WELCOME'                   => $s_welcome,
    'S_JOINED_DATE'               => $user->lang['JOINED'] . ':&nbsp;' . $user->format_date($user->data['user_regdate']),
    'USER_AVATAR'               => get_user_avatar($user->data['user_avatar'], $user->data['user_avatar_type'], $user->data['user_avatar_width'], $user->data['user_avatar_height']),
    'MEMBER_FOR'               => (!empty($member_for)) ? $user->lang['MEMBER_FOR'] . '&nbsp;' . $member_for : '',
   	// END Welcome Mod 
	'LEGEND'		=> $legend,
	'BIRTHDAY_LIST'	=> $birthday_list,

	'FORUM_IMG'				=> $user->img('forum_read', 'NO_UNREAD_POSTS'),
	'FORUM_UNREAD_IMG'			=> $user->img('forum_unread', 'UNREAD_POSTS'),
	'FORUM_LOCKED_IMG'		=> $user->img('forum_read_locked', 'NO_UNREAD_POSTS_LOCKED'),
	'FORUM_UNREAD_LOCKED_IMG'	=> $user->img('forum_unread_locked', 'UNREAD_POSTS_LOCKED'),

	'S_LOGIN_ACTION'			=> append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login'),
	'S_DISPLAY_BIRTHDAY_LIST'	=> ($config['load_birthdays']) ? true : false,

	'U_MARK_FORUMS'		=> ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}index.$phpEx", 'hash=' . generate_link_hash('global') . '&mark=forums') : '',
	'U_MCP'				=> ($auth->acl_get('m_') || $auth->acl_getf_global('m_')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=main&mode=front', true, $user->session_id) : '')
);


// Start DM Video
if ( isset($config['dm_video_version']) )
{
	$user->setup('mods/dm_video');

	$sql = 'SELECT COUNT(video_id) AS number_videos
	    FROM ' . DM_VIDEO_TABLE . '
	    WHERE video_approval = 1';
	$result = $db->sql_query($sql);
	$row = $db->sql_fetchrow($result);

	$sql2 = 'SELECT *
		FROM ' . DM_VIDEO_TABLE . '
		WHERE video_approval = 1
		ORDER BY video_counter DESC LIMIT 5';
	$result2 = $db->sql_query($sql2);

	while ( $row2 = $db->sql_fetchrow($result2) )
	{
		if (!$auth->acl_get('u_dm_video_view'))
		{
			$title = $row2['video_title'];
		}
		else
		{
			$title = '<a href="' . $row2['video_title'] . '" title="' . $user->lang['DMV_CLICK_SEE'] . '"><strong>' . $row2['video_title'] . '</strong></a>';
		}

		$template->assign_block_vars('videoline', array(
			'VIDEO_COUNTER' => sprintf($user->lang['DMV_VIDEO_COUNTER'], $row2['video_counter']),
			'TITEL'			=> $title,
		));
	}
	$db->sql_freeresult($result);

	$template->assign_vars(array(
		'S_VIDEO_EXIST'	=> true,
		'NUMBER_VIDEOS'	=> sprintf($user->lang['DMV_TOTAL_VIDEOS'], $row['number_videos']),
	));
}
// End DM Video
// Output page
page_header($user->lang['INDEX']);

$template->set_filenames(array(
	'body' => 'index_body.html')
);

page_footer();

?>
Avatar utente
Barrnet
Globalmod
Globalmod
Messaggi: 547
Iscritto il: 13/05/2012, 19:10
Link del Forum: https://videogamezone.eu/forum
Località: Bergamo
Contatta:

Re: Aiuto x la mod dm_video

Messaggio da Barrnet »

Questo:

Codice: Seleziona tutto

$title = '<a href="' . $row2['video_title'] . '" title="' . $user->lang['DMV_CLICK_SEE'] . '"><strong>' . $row2['video_title'] . '</strong></a>';
Sostituiscilo con:

Codice: Seleziona tutto

         $title = '<a href="dm_video/showvideo.php?v=' . $row2['video_id'] . '&c=' . $row2['video_cat_id'] . '" title="' . $user->lang['DMV_CLICK_SEE'] . '"><strong>' . $row2['video_title'] . '</strong></a>';
Rispondi