The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to add PHPBB3 Code..

2 posters

Go down

Solved How to add PHPBB3 Code..

Post by rago12 July 3rd 2015, 11:59 pm

Hi all..
Its difficult for me , to understand how to add any codes and what type of code is it (CSS,script,html..)
That is the code , whose i want to put to my site , please try explanation in detail , what i need to do and where i need to put that code (Sorry for my English , im not very well in that language)
Code:
<?php[size=12][/size]
[size=12][/size]
$connection = mysql_connect("localhost", "root", "pass");[size=12][/size]
$db = mysql_select_db("database", $connection);[size=12][/size]
[size=12][/size]
[size=12][/size]
$query = mysql_query("select * from phpbb_topics order by topic_time desc limit 0,5");[size=12][/size]
while($rows = mysql_fetch_array($query))[size=12][/size]
{[size=12][/size]
$qry = mysql_query("select * from phpbb_forums where forum_id='$rows[forum_id]'");[size=12][/size]
$rwz = mysql_fetch_array($qry);[size=12][/size]
$forum = $rwz[forum_name];[size=12][/size]
$catid = $rwz[cat_id];[size=12][/size]
$qry2 = mysql_query("select * from phpbb_categories where cat_id='$catid'");[size=12][/size]
$cat = $rwz2[cat_title];[size=12][/size]
echo "[size=12][/size]
<table>[size=12][/size]
<tr>[size=12][/size]
<td>[size=12][/size]
<font face="Verdana" color="#006699" size="2"><a href="forum/viewtopic.php?t=".$rows[topic_id]."">$rows[topic_title]</a></front> ($rows[topic_replies])[size=12][/size]
</td>[size=12][/size]
</tr>[size=12][/size]
</table><hr>";[size=12][/size]
}[size=12][/size]
[size=12][/size]
?>

That is a code for "Last Topics"...
Thank you beforehand.
avatar
rago12
New Member

Male Posts : 5
Reputation : 1
Language : Bulgarian

http://cs-faction.bulgarianforum.net/

Back to top Go down

Solved Re: How to add PHPBB3 Code..

Post by Ape July 10th 2015, 12:18 am

@rago12 is this now solved ?


How to add PHPBB3 Code.. Left1212How to add PHPBB3 Code.. Center11How to add PHPBB3 Code.. Right112
How to add PHPBB3 Code.. Ape_b110
How to add PHPBB3 Code.. Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19436
Reputation : 2010
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum