Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 11-02-2001, 12:55 PM
Inzagi Inzagi is offline
 
Join Date: Nov 2001
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,
I now that there already exists a kind of hack for Login/Logout on forumdisplay (at least login) on the forumdisplay template because the winner of "vB of the month" has something like this.

Ist there already an public hack for this or can someone write one?
Reply With Quote
  #2  
Old 11-02-2001, 02:34 PM
Mark Hewitt Mark Hewitt is offline
 
Join Date: Oct 2001
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's actually not too hard to do. I haven't got time to give the details but basically all you need to do is look at forumhome and find the variables included to put the login box on the page and then put these into the appropriate forumdisplay templates.

Next step is to find the places in index.php where these templates are called and copy that bit of code into forumdisplay and it should work!
Reply With Quote
  #3  
Old 11-02-2001, 02:49 PM
Sinecure's Avatar
Sinecure Sinecure is offline
 
Join Date: Oct 2001
Location: Victoria, BC, Canada
Posts: 407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Who's board has this hack?? Paintballcity?
Reply With Quote
  #4  
Old 11-02-2001, 05:35 PM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

actually its within the styles part of your forum and its already included as standard its just commented out.

Just remove the <!-- and --> from the Header part of the Style Set.

Admin Panel > Styles > Modify > Default > Header

hope this helps
Reply With Quote
  #5  
Old 11-04-2001, 04:14 PM
Inzagi Inzagi is offline
 
Join Date: Nov 2001
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@ppn:
Sorry, there is no "<!--" which is not needed ..
there is only:
<!-- logo and buttons -->
<!-- toplinks -->

I don't think that deleting this ones would help anythink



@Sinecure:
Right,
at Paintball City this feature is included.
See here for example:
http://forums.paintballcity.com/foru....php?forumid=3



@Mark:
Quote:
It's actually not too hard to do. I haven't got time to give the details but basically all you need to do is look at forumhome and find the variables included to put the login box on the page and then put these into the appropriate forumdisplay templates.
ok I have done that before.

Quote:
Next step is to find the places in index.php where these templates are called and copy that bit of code into forumdisplay and it should work!
Do you mean forumdisplay.php or the template ?? (sorry, I am a complete newbee in php and stuff...)
Reply With Quote
  #6  
Old 11-04-2001, 05:22 PM
Scott MacVicar Scott MacVicar is offline
 
Join Date: Oct 2001
Location: Glasgow, Scotland
Posts: 1,199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what i told you was correct, i'll show you exactly where it is then.

Go to styles, then the fonts/colors/etc, then the header edit box.


remove the <!-- and --> around the following
Code:
<!-- <a href="member.php?s=$session[sessionhash]&action=logout"><img src="images/top_logout.gif" alt="Logout" border="0"></a>  -->
What it should look like :

Code:
<!-- logo and buttons -->
<center>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
  <td valign="top" align="left" background="images/menu_background.gif"><a href="index.php?s=$session[sessionhash]"><img src="images/vBulletin_logo.gif" border="0" alt="$bbtitle"></a></td>
  <td valign="bottom" align="right" nowrap background="images/menu_background.gif">
   <!-- toplinks -->
   <a href="usercp.php?s=$session[sessionhash]"><img src="images/top_profile.gif" alt="Here you can view your subscribed threads, work with private messages and edit your profile and preferences" border="0"></a>
   <a href="register.php?s=$session[sessionhash]&action=signup"><img src="images/top_register.gif" alt="Registration is free!" border="0"></a>
   <a href="calendar.php?s=$session[sessionhash]"><img src="images/top_calendar.gif" alt="Calendar" border="0"></a>
   <a href="memberlist.php?s=$session[sessionhash]"><img src="images/top_members.gif" alt="Find other members" border="0"></a>
   <a href="misc.php?s=$session[sessionhash]&action=faq"><img src="images/top_faq.gif" alt="Frequently Asked Questions" border="0"></a>
   <a href="search.php?s=$session[sessionhash]"><img src="images/top_search.gif" alt="Search" border="0"></a>
   <a href="index.php?s=$session[sessionhash]"><img src="images/top_home.gif" alt="Home" border="0"></a>

--------------------------------------------------------

   <!-- <a href="member.php?s=$session[sessionhash]&action=logout"><img src="images/top_logout.gif" alt="Logout" border="0"></a>  -->

--------------------------------------------------------

   &nbsp;
   <!-- /toplinks -->
  </td>
</tr>
</table>
<!-- /logo and buttons -->
Unless you meant the little login editbox which is on the forum home page and in that case,

open forumdisplay.php

go to the bottom and above
PHP Code:
eval("dooutput(\"".gettemplate('forumdisplay')."\");"); 
put

PHP Code:
if ($bbuserinfo['userid']==0) {
  eval(
"\$logincode = \"".gettemplate('forumhome_logincode')."\";");

then open the forumdisplay template and add $logincode below $forumdisplay[threadslist]
Reply With Quote
  #7  
Old 11-06-2001, 07:33 PM
Inzagi Inzagi is offline
 
Join Date: Nov 2001
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Unless you meant the little login editbox which is on the forum home page and in that case,

open forumdisplay.php

go to the bottom and above
PHP Code:
eval("dooutput(\"".gettemplate('forumdisplay')."\");"); 
put

PHP Code:
if ($bbuserinfo['userid']==0) {
  eval(
"\$logincode = \"".gettemplate('forumhome_logincode')."\";");

then open the forumdisplay template and add $logincode below $forumdisplay[threadslist] [/B]

Thank you, that was exactly the thing I was looking for !!!
But, altogh the login box appears where it should appear, the login from the forumdisplay does not work ..

It says : couln'd find the site
and this URL:
http://localhost:9000/forums/member.php?location=<?=/php/php.exe/forum/forumdisplay.php%20?>?<?=s=46d0728c26506e9d173d964 58ecc6bee&forumid=2%20?>

anythink I can do ?
Reply With Quote
  #8  
Old 11-11-2001, 02:08 PM
Inzagi Inzagi is offline
 
Join Date: Nov 2001
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone who could help me ??
Reply With Quote
  #9  
Old 12-16-2001, 10:32 AM
Inzagi Inzagi is offline
 
Join Date: Nov 2001
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone ??
Reply With Quote
Reply

Thread Tools
Display Modes

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 07:45 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.04389 seconds
  • Memory Usage 2,252KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (4)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete