Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by BramT (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 10-11-2001 Last Update: Never Installs: 0
 
No support by the author.

I've been trying to use the Last XX posts script ( http://www.vbulletin.com/forum/showt...threadid=12324 ) in PHP Nuke...

I've tried putting
Code:
<? include("last10.php"); ?>
in a block (as text)

and using a custom block with the following code:
Code:
<?php

if (eregi("block-LastPosts",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}

$content = "<? include('www.vhvn.net/vhvn/forums/last10.php'); ?>";

?>
but none of them give any output... all paths are correct (used relative and absolute variations) and the last10.php script runs correctly as wel...

anyone knows a sollution for this? I've been searching the forums but i haven't found a decent solution yet...

[edit]
using phpnuke 5.2
[/edit]

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 10-12-2001, 12:31 AM
apollyon
Guest
 
Posts: n/a
Default

i just put the last XX posts in the index file right above where the news pasts go

look here it works fina and looks good
http://www.darkdimensionsonline.com/test/

but i need help on another front for php-nuke: is there any way to add more categories to php-nuke downloads and link sections?

like right now it only supports 2 layers like MP3's > Techno

but i want more layers like this MP3's > Heavy > Tool > CDS

since i have sooo many downloads to add i need to categorize them into many different and specialized categories.
Reply With Quote
  #13  
Old 10-12-2001, 04:19 AM
mkilty mkilty is offline
 
Join Date: Oct 2001
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by BramT
i think something in your php file (test3.php) is making a "relative" call to your database... allowing phpnuke to add it's own tag in front of it...

i think you should try to look for the call in the test3.php file and see if there are any variables in front of it... and remove them.. making it an "absolute" call...

if you know what i mean...
The only way I was able to fix it was to put the block on the right-hand side of the page. I figure since whatever variable was playing havac with the center page it should bypass it with the block on the rightside.

Michael
Reply With Quote
  #14  
Old 10-12-2001, 03:33 PM
BramT
Guest
 
Posts: n/a
Default

you must be joking...

the solution i gave (the second post) ONLY works for the 'blocks'... left or right doesn't matter.... i haven't looked at the php code for the 'center page' at all..

but anyways... you've got it fixed... so... enjoy!
Reply With Quote
  #15  
Old 10-12-2001, 03:55 PM
mkilty mkilty is offline
 
Join Date: Oct 2001
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by BramT
you must be joking...

the solution i gave (the second post) ONLY works for the 'blocks'... left or right doesn't matter.... i haven't looked at the php code for the 'center page' at all..

but anyways... you've got it fixed... so... enjoy!
Thanks for your help in this. If you ever find out how to implement PHP in the message section let me know.

I found a hack that seems to integrate the registration of users with vB and phpNuke at this thread:
http://www.vbulletin.com/forum/showt...threadid=27932

Have not tried it out et as their seems to be some question to it working but thought you might want to see it.

Michael
Reply With Quote
  #16  
Old 10-12-2001, 04:10 PM
BramT
Guest
 
Posts: n/a
Default

i've looked at the code, yes...

but i'm not sure if it is what i want... i'd like people to sing up @ my nuke site... not at vbb...

i'm going to take a look at this soon.... but it's going to take a while (got a lot of work to do...)

but when i find a solution.. it's going to be a better one... LOL

c u next time!
Reply With Quote
  #17  
Old 10-13-2001, 02:32 PM
jasoncorn
Guest
 
Posts: n/a
Default

Hey, my PHP-Nuke theme is this:
PHP Code:
function themesidebox($title$content) {
      echo 
"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"150\">\n"
    
."<tr><td width=\"150\" colspan=\"3\">\n"
    
."<img border=\"0\" src=\"themes/UltraSteel_NoFlash/images/menu2_01.gif\" width=\"150\"></td>\n"
    
."</tr><tr><td width=\"17\" background=\"themes/UltraSteel_NoFlash/images/menu2_02.gif\">&nbsp;</td>\n"
    
."<td width=\"114\" bgcolor=\"#FFFFFF\" valign=\"top\">\n"
    
."<b>.: $title</b><br>\n"
    
."$content"
    
."</td>\n"
    
."<td width=\"19\" background=\"themes/UltraSteel_NoFlash/images/menu2_04.gif\">&nbsp;</td>\n"
    
."</tr><tr><td width=\"150\" colspan=\"3\">\n"
    
."<img border=\"0\" src=\"themes/UltraSteel_NoFlash/images/menu2_06.gif\" width=\"150\"></td>\n"
    
."</tr></table><br>\n";
}
?> 
What should I edit?
Reply With Quote
  #18  
Old 10-14-2001, 09:48 AM
mkilty mkilty is offline
 
Join Date: Oct 2001
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by BramT
i've looked at the code, yes...

but i'm not sure if it is what i want... i'd like people to sing up @ my nuke site... not at vbb...

i'm going to take a look at this soon.... but it's going to take a while (got a lot of work to do...)

but when i find a solution.. it's going to be a better one... LOL

c u next time!
I figured out the solution to why I kept getting errors when I had a PHP block on the right-hand side.

What I did was combine the two databases (phpNuke and vB) into one database which solved the problem. It seemed that the php code in nuke was referencing the wrong database so causing the script to break.

Instead of looking thru the code for the problem it was easier to combine both databases into one.

Thanks,

Michael
Reply With Quote
  #19  
Old 10-22-2001, 04:20 PM
dadymac dadymac is offline
 
Join Date: Nov 2001
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bringing this back from the grave, i too got errors for the center page, looking closely its cuz the code we replace screws up the tables in relation to what is in sql.

moving it to the right at the bottom of the color DOES fix it, why?

because there are no more tables below it to screw up. try moving it towards the top, errors galore.

oh well, it works, using it for online.php for who is online.
Reply With Quote
  #20  
Old 10-22-2001, 09:38 PM
BramT
Guest
 
Posts: n/a
Default

mkilty:

yes.. i also used a single database to for PHPnuke and VB... works great... (no overlapping tables etc..)

daymac:

i think you made an error with replacing the php code for the ThemeSideBox function. The solution i gave should work. It works with me... Make sure you didn't make any 'typos'....
Reply With Quote
  #21  
Old 10-22-2001, 09:43 PM
BramT
Guest
 
Posts: n/a
Default

jasoncorn:

your solution is pretty simple:

replace
Code:
."<b>.: $title</b><br>\n"
."$content"
."</td>\n"
with
Code:
."<b>.: $title</b><br>\n";
if (substr($content,0,2) != "<?")  echo $content;
   	else {
   	$content = str_replace ("<?", "", $content);
   	eval($content);}
echo "<td>\n"
like i told ya in my second post...

sorry for the late reply btw.... i've been away for a while...

post here again if anyone needs help with phpnuke (and vb integration).

c-ya!
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 06:33 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04644 seconds
  • Memory Usage 2,299KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete