Nice article.
|
Quote:
|
Quote:
|
Thanks Mokujin for the link but this would not help me
as i did this on first attempt though worked fine but messed however i achieve with PHP Code:
|
Quote:
Lets say you are the administrator and your usergourpid is 6, right? New members who registered have usergroupid 2 . And your students, you will have to move them to an another usergroup, lets say usergroupid is 15 And your file test.php will allow your students (and yourself) to access it - test.php file? |
Actually if some one is already registered he is not restricted to access forum
PHP Code:
on my test.php if user is loged in in it will load some instructions because i cant say "you are restricted" to those whom are not restricted. and if guest test.php will tell why you are restricted to access that's why i use this script 'register' if condition works fine for content load but create problems when i add some input fields for guests Code:
<vb:if condition="$show['guest']">Show this to guest only</vb:if> |
I have a problem, when I load the page, it logs me out, and when I log in, it gives me an invalid redirect.
Any way to resolve this? Thanks |
Quote:
|
How would I go about making a new page layout like this for a sub-domain?
|
Quote:
|
Quote:
|
Quote:
|
How do I make it so the page is restricted to usergroups?
|
Quote:
|
Quote:
And I'm logged in on the main forums, but not here on my custom page. (Note: I am editing this file to use with a mod. I have got the main file for creating forms - but i've added PHP Code:
Thanks |
great article, Thanks Lynne.
I have one question though. Say that my forum is located under www.mydomain.com/forum and I want to create a custom page with forum template, but in the main folder "out of the forum" like this www.mydomain.com/index.php does that work? if yes, what changes I have to make, please. Thanks in advance |
Quote:
|
Thanks again for the great tips, Lynne.
I have one more question about if it is possible to add a custom: header, navbar, footer, ...etc... if yes, how can I achieve that? Thanks P.s: I'm looking for customizing independent pages with different style and design within the vb forum... would that be possible? |
Quote:
|
Thanks @Digital for the great comments.
I have one more question though. If I want to use two styles at the same time indicating each custom page to use for example style 1 and other custom page use style 2, is that possible? if yes, how to define or indicate the style to each page independently? any idea? |
If you're customizing your own CSS, you can do whatever you want. There's no limitations there. But if you mean using the different styles in your Style Manager, then that's a little trickier. You can just put the style ID in the link to those pages, but that would set each user's options to that style each time they visited. I know forums can be set to force use a style without doing that, but I'm unfamiliar with how to do that for a custom page.
|
Thanks @Digital for the information.
I guess I will have to find a way to force the general style to forum pages while the custom style is used for custom pages. now I believe I need to look around the net to digg more for this issue. Thanks again. That was very helpful |
You should be able to do something like that at in a plugin on hook style_fetch
PHP Code:
|
Quote:
I found this thread also talking about the same thing I'm after: https://vborg.vbsupport.ru/showthread.php?t=267775 The one who asked the question in that thread mentioned the solution which is this code: Code:
if (STYLEID == 1){ as you know in the custom page, which is html or php and the template that I can create from vb admin cp.... so where exactly should I insert that code? looking forward to hearing from you :) |
That particular link is not the same thing that cellarius posted. That's a plugin that would only execute when a particular style is used. Not the other way around.
In your Admin CP in Plugins & Products, you'll see the Add New Plugin option. You put the code there in a new plugin, and select the hook cellarius mentioned. You should remember what THIS_SCRIPT is, as it's what you changed one of the test lines to when you created your custom page. |
Is there anything that has changed in vB4 over its progression that would cause the original code on the first page to not work?
I've used this as my starting point for an upgrade script I've had for years, but it stopped working and I'm trying to track down why. I'm having the exact same problem on a clean local install of vBulletin. Thanks! Brandon |
There isn't anything in the first post code that has changed. If you need us to take a look at your exact code, you should make a thread in the vB4 Programming forum and post your php code and template code and let us have a link to your page so we can see what is going on.
|
Quote:
That was clear. I followed the steps you mentioned, but it seems there is something wrong with the style. I have tested the style on vb pages, but the custom page shows weird styling.... :confused: it is like interaction between main style and other style. by the way, in your code Code:
if (THIS_SCRIPT == "test") any idea what's going on here? Thanks |
Remember in your custom page, where you changed the text in green?
Quote:
Can you link us to your page so we can see exactly what you mean by interacting? |
Quote:
for the style, I made actually a little mistake.... forgot to clear the browser cache and that's why the style was messy.... :D Thanks again. That was very helpful P.S: I found here at vbulletin.org a mod that let admin to use a global custom footer, any idea if this can replace $footer or {vb:raw footer} |
Thanks for the help. It turns out that it was a strange pathway issue in both situations. I'm not sure how that changed on my site, but I've got it working. Thanks for the swift help!
Brandon |
I run two forums hosted on two different servers. Is there a way to use this modification to pull the activity stream from the other forum?
I tried doing an RSS feed, but I would have to have a feed for every subforum, unless someone know how to feed the whole forum. |
I figured out how to do the feed for the whole forum, but it will create a new thread for every thread posted on the other forum. I just want a page or side block on site A showing "What's new on site B". Any ideas would be appreciated.
|
Quote:
forums & moderators > forum blocks > add the blocks you want So, create a php block and put your code in there. |
Quote:
Quote:
|
Which still has nothing whatsoever to do with this tutorial.
|
Yes I am a noob...
In which file do I add the code so users on the page display properly in the whos online? |
Quote:
|
Okay I will look again...
--------------- Added [DATE]1367453675[/DATE] at [TIME]1367453675[/TIME] --------------- Is this the file? where is it located? what is the file extension? Quote:
Can you please point out it says where you are supposed to place the code? I am not a code wizard and I'm really trying to learn this stuff. I think sometimes it gets forgotten that there are newbies on the site. |
You use the plugin system which is documented in the manual here - http://www.vbulletin.com/docs/html/p...rsion=40200603
|
All times are GMT. The time now is 05:20 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:
|