e como faço para colocar este código do footlink? onde eu ponho paaraa aparecer os quadradinhos tanto na página corrente quantoem todas as outras?
<?php
///////////////////////////////////////////////////////////////////////////////////
// Wak's Ask&Answer/FAQs Script
//
// Script by Katie http://luved.org
//
// This script is linkware and can be used or modified as long as all credit is
// left attached to this file and a link is placed on your website to
// http://www.luved.org
// You are forbidden to sell or distribute this script without permission by
// it's creator and if a bug is found, report to scripts@luved.org
///////////////////////////////////////////////////////////////////////////////////
// -----------------------------------------------------------------
// PROCESS QUESTIONS
// -----------------------------------------------------------------
// Below, you can change what response is given when the ASK button is
// pressed
// Question was successful:
$qSuccess = "<p><b>Responderei à sua pergunta assim que possível.</b></p>";
$qFailed_DoublePost = "<p><b>você pode enviar apenas um pergunta a cada $sec segundos.</b></p>";
// Question failed due to a blank post
$qFailed_BlankPost = "<p><b>você não pode enviar uma questão em branco.</b></p>";
// process questions when button is pressed
if (isSet($_POST['ask'])) {
$question = $_POST['question'];
addQuestion($question);
}
// -----------------------------------------------------------------
// DISPLAYS QUESTIONS AND ANSWERS X Entries Per Page
//
// Try to read through my comments (any line with a leading //)
// To customize the script to your liking
// -----------------------------------------------------------------
// Number of all answered questions
$totalAnswered = count(getTotalAnswered());
// Number of all entries in the database (answered and unanswered)
$total = total(DBFILE);
// Number of all unanswered questions
$totalUnAnswered = count(getTotalUnanswered());
// grab data from config.txt file
list($id, $key, $url, $email, $notify, $entryPerPage, $dtFormat, $display) = getFileRow(CONFIGFILE);
// if $entryPerPage is less than 1, set to the default number of entries per page
if ($entryPerPage < 1)
$entryPerPage = $defaultEntryPerPage;
// --> Status
// display how many answered questions out of total questions asked, how many
// entries per page and the number of unanswered questions in database
echo "<b>$totalAnswered</b> perguntas respondidas de <b>$total</b> enviadas.<br />";
echo "Mostrando <b>$entryPerPage</b> pergunta/s por página.<br />";
echo "Há <b>$totalUnAnswered</b> perguntada/s não respondidas.";
?>
<!-- Ask text box:
NOTE: You can copy and paste the following line to a different page eg index.php if you just want to
display the form and not the actual question and answers.
if you place askform.php in its own directory, change the location of askform.php, for example
include('path/to/askform.php')
-->
<?php include('askform.php')?>
<!-- End Ask text box-->
<?php
// -----------------------------------------------------------------
// DISPLAYS QUESTIONS AND ANSWERS X Entries Per Page
//
// Try to read through my comments (any line with a leading //)
// To customize the script to your liking
// -----------------------------------------------------------------
// grabs answered questions into an array
$answeredRows = getTotalAnswered();
if (is_array($answeredRows)) {
// if user set entries to be displayed in descending order, reverse rows in array
if ($display == 2) {
$answeredRows = array_reverse($answeredRows);
}
// page number
$pagenum = $_GET['page'];
// figures out from entries per page, and how many answered entries in database
// as to how many pages there should be to display all entries
$answeredRows = perPage($answeredRows, $entryPerPage, $pagenum);
$numPages = $answeredRows['numpages'];
// display 'jump to page' if contains more than one page of entries
?>
<div class="footlink"><span class="footlinkcurrent"><?php printJumpToPage("$phpSelf?page=", $numPages, $pagenum); ?></span></div>
<?php
if (is_array($answeredRows['entries'])) {
foreach ($answeredRows['entries'] as $ans) {
// grabs data from each row
list($id, $q, $a, $ip, $dateAsked, $dateAnswered) = get($ans);?>
<ol id="commentlist">
<br /><br />
<div class="commentdate">
<div align="justify">
<div style="float: left; margin-right: 3px;">
<div class="gravatar">
<img src='http://img207.imageshack.us/img207/6508/81562844gb7.png' alt='Gravatar' title='Crie seu Gravatar!'></a></div></div>
<?php // date when asked and answered?>
<strong>»</strong> <b>Enviada:</b> <strong><?php echo dateFormatAdv($dateAsked, $dtFormat)?> <br/>
<strong>»</strong> <b>Respondida:</b> <strong><?php echo dateFormatAdv($dateAnswered, $dtFormat)?></strong>
</div> </div>
<div class="comment-content">
<div style="padding: 7px"></div>
<?php // display Questions?>
<strong>»</strong> <b> Pergunta:</b> <strong title="IP: <?php echo $ip?>"><?php echo convertLinks($q)?></strong>
</div>
<div class="comment-resposta">
<div style="padding: 3px"></div>
<?php // display Answers?>
<br><strong>»</strong> <b>Resposta:</b><small> <?php echo convertLinks(fixBrkForHTML($a))?></small>
</div>
<br /><br />
</ol>
<?php }
}
// display 'jump to page' if contains more than one page of entries ?>
<div class="footlink"><span class="footlinkcurrent"><?php printJumpToPage("$phpSelf?page=", $numPages, $pagenum); ?></span></div>
<?php
}
?>
[/codebox]
arquivo functions
Pergunta
Tatica
como alinho o gravatar como este?
meu css
código e como faço para colocar este código do footlink? onde eu ponho paaraa aparecer os quadradinhos tanto na página corrente quantoem todas as outras?Link para o comentário
Compartilhar em outros sites
2 respostass a esta questão
Posts Recomendados
Participe da discussão
Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.