vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   How to create your own vBulletin-powered page! (uses vB templates) (https://vborg.vbsupport.ru/showthread.php?t=62164)

adamskiii 03-20-2009 08:05 PM

Ok, so I have fixed this and its working now :D

Just one problem now. When I go to this page and want to click on one of the links there is, no matter what the link is this is where it it going when I click main link to go back to forum

http://www.mysite.com/Affiliates.php/index.php

How do i fix this so that all links on my page go where they are supposed to go and not constantly going back to this custom page?

Spinball 03-23-2009 05:20 PM

I have created a custom page and it's nearly working ok. However the stylesheet isn't loading. I have chdir into the forums folder but am clueless now what to do.
Any suggestions? TIA.

Adrian Schneider 03-23-2009 06:10 PM

All the images, stylesheets, etc. are loaded relative to your forums a dir. The easiest way to solve this is to add
Code:

<base href="http://www.yoursite.com/forums/index.php" />
between your head tags (before calling any external files).

Spinball 03-23-2009 06:38 PM

Quote:

Originally Posted by SirAdrian (Post 1775213)
All the images, stylesheets, etc. are loaded relative to your forums a dir. The easiest way to solve this is to add
Code:

<base href="http://www.yoursite.com/forums/index.php" />
between your head tags (before calling any external files).

perfect, thanks

Dagothar 03-24-2009 01:51 AM

1 Attachment(s)
Greetings! My thanks to the originator of this thread, and for the moderators and devs who are keeping us going. :D

I've followed the instructions, and I think it's performing exactly as it was meant to, but not quite like I need it to. So, I have two additional questions.

1. I'm an html beginner, a bit beyond n00b, and I think this is an html issue. Anyway, how do I get the html map to fill the page, and not remain limited to one line the way these instructions were originally set up?
The current output is here: http://www.the-sentinels.net/forum/DarkfallMap.php
My Darkfall.php and DarkFallMap templates are in the attachments here.

2. How do I limit access to this php page to certain usergroups, preferably in the Admin Control Panel? I suspect the latter involves making this a product/add on, and I am sure not ready for that.

Thanks in advance for any help. :)

ragtek 03-24-2009 08:53 AM

some small things:
1. your html code is false.
You have "2 body parts"

everything between:
Code:

<!-- Thanks to Exploiter.org -->
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
......
  </head>

shout be under $headinclude

Digital Jedi 03-24-2009 08:55 AM

Quote:

Originally Posted by Dagothar (Post 1775509)
Greetings! My thanks to the originator of this thread, and for the moderators and devs who are keeping us going. :D

I've followed the instructions, and I think it's performing exactly as it was meant to, but not quite like I need it to. So, I have two additional questions.

1. I'm an html beginner, a bit beyond n00b, and I think this is an html issue. Anyway, how do I get the html map to fill the page, and not remain limited to one line the way these instructions were originally set up?
The current output is here: http://www.the-sentinels.net/forum/DarkfallMap.php
My Darkfall.php and DarkFallMap templates are in the attachments here.

2. How do I limit access to this php page to certain usergroups, preferably in the Admin Control Panel? I suspect the latter involves making this a product/add on, and I am sure not ready for that.

Thanks in advance for any help. :)

The HTML in your template is the problem. There are a lot of errors that need correcting before you will know for sure what's causing it. See these errors: http://validator.w3.org/check?uri=ht...idator%2F1.606

Try correcting them one at a time, revalidating as you go, starting with the topmost error. You will find that often errors cascade, and fixing something as simple as a misplaced tag will correct dozens of others. But until you fix these you'll continue to have problems.

ragtek 03-24-2009 09:00 AM

Quote:

Originally Posted by Dagothar (Post 1775509)

2. How do I limit access to this php page to certain usergroups, preferably in the Admin Control Panel? I suspect the latter involves making this a product/add on, and I am sure not ready for that.

https://vborg.vbsupport.ru/showthrea...ight=usergroup

Dagothar 03-25-2009 04:30 AM

Quote:

Originally Posted by ragtek (Post 1775663)
some small things:
1. your html code is false.
You have "2 body parts"

everything between:
Code:

<!-- Thanks to Exploiter.org -->
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
......
  </head>

shout be under $headinclude

Quote:

Originally Posted by Digital Jedi (Post 1775664)
The HTML in your template is the problem. There are a lot of errors that need correcting before you will know for sure what's causing it. See these errors: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.the-sentinels.net%2Fforum%2FDarkfallMap.php&charset=(d etect+automatically)&doctype=Inline&ss=1&group=0&v erbose=1&user-agent=W3C_Validator%2F1.606

Try correcting them one at a time, revalidating as you go, starting with the topmost error. You will find that often errors cascade, and fixing something as simple as a misplaced tag will correct dozens of others. But until you fix these you'll continue to have problems.

Ahh, cool. Thanks guys. I'll follow both of your tips. :D

edytwinky 03-28-2009 04:04 PM

So when I create my own page, can I have the main portion of it all in html coding?


All times are GMT. The time now is 09:29 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.02605 seconds
  • Memory Usage 1,753KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete