Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Yet Another vB Login on non-vB Page Details »»
Yet Another vB Login on non-vB Page
Version: 1.00, by calorie calorie is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.5.0 Beta 1 Rating:
Released: 06-25-2005 Last Update: Never Installs: 65
 
No support by the author.

This is not a plugin, nor is it a code modification. It is a separate script, so just configure the attached script, FTP it to wherever, and then call it from your browser. Once you test it out, you can edit the script to show whatever content you desire. Look at the code to see where to set your content. If you don't like this script, try mcahill's vB login on a non-vB page here.

If you use this script, click the install button. This allows you to receive update notices, should any be sent. It is also a nice way to say thanks!

Fine Print: Obviously, use at your own risk. Support is not guaranteed. This script may not be redistributed!

25 Jul 2005: added $session to make_page_content global list

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 02-24-2006, 01:36 AM
ConKien ConKien is offline
 
Join Date: Apr 2004
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #43  
Old 04-10-2006, 04:41 AM
Sean James's Avatar
Sean James Sean James is offline
 
Join Date: Apr 2004
Location: Sydney, Australia
Posts: 895
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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') . '";');
Reply With Quote
  #44  
Old 04-10-2006, 04:43 AM
Sean James's Avatar
Sean James Sean James is offline
 
Join Date: Apr 2004
Location: Sydney, Australia
Posts: 895
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its all good i figured it out hehe
Reply With Quote
  #45  
Old 05-01-2006, 10:44 AM
aceofspades's Avatar
aceofspades aceofspades is offline
 
Join Date: Apr 2006
Posts: 306
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 :'(
Reply With Quote
  #46  
Old 05-01-2006, 01:48 PM
Sean James's Avatar
Sean James Sean James is offline
 
Join Date: Apr 2004
Location: Sydney, Australia
Posts: 895
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #47  
Old 05-01-2006, 05:17 PM
twitch's Avatar
twitch twitch is offline
 
Join Date: Apr 2005
Posts: 260
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is just what I need, thanks!
Reply With Quote
  #48  
Old 05-02-2006, 05:25 AM
Sean James's Avatar
Sean James Sean James is offline
 
Join Date: Apr 2004
Location: Sydney, Australia
Posts: 895
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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);
}
Reply With Quote
  #49  
Old 09-13-2007, 06:27 PM
DHDesign DHDesign is offline
 
Join Date: Sep 2007
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #50  
Old 11-25-2008, 07:15 PM
msnhockey msnhockey is offline
 
Join Date: Jul 2008
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #51  
Old 02-01-2009, 05:40 AM
kwchan kwchan is offline
 
Join Date: Dec 2004
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:56 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08774 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (11)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete