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

Thread: I am back with some questions

  1. #16
    Join Date
    Mar 2008
    Posts
    127

    Default

    Quote Originally Posted by Bruceper View Post
    There's nothing to know really, as I had given you the answer on exactly how to do it. You would replace the <%$description%> with the code I posted.

    Also as a note, that is smarty code, which is yet another different language.
    That must just truncate the input internally. Providing I placed it in the proper file as it had no effect on the number of characters which can be entered in the form.

    Hmmmmm, I am used to smarty tags being delimited by {}.

    In add_form.html
    Code:
            <%if $description_is_visible%>
            <div>
              <label><%t%>Description<%/t%></label>
              <textarea name="description"><%$description|truncate:300%></textarea>
            </div>
            <%/if%>
    While it is not a good way there is always the brute force method
    Code:
    <span><input type="text" name="title" value="<%$title%>" maxlength="35" /></span>
    Yes, I have a lot of questions but there are IMO good reasons. I have some not normal and every day things I want to do so it just seems reasonable to know how much work will be involved PLUS I have wasted good money by buying software without enough investigation.

    P.S.
    Yes, the 1.x.xx does seem to be a quantum leap forward.
    Last edited by Harkster; 04-05-2009 at 01:15 AM.

  2. #17
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    It doesn't trunate it internally it only trunates the output. To truncate the input you would need to use javascript to limit the input on the textarea.

    Smarty tags can be delimited by almost anything that the programmer chooses. I think the default if {} but Dody choose <> instead.

  3. #18
    Join Date
    Mar 2008
    Posts
    127

    Default

    Quote Originally Posted by FSGDAG View Post
    If you look on NiceCoder's blog, there is a free utility that the programmers made to convert other directory links and cats into IndexU. I've used it before and it works well
    I can't get it to work:


    Warning: mysql_num_fields(): supplied argument is not a valid MySQL result resource in /home/puxxnet/public_html/idbc/match.php on line 96

    and then after filling out the field matches:

    Table 'puxxnet_ska.Unavailable' doesn't exist (add to database) and create csv file:


    Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/puxxnet/public_html/idbc/proses.php on line 119

    Warning: Cannot modify header information - headers already sent by (output started at /home/puxxnet/public_html/idbc/proses.php:119) in /home/puxxnet/public_html/idbc/proses.php on line 129

    Warning: Cannot modify header information - headers already sent by (output started at /home/puxxnet/public_html/idbc/proses.php:119) in /home/puxxnet/public_html/idbc/proses.php on line 130

    Warning: Cannot modify header information - headers already sent by (output started at /home/puxxnet/public_html/idbc/proses.php:119) in /home/puxxnet/public_html/idbc/proses.php on line 131

    Warning: Cannot modify header information - headers already sent by (output started at /home/puxxnet/public_html/idbc/proses.php:119) in /home/puxxnet/public_html/idbc/proses.php on line 132

    Warning: Cannot modify header information - headers already sent by (output started at /home/puxxnet/public_html/idbc/proses.php:119) in /home/puxxnet/public_html/idbc/proses.php on line 133

    Warning: Cannot modify header information - headers already sent by (output started at /home/puxxnet/public_html/idbc/proses.php:119) in /home/puxxnet/public_html/idbc/proses.php on line 136

    Guess will have to write my own.

  4. #19
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Warning: mysql_num_fields

    That means the number of fields it is searching for isn't correct. Something with one of the databases is causing this error.

  5. #20
    Join Date
    Mar 2008
    Posts
    127

    Default

    Quote Originally Posted by Bruceper View Post
    Warning: mysql_num_fields

    That means the number of fields it is searching for isn't correct. Something with one of the databases is causing this error.
    Will recheck the instructions.

    I am just about to send you a PM on what I will be buying.

  6. #21
    Join Date
    Mar 2008
    Posts
    127

    Default Wow!!!

    I may get lashes with wet noodle since I made my purchase yesterday but didn't want to figure out where to do it.

    I have managed to (I think as much as possible) to convert a Skalinks run directory to Indexu by dumping fields as a csv, loading into spreadsheet, building fields, creating another csv and importing using Indexu functionality. Interesting thing is using phpMyAdmin was a no go.

    There are a few issues like an added date of Dec. 31, 1969 and visit links don't go to the site to name a couple. Not bad for an evenings work, I am impressed.

  7. #22
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    You have to fix those dates or Google will seriously complain about them. Even if you do a search and replace and use 2009-01-01 as a date it's fine.

    As for the custom fields, they are not simply located in one table, they are in three. So if you add a custom field in phpmyadmin in idx_custom_field then it simply won't work. It's a lot easier for most users to just add them in the admin area.

  8. #23
    Join Date
    Mar 2008
    Posts
    127

    Default

    Quote Originally Posted by Bruceper View Post
    You have to fix those dates or Google will seriously complain about them. Even if you do a search and replace and use 2009-01-01 as a date it's fine.

    As for the custom fields, they are not simply located in one table, they are in three. So if you add a custom field in phpmyadmin in idx_custom_field then it simply won't work. It's a lot easier for most users to just add them in the admin area.
    What table/field is that date in or is it because the link date is 00-00-00... Figured out the bad links issue - quoted strings in the import file.

    Found a fix. Add a date to the date field instead of importing with the default.
    Last edited by Harkster; 04-08-2009 at 01:44 AM. Reason: Found solution

  9. #24
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    The date is in two fields actually, both in idx_link. One is date and the other is last_updated

  10. #25
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    last_updated is the one that normally gets it... I have no idea if nakos fixed it yet or not. Because find/replace isn't working in the admin panel ( atleast it wasn't as of 1.3.1 - hasn't tried 1.3.2 yet ) you might have to do this from phpMyAdmin.

    Here is the query you want to run :

    update idx_link set last_updated = replace(last_updated,'0000-00-00 00:00:00','2009-04-09 12:00:00');

    Here is it broken down:

    update <table> set <category> = replace(<category>,'<what_to_find>','<what_to_repl ace>');

    Let me know if you have any problems
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

Similar Threads

  1. SVN back online
    By Bruceper in forum Announcements
    Replies: 0
    Last Post: 03-19-2009, 10:43 PM
  2. Back from the dead!
    By Bruceper in forum Customers Lounge
    Replies: 3
    Last Post: 12-12-2008, 07:38 PM
  3. Back Link
    By CEC in forum Blocks and Modification
    Replies: 6
    Last Post: 12-05-2006, 02:17 AM
  4. How Do i Back Up IndexU
    By andmunn in forum v5.x
    Replies: 5
    Last Post: 02-13-2005, 10:11 PM
  5. [OOT] I'm back.
    By dody in forum v5.x
    Replies: 4
    Last Post: 01-31-2005, 12:22 AM

Posting Permissions

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