Results 1 to 6 of 6

Thread: ad just html code
      
   

  1. #1
    bannacom's Avatar
    bannacom is offline Sergeant
    Join Date
    Jun 2006
    Posts
    26

    Arrow ad just html code

    Hi ,
    this is what bluevoda created
    Code:
    // -->
    </SCRIPT>
    <STYLE type="text/css">
    a.oldtorank:link {color: #800000;text-decoration: none;}
    a.oldtorank:visited {color: #800000;text-decoration: none;}
    a.oldtorank:active {color: #800000;text-decoration: none;}
    a.oldtorank:hover {color: #00FF00;text-decoration: underline;}
    a.dadasfx:link {color: #FF8000;text-decoration: none;}
    a.dadasfx:visited {color: #FF8000;text-decoration: none;}
    a.dadasfx:active {color: #FF0000;text-decoration: none;}
    a.dadasfx:hover {color: #FF8000;text-decoration: underline;}
    a.contact:link {color: #808080;font-style: italic;text-decoration: none;}
    a.contact:visited {color: #808080;font-style: italic;text-decoration: none;}
    a.contact:active {color: #FF0000;font-style: italic;text-decoration: none;}
    a.contact:hover {color: #808080;font-weight: bold;font-style: italic;text-decoration: none;}
    a.forum:link {color: #808080;font-style: italic;text-decoration: none;}
    a.forum:visited {color: #808080;text-decoration: none;}
    a.forum:active {color: #FF0000;font-style: italic;text-decoration: none;}
    a.forum:hover {color: #808080;font-weight: bold;font-style: italic;text-decoration: none;}
    </STYLE>
    And this is what I need
    Code:
    // -->
    </SCRIPT>
    <STYLE type="text/css">
    a.oldtorank:link {color: #800000;text-decoration: none;}
    a.oldtorank:visited {color: #800000;text-decoration: none;}
    a.oldtorank:active {color: #800000;text-decoration: none;}
    a.oldtorank:hover {color: #00FF00;text-decoration: underline;}
    a.dadasfx:link {color: #FF8000;text-decoration: none;}
    a.dadasfx:visited {color: #FF8000;text-decoration: none;}
    a.dadasfx:active {color: #FF0000;text-decoration: none;}
    a.dadasfx:hover {color: #FF8000;text-decoration: underline;}
    a.contact:link {color: #808080;text-decoration: none;}
    a.contact:visited {color: #808080;text-decoration: none;}
    a.contact:active {color: #FF0000;text-decoration: none;}
    a.contact:hover {color: #808080;font-weight: bold;font-style: italic;text-decoration: none;}
    a.forum:link {color: #808080; text-decoration: none; font-size:11px; font-style: italic;}
    a.forum:visited {color: #808080; text-decoration: none; font-size:11px; font-style: italic;}
    a.forum:active {color: #FF0000; text-decoration: none; font-size:11px; font-style: italic;}
    a.forum:hover {color: #808080; text-decoration: none; font-size:11px; font-style: italic; font-weight: bold;  }
    </STYLE>
    How ???? HEPL PLS

  2. #2
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: ad just html code

    That hardly explains what you are doing or attempting to do. For instance-
    Is this a navigation bar, menu, - what?

    You say BV created "X" and you need "Z". What differences are causing you problems?

    Is this something you downloaded? Are you adding if via an HTML Box?

    Please explain what you are trying to do. Give us a URL if it is published to look at.

    Andy
    PHP- is a blast!

  3. #3
    Bethers's Avatar
    Bethers is offline Major General & Forum Moderator
    Join Date
    Feb 2006
    Posts
    5,232

    Default Re: ad just html code

    I agree with Andy - but it looks to me like you simply made selections that didn't give you what you want.

  4. #4
    bannacom's Avatar
    bannacom is offline Sergeant
    Join Date
    Jun 2006
    Posts
    26

    Default Re: ad just html code

    This is how it shall look like (left down) bud this is not 100% BV code. this reading from MYSQL forum last threads. sorry my bad english

  5. #5
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: ad just html code

    It would appear that to make it work- you need to take that menu script and paste it into a HTML box. There you can modify it - put in your own titles.

    At least- that is my understanding of your problem.

    Andy
    PHP- is a blast!

  6. #6
    bannacom's Avatar
    bannacom is offline Sergeant
    Join Date
    Jun 2006
    Posts
    26

    Default Re: ad just html code

    that exactly I did paste script in html box
    Code:
    <?php
    include("./forum/config.php");
    $sqlconnect = mysql_connect($dbhost, $dbuser, $dbpasswd);
    $sqlselect = mysql_select_db($dbname);
    
    $fltNrTopics = 8; //pocet posledních príspevku
    $sql = "SELECT phpbb_posts.forum_id AS forum_id, phpbb_posts.topic_id AS topic_id, phpbb_topics.topic_title AS topic_title "
                    ."FROM phpbb_posts, phpbb_topics "
                    ."WHERE (phpbb_posts.topic_id = phpbb_topics.topic_id) "
                    ."ORDER BY phpbb_posts.post_time DESC LIMIT ".max($fltNrTopics*2,10);
      $result = mysql_query($sql);
      $Topic_IDs_Used = array();
      $Topics_Printed = 0;
      while ( ($row = mysql_fetch_array($result,MYSQL_ASSOC)) && ($Topics_Printed < $fltNrTopics) ){
        $forum_id = $row['forum_id'];
        $topic_id = $row['topic_id'];
        $topic_title = $row['topic_title'];
        if (!in_array($topic_id,$Topic_IDs_Used)) {
          $Topics_Printed = array_push($Topic_IDs_Used,$topic_id);
          //Nyní máme název a id tématu serazených podle data
          //Autorizace pro ctení(nezobrazení príspevku z uavrených sekcí)
          $sql_auth = "SELECT auth_view, auth_read FROM phpbb_forums WHERE forum_id='$forum_id'";
          $result_auth = mysql_query($sql_auth);
          $row_auth = mysql_fetch_array($result_auth,MYSQL_ASSOC);
          $auth_view = $row_auth['auth_view'];
          $auth_read = $row_auth['auth_read'];
          if (($auth_view < 2) OR ($auth_read < 2)) {
            $content .= '&nbsp;<a href="forum/viewtopic.php?t='.$topic_id.'" class="forum">'.$topic_title.'</a><br>';
          }
        }
      }
    echo $content;
    ?>
    But this text is too big and I need to make it maller. just like word "contact" (left down) that's why i need adjust the code

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49