Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Cutenews?

  1. #11
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Show code

  2. #12
    Join Date
    Oct 2006
    Location
    Scotland
    Posts
    224
    Tokens
    471
    Habbo
    .-Richie-.

    Default

    This is some of it were the address is:


    if(isset($start_from) and $start_from != ""){
    if($i < $start_from){ $i++; continue; }
    elseif($showed == $number){ break; }
    }

    if($my_names[$news_arr[1]]){ $my_author = $my_names[$news_arr[1]]; }
    else{ $my_author = $news_arr[1]; }

    $output = $template_active;
    $output = str_replace("{title}", $news_arr[2], $output);
    $output = str_replace("{author}", $my_author, $output);
    if($news_arr[5] != ""){$output = str_replace("{avatar}", "<img alt=\"\" src=\"$news_arr[5]\" style=\"border: none;\" />", $output); }
    else{ $output = str_replace("{avatar}", "", $output); }
    $output = str_replace("{avatar-url}", "$news_arr[5]", $output);
    $output = str_replace("[link]","<a href=\"$PHP_SELF?subaction=showfull&amp;id=$news_a rr[0]&amp;archive=$archive&amp;start_from=$my_start_fro m&amp;ucat=$news_arr[6]&amp;$user_query\">", $output);
    $output = str_replace("[/link]","</a>", $output);
    $output = str_replace("{comments-num}", countComments($news_arr[0], $archive), $output);
    $output = str_replace("{short-story}", $news_arr[3], $output);
    $output = str_replace("{full-story}", $news_arr[4], $output);
    $output = str_replace("{category}", catid2name($news_arr[6]), $output);
    $output = str_replace("{category-id}", $news_arr[6], $output);
    if($cat_icon[$news_arr[6]] != ""){ $output = str_replace("{category-icon}", "<img alt=\"".$cat[$news_arr[6]]." icon\" style=\"border: none;\" src=\"".$cat_icon[$news_arr[6]]."\" />", $output); }
    else{ $output = str_replace("{category-icon}", "", $output); }

    $output = str_replace("{author-name}", $name_to_nick[$news_arr[1]], $output);

  3. #13
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    that doesnt even have target="" in it?

  4. #14
    Join Date
    Oct 2006
    Location
    Scotland
    Posts
    224
    Tokens
    471
    Habbo
    .-Richie-.

    Default

    I know I took it out it was giving me errors.

  5. #15
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Code:
    if(isset($start_from) and $start_from != ""){
    if($i < $start_from){ $i++; continue; }
    elseif($showed == $number){ break; }
    }
    
    if($my_names[$news_arr[1]]){ $my_author = $my_names[$news_arr[1]]; }
    else{ $my_author = $news_arr[1]; }
    
    $output = $template_active;
    $output = str_replace("{title}", $news_arr[2], $output);
    $output = str_replace("{author}", $my_author, $output);
    if($news_arr[5] != ""){$output = str_replace("{avatar}", "<img alt=\"\" src=\"$news_arr[5]\" style=\"border: none;\" />", $output); }
    else{ $output = str_replace("{avatar}", "", $output); }
    $output = str_replace("{avatar-url}", "$news_arr[5]", $output);
    $output = str_replace("[link]","<a href=\"$PHP_SELF?subaction=showfull&amp;id=$news_a rr[0]&amp;archive=$archive&amp;start_from=$my_start_fro m&amp;ucat=$news_arr[6]&amp;$user_query\" target=\"iframename\" />", $output);
    $output = str_replace("[/link]","</a>", $output);
    $output = str_replace("{comments-num}", countComments($news_arr[0], $archive), $output);
    $output = str_replace("{short-story}", $news_arr[3], $output);
    $output = str_replace("{full-story}", $news_arr[4], $output);
    $output = str_replace("{category}", catid2name($news_arr[6]), $output);
    $output = str_replace("{category-id}", $news_arr[6], $output);
    if($cat_icon[$news_arr[6]] != ""){ $output = str_replace("{category-icon}", "<img alt=\"".$cat[$news_arr[6]]." icon\" style=\"border: none;\" src=\"".$cat_icon[$news_arr[6]]."\" />", $output); }
    else{ $output = str_replace("{category-icon}", "", $output); }
    
    $output = str_replace("{author-name}", $name_to_nick[$news_arr[1]], $output);
    Change to that altering the iframename

  6. #16
    Join Date
    Oct 2006
    Location
    Scotland
    Posts
    224
    Tokens
    471
    Habbo
    .-Richie-.

    Default

    When I click read more it does not do anything and when I turn the open news in new window on cutenews it opens in new window :S

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •