The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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)? |
#2
|
|||
|
|||
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:
|
#3
|
|||
|
|||
Quote:
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. |
#4
|
|||
|
|||
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. |
#5
|
|||
|
|||
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> |
#6
|
|||
|
|||
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 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|