Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Suggestions and Feature Requests (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=21)
-   -   Recently Uploaded (http://www.mysidiaadoptables.com/forum/showthread.php?t=2530)

SilverDragonTears 11-14-2011 02:02 PM

I just edit my index.php page

Gashu 11-14-2011 02:37 PM

Ooooh! Index.php? This right? Maybe I could put it there? :P
PHP Code:

<?php

include("inc/functions.php");
include(
"inc/bbcode.php");

//***************//
//  START SCRIPT //
//***************//

getpage('index');

// Convert the BBCODE to HTML
$article_content bbconvert($article_content);

// Convert line breaks to <br>
$article_content nl2br($article_content);


//***************//
//  OUTPUT PAGE  //
//***************//

echo showpage($article_title$article_content$date);
?>


SilverDragonTears 11-14-2011 02:44 PM

yes but it may not be in the spot you want it to be without the other stuff there.

Gashu 11-14-2011 02:49 PM

Ah okay, I'll leave it for now then, I don't want to mess what I have up already :P

mapleblade 11-15-2011 06:50 AM

maybe you could try this:
PHP Code:

<?php 

include("inc/functions.php"); 
include(
"inc/bbcode.php"); 

//***************// 
//  START SCRIPT // 
//***************// 

getpage('index'); 

// Convert the BBCODE to HTML 
$article_content bbconvert($article_content); 

// Convert line breaks to <br> 
$article_content nl2br($article_content); 

$query "SELECT * FROM ".$prefix."adoptables ORDER BY id DESC LIMIT 5";
            
$result runquery($query);
            

while(
$row mysql_fetch_array($result)){
$image getcurrentimage($row['id']);
article_content .= '<img src="{$image}" /><br /><b>{$row['type']}</b>';  
}
//***************// 
//  OUTPUT PAGE  // 
//***************// 

echo showpage($article_title$article_content$date); 
?>


Gashu 11-15-2011 06:59 AM

Oops nope, it made my site disappear with the error:
Parse error: syntax error, unexpected T_CONCAT_EQUAL in /home/gashu/public_html/index.php on line 24

It is supposed to go in the index.php file right? :P (I got the site back, no worries there xD)

mapleblade 11-15-2011 07:20 AM

oh oops sec..

PHP Code:


<?php 

include("inc/functions.php"); 
include(
"inc/bbcode.php"); 

//***************// 
//  START SCRIPT // 
//***************// 

getpage('index'); 

// Convert the BBCODE to HTML 
$article_content bbconvert($article_content); 

// Convert line breaks to <br> 
$article_content nl2br($article_content); 

$query "SELECT * FROM {$prefix}adoptables ORDER BY id DESC LIMIT 5";
            
$result runquery($query);
            
while(
$row mysql_fetch_array($result)){

$image getcurrentimage($row['id']);
article_content .= '<img src="{$image}" /><br /><b>{$row['type']}</b>';  
}
//***************// 
//  OUTPUT PAGE  // 
//***************// 

echo showpage($article_title$article_content$date); 
?>


Gashu 11-15-2011 02:27 PM

Naww, still no luck :( It's okay, I can do it manually if not. I want to see if my Uni does some coding classes because I'd really love to learn PHP and CSS properly :D


All times are GMT -5. The time now is 04:32 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.