vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Yet Another vB Login on non-vB Page (https://vborg.vbsupport.ru/showthread.php?t=91129)

ConKien 02-24-2006 01:36 AM

Did you ever come up with an exmaple for this Calorie?

Quote:

Originally Posted by FASherman
How difficult would it be to expand this to something a little more complex?

What I'd like to see is something that:
  1. Writes the forum header
  2. Writes the breadcrumbs
  3. Runs any PHP script, capturing its oputput as a variable via ob_start/ob_capture/ob_stop - thus avoiding header already sent/redefinition errors
  4. Writes the script output
  5. Writes the forum footer.



This script is great!

Sean James 04-10-2006 04:41 AM

Quote:

Originally Posted by calorie
In the readme replace:
Code:

<!-- small login box -->
With the following:
Code:

<br /><table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\"><tr>
And also replace:
Code:

<!-- / small login box -->
With the following:
Code:

</tr></table><br /><br />
And then save the readme, execpt the instructions, as a template called smallloginbox and
then use the following:
Code:

eval('$smallloginbox = "' . fetch_template('smallloginbox') . '";');
To get the template, and then use $smallloginbox like you would use $navbar to show the content.

You can also add smallloginbox to $globaltemplates if you want to cache the template.

Love this hack great work ;)

Ive got the hack working good, but i want to edit the navbar so its a template like in this post i have quoted from you but i am not sure where to put this:
Code:

eval('$smallloginbox = "' . fetch_template('smallloginbox') . '";');

Sean James 04-10-2006 04:43 AM

its all good i figured it out hehe

aceofspades 05-01-2006 10:44 AM

i get this:

Quote:

Warning: chdir(): No such file or directory (errno 2) in /home/hiven48/public_html/files/example.php on line 56

Warning: main(./global.php): failed to open stream: No such file or directory in /home/hiven48/public_html/files/example.php on line 57

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hiven48/public_html/files/example.php on line 57
Please tell me why :'(

Sean James 05-01-2006 01:48 PM

one problem i am having is with the CSS.

my forum:
http://www.bluepearl-design.com/forums

the index of my site using this script:
http://www.bluepearl-design.com/index.php

As you can see alot of the background images in my tables are not showing at all and i cant figure it out :S

this is my CSS: in style manager (MAIN CSS)
Code:

#a1 {
background: url("http://www.bluepearl-design.com/forums/images/Frost/Frost/a1.jpg");
}

and here is my table code:
Code:

        <td width="150" id="grid" align="center"><img src="http://www.bluepearl-design.com/forums/images/Frost/Frost/b1.jpg" width="150" height="23" border="0" alt="" />
I know this will work perfectly if use the <b>background </b> tag in the table but i want to use CSS to keep my site XHTML compliant.

Any help will be appreciated, thx ;)

twitch 05-01-2006 05:17 PM

This is just what I need, thanks!

Sean James 05-02-2006 05:25 AM

Quote:

Originally Posted by Griffin80
one problem i am having is with the CSS.

my forum:
http://www.bluepearl-design.com/forums

the index of my site using this script:
http://www.bluepearl-design.com/index.php

As you can see alot of the background images in my tables are not showing at all and i cant figure it out :S

this is my CSS: in style manager (MAIN CSS)
Code:

#a1 {
background: url("http://www.bluepearl-design.com/forums/images/Frost/Frost/a1.jpg");
}

and here is my table code:
Code:

        <td width="150" id="grid" align="center"><img src="http://www.bluepearl-design.com/forums/images/Frost/Frost/b1.jpg" width="150" height="23" border="0" alt="" />
I know this will work perfectly if use the <b>background </b> tag in the table but i want to use CSS to keep my site XHTML compliant.

Any help will be appreciated, thx ;)


dont worry i got it sorted now.

u just need to remove "" from the css like so:
Code:

#a1 {
background: url(http://www.bluepearl-design.com/forums/images/Frost/Frost/a1.jpg);
}


DHDesign 09-13-2007 06:27 PM

everything is working great..thanks alot!

one quick question...upon hitting log out, how can i redirect so that after the log out process has been completed, it comes back to the original log-in page that i have?

the way it is right now, if you click on log out, then you are taken to vB's logout that indicates "All Cookies have been cleared" and leaves you there rather than kicking you back to the main login page.

thanks!

msnhockey 11-25-2008 07:15 PM

for seem reason when placed on my index.php page the stuff shows up, but when I log in and then re-directs back to my index.php page it is asking for me to log in again.

any ideas as to why.. I am thinking session cookies or something

kwchan 02-01-2009 05:40 AM

finally works for me, but I have to put everything in the root folder as the forum

the script don't work if the php files are in another folder


All times are GMT. The time now is 02:49 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.01121 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
  • (11)bbcode_code_printable
  • (4)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