vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Last topics in phpnuke.... (https://vborg.vbsupport.ru/showthread.php?t=30113)

apollyon 10-12-2001 12:31 AM

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.

mkilty 10-12-2001 04:19 AM

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... :confused:

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

BramT 10-12-2001 03:33 PM

you must be joking... :eek:

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.. :p

but anyways... you've got it fixed... so... enjoy! :D

mkilty 10-12-2001 03:55 PM

Quote:

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

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.. :p

but anyways... you've got it fixed... so... enjoy! :D

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

BramT 10-12-2001 04:10 PM

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... :D LOL

c u next time!

jasoncorn 10-13-2001 02:32 PM

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?

mkilty 10-14-2001 09:48 AM

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... :D 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

dadymac 10-22-2001 04:20 PM

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.

BramT 10-22-2001 09:38 PM

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'....

BramT 10-22-2001 09:43 PM

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... :p

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!


All times are GMT. The time now is 12:20 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01187 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete