Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-18-2001, 05:44 PM
theflow theflow is offline
 
Join Date: Aug 2002
Location: San Francisco
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I want username recognition (if logged in) or log-in form (if not logged in) in all pages of those templates. Forumhome is already done, and I thought I could just re-use that code on the other 2 templates. Not so.

1. Here's my site's "Forum Home" page: www.theflow.com/forums
This is close to how I want it to look, but I want to be able to move the positioning of "Mark All Forums Read". Seems tied to the "not-logged-in" variable state display.

Please use this username for easy access, and to help me solve the problem below:
username: test
password: test

------------------------------------------------------------
2. Here was my best attempt to use code from the FORUMHOME template and insert it into FORUMDISPLAY template.

http://www.theflow.com/forums/forumd...p?s=&forumid=4

If logged in, it's more or less working, but I can't control the spacing and font color.
If not logged in, vB is drawing from some other variable or specification I can't find, and it displays a username & password field, but no submit button. How can I fix that, and also change/control the words displayed for either state (logged-in, not logged in)?
Reply With Quote
  #2  
Old 07-19-2001, 03:29 AM
BradC
Guest
 
Posts: n/a
Default

you might want to take a look at a couple of other pages..

altering the templates is fine.. but what is calling those templates..?

maybe look at the root/index.php and search for "FORUMHOME" it should come up a few times...

so if you are wanting the welcometext part and everything to show on all forumdisplays and showthreads part.. you will have to set it where it is recongized as being apart of the template... dunno though

Maybe someone smart can help you out... seriously! but... take a look at this part of the code or around.

PHP Code:
// if user is know, then welcome
if ($bbuserinfo['userid']!=0) {
  
$username=$bbuserinfo['username'];
  eval(
"\$welcometext = \"".gettemplate('forumhome_welcometext')."\";");
  eval(
"\$logincode = \"".gettemplate('forumhome_logoutcode')."\";");
  eval(
"\$newposts = \"".gettemplate('forumhome_newposts')."\";");

} else {
  eval(
"\$newposts = \"".gettemplate('forumhome_todayposts')."\";");
  eval(
"\$logincode = \"".gettemplate('forumhome_logincode')."\";");

edit this out if I pasted to much code
Reply With Quote
  #3  
Old 07-19-2001, 04:31 AM
theflow theflow is offline
 
Join Date: Aug 2002
Location: San Francisco
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by BradC
you might want to take a look at a couple of other pages..

altering the templates is fine.. but what is calling those templates..?
Excellent Brad, thanks so much for looking. You're the first person to reply to this request. I posted it a few days running on the "How do I" forum.

To answer your question, look at this thread:

http://www.vbulletin.com/forum/showt...086#post141086

and go to the post above the last one: by RC Cola. He seems to unearth the issue. Then below that, in reply, I cut & paste every relevant passage I could find by searching vB for "login" and finding 141 posts. The compendium of excerpts seems to narrow down the elements. I just don't know how to stitch them together.
Reply With Quote
  #4  
Old 07-20-2001, 01:04 PM
BradC
Guest
 
Posts: n/a
Default

geeze... I am at work and when I replied I was at work... sucks that I cannot look at the templates and code.. to see if I could help more..

if you still have problems.. stitching them together.. I will try when I get home.

/me emails himself @ home.
Reply With Quote
  #5  
Old 07-20-2001, 06:44 PM
theflow theflow is offline
 
Join Date: Aug 2002
Location: San Francisco
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Brad! getting closer... I'm sure you could help drive this over goalline I sent you email...

----
You will see the issue if you go to any forum threadlist page on my work-in-progress site, like:
http://www.theflow.com/forums/forumd...?s=&forumid=17

I finally was able to cobble together some code from error_nopermission_loggedout and username_loggedout and put it in a table top right of screen. Partial solution. But it has problems.

(1) Once you log in from that screen, it DOES return you to same place (this is good), and it DOES display your username, (this is good), but it also continues displaying the "Login" button (bad.) I was told that a form tag is in one of those other parent templates, thus when I add form actions within my new "forumdisplay" template, there are redundant tags...

(2) I also want to control the visual display of this log in, to better match how I finally got it to show up on the ForumHome page:

www.theflow.com/forums.

(3) I want the action upon "logout" to retunt me to the page I was on, rather than the "forum index" page. I'm wondering if the codebit $scriptpath is relevant? To my untrained eye, it seems to me that that code variable is what accomplished the similar "return to where you are" when one logs-IN.

Any any help would be appreciated. I am at the end of my road.
Here's the code I inserted into forumdisplay:

Code:
<table width="300" border="0" cellpadding="2" align="right" cellspacing="0">
<tr>
	<td>
	<form action="member.php" method="post"><input type="hidden" name="s" 	value="$session[sessionhash]">$logincode 
	</td>
<tr>
	<td>
	<normalfont>
	<input type="hidden" name="action" value="login">
	<input type="hidden" name="url" value="$scriptpath">
	<input type="submit" class="bginput" value="Login!">
	</form>
	</normalfont>
	</td>
</tr>
</table>
Reply With Quote
  #6  
Old 07-20-2001, 07:12 PM
BradC
Guest
 
Posts: n/a
Default

well if it displays the person logged in and everything just fine, but also is still displaying the log in box... it might need an extra if statement made..

but.. that would change everything around..

cause if you put if logged in, don't show user login block else show login block... but unless maybe if you make the login box code into a new template and name it whatever and take that part out of the current templates... and then add it..

sorry I am not in my college nt server class... and umm sneaking away while at break hehe

I will look at this more tonight.. I am sure the developers know.. they are just probably busy... looking for John
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 01:02 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.04635 seconds
  • Memory Usage 2,216KB
  • Queries Executed 11 (?)
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
  • (1)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (3)postbit_onlinestatus
  • (6)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete