I saw earlier instructions to take care of the WOL (Who's Online Location) display. It required editing a few standard VB files.
Seeing examples from plugins I thought I'd remention it here: Create a plugin called XXXX WOL Process Place it on the hook called: online_location_process Insert the following code (edited to your needs) PHP Code:
Place it on the hook called: online_location_unkown Insert the following code (edited to your needs) PHP Code:
All this does is: 1st, sets the "user activity" value based on the actual php file name. 2nd, when the WOL location is "unknown" then the script checks your custom php settings and if found - sets the user location display value and a link to the actual page. |
Quote:
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
Ahhhhhhh! The HTML goes in the template (which is obvious now considering that's how I did it in the other HOW TO guide). Thanks to you both!
Now www.elantraxd.com/forums/cotm.php is working great! I just have to redo the HTML so it doesn't look so bad. Actually, one further question, if I want to set up this page using <div> codes and such instead of the outdated <table> codes where would I need to put any of the CSS info associated with that stuff? Thanks again!!! |
CSS goes in the <head> If you are using CSS that is already defined (like the same CSS used on the index.php page) but not included in the headinclude template (like forumbits.css), then you can just include that same CSS template into your page:
PHP Code:
|
How add others pages 'within' current vBulletin files ?
as in this example: https://vborg.vbsupport.ru/showthread.php?t=62164 |
Thanks Lynne. I have much learning to do about CSS before I start down that path, thanks though.
|
Quote:
|
Quote:
https://vborg.vbsupport.ru/external/2010/01/67.png Thanks in advance. |
I do my WOL a little different and just added the code to the first post.
|
Quote:
|
Quote:
|
Great article, only issue is notices are showing up with no way to dismiss them, also the login box shows and won't go away even when logged in. Any idea how to remove this?
|
Quote:
|
Lynne, anyone, I have copied pasted the exact tutorial and I see nothing. First off, where should I see the results?
I have test.php in my $ROOTIDR (permissions are 755), I have TEST registered in my MASTER style with the exact code above. I understand fundamentally waht I'm doing here but I see no results. How to I test this? I see no error in my error_logs. Code:
<?php The template is registered, if I customize/edit it: Code:
{vb:stylevar htmldoctype} |
great article.. i was able to create the page... but my content doesnt support basic html tags .... why is that?????
|
Does anyone how to disable all notices in custom page? Thank you
|
Alright, my code looks good but I have two questions:
1) To get to my test page I do: http://localhost/test.php I see my test page. 2) If I then go to WOL link, I see My Page underneath it. So that works though I guess I didn't understand the point of the test page. However, I noticed that the link under WOL is: http://localhost/test.php? With no vbulletin session state passed to it. Is that right? |
There will not be a session state if you are logged in.
|
Anyone know why
HTML Code:
<strong></strong> and <ul></ul><li></li> http://www.mifbody.com/vbulletin/advertise.php If you view the source and then compare where it says "SOLD" in red - it should be strong. All the headings should be strong for that matter. Edit: Weird - HTML Code:
<b></b> |
Quote:
|
Been trying to get this to work all day with no luck, just get a blank page every time, copied it exactly but no joy :mad:
|
Quote:
Code:
$templater = vB_Template::create('test'); |
Awesome job, works great for me.
|
Quote:
Checked that a few times and still the same, must be doing something wrong creating the template. I went in to style manager / add new template and named it test then pasted in the info from the first page (2nd box) is this correct ? |
Quote:
Anyway - thanks for the info, Lynne. Guess I'll have to create my own CSS (yuck) just to be able to use strong and ordered lists... PS - frustration directed at VB development team, not you Lynne. |
Quote:
Quote:
Code:
<ul> As for the css for strong, just add this in your custom css for the page: HTML Code:
<style type="text/css"> HTML Code:
<ul class="unordered"> |
Quote:
|
Quote:
Thanks for your help, I sincerely appreciate it. The UL tags are being used correctly, though. I extracted just the content of the block and pasted it here: HTML Code:
Advertising with the Michigan FBody Association is a sure fire way to get more customers to your local shop! What better way to get local customers interested in your products than to advertise them on a website that thousands of Michigan residents would see? Let's take a look at the features that each Sponsor gets!<br> |
Try this for your css:
Code:
<style type="text/css"> HTML Code:
<LI>SubForum under the Sponsor Section |
throwing in the towel, cant get no joy with this lol
|
i need help in doing the following but not sure how to
found a mod for 3.8 and need to update this error, i need to update this in either a plugin or template and need help fetch_template() calls should be replaced by the vB_Template class |
Cellarius wrote a really good article that you may be interested in - [vB4] Rendering templates and registering variables - a short guide
|
Quote:
eval('$tblreports_list .= "'.fetch_template in a template |
Quote:
PHP Code:
PHP Code:
|
Quote:
http://<site url>/test.php to verify. I was focused on the WOL hooks and got very confused about EXPECTED output (it was so obvious I didn't realize it). Thanks! |
since too many common html codes are not working...
i would like to know which code should i use to break the line( change the link) <p> </br> doesnt work how do i break the line? plus what code should i use for a list? ul and li dont seem to work at all.. Please Advice. |
Quote:
Breaks work just fine. Your html is wrong... it's <br />. |
Worked great for me!! Cheers Lynne!! This How To is just awesome!!
|
Quote:
PHP Code:
|
All times are GMT. The time now is 12:04 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:
|