スポンサーサイト

  • 2013.06.14 Friday

一定期間更新がないため広告を表示しています

  • 0
    • -
    • -
    • -

    myalbumP 評価を非表示、投票時も評価を選択しない

    • 2005.12.28 Wednesday
    • 06:51
    myalbumP 評価を非表示、投票時も評価を選択しない(10のみにして評価を非表示)

    以下、myAlbum-P 2.84でのハックとなります。

    include/draw_functions.php

    94行

    $info_votes = number_format( $rating , 2 )." ($votestring)";

    $info_votes = "($votestring)";

    96行

    $info_votes = '0.00 ('.sprintf( _ALBM_NUMVOTES , 0 ) . ')' ;

    $info_votes = '('.sprintf( _ALBM_NUMVOTES , 0 ) . ')' ;


    ratephoto.php

    24行
    $rating = intval( $_POST['rating'] ) ;

    $rating = 10 ;

    テンプレートの編集

    myalbum_photo.html

    <{* RANK & RATING *}>
    <{if $canrateview}>
    <{if $photo.rating > 0}>
    <img src='<{$mod_url}>/images/rank<{$photo.rank}>.gif' alt='<{$photo.rating}>' title='<{$photo.rating}>' border='0' /><{$photo.info_votes}>
    <{else}>
    <img src='<{$mod_url}>/images/rank_none.gif' alt='<{$photo.info_votes}>' title='<{$photo.info_votes}>' border='0' /><{$photo.info_votes}>
    <{/if}>
    <{/if}>



    <{* RANK & RATING *}>
    <{if $canrateview}>
    <{if $photo.rating > 0}>
    <{$photo.info_votes}>
    <{else}>
    <{$photo.info_votes}>
    <{/if}>
    <{/if}>   

    myalbum_photo_in_list.html

    <{* RANK & RATING *}>
    <{if $canrateview}>
    <{if $photo.rating > 0}>
    <img src='<{$mod_url}>/images/rank<{$photo.rank}>.gif' alt='<{$photo.rating}>' title='<{$photo.rating}>' border='0' /><{$photo.info_votes}>
    <{else}>
    <img src='<{$mod_url}>/images/rank_none.gif' alt='<{$photo.info_votes}>' title='<{$photo.info_votes}>' border='0' /><{$photo.info_votes}>
    <{/if}>
    <{/if}>



    <{* RANK & RATING *}>
    <{if $canrateview}>
    <{if $photo.rating > 0}>
    <{$photo.info_votes}>
    <{else}>
    <{$photo.info_votes}>
    <{/if}>
    <{/if}>   


    myalbum_viewcat_list.html

    <{if $canrateview }>
    <{$lang_rating}> (<a href="viewcat.php?cid=<{$category_id}>&uid=<{$uid}>&orderby=ratingA"><img src="images/up.gif" border="0" align="middle" alt="" /></a><a href="viewcat.php?cid=<{$category_id}>&uid=<{$uid}>&orderby=ratingD"><img src="images/down.gif" border="0" align="middle" alt="" /></a>) 
    <{/if}>

    削除


    myalbum_ratephoto.html

    <select name="rating">
    <option>--</option>
    <option>10</option>
    <

    「o.d.m.」 リストWatch

    • 2005.12.26 Monday
    • 21:12

    香港発のリストwatchブランド「o.d.n.

    「o.d.n.」とは(original)、(dynamic)、(minimal) から。。

    ハイセンスかつ多機能でありながら、とってもリーズナブル。

    2004年のグッドデザイン賞を受賞している「DD99」シリーズの「カムフラージュ」ラインナップはpopな外観、coolなメッセージ、simpleな機能。

    「o.d.n.」は代官山のセレクトショップなどで購入が可能。

    「プルーフ・オブ・マイ・ライフ」

    • 2005.12.18 Sunday
    • 12:13

    2006年1月14日(土)よりロードショーされる「プルーフ・オブ・マイ・ライフ

    アカデミー賞7部門受賞の名作「恋におちたシェイクスピア」のジョン・マッデン監督と主演グウィネス・パルトロワのコンビが再び贈る感動の物語。

    ヒロインが天才的数学者・・・と聞いて、「ビューティフル・マインド」を思い出したが、「ビューティフル・マインド」が実話に対し、「プルーフ・オブ・マイ・ライフ」は舞台を映画化。

    定理と人生を掛け合わせて果たして解答へと導くことができるのだろうか。

    アインシュタイン没後50年にわかに数学ブームの昨今。
    仕事力がつく!数学アタマのつくり方
    仕事力がつく!数学アタマのつくり方
    和田 秀樹

    座右の銘 ビジネス編

    • 2005.12.17 Saturday
    • 09:00
    一般社員は「自分でやるべきことを見つける」ということはできないので、各社員に対して、1) 能力に見合った 2) 収益につながる 3) 成果を判断しやすい 4) 飽きの来ない 仕事を、5) 途切れなく 与えなければなりません。
    from kitagawaWorkStyle

    ジョン・マッケンローの名言

    • 2005.12.16 Friday
    • 21:34
    The important thing is to learn a lesson every time you lose.
    Life is a learning process and you have to try to learn what's
    best for you.
    Let me tell you, life is not fun when you're banging your head
    against A brick wall all the time.

    大切な事は、負けるたびに教訓を得ること.人生は一つの学習過程なん
    だから、自分にとって何がベストかそこから学び取ろうとしなきゃ.
    いいかい、壁に 向かって頭を打ちつけているだけじゃ、人生楽しくないよ.
    John (Patrick Jr) McEnroe (1959-)

    米国出身。
    ウインブルドンを3回制し、世界ランキングNo.1に君臨した名テニスプレーヤー

    変幻自在のサーブアンドボレー、天才的なボールタッチを武器に活躍。
    審判に対する暴言でも有名。

    当時はマッケンローのマネをしてラケットはMAX200G、ウェアはタッキーニ、ガットのテンションは35ポンドというローテンションにして、あのいかにも腰に悪そうなクローズドスタンスからのサーブ&ボレーのマネをしたものだ。

    ユーザがコメントを削除

    • 2005.12.03 Saturday
    • 23:11
    ユーザがコメントを削除

    コメント機能でコメントを削除できるのはadminのみ
    そこでユーザも自分のコメントを削除できるようにしてみた。

    include/comment_delete.php

    98~107行をコメントアウト
    if (false != $accesserror) {
    $ref = xoops_getenv('HTTP_REFERER');
    if ($ref != '') {
    redirect_header($ref, 2, _NOPERM);
    } else {
    redirect_header($redirect_page.'?'.$comment_config['itemName'].'='.intval($com_itemid), 2, _NOPERM);
    }
    exit();
    }



    /*
    if (false != $accesserror) {
    $ref = xoops_getenv('HTTP_REFERER');
    if ($ref != '') {
    redirect_header($ref, 2, _NOPERM);
    } else {
    redirect_header($redirect_page.'?'.$comment_config['itemName'].'='.intval($com_itemid), 2, _NOPERM);
    }
    exit();
    }
    */

    modules/system/templates/system_comment.html
    23~29行を変更

    <td class="even"></td>

    <{if $xoops_iscommentadmin == true}>

    <td class="even" align="right">
    <a href="<{$editcomment_link}>&com_id=<{$comment.id}>"><img src="<{$xoops_url}>/images/icons/edit.gif" alt="<{$lang_edit}>" /></a><a href="<{$deletecomment_link}>&com_id=<{$comment.id}>"><img src="<{$xoops_url}>/images/icons/delete.gif" alt="<{$lang_delete}>" /></a><a href="<{$replycomment_link}>&com_id=<{$comment.id}>"><img src="<{$xoops_url}>/images/icons/reply.gif" alt="<{$lang_reply}>" /></a>
    </td>



    <td class="even"></td>

    <{if $xoops_isuser == true && $xoops_userid == $comment.poster.id}>

    <td class="even" align="right">
    <a href="<{$editcomment_link}>&com_id=<{$comment.id}>"><img src="<{$xoops_url}>/images/icons/edit.gif" alt="<{$lang_edit}>" /></a><a href="<{$deletecomment_link}>&com_id=<{$comment.id}>"><img src="<{$xoops_url}>/images/icons/delete.gif" alt="<{$lang_delete}>" /></a><a href="<{$replycomment_link}>&com_id=<{$comment.id}>"><img src="<{$xoops_url}>/images/icons/reply.gif" alt="<{$lang_reply}>" /></a>
    </td>

    ハックは自己責任にて行ってください。
    ハックに関する質問にはお答えできませんのであらかじめご了承ください。

    PR

    calendar

    S M T W T F S
        123
    45678910
    11121314151617
    18192021222324
    25262728293031
    << December 2005 >>

    selected entries

    categories

    archives

    recent comment

    recent trackback

    recommend

    recommend

    recommend

    読めばテニスが強くなる―ウイニング・アグリー
    読めばテニスが強くなる―ウイニング・アグリー (JUGEMレビュー »)
    ブラッド・ギルバート, スティーブ・ジェイミソン, 宮城 淳

    recommend

    recommend

    recommend

    links

    profile

    search this site.

    others

    mobile

    qrcode

    powered

    無料ブログ作成サービス JUGEM