vBulletin Modifications

Info on portal

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > General vBulletin Support

Reply
 
LinkBack Thread Tools
Old 04-07-2006, 03:05 PM   #1
vB Lover
Join Date: Jul 2005
Real Name: El Loco
Location: Belgium
world32 is on a distinguished road

Default Info on portal

I want to create my own portal (designed by myself)
how can I put info from my forum on it such as for example top 10 posters?

I know it has to be sth like this: $toptenposters but can sb help me bit more? thnx in advance




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 04-07-2006, 03:09 PM   #2
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

This howto has the PHP code you need.

As for the stats, you'll have to use queries to get this information. What I did a while back for my own custom portal is simply take a look at the code which is used in vBa CMPS, and see how that system gets all the data from the DB.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2006, 03:37 PM   #3
vB Lover
Join Date: Jul 2005
Real Name: El Loco
Location: Belgium
world32 is on a distinguished road

Default

no I don't need no php code, I'm scripting it in html..
and I have the vBa CMPS installed but I'm not gonna use it, and damn :p thanks for the hint didn't think of that eighter




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2006, 04:01 PM   #4
vB Lover
Join Date: Jul 2005
Real Name: El Loco
Location: Belgium
world32 is on a distinguished road

Default

ah I see how this works, it links back to modules and phpfiles

How can I make a php content show up on a html page?
for example: "buddylist.php"




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2006, 04:16 PM   #5
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

Quote:
Originally Posted by world32
no I don't need no php code, I'm scripting it in html..
and I have the vBa CMPS installed but I'm not gonna use it, and damn :p thanks for the hint didn't think of that eighter
Well, you'll need some PHP code to be able to use variables and such ;).

I think you've got a bit of a wrong impression of how to create a portal. You'll need to code a "backend" in PHP which executes the queries to obtain the needed information, and than you can use that PHP code to call some HTML.

The coding of the HTML is only a fraction of what a good portal requires ;).




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2006, 06:17 PM   #6
vB Lover
Join Date: Jul 2005
Real Name: El Loco
Location: Belgium
world32 is on a distinguished road

Default

I know I need the php files ;-) but I don't need to adapt them they're fine, the only question I have is how to add the content of the phpfiles in a html (so the html file calls to the php files and executes them) :p hard to explain in english but you know what I mean I hope :p




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2006, 06:20 PM   #7
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

An HTML file cannot call a PHP file. However, a PHP file can call a HTML file.

Or do you mean adding the variables defined in your PHP file to an HTML file?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2006, 06:35 PM   #8
tgreer
Guest

Default

Quote:
Originally Posted by world32
I know I need the php files ;-) but I don't need to adapt them they're fine, the only question I have is how to add the content of the phpfiles in a html (so the html file calls to the php files and executes them) :p hard to explain in english but you know what I mean I hope :p
You've got this backwards. HTML and PHP files are handled differently by the Web Server, based on the file extension. An HTML file is sent directly to the browser and interpreted/rendered THERE, so there is never any chance for any included PHP code to be called/run/etc.

A PHP file, though, is first run through an ISAPI filter... plain English: something else grabs the PHP and "runs it". What a PHP program does is PRODUCE html, which it hands back to the Web Server, which serves it up to the user.

So, you don't "add the content of the phpfiles in a html". Rather, you adjust your PHP programs to produce the desired HTML!

If you already have HTML that you like, and just have a DIV or some section of it which needs to have PHP-generated content, then simply INCLUDE the PHP code directly in the HTML file, demarcated property: <? ?>.

Then, save the entire thing with a .PHP extension. Your web server will now run it as a PHP program, which should give you want you want.

Last edited by tgreer; 04-07-2006 at 06:38 PM..




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-08-2006, 05:46 AM   #9
vB Lover
Join Date: Jul 2005
Real Name: El Loco
Location: Belgium
world32 is on a distinguished road

Default

Quote:
Originally Posted by tgreer
Then, save the entire thing with a .PHP extension. Your web server will now run it as a PHP program, which should give you want you want.
so I can just include the phpcodes in the html
for example

<DIV ALIGN=RIGHT>This is my text<br> <? php... /?> </DIV>




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-08-2006, 07:28 AM   #10
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

Quote:
Originally Posted by world32
so I can just include the phpcodes in the html
for example

<DIV ALIGN=RIGHT>This is my text<br> <? php... /?> </DIV>
Yes indeed. To be able to do that you'll need to make a .php file ;).




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Portal System Added Ken Iovino Announcements 5 05-23-2005 07:50 AM
Colour names for portal & ads for portal hkboi General vBulletin Support 0 02-21-2005 10:02 AM
portal + htaxx hack Arcade General vBulletin Support 3 07-09-2004 09:01 PM


All times are GMT -3. The time now is 07:07 PM.

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)