vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   [HOW TO - vB4] Create your own vBulletin page (https://vborg.vbsupport.ru/showthread.php?t=228112)

sr20de_99 06-04-2016 08:50 AM

I might have figured it out. Under the Admin CP -> Settings -> Site Name / URL / Contact Details

I had the following:
URL of your forum: http://mySite.ca
Always use Forum URL as Base Path: No

Chaging the Always use Forum URL as Base Path to Yes seemed to do the trick. Does that seem right?

netzoner 06-18-2016 06:53 AM

thanks
i will tray it

kerrghann 07-28-2016 01:06 PM

So I'm having a bit of trouble finding this anywhere.

Is there a way to make it so that my custom page is only view-able by a specific usergroup?

Dave 07-28-2016 01:39 PM

Quote:

Originally Posted by kerrghann (Post 2574078)
So I'm having a bit of trouble finding this anywhere.

Is there a way to make it so that my custom page is only view-able by a specific usergroup?

If you're not that familiar with PHP, just add an if-condition to your template.
https://vborg.vbsupport.ru/showthread.php?t=231525

kerrghann 07-28-2016 03:54 PM

Quote:

Originally Posted by Dave (Post 2574080)
If you're not that familiar with PHP, just add an if-condition to your template.
https://vborg.vbsupport.ru/showthread.php?t=231525

I'm alright with PHP, the vBulletin syntax was kicking my butt though. This list is great, much appreciated, solved all my issues.

MacroPhotoPro 12-15-2016 05:56 PM

Is there a way to write an HTML table onto this page?

I have tried using this format:

Code:

OutputTxt('<table><tr><td><th>
</th></td></tr></table>');

But it's not working :(

Any suggestions on how to insert an HTML table onto this blank php page?

Thanks!

Lynne 12-15-2016 09:08 PM

Quote:

Originally Posted by MacroPhotoPro (Post 2579478)
Is there a way to write an HTML table onto this page?

I have tried using this format:

Code:

OutputTxt('<table><tr><td><th>
</th></td></tr></table>');

But it's not working :(

Any suggestions on how to insert an HTML table onto this blank php page?

Thanks!

Put the HTML into the template, not the php. Or, assign the HTML code to a variable, register it for use in the main template, and then put the variable in the template (see the example for $pagetitle in the first post).

MacroPhotoPro 12-15-2016 09:42 PM

I've got it working now, Lynne, thank you.

Just want to say that this thread is a GREAT resource!

Much appreciated ... once again :)

Jack

Mattwhf 06-18-2017 07:56 AM

Thanks Lynne!

From your awesome guide, I could create my first vBulletin page
It is a page to list top web hosting companies and it worked as what I expected.

I am thinking I will add some new features as rating, comment box...for it to make it better.

Regards,

john7911 07-07-2017 04:18 PM

Hi :)
How can I add PHP code in this page?
Thank you ;)
-------------------
for example i want to put this code in a new page:
PHP Code:

<form action="<?php $_SERVER['PHP_SELF']; ?>" method="get">
 Diametre-Inter: <input type="text" name="Diametre-Inter"><br>
 Diametre-Exter: <input type="text" name="Diametre-Exter"><br>
 Division: <input type="text" name="division"><br>
 <input type = "submit" value = "Calculer">
 </form>
 
Diametre Interrieur: <?php echo $_GET["Diametre-Inter"]; ?><br>
Diametre Exterieur: <?php echo $_GET["Diametre-Exter"]; ?><br>
Division: <?php echo $_GET["division"]; ?><br>

<?php
$rayon_Inter 
$_GET["Diametre-Inter"]/2;
$rayon_Exter $_GET["Diametre-Exter"]/2;
$divis $_GET["division"];
for(
$i=$i<=360;$i+=360/$divis){
    
$r deg2rad ($i);
    
$k cos($r) * $rayon_Inter;
    
$l sqrt pow($rayon_Exter,2)-pow ($k,2));
    
$x $rayon_Exter $l;
    
        
        echo 
$x "<br>";
    
     
}



echo 
"<hr>";
echo 
$rayon_Inter "<br>";
echo 
$rayon_Exter "<br>";
echo 
"<hr>";

?>



All times are GMT. The time now is 08:55 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02282 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (3)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