vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   [RELEASE] Custom Styles Per Forum! (https://vborg.vbsupport.ru/showthread.php?t=1785)

07-16-2000 02:01 PM

Quote:

Originally posted by Ed Sullivan
That UBB link doesn't work :)

And I'm pretty sure I know how to do it actually.

Doh, its http://www.unreal2.net/auth

But Ed, we must keep it secret for the vB hackers site we're launching...exclusive technoligy is a Good Thing ;)

07-16-2000 04:01 PM

:(

How can you validate it when the database isn't on your server? Unless somehow you did an HTTP call and submitted that info to the members area login thingy and checked the response... not sure if I explained that right...

[Edited by JohnM on 07-16-2000 at 01:02 PM]

07-16-2000 04:13 PM

You've got the right idea... ;)

07-16-2000 04:32 PM

Stallion,

Your validation script doesn't work for me. However, I've got a leased license - maybe there's another value returned based on license type?

I'd like to be able to DL this file and compare it to the version I've got to potentially eliminate another source of error.

Anyone else try this hack yet?

07-16-2000 04:53 PM

OK you PHP people, how do you do an HTTP POST call in PHP?

[Edited by JohnM on 07-16-2000 at 03:07 PM]

07-17-2000 12:00 AM

All right, I've got the hack working now (I had a typo in global.php causing problems). Individual board settings seem to work, but now I'm getting the following error on the main page:

Warning: Offset 0 is invalid for MySQL result index 63 in admin/db_mysql.php on line 108

Every board (except the test board where I've modified via styles.php) shows a variation of that message (different index points.

If anyone has any ideas, I'd love to hear 'em.

Thanks.

07-18-2000 11:00 PM

Can someone please help with this hack? I installed it and while it has alot of bugs, it also has alot of potential. Could someone that knows php well offer some help with this, I really need this hack.

Goldenboy

07-18-2000 11:30 PM

Apparently there is something wrong with this hacked function, it causes errors on pages that call it directly, ie. smilies page, index page (when categories only is set), faq etc...

// ###################### Start dovars #######################
function dovars($vartext,$fid=0) {

// parses replacement vars

global $DB_site;
global $forumid;
global $vars;

// load vars

$cusvars=$DB_site->query("SELECT * FROM replacement where forumid = $forumid ORDER BY replacementid DESC");

$newtext=$vartext;

$DB_site->data_seek(0,$cusvars);

$forumspec = "";

while ($cusvar=$DB_site->fetch_array($cusvars)) {
$newtext=str_replace($cusvar[findword],$cusvar[replaceword],$newtext);
$forumspec .= "and findword != '$cusvar[findword]' ";
}

$vars=$DB_site->query("SELECT * FROM replacement where forumid = 0 $forumspec ORDER BY replacementid DESC");

$DB_site->data_seek(0,$vars);
while ($var=$DB_site->fetch_array($vars)) {
$newtext=str_replace($var[findword],$var[replaceword],$newtext);
}

return $newtext;
}


I've tried rewriting this, but I'm not making much progress.

taking out the following line solves the problem illout mentioned.

$DB_site->data_seek(0,$cusvars);

but I'm not sure if thats a vital piece of code or not.

ANY help with this would be much appreciated.

Goldenboy

07-19-2000 12:06 AM

Stallion,

You validation script dont work for me..!!

George

07-19-2000 01:30 AM

The authentication page is currently broken, I'll fix it when I have some time. There's no real secret goodies inside it, it was more of a tech test ;-)

And about the above hack, I'll take a look at the problems later tonight (but I'm currently busy with some work, atm(.

Stay tuned.


All times are GMT. The time now is 07:15 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.01232 seconds
  • Memory Usage 1,737KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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