![]() |
have you did any changes in the mod except the database info and the file location?
|
Quote:
|
does your vb db use a prefix? If so see my previous post.
|
Nice hack man but I do have one question for ya , its pulling the post thread as if it was in a forum link , and not displaying the entire post like it should.
http://ladders.modcentral.us/ which is pulling the info from http://forum.modcentral.us You will see it has the link but the link is also pulling to the wrong page also..... Everything else is working fine thou.... |
madhouse - you got this working??
*wonders* Wanna help us out? LOL I've been trying to figure this out for days ... :( *laughs* EDIT: Maybe I should have explained what I'm having trouble with, lol. I'm trying to figure out what and how exactly am I supposed to merge this file into a VB-Powered but outside the forums page... I've tried everything I could think of, lol ... $towrite, $writenews, and so on... |
First did you make sure you have your paths set correctly?
Second make sure you read thru the entire script as there are certain things you need to uncomment in order for it to work. |
Yes.
The custom portal is outputting the posts, but not where I want it to be outputted to. It needs to be at a specific spot, and so far, it's being a pain. :( You got it working on your site, so it should be working fine here. I have gone over the script like 50 times. |
Depends were you are inplementing the script line on your page
|
Question tho...
Should I have commented the echo $towrite; line ? Then put $towrite where I want it to be at ?? Because I did try that and it just didn't do what i wanted it to do. :( LOL |
Where are you doing this at so I can look at it.
Also you using <?include ('newsout.php');?> |
<a href="http://www.houseofcrazed.com/front.php" target="_blank">http://www.houseofcrazed.com/front.php</a>
It's only a page in development. It've been bugging me for a bit. I put that in just now. It's outputting, but not in the specific spot where I want it to be at. |
Looks like you have the script in the wrong location of the template...
Now how did you get the text to out put? I got everything else to work but can not get the text from the post to show..... |
Uh, lol ...
I included the file at the top of front.php before along with global.php and so on... Since we both are having problems too, guess someone else will need to help us, lol ... But now, I just realized... The file is being declared twice now. *sigh*... Once in the front.php file and once in the template. lol ... I'm pretty sure that it's in front.php that's being declared, not the one in template. |
See , you are using a templated system , I am not , so some were along the lines there is something I am missing from calling the actuall post instead of just the title and the creator of the post.
|
Yea...
I'm thinking of other ways to do this now... lol ... If you link directly to the newsout.php page, does it spit out the post and stuff like it does on mine? |
I finally got this to work, LOL
Oh, wait, you're not using the template system. :| Because I got mine to work by adding the require code to phpinclude_start template. |
Yea mine is working but its not displaying the post text....
|
I've got this working fine in my index.shtml test homepage by using
"<!--#include virtual="/testvb/newsout.php"-->" command where I want it to display. One problem though, where do I specify which forum the news is pulled from? At the moment it's pulling it from a forum I haven't specified :surprised: Any help appreciated. |
You need to look thru the newsout.php and find were its defining the forums you want to have the news pulled from , if I remeber correctly it should be close to the bottom of the script.
Truthfully Rafe has not replied on this hack since May, 2004 so I got the feeling that he may not be around or not supporting this hack any longer. |
Got it working perfectly now thanks - apart from if there is a smilie in the post, it shows as a broken image in the exported output when page first loads or is refreshed. Not a major problem as I can always NOT use smilies!
Example here (please ignore the awful layout - still being worked on) http://www.saintgeorges-hk.com/sgs/ |
Well, it probably is the forumspath that has not been defined correctly.
Look for $forumspath Smilies works fine on my site. It took me awhile to figure it out, lol ... *sigh* I'm happy I'm done with figuring it out. *laughs* |
Hmmm. the smilies are there if you view the newsout.php output, but disappear once the file is included into the .shtml page :confused:
|
having problems...i really want this to work properly...
here goes: http://dfmafia.net/forums/newsout.php <-- works fine http://dfmafia.net/network1.php <--- inop (its after the text "Need to fix the News script that when it grabs the articles out of the forums we don't loose right content ") heres the code im using to include the newsout.php: PHP Code:
that first NEWS block works fine but all it did was grab the titles...i want part of the text as well... http://dfmafia.net/network.php im using the below script and it gets what i want but i loose the right table and footer on the page... PHP Code:
heres how the page is suspose to look: http://dfmafia.net/network_A.php minus the news...it has the right and footer content |
Thank you for this hack, but could you explain why I get this error by any chance?
Code:
Warning: mysql_query(): 6 is not a valid MySQL-Link resource in /home/static/public_html/forums/includes/db_mysql.php on line 212 |
Put a @ in front of the mysql queries.
|
eLITeGuRu,
I experienced the same as above. All working fine but I received these errors in the bottom of the page: Code:
Warning: mysql_query(): 6 is not a valid MySQL-Link resource in usrlocalpsahomevhostsi-symbian.comhttpdocsforumincludesdb_mysql.php on line 212 Code:
@mysql_query Thanks and best regards |
Can anyone help me with this 1? I get the common 3 errors at the bottom of the page, and everything is setup as it should be.
Thanks |
anyone getting the three lines of text at the bottom, remove:
//disconnect mysql_free_result($sql_result); mysql_close($connection); From your newsout.php file and it should resolve it. ^^ |
thaks dude it fixed it!
|
Looks to be nice when it's finished. Thanks.
|
Here's what I was able to achieve with some creative modification of the code:
http://www.greenhybrid.com/ |
Quote:
|
i need to know the name of the table to extract the info.
How do i find out plz :] |
I'm having a big bug with this hack.
Apparently calling global.php, as this hack does, is erasing all other variables in the php defined before it. I've associated pages on my site with forums and have stored a forumid for each page in my db. I wanted to pull that forumid, pass it to this script, and have it print out topics. However upon calling global.php the variable holding my forumid is erased. I don't know why, I can't explain it, but I tested it and its happening. So, there is no way to dynamically feed this script information, for god knows what reason... |
This is how global.php does work. It will reset all variables to protect against abuse.
Try to place global.php at the top of your script before you fill any other var's. |
Quote:
Code:
<?php Scheme: http Domain: www.yahoo.com Path: /index.php Anchor: examples You can tweak it from there. Have fun! |
Quote:
|
I was also wondering how one can have an excerpted post for news threads that links back to your custom CMS page. See example in action here. (I figured out that this site is using the vBulletin-WordPress Bridge hack)
|
can anyone please help me with that problem?
I just upgraded to 3.5 (this script worked without any problems in 3.0.9 - sorry I know that it is not written for 3.5) I'm getting mad because of no idea / brain on the bbcode parser. Original does not work (in 3.5): PHP Code:
Code:
Fatal error: Call to a member function on a non-object in D:\server\mobilejoe\joeforums\includes\functions_bbcodeparse.php on line 398 PHP Code:
|
Oups?
Problem: You cannot use old parser, connect dies within script. I finally got this to work. A friend of mine found out, that the db connect was broken and the new parser didn't work because of that issue. Here's what I did on my page to get this working in 3.5 including new Parser and Fix within db connect (including advertising after 3 news): See this line: $xdb = mysql_select_db("$dbname", $connection) or die ("Could not select database."); PHP Code:
|
All times are GMT. The time now is 05:46 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|