Log in

View Full Version : Any PHP'ers?


vtbub
08-03-2005, 08:28 PM
I'm trying to clean up a blog skin, but need help.

Dutch
08-03-2005, 09:48 PM
Not I!

But where do you get skins for blogs?

vtbub
08-03-2005, 10:18 PM
It's one that came with the software, but I can't figure out how to get the developers family off it and our names on it.

Coffee Warlord
08-03-2005, 10:21 PM
What's the code in question.

vtbub
08-03-2005, 10:27 PM
<?php
/**
* This is the template that displays the linkblog
*
* This file is not meant to be called directly.
* It is meant to be called by an include in the _main.php template.
*
* b2evolution - {@link http://b2evolution.net/}
* Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
* @copyright (c)2003-2004 by Francois PLANQUE - {@link http://fplanque.net/}
*
* @package evoskins
* @subpackage custom
*/
if( !defined('DB_USER') ) die( 'Please, do not access this page directly.' );

# maximum number of linkblog entries to display:
if(!isset($linkblog_limit)) $linkblog_limit = 20;
# global linkblog delimiters:
if(!isset($linkblog_main_start)) $linkblog_main_start = '<div class="bSideItem"><h3>'.
T_('Linkblog').'</h3>';
if(!isset($linkblog_main_end)) $linkblog_main_end = '</div>';
# Category delimiters:
if(!isset($linkblog_catname_before)) $linkblog_catname_before = '<h4>';
if(!isset($linkblog_catname_after)) $linkblog_catname_after = '</h4><ul>';
if(!isset($linkblog_catlist_end)) $linkblog_catlist_end = '</ul>';
# Item delimiters:
if(!isset($linkblog_item_before)) $linkblog_item_before = '<li>';
if(!isset($linkblog_item_after)) $linkblog_item_after = '</li>';

/**
* This skin has no special formatting for the linkblog, so...
* However you can replace this file with the full handler (in /blogs) and customize it!
* all we want to do here, is call the default linkblog handler.
*/
require get_path('skins').'/_linkblog.php';

?>

vtbub
08-03-2005, 10:27 PM
from looking at the main.php page the above looks like where their credits are.

Coffee Warlord
08-03-2005, 10:32 PM
Wow is that some vile code. And unless I'm utterly mistaken, the credits are NOT there. I'm downloading the software. Easiest way to figure it out.

What is actually displayed in the credits?

vtbub
08-03-2005, 10:42 PM
you are correct, the credits are not there, and therein lies the problem, I don't know where they are.

Click my sig, it's the linkblog stuff on the sidebar.

Many thanks.

Coffee Warlord
08-03-2005, 10:45 PM
If you're referring to the 'This is sample text describing the linkblog entry. In most cases however, you'll want to leave this blank, providing just a Title and an Url for your linkblog entries (favorite/related sites).'...

That's somewhere in the database, not in the code itself. You should be able to edit that ....somewhere.

vtbub
08-03-2005, 10:52 PM
Okay, I'll poke around tomorrow. Thanks for the help.

Is there an SQL reader to edit?