vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - PayPal Easy Donate - vB 3.6 (https://vborg.vbsupport.ru/showthread.php?t=123181)

McCarroll21 09-12-2006 04:46 AM

I'm getting this error...

Warning: main(./global.php): failed to open stream: No such file or directory in /home/braves/public_html/billspaypal.php on line 25

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/braves/public_html/billspaypal.php on line 25

...what gives?

Billspaintball 09-14-2006 01:04 AM

Quote:

Originally Posted by McCarroll21
I'm getting this error...

Warning: main(./global.php): failed to open stream: No such file or directory in /home/braves/public_html/billspaypal.php on line 25

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/braves/public_html/billspaypal.php on line 25

...what gives?

At a guess you put the file billspaypal.php into the wrong directory.

Is public_html your forums directory, or is it public_html/forums ?

DementedMindz 09-14-2006 02:05 AM

pssst you mean billspaypal.php ;)

Monica05 09-14-2006 02:15 AM

Quote:

Originally Posted by DementedMindz
also your other images dont show up you have to upload them again. look on your donate page you will see what i mean and to see where they go right click them and see the location.

Yikes! Thanks for pointing that out.


ETA: I realized I had a pm from you, sorry lol. Thank you so much!

DementedMindz 09-14-2006 02:38 AM

did you get the images working?

Billspaintball 09-14-2006 04:06 AM

Quote:

Originally Posted by DementedMindz
pssst you mean billspaypal.php ;)

Ahhh yeah....
That would be it

Thanks :)

tigerheart 09-15-2006 04:46 AM

to fix that error I took the following lines from the CMPS mod:

Code:

// ============================================
// Enter the full path to your forum here
// Example: /home/vbadvanced/public_html/forum
// ============================================

$forumpath = './forums';

// ============================================
// No Further Editing Necessary!
// ============================================

if (!is_dir($forumpath))
{
        echo 'Invalid forum path specified! Please edit this file and be sure to include the correct path for your $forumpath variable.';
        exit;
}

chdir($forumpath);

Just put that into the top of the two PHP files and you're set.

SCRIPT3R 09-15-2006 08:14 PM

Quote:

Originally Posted by DementedMindz
why dont you move your paypal button next to your login this way it dont leave such a opening and looks alot nicer. also as for the other templates is the code in there on them templates? If you look here at my image the button is right next to the login form on the right and it dont leave no gaps just uses wasteless space already in use.

Attachment 53317

that looks great; care to share the mod? :D

DementedMindz 09-15-2006 08:21 PM

Quote:

Originally Posted by GearTripper
that looks great; care to share the mod? :D


Im not sure how the stock vbulletin navbar is cause I have edited so much of my site but Ill try as best as I can.

In your navbar template find this:(Its about halfway down)

Code:

<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
                </if>
        </td>

After that add your code:

Code:

<td class="alt2">
<div align="center"><a href="billspaypal.php"><img src="$stylevar[imgdir_misc]/donate.gif" border="0" alt="Make payments with PayPal - it's fast, free and secure!" /></a></div>
</td>


SCRIPT3R 09-15-2006 08:24 PM

ah, even, if that's not right (it does look correct) i get it - thnx!


All times are GMT. The time now is 04:57 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
  • Page Generation 0.01189 seconds
  • Memory Usage 1,745KB
  • 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
  • (3)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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