I guess it wasn't cookies then - it was just a thought.
|
Thanks for the try:
As Lynne suggested, I tried adding: Code:
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" /> Code:
<input type="hidden" name="securitytoken" value="guest" /> Code:
<script type="text/javascript"> |
If it isn't recognizing you, then the global.php file isn't getting called/included correctly.
|
Yes, I agree that I am having trouble getting global.php called correctly through this rendering system.
I have tried adding Code:
chdir ('/home/touring7/public_html/'); to /kb/knowledgebase.php and directly to the template in my style called KBPublisher (if you are following my earlier post) and I have had no luck. If I just load knowledgebase.php at the browser, I am logged in fine. As you recall from earlier post, kb/index.php calls /kb/knowledgebase.php as a kb template which then calls the vB template KBPublisher. Everything displays as expected but I am not logged in. I even tried defining a tag called {global_load} to try and insert an additional call to global.php by inserting the php code to no avail. Two ideas: (1) Do I need to 'register' a page such as /kb/index.php? (2) Perhaps I could call global.php at /kb/index.php to define security tokens and etc and then pass that code via a tag to the vbulletin template via the /kb/index.php rendering system. Suggestions for what form that code should take? Please help me get the global.php called and working correctly. --------------- Added [DATE]1323374293[/DATE] at [TIME]1323374293[/TIME] --------------- I am continuing to experiment and I might be close, if I can get some help: In the /kb/input.php I place the following code: Code:
$curdir = getcwd (); Can someone suggest a way I can get that rendered page to accept the security token so it will see me as logged in? Thanks. |
PHP Code:
Unable to add cookies, header already sent. File: premade.php Line: 1 :confused: |
Quote:
|
This is Great man Thanks for the Lynne :D i will try this out,
|
Excellent..Works great.
|
I am having a small problem and want to see if anyone can assist me.
I am trying to create a list with HTML and it isn't recognizing it, any ideas? Here is a sample of what I am putting in: <ul> <li> item name </li> <li> item name </li> </ul> I used the same code in making a new faq item and it worked fine, but not working in this form. Link to faq item: http://www.theoutdoorstrader.com/faq.php?faq=supporter Link to new form: http://www.theoutdoorstrader.com/supporter.php |
You need to make the css for ul and li ;)
|
Quote:
|
Hmm....I stand corrected.... Looking back on a few of my custom pages, I have them working just fine using what you have above. Do you mind posting what you have in your entire template?
--------------- Added [DATE]1325225260[/DATE] at [TIME]1325225260[/TIME] --------------- Also, your php file so we can make sure everything is correct in there :) |
Here is my php file:
PHP Code:
And here is my template: (Please pardon my first grade understanding of html!) HTML Code:
{vb:stylevar htmldoctype} |
Quote:
|
I think I understand now, but I still can't get it to work.
I pasted the style code into the header of my template, is that right? Here is my current template: HTML Code:
|
Looking great. But i am new and it take time for me to do this kind of experements on online forum. i guess should try on localhost.
|
If you copy paste some code, you need to understand what it means. "ul.unordered" means a <ul> tag of class "unordered". I would guess you did not assign a class to your <ul> tag. (I cannot get to your page to see if that is the case.)
|
I wouldn't get anything done if I understood all of it before I did it! :D
What page can you not get to? I posted links in my earlier post and in my last post I included the HTML from my template. Is there something else I need to link to or post here? |
If you want to use that css, then:
<ul class="unordered"> You'll want to get rid of the <p> around the items in the <li> tags also. |
Quote:
|
How do I remove the meta description and meta keywords from the static page? It inserts the default "Home" meta descriptions and keywords on the static page.
So how do I remove this? Or add custom meta description and keywords on the static page? |
Did you try just adding them into the template after the headininclude template is called?
HTML Code:
<meta name="keywords" content="xxxx" /> HTML Code:
<vb:if condition="$show['threadinfo'] OR Your Condition"> |
i need some help with this template using the information from 1st page
Code:
{vb:stylevar htmldoctype} http://img651.imageshack.us/img651/1876/whitedv.jpg |
I'm not really an html person, but I'm thinking maybe <div ... followed by <p ... is creating a blank line?
|
Just taking a quick look, this is totally not correct:
HTML Code:
<div class="blockbody"> |
Quote:
the reason it looks not correct was due to me removing some of the original code this from this point of it Code:
<div class="blockbody"> |
I don't know how that code should be since I didn't write it. I actually see no reason for any of the code I quoted to be in that page as it doesn't seem to do anything.
|
i created a custom page it just show an object (etc. picture)
i want to interage the forum (by forumid) into my custom page can all of you guide me which template that i need to concern for it any adviced or suggestion will be appriciated |
Quote:
|
Works great for my 404 page! Thanks!!! :D
|
The page should look like this.
http://www.xvgaming.com/games/stats/bfstats.php And here is the (second page) using this article to create the template http://www.xvgaming.com/bfstatsbynam...M_0:0:21788544 Here is the php file (standalone) that makes it like bfstats.php PHP Code:
Atleast thats what i think is wrong with it. Here is the link and the php/template files http://www.xvgaming.com/bfstats.php PHP Code:
Code:
{vb:stylevar htmldoctype} Thanks abunch in advanced. |
Why are you doing all these start and stop table rows? Why not just:
PHP Code:
HTML Code:
{vb:raw starttablecell1}{vb:raw RankNumber}{vb:raw endtablecell1} HTML Code:
{vb:raw output} |
That worked perfectly. And to answer your question This was my first dabble in PHP and MySql. Im trying to teach it to my self and work on different things. So THANKS a ton.
I have a friend that wants to make a chrome widget that will alert him to new PM's and thread subscriptions on a VB forum so im learning some things about php and vb. |
thanks i like this
|
I am still hoping for help. I have implemented dozens and dozens of pages using this process with lots of customization. Thanks Lyne. I have embedded newsfeeds, slideshows, spreadsheets, and etc. So I am fairly familiar with the method.
I am having trouble with one implementation. It looks beautiful, but it doesn't recognize me as logged in user. I call the test.php (using the demo model terminology from the original post in this article) from another page, let's call that index.php (really a complex application). If I require_once global.php on test.php, it doesn't work (printing variables shows me as a guest). I can require_once global.php on index.php and it works and shows me as logged in. I can pass the security token obtained from index.php to either test.php via an assign function in that application has very similar to the templater register used by VB for test.php. I have seen the security value on the test.php (printing variables) and have rendered the security value into the template html output. The result is that whenever I render an html page from this system (index.php calls test.php which uses template TEST to create an html page) it shows me as not logged in and the page source shows me as a guest. If I navigate to another forum page, I am still logged in. So here are some questions and hopefully I can get some help for further study: (1) If I can get a security token in the world of index.php such as PHP Code:
HTML Code:
<input type="hidden" name="securitytoken" value="{tokenkb}" /> One of two options, in my mind. I am either doing something wrong with passing the security token in terms of the input statement. Do I need to pass more than the security token? -or- index.php is disabling or clearing the session so the security token doesn't log me into the system. Interestingly, remember that if I navigate to another forum page I am still logged in and everything is fine. Does anyone have a suggestion on how to pass the security token. Does the syntax look OK. I have never unlocked a page in this manner. Or is there a command or series of command I can search through in the world of index.php that would disable (temporarily) the session so it can't recognize a user as logged in. I might be able to disable or adjust this function. Any advice or suggestions would be much appreciated. |
Why are you focusing on passing the securitytoken? What about the userid - that is the variable you need.
|
Quote:
My hack around this is to modify header to skip that assessment for this page (THIS_SCRIPT test) and not show anything in the upper right corner and to modify Navbar in the same manner to skip the messages for this page. So it's not elegant but it sort of works. The problem is that there are times that I get logged out after viewing this page (weird inconsistent behavior of tokens I think and browser caches). My thought is that if I could log myself back in after going through this other application, which apparently tries to flush the session or some sort of thing, I would be golden and this page would work like the dozens of others and I wouldn't have to worry about being logged out. So I thought if I used the security token I could log myself back in. This would be the cleanest approach forward. Any suggestions on how to do this, assuming you agree on the approach. I have seen some threads on remote login. Should I implement this on the test.php? Suggested thread for VB4 to help me do this? My security token notes were related to a post that Lynne made on this thread to use <input ...>. If I can't get this to work, my latest brainstorm is to experiment with merging index.php (the launch code for the other application) and test.php (the code for rendering VB pages via the tutorial Lynne pulled together). I don't like this approach since it will be difficult to maintain through updates of the other application, even assuming I can get it to work. The other application renders global variables into templates as well. I think it was already a miracle that I could get the other application to call test.php and have them both render things into the TEST template. Suggestions on approaches to stay logged in would be appreciated! --------------- Added [DATE]1327535262[/DATE] at [TIME]1327535262[/TIME] --------------- Additionally, does anyone have any idea of what types of php commands in the other application might be logging me off the vbulletin system? I might be able to search for those and circumvent them. Thanks. |
I've recently built a new page and want to put in ad locations. There's something about the variable "$ad_location" that won't let me do it. "$bad_location" works though. Is there some special handling you have to do to use that variable name?
|
Quote:
|
Well, the problem I'm having is that I don't use ads on my own forum but I'm working on a new page for someone else who does. So I don't know much about how to place ads, and it's hard to design a page that uses them and get a new set of locations in the adminCP. Anyway I'm fumbling my way through this by trial and error.
"$ad_location" seems to be reserved by vBulletin so you can't just use it any way you want. But as I said, I'm figuring this out. I wish you could search for "ad location" but "ad" is too short!!!!!! If I ever get this working maybe I should write an article. |
All times are GMT. The time now is 12:06 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 | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|