Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Narys įkėlė dainų
Parašė Andriullis· 2012 Rugp. 1 20:08:12
#1
Kaip padaryti kad paspaudus ant profilio rodytų kiek narys įdėjo dainų?
Parašė edgaras-v· 2012 Rugp. 29 18:08:55
#2
Paieškok modų saite, tikrai žinau yra, nes ant savo seno tinklapio naudojau, tik su siuntiniais. Bet žodžius pasikeisti gi gali ;]
Parašė ewl· 2012 Rugp. 29 19:08:59
#3
Jau nereikia, nes kuria filmų svetaine.
Parašė Maksas· 2012 Rugp. 29 20:08:41
#5
Tau pavyzdys:
1.Susikurk
trys php filus,pavyzdžiui
user_song_include.php ,
user_song_include_var.php ir
user_song.php.
2.Į
user_song_include.php įrašai kaip pavyzdys:
<?php
/*-------------------------------------------------------+
| <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| <a href='http://www.php-fusion.co.uk/' target='_blank'><span style='color:005C5B'>http://www.php-fusion.co.uk/</span></a>
+--------------------------------------------------------+
| Filename: user_posts_stats_include.php
| Author and Developer: Maksas
| Site: <a href='http://modai.webdnd.com/' target='_blank'><span style='color:005C5B'>http://modai.webdnd.com/</span></a>
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at <a href='http://www.gnu.org/licenses/agpl.html.' target='_blank'><span style='color:005C5B'>www.gnu.org/licenses/agpl.html.</span></a> Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
if ($profile_method == "input") {
//Nothing here
} elseif ($profile_method == "display") {
echo "<tr>\n";// Displaying of Song
echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['song']."</td>\n";
echo "<td align='right' class='tbl1'>".number_format(dbcount("(download_id)", DB_DOWNLOADS, "download_user='".$user_data['user_id']."'"))."</td>\n";
echo "</tr>\n";
} elseif ($profile_method == "validate_insert") {
//Nothing here
} elseif ($profile_method == "validate_update") {
//Nothing here
}
?>
3.Į
user_song_include_var.php įrašai kaip pavyzdys, šį kodą:
<?php
/*-------------------------------------------------------+
| <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion Content Management System
| Copyright © 2002 - 2012 Nick Jones
| <a href='http://www.php-fusion.co.uk/' target='_blank'><span style='color:005C5B'>http://www.php-fusion.co.uk/</span></a>
+--------------------------------------------------------+
| Filename: user_points_include_var.php
| Version: 1.0.0
| Release Date: 15/02/2012
| Last Update Date: --/--/----
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at <a href='http://www.gnu.org/licenses/agpl.html.' target='_blank'><span style='color:005C5B'>www.gnu.org/licenses/agpl.html.</span></a> Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
$user_field_api_version = "1.01.00";
$user_field_name = $locale['song_title'];
$user_field_desc = $locale['song_desc'];
$user_field_dbname = "user_song";
$user_field_group = 4;
$user_field_dbinfo = "";
?>
Sutvarkęs šios du failus keliame į
includes/user_fields/ papke.
4.Jei kalbos pavadinimus rašysi į šios du failus,tai įkelk tuščią
user_song.php į
Lithuanian/user_fields,jei pagal standartą įrašai į šį failą atitinkamai.
Manau suprasi pagal šį pavyzdį.
Parašė Andy· 2012 Rugs. 12 21:09:24
#6
Profilyje rodo tik skaičiuką prie jo nėra užrašo Įkelta dainų.
$user_field_name = $locale['song_title'];
$user_field_desc = $locale['song_desc'];
kažkokios eilutės trūksta :/
Parašė PreFix· 2012 Rugs. 13 15:09:34
#7
".$locale['song']." šito trūksta.
Parašė Andy· 2012 Rugs. 13 22:09:42
#8
vistiek zodis song nepataiko į statistikos bloką o rašo virš jo :(
Parašė PreFix· 2012 Rugs. 13 22:09:30
#9
echo "<td width='1%' class='tbl1' style='white-space:nowrap'>".$locale['song']."</td>\n";
Nu kad čia viskas gerai pamėgink pavadinti tą locale $locale['song'] = "Įkelta dainų: "; Ir šita dalyką reik įrašyti į user_song_include.php failą iškart po Display.
Redagavo PreFix· 2012 Rugs. 13 22:09:05