• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

Help! How can i add forum Topic on Site!!??

hypnoticpimp said:
Hey Hugo yea. heres a direct link to the forum http://hypnoticpimp.clicdev.com/f/index.php?act=idx

and The forums/ topics that i want to be placed on my site www.HypnoticInc.com is http://hypnoticpimp.clicdev.com/f/index.php?showforum=4 or to be more specific. go here http://hypnoticpimp.clicdev.com/f/index.php?showforum=66

So, you basically want to have your forum content on your webpage; is that it? Why didn't you say so in the first place?? First off, you don't just use include() for this type of inclusion. You PHYSICALLY have to use MySQL on the page you want the topic(s) to show on by specifying a query to get the topic(s) you want (using the query php function) and store that information into a variable. Afterwards, just echo that variable, which has the information for your topic(s) onto the page.
 
Hey Dark! Im really a noob on MYsql. whats the exact code. givin you the Exact links??? like whats the code i should add on index.html? and what should i save it as????? Please dark if i give u access to my forums and give u the index.html page! can u please do it for me!!!!!!!! I will give u an invite to gmail!
 
hypnoticpimp said:
Hey Dark! Im really a noob on MYsql. whats the exact code. givin you the Exact links??? like whats the code i should add on index.html? and what should i save it as????? Please dark if i give u access to my forums and give u the index.html page! can u please do it for me!!!!!!!! I will give u an invite to gmail!

First off, calm down!

Secondly, you can just look up the query function yourself at php.net, as I will say to all the PHP newbies out there in the world.

Thirdly, don't use .htm, .html pages for PHP; as PHP doesn't work in files with extensions other than .php, .php3, or .php4.

Fourthly, it should look like the below line(s):

Code:
// Go get the posts before I crush you with my AK-47!

$post_1 = query(); // look on php.net for query function documentation (should be in online documentation in the function index.)

echo $post_1;

php variables MUST begin with a $ sign, otherwise the variables will not exist!
 
dark. Like say i wanted to add topics from this part http://hypnoticpimp.w4.clicdev.com/f/index.php?showforum=66 or just add this topic http://hypnoticpimp.w4.clicdev.com/f/index.php?showtopic=1446 I would have to put

Code:
// Go get the posts before I crush you with my AK-47!

$post_1 = query(); // look on php.net for query function documentation (should be in online documentation in the function index.)

echo $post_1;
??

but what does it say next to //Go get the posts before I crush you with my AK-47!?? is that where i place the Forum topic at? like this

Code:
// [url]http://hypnoticpimp.w4.clicdev.com/f/index.php?showforum=66[/url] 

$post_1 = query(); // look on php.net for query function documentation (should be in online documentation in the function index.)

echo $post_1;
Please Help asap! Dark. your the only 1 left who can help me
 
hypnoticpimp said:
dark. Like say i wanted to add topics from this part http://hypnoticpimp.w4.clicdev.com/f/index.php?showforum=66 or just add this topic http://hypnoticpimp.w4.clicdev.com/f/index.php?showtopic=1446 I would have to put

Code:
// Go get the posts before I crush you with my AK-47!

$post_1 = query(); // look on php.net for query function documentation (should be in online documentation in the function index.)

echo $post_1;
??

but what does it say next to //Go get the posts before I crush you with my AK-47!?? is that where i place the Forum topic at? like this

Code:
// [url]http://hypnoticpimp.w4.clicdev.com/f/index.php?showforum=66[/url] 

$post_1 = query(); // look on php.net for query function documentation (should be in online documentation in the function index.)

echo $post_1;
Please Help asap! Dark. your the only 1 left who can help me

You don't do anything with urls, except for connecting to your MySQL database that holds your topic information. However, if you have invisionfree, clicdev, or other mforum script hosters... sorry but you cannot get your topic information from them.
 
Please dark how can i get The Topic information on MYSQL!?? What if i talk to the admin of Clicdev. !????? Please tell me what to tell him. Like what ineed from him,?? also i seen on my admin panel There was a section called MYSQL! with alot of coding and editing! maybe that can work???
 
hypnoticpimp said:
Please dark how can i get The Topic information on MYSQL!?? What if i talk to the admin of Clicdev. !????? Please tell me what to tell him. Like what ineed from him,?? also i seen on my admin panel There was a section called MYSQL! with alot of coding and editing! maybe that can work???

No, even if you tried to talk to the admin; the admin of clicdev will tell you the same thing over and over again: "You cannot have the ROOT server admin password from us, as it will be a breach in security. If you want topics from your forums, then get a forum on your own server." That may be what Chris will say, and it may not be.
 
Don't know; sometimes it's better to figure out stuff on your own. As that is the way to get rid of your noob title.
 
hypnoticpimp said:
Dark i dont care if i have the Noob titile forever! i just want this man. look ai got a screenshot of the SQL Databse on my admin panel! http://img24.exs.cx/img24/1143/Scammer.jpg Isnt the info i need on there? if so where on there do i go

To even start a query, you must use mysql_connect(); and you MUST have the username and password, and DBName in order for you to use it such as below:

Code:
$dbuser = "blah";
$dbpass = "code";
$dbname = "goto";

// once those variables are set, we move onto the next part!

mysql_connect($dbname, $dbuser, $dbpass);

$result = query(); // Use the query function to get what you want.

if you want more intense stuff, also use the fetchrow stuff.
 
Last edited:
Back
Top