phpWebLog

find
story index | search | archive | submit story | downloads | stats | contact
Topics
  • General (894)
  • Announcements (20)
  • Development (516)
  • Mods & Hacks (28)


  • 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
  • IP blocking? (Jordi)
  • Chaging the Time Zone in phpWebLog (Beth)
  • Last 5 comments box (Chris DuBack)
  • Database has dissapeared (Calvin :))
  • Bug fix for header.inc (calvin)


  • adding a picture
    Posted under Development by esoteric on Monday June 11 2001 @ 11:20PM EDT

    Development Can someone explain how I can make picture link to "$comment"? Much like the "$logo".

    which file would this information be stored?

    *.inc.php

    ________
    esoteric



    Related Link


    < Sudden Error | I think I found a Bug >

    jason writes on Tuesday June 12 2001 @ 06:01PM EDT: [ reply | parent ]
    The template variables are defined in layout.inc.php. I hope that's what you meant. ??
    esoteric writes on Tuesday June 12 2001 @ 07:02PM EDT: [ reply | parent ]
    actually what I need to do is change the "read more -- comment" to this "http://www.projectedoutcome.net/images/comment.gif"

    Do you know how I can do this? I tried the summary.tmpl, no luck, then I just tried to look in the layout.inc.php this is whay I found:

    $ncmts = F_count("T_Comments","TopRid",$A["Rid"]);
    $vcmts = $ncmts > 1 ? _COMMENTS : _COMMENT;
    if ($ncmts>0) {
    $tmp = "(" . $ncmts . " " . $vcmts . ")";
    } else {
    $tmp = "-- " . _COMMENT;
    }
    if ($CONF["Comments"]>0) {
    $comments = sprintf("" . _READMORE . " %s\n",$G_URL,$A["Rid"],$tmp);
    } else {
    $comments = sprintf("" . _READMORE . "\n",$G_URL,$A["Rid"]);
    }
    $modified = F_lastModified($A["Rid"]);
    $views = _VIEWS . " " . $A["Hits"];
    $templatefile = "/G_PATH/backend/template/index.html" . $LAYOUT["TMPL_Summary"] . "/summary.tmpl";
    $imagedir = "/G_URL/backend/template/index.html" . $LAYOUT["TMPL_Summary"] . "/images";

    $templ_arr = @file($templatefile);
    $template = @implode("", $templ_arr);
    $template = addslashes($template);
    $tmp = "print \"" . $template . "\";";
    print "\n\n";
    print eval($tmp);
    print "\n\n";


    any idea how to pop the graphic into the summary block?
    Nicklas writes on Wednesday June 13 2001 @ 04:50PM EDT: [ reply | parent ]
    Can't you just change the text for "comments" and "read more" in the language file you're using (supposedly ENGLISH.LNG) ... just change it to etc...
    jason writes on Wednesday June 13 2001 @ 05:00PM EDT: [ reply | parent ]
    It's the lines above that define $comments.
    You would just add a line like $comments = ""; before the template gets printed.
    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
  • Country Detection
  • PHP 4.3.2RC2 Released
  • My PHP.net
  • International PHP Conference - Spring Edition Early Bird Discount runs out!
  • PHP 4.3.2RC1 Released
  • Grant Program
  • Set your own language preference
  • First Hungarian PHP Conference
  • PHP 4.3.1 released in response to CGI vulnerability
  • PHPCon East 2003 - (April 23-25, 2003)

  • PHPBuilder
  • Interfacing with COM objects under Windows
  • Dynamic XML Conversion Using the SAX Parser
  • Arrays 101
  • Introduction to PHP5
  • Installing PHP-GTK on Linux
  • Installing PHP under BadBlue Web Server
  • Installing PHP under Xitami
  • A Test To See If You Write Sloppy Software
  • Switchbox
  • Professional PHP4 Multimedia Programming


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