vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Major Additions - vBCredits - Ultimate Points System (https://vborg.vbsupport.ru/showthread.php?t=172399)

Darkwaltz4 03-15-2008 08:33 PM

:D thanks, i just hope that its quality helps my case in it taking so long

bertwrld - do you have error display on for your server? there might be an error that you cant see. in either case, pm me an admin login and i will help you out. if possible, please open a support ticket on my site so i can maintain a trackable conversation with you :)

romanticyao 03-16-2008 07:17 AM

thanx for your answer

wicked80 03-20-2008 01:18 AM

Quote:

Originally Posted by wicked80 View Post

Hi Friends,
I tried installing this great mod on my 3.7.0 beta 5 version site and everything went smooth, except the "check" link in the navbar is throwing this error:
Code:

An appropriate representation of the requested resource forum/credits.php could not be found on this server.

I searched on google and came across this thread which says mod_security rules cause these types of errors and i followed the steps as specified here:

http://www.vbulletin.com/forum/showthread.php?t=197290

But then i started getting "Internal Server Error". So for the time being i have disabled those links in the navbar i.e.:
Code:

[<a href="credits.php?$session[sessionurl]do=banking">$vbphrase[check]</a>]<if condition="$show['credits_purchase']"> [<a href="credits.php?$session[sessionurl]do=manage#purchase">$vbphrase[purchase]</a>]</if>

I dont' know which other links point to the credits.php class and i hope they might be failing as well.

So, I would appreciate if someone can give me some resolution to this issue.

Thanks

first, make sure you are applying the installation for vb3.7, this is the vb3.6 version. (the link is in the top post at the top ) make sure you are using rc2. check that the credits.php file is uploaded to your forum root folder. if you are using a hack which is not in your forum root folder (cmps pages and the galleries are common examples) your links in the navbar will be wrong - edit the navbar template to include your whole forumpath.
I am using the latest release for 3.7 i.e vBCredits 1.4rc2 (rev1) vb3.7.I do have credits.php in the right place as well, for instance check this:
Works Fine:
http://www.cricfever.com/forum/credits.php

Does not Work:
http://www.cricfever.com/forum/credits.php?do=banking

I installed this before i installed CMPS and i had the same issues, so i dont think this issue has anything related to the CMPS as you can see from the link above. For sure its related to the mod_security thing i guess.
Any ideas now ... thanks again.

Darkwaltz4 03-20-2008 03:17 AM

hmm, error 406, not acceptable.

check your vbcredits templates, and revert any custom ones you have saved over a default one. if the problem persists, send me an admin login and i will poke around a bit until i find the solution :)

thanks for moving your question to this thread!

scotsmist 03-20-2008 01:04 PM

Quote:

Originally Posted by Darkwaltz4 (Post 1465660)
:D thanks, i just hope that its quality helps my case in it taking so long

bertwrld - do you have error display on for your server? there might be an error that you cant see. in either case, pm me an admin login and i will help you out. if possible, please open a support ticket on my site so i can maintain a trackable conversation with you :)

I haven't found a moment to install your Mod and look where the conflict is. If you want any information on the vbPortal side please ask.

scotsmist 03-23-2008 02:54 PM

The reason why there is a blank portal page when using this add-on is due to the followong code at the beginning of plugins/credits_plugin.php

Code:

if (!defined('VB_AREA'))
{
        exit;
}

The page is blank because VB_AREA is not defined. vbPortal is not a VB_AREA, but it does use THIS_SCRIPT constant. Changing the above code to
Code:

if (!defined('VB_AREA') AND !defined('THIS_SCRIPT'))
{
        exit;
}

stops the exit and displays vbPortal. Looking at the add-ons code, the credits.php page has THIS_SCRIPT defined, so the above change doesn't affect this page, but I haven't any experience with the add-on to know if more testing is needed to ensure that line doesn't have unexpected results.

Darkwaltz4 03-23-2008 03:09 PM

uh, is vbportal including global.php from vb? if it did, vbarea gets defined.

the reason the vbarea conditional is there is so that the file cant be called outside of a vb powered page (directly)

i would recommend that vbportal be the one to change to be properly integrated with vb, and i dont anticipate adding that fix into later versions of vbcredits...

scotsmist 03-23-2008 03:55 PM

Quote:

Originally Posted by Darkwaltz4 (Post 1472521)
uh, is vbportal including global.php from vb? if it did, vbarea gets defined.

the reason the vbarea conditional is there is so that the file cant be called outside of a vb powered page (directly)

i would recommend that vbportal be the one to change to be properly integrated with vb, and i dont anticipate adding that fix into later versions of vbcredits...

vbPortal doesn't include vB's global.php when viewing the portal pages hence why VB_AREA is not defined.

The code change suggestion would be the same as whats at the top of vBs init.php script. There is no need for vbPortal or add-ons to define VB_AREA if they are not in the VB_AREA, such as outside the forums.

I do not understand you not wanting to change one line of code, but this is your add-on. Thanks for your reply, I will post the one line fix at the vbPortal forum rather than users disable your add-on.

Darkwaltz4 03-23-2008 04:05 PM

well lets dissect this...

if the site shows up blank when using vbcredits, vbportal must be trying to run hooks from vbulletin.

if its running hooks from vbulletin, but not using global.php, then its integration must only be partial

if its partial, then its potentially dangerous, and they should just switch to using global.php, and everyone is happy

if i were to fix that one line, then i would be condoning and encouraging potentially dangerous partial integration with vbulletin, and by extension, vbcredits :D

i think with a hack starting with vb- it should be fully integrated. vbadvanced cmps has no issues doing it right. VB_AREA isnt that its in a "vb area" but that its in a vb-powered page. actual values set to VB_AREA include "forum" and "admin control panel", so "portal" could be acceptable... but simply not using it isnt.

scotsmist 03-23-2008 07:38 PM

Lol, that's funny but thanks anyway for your reply.


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