Got everything working as we wanted thanks for all the help Lynne great support
|
Hi guys,
I have just created my first php vbulletin page following the instructions on the first page. Is there any way I can control the access to specific areas of my page according to the member's permission? If so can you point me to some code examples please? TIA, George PS: Please be gentle PHP/vbulletin is fairly new to me :). |
Quote:
PHP Code:
|
Thank you so much Lynne, that worked :).
I have another question pertinent to this page--I want to use it to add a form that only contains a type=file input field and upload that file on the server. I have created the form but when trying to submit, I get the following error: Your submission could not be processed because a security token was invalid. I am pretty sure that I will need to pass the credentials as well--do you know how I can accomplish this? TIA, George --------------- Added [DATE]1303235753[/DATE] at [TIME]1303235753[/TIME] --------------- I got it! I am adding the code for the whole form below: Code:
<form action="test.php" method="post" enctype="multipart/form-data"> George |
Yep, you got it. Thanks for sharing it. :)
|
Hi all,
there is a way to set in a specific navtab a different style? I would to set for each navtab a different style? How it's possible? Thanks a lot :) |
Quote:
|
sorry,
this is a misunderstanding.... I've add my ownvBulletin page using my MASTER style... It's possibile create my own vBulletin page with another different style... In this way i've differents style in differents page? Thanks you a lot |
You may change the template for the different styles.
|
Sure,
but in this way user must change style and all the page will have the same style. I would to create page with different style. It's possible? |
Is it possible to change the template to work exactly like the front-page cms (create menu and everything).. So for it to look like this :
https://vborg.vbsupport.ru/external/2011/05/49.png |
Quote:
|
Quote:
|
Quote:
|
Ok, so I know I've got to be doing something wrong, but I cannot figure it out for the life of me. I've loaded the php file into my root directory, added the template into my style, but whenever I try to key in the URL for the php, I get a 404 error.
I've checked my spelling, capitalization, and file location. Made sure everything is lined up, but I just cannot seem to clear the 404 error. Any suggests? |
How about a URL?
|
PHP Code:
--------------- Added [DATE]1304454436[/DATE] at [TIME]1304454436[/TIME] --------------- OK, figured out what was going on! Thanks for the willingness to help out! |
Hello Lynne,
we managed to use this fantastic mod to create the perfect custom page using this mod and wanted to thank you for all your hard work and great support, much appreciated. We want to use our new custom page as the first page (log in page) people see when they type in our website URL, how do we change things in VB so we can make this happen. When they log in they are then taken to the front page in the CMS as per normal. We have set all the log in places and links to do this all I need to know is where to change things to make this the 1st log in page please. thanks again for a great mod and great support |
Quote:
|
Heh Lynne,
thanks for response. No I am a total technical idiot so would never have thought of that. I assume I would then have to name orignal index.php something else or is there not currently a file called index.php |
Have you tried looking at the default vbulletin index.php page? It just points to another page. Replace it with whatever you want (keep a copy in case you don't like your new page).
|
Hello Lynne,
Sorry another stupid question, where do I find this and how do I do that. Sorry as mentioned total technical idiot, need clear step by step instructions so I dont break it. Thanks in advance |
Hello Lynne,
any chance you can give me the instructions to sort out above issue. regards and thanks Mark |
Quote:
|
Thanks Lynne.
I tried to get it to work, but I get blank page. I am using vb4.1.2 I saw your earlier responses to similar problems, bu I am sure I have the template added to all styles including the master. Any help ? |
Quote:
|
thanks Lynne I will give it a try
|
Quote:
Just copy and paste of your exact codes. But it did not work. |
Quote:
|
Quote:
Any idea why I am getting blank page ? --------------- Added [DATE]1305448785[/DATE] at [TIME]1305448785[/TIME] --------------- Quote:
Can you then update it to work with 4.1.2 and higher. Many thanks in advance. |
There is no need to update it. It works perfectly fine in 4.1.2 an 4.1.3. The basic page structure hasn't changed at all in the 4.x series.
|
I have created custom page in vbulletin forum but don't know how to link it from navigation bar.
Please help |
Quote:
|
I have created new page in vbulletin using the following code but is it blank
Please let me know the issue First I prepared new custom page in named we-support.php <?php error_reporting(E_ALL & ~E_NOTICE); define('NO_REGISTER_GLOBALS', 1); define('THIS_SCRIPT', 'we-support'); $phrasegroups = array(); $specialtemplates = array(); $globaltemplates = array( 'test' ); $actiontemplates = array(); require_once('./global.php'); if ($vbulletin->options['ctab_enable']) { $noaccessgids = explode(",", $vbulletin->options['limit_groups']); if (is_member_of($vbulletin->userinfo, $noaccessgids)) { print_no_permission(); }else{ $content = $vbulletin->options['content']; } $pagetitle = $vbulletin->options['custom_title']; $navbits = array(); $navbits[$parent] = $vbphrase['custom_message_title']; $navbits = construct_navbits($navbits); $navbar = render_navbar_template($navbits); $templater = vB_Template::create('test'); $templater->register_page_templates(); $templater->register('content', $content); $templater->register('navbar', $navbar); print_output($templater->render()); } ?> ============================ And Prepared new template named test $stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <title>$vboptions[bbtitle]</title> $headinclude </head> <body> $header $navbar <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat">Title</td> </tr> <tr> <td class="alt1">Text</td> </tr> </table> $footer </body> </html> But When I opened it I found blank page http://college-chat-rooms.gradchat.net/we-support.php --------------- Added [DATE]1307024721[/DATE] at [TIME]1307024721[/TIME] --------------- Issue solved After deleting these lines the issue solved if ($vbulletin->options['ctab_enable']) { $noaccessgids = explode(",", $vbulletin->options['limit_groups']); if (is_member_of($vbulletin->userinfo, $noaccessgids)) { print_no_permission(); }else{ $content = $vbulletin->options['content']; } |
Is there any way to have each custom page have its own custom meta tags? I guess I could add about 100 if conditionals in the headinclude, but would this not bog things down?
|
You may add your own meta tags into the pages. Just put it up where the headinclude template gets included.
|
That is half the solution.
The problem then would be the second set of "default" meta tags also served up. To combat this I created a template which copies headinclude minus all the meta info, which is placed into the page templates. This is the first time I have pulled out vb4 since the "not ready for prime time" release. Luckily after my 3rd attempt to locate my old test backups, I finally found them :). Dave |
Quote:
i am a newby. I made step one and uploaded the file to forum root. but how can i create the template? can you tell me the steps i have to follow please? |
Quote:
|
what condition can I use to only have a certain forum shown on a new .php page.
|
All times are GMT. The time now is 05:02 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 | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|