phpWebLog - web news management with adolescent sexist humor
find
story index | search | archive | submit story | downloads | stats | contact
Topics
  • General (909)
  • Announcements (20)
  • Development (518)
  • Mods & Hacks (32)


  • phpWebLog
  • Latest Release - 0.5.3 (BETA)
  • Latest Stable - 0.5.2
  • ChangeLog
  • TODO / Roadmap
  • BUGS

    CVS WEB

  • New XL fork 0.5.2
  • Unstable branch 0.5.3

  • For development discussions and for general support, join the phpWebLog mailing list

    phpWebLog needs active developers to help fix bugs. If you are interested, send me your SourceForge login information for CVS access.


    Last 5 Comments
  • smileys (Nekrataal)
  • smileys (reinhard)
  • Where can I modify the style of bottom navigation? (11)
  • Where can I modify the style of bottom navigation? (Ken Farmer)
  • Great News for PHP Programmers.... (Nekrataal)


  • Hacks to enable automatic links in stories - General
    Posted by Patrick (Monday November 12 2001 @ 03:39AM EST) views: 256
    Hi all,

    I don't know if somebody already found that problem in the 0.5.3 release but I think I at least found how to fix it.
    There is a problem when typing links in stories without ... , the link is not recognized automatically and it is quite inconvenient for people that doesn't know anything about HTML coding.

    Here is the hack :
    In include/parser.inc.php there is a function called F_inLine() that is never called from anywhere and that should do the job. I've added the call of this function in the function F_parseContent() in the case "auto" statement just before the return statement.
    It's a simple hack but it works fine ;)

    case "auto":
    default:
    $output = F_inLine($output);
    return nl2br(strip_tags($output,$G_HTML));
    break;

    Extra : I've also added target="_blank" in F_inLine() at line 56 in the generated link for more convenience when navigating.

    < How to display the views (hits) in each story? | How to use a counter in PWL? >

    By boris (Friday February 28 2003 @ 07:31AM EST)
    i was looking for that hack. works great. thanks.
    [ reply | parent ]
    Post a Comment
    Name:
    Email:
    URL:
      Remember my information (uses cookies)
      I would rather be anonymous
    Comment:
    * Your email will not be made public.
    Save As:
    SourceForge
    SourceForge is providing us a mailing list , documentation and a CVS tree.

    SourceForge Logo


    PHP.net
  • PHP 4.3.4RC1 released
  • php|cruise: The World's First Ever PHP-only Cruise
  • PHP Usage Survey Results
  • PHP Manual CHM Edition - 12th build
  • International PHP Conference 2003 program online
  • Server Central Donates Server
  • European Open Source Development Threatened!
  • php{con west is announced
  • PHP 4.3.3 released!
  • Active Awards 2003 Winners


  • PHPBuilder
  • On User-Defined Timezones in PHP
  • Dreamweaver MX 2004
  • Using PEAR's HTML_Table Class
  • An introduction to the ADOdb class library, Part 2
  • An introduction to the ADOdb class library for PHP
  • Manually Expiring Web Pages
  • Regression Testing With JMeter
  • Advanced Image Editing Under the GD Library
  • The Benefits of Using Objects with Databases
  • Interfacing with COM objects under Windows


  • phpWebLog: A PHP News and Content Management System
    Copyright (C) 2000-2002, Jason Hines / Eye Integrated Communications