+ Reply to Thread
Results 1 to 5 of 5

Thread: Saving changes to a new DB field

  1. #1
    jayscot is offline Senior Member
    Join Date
    Oct 2007
    Posts
    101

    Default Saving changes to a new DB field

    I have created a new field in the database as part of the videos record. I have added locations in the admin edit and view screens to see the new information and to allow editing. At this point I can see the default value of zero that is stored in the database.

    Changing the info from the admin area video edit screen does not save the info as I have not yet found the correct file and line to add. I thought it was in the root/video_edit.php file but no.

    Can anyone help with what file I need to edit to specifically save new data from the admin/edit screen to the database?


    Note: I know that attempting this can ruin my DB (or yours) but that is why I have a backup. This is version 2.7.

    Tks. Dave
    My sites with vshare and mobility. (v2.7) --- DiligentHeed.com CasselmanCanada.com
    My site with vshare 2.8.1 --- ProWrestlingPlus.com


  2. #2
    vshare is offline Moderator
    Join Date
    Dec 2009
    Posts
    72

    Default

    you can edit two files

    1.admin/video_edit.php

    2.include/class.video.php

  3. #3
    jayscot is offline Senior Member
    Join Date
    Oct 2007
    Posts
    101

    Default Keeping track of previous and next video in sequence

    Quote Originally Posted by vshare View Post
    you can edit two files

    1.admin/video_edit.php

    2.include/class.video.php
    Thanks. Also another file too. After much work this turned out to be exactly what I had envisioned. I now have a system that will display Previous link or Next link in a multi-video sequence.

    It works well. Also took some time to go in and delete all those manually made links I had put in the descriptions. But that saved a lot of database space too.

    The only issue is that if vshare goes to the next upgrade I guess I am hooped as I have two extra fields in my video record. (Admin, do you want the code and info?)

    For the rest of you, I will likely put together an instruction package after the busy summer so you can make similar mods to your system. For now the site is not one of the ones in my sig line so you won't see the features there.
    My sites with vshare and mobility. (v2.7) --- DiligentHeed.com CasselmanCanada.com
    My site with vshare 2.8.1 --- ProWrestlingPlus.com


  4. #4
    hostonnet is offline Super Moderator
    Join Date
    Sep 2007
    Posts
    881

    Default

    Which site you have this added ?
    vShare Hosting, vShare Installation, Server Setup, Lighttpd streaming, vShare Templates
    install@hostonnet.com

  5. #5
    jayscot is offline Senior Member
    Join Date
    Oct 2007
    Posts
    101

    Default Previous and Next videos

    Quote Originally Posted by hostonnet View Post
    Which site you have this added ?
    DiligentHeed.com - Videos about Godly diligence- English and Cree

    Most videos have 2 or 3 segments.
    My sites with vshare and mobility. (v2.7) --- DiligentHeed.com CasselmanCanada.com
    My site with vshare 2.8.1 --- ProWrestlingPlus.com


+ Reply to Thread

Tags for this Thread

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