Results 1 to 10 of 13

Thread: URL field (easy one)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default

    view_viedo.php
    Code:
    $result = mysql_query("SELECT * FROM video WHERE VID='".$video_id."' and approve ='1'")or die(mysql_error());
    $row = mysql_fetch_array( $result );
        
    
    //**display wesite in video details**//
    $result4 = mysql_query("SELECT UID,username,website FROM signup WHERE UID='".$row['UID']."'")or die(mysql_error());
    $row4 = mysql_fetch_array( $result4 );
    $smarty->assign('user_website', $row4['website'] );

    view_video.tpl
    Code:
    Website:   {if $user_website ne ""}<a href="{$user_website}" target="_blank">{$user_website}</a>
        {else}
    No Website Listed{/if}

  2. #2

    Default

    will try thanks a lot

  3. #3

    Default

    Hm one more thing.. i need a field on the upload page where the submitter enters his url.. thanks

  4. #4

    Default

    Theres already one installed in user edit an admin option to request website on signup.

    user_profile.php

  5. #5

    Default

    But the user should enter a different url for every video he submits.. thanks

  6. #6

    Default

    I cant see that happening. Users having 2 or more websites

    If u want to add affiliate links youll have to create another column store thier urls there

  7. #7

    Default

    Yes i need affiliate links exactly :) And i know that there is some addon to the database, but for sure it can be done

Bookmarks

Posting Permissions

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