The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
Here is an easy setup to put a lot of Vbull content onto another page. You can use it to make an easy index page with some quick modification or just to access information quickly...
I realize that there are already a lot of similar hacks out there, but I felt like sharing. You can see an example of this script here: http://www.onandoffroad.com/GVCP/ You can get the files by downing them from the posts later in this thread where I have them in an attatched zip. ( I used to have the code posted here, but it has grown enough since then as to not fit as posted code anymore. ) Show Your Support
|
Comments |
#62
|
|||
|
|||
Yes, it does.
|
#63
|
|||
|
|||
It's a cookie issue... check to make sure the php files in your GVCP folder have
error_reporting(0); set near the top. Expesialy side.php and index.php If that doesn't solve it a temporaty fix would be to remove the welcome back part of the side.php. If you have to do that let me know so I can try and find a fix that keeps that functionality... |
#64
|
|||
|
|||
Seems not to work one way or another, the error is still present when I log out.
|
#65
|
|||
|
|||
here, try putting this file inside the forums directory that your vbull is in. Let me know if it runs without error. call it something like test.php
--------------- <?php error_reporting(0); require("global.php"); mysql_connect($DBhost,$DBuser,$DBpass) or die("Unable toconnect to database"); mysql_select_db("$DBName") or die("Unable to access the News"); $namequery = "SELECT username FROM user WHERE userid = $bbuserid"; $namegrab = mysql_query($namequery); $name = mysql_result($namegrab,"username"); if ($bbuserid != 0) { print "Welcome back, <b>$name</b>"; } else { print "Welcome <b>guest</b>"; } ?> --------------- If it works the solution should be fairly easy but will require a seperate file... I'll get on that as soon as you can tell me if it functions. |
#67
|
||||
|
||||
I was thinking of going ahead with incorporating the login to my main page. Now that you have seen what direction I am taking with this I was hoping you could help me with incorporating the login. Would I go ahead and set up the forms for this on the index.shtml? I also noticed the login.php has a few variables that would have to be changed I'm sure. Maybe,
gettemplate if ($url!="" and $url!="index.php" and $url!=$HTTP_REFERER) { eval("standardredirect(\"".gettemplate("redirect_l ogin")."\",\"../gtnews/\");"); Not sure exactly what I need to do to get the login to the front page. Help appreciated. Thanks Hooper |
#68
|
|||
|
|||
Juan,
Is that the php file I just posted? the error I see when hitting that url is: Unable to access the News which is nowhere in that script... Hooper, Are you looking for a login like I had in side.php or something different? ( the login stuff is the most problematic of the stuff I've done thus as you can see from Juan's problems. ) |
#69
|
||||
|
||||
Hi Imp,
Ya basically what you already have, just on the front page of my site. I can deal with getting the looks and everything. I didn't realize that this was the most problematic. If this is going to take to much for you to check into for a site integration like mine, (completely off the keep it simple plan), I understand. I was hoping to somehow SSI the login into the index.shtml as I have with the other portions of the script. I saw how you did the .html within the side.php, I was thinking in terms of taking the code from the side.php for loggin out and just have it called into the index. Don't know if this makes sense, but doing the same thing I have done with the other parts of the script with just the loggin code. Dunno. Thanks Imperitus, |
#71
|
||||
|
||||
Scrap what I wrote above. That would be nice to figure out, but I found something much more important. I emailed you about it.
Donka..... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|