vBulletin Mods

The Official vBulletin Modifications Site
http://www.vbulletin.org/forum/showthread.php?t=233871

Da-Vinci 10 May 2010 16:57

Hi great mod, but I'm having a few problems with getting it to display on my custom pages.

I've done the template edits but I'm a little unsure where exactly to put this in the .php file.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I've tried it in a few different places, but I either get a white page or just the normal page with no sidebar?

Here is my .php code, could somebody just point out were I need to add the additional code.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Cheers

almannai 11 May 2010 11:30

Quote:

Originally Posted by Da-Vinci (Post 2034596)
Hi great mod, but I'm having a few problems with getting it to display on my custom pages.

I've done the template edits but I'm a little unsure where exactly to put this in the .php file.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I've tried it in a few different places, but I either get a white page or just the normal page with no sidebar?

Here is my .php code, could somebody just point out were I need to add the additional code.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Cheers

your php code is not full code it seams you didn't copy the full code

but anyway as part of your code above your php page show look like the following



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Da-Vinci 11 May 2010 14:30

It's still not working, I must not have copied the complete code in my other post, but this is what my .php file now looks.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I used the code you pasted, but I just got a white page. I'm using 4.0.3 if it makes any difference.

almannai 11 May 2010 16:55

Quote:

Originally Posted by Da-Vinci (Post 2035148)
It's still not working, I must not have copied the complete code in my other post, but this is what my .php file now looks.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I used the code you pasted, but I just got a white page. I'm using 4.0.3 if it makes any difference.

This should do it

see the render should be at the end after registering the variables

Please let me know how it goes


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Da-Vinci 11 May 2010 23:24

Excellent that worked, thank you very much indeed.

almannai 12 May 2010 06:35

you r welcome

BRotondi 13 May 2010 10:35

Thanks for this mod! Nice work!

Bruno

BRotondi 14 May 2010 16:50

With your nice mod, I can create a subforum navigation in the sidebar :).

But one Problem: How to determine, in which forum the user is at the moment?

I can set my php-block to "never cache", but $forum[forumid] is not evaluated at the moment, "includes\block\html.php" evaluates it...

An idea how to solve this?

Thanks!
Bruno

Edit: Got it! Use $GLOBALS['foruminfo']['forumid']

AK47 Nemesis 15 May 2010 06:32

Great mod, one question though, I want to use it on my vBadvanced frontpage. How would I enable it on this piece of php?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


BRotondi 15 May 2010 08:02

Have a look at the plugins "Product : EveryWhere Sidebar". Perhaps you should simply add another one for you frontpage. Read "Instructions for custom pages"? Perhaps also this helps.

almannai 15 May 2010 11:42

:)
Quote:

Originally Posted by BRotondi (Post 2036987)
With your nice mod, I can create a subforum navigation in the sidebar :).

But one Problem: How to determine, in which forum the user is at the moment?

I can set my php-block to "never cache", but $forum[forumid] is not evaluated at the moment, "includes\block\html.php" evaluates it...

An idea how to solve this?

Thanks!
Bruno

Edit: Got it! Use $GLOBALS['foruminfo']['forumid']


Great :)

Quote:

Originally Posted by AK47 Nemesis (Post 2037234)
Great mod, one question though, I want to use it on my vBadvanced frontpage. How would I enable it on this piece of php?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I think you should register variables as instructed in the vba_cmps_include_template.php file. I'm guessing as I don't know how vba works

Khan_ 16 May 2010 04:22

i am using this mod to have a custom page --> http://www.vbulletin.org/forum/showthread.php?t=235359 ..and i dont know which template to edit and add {vb:raw sidebaropen} and {vb:raw sidebarext}

i am using vb 4.0.3 . please help .

it works flawless on all default vb pages except custom pages .. Wonderful mod .

marked as installed~
Nominated for motm~

BRotondi 16 May 2010 08:18

Quote:

Originally Posted by Khan_ (Post 2037701)
dont know which template

Use Firebug to see element details. Then search templates for this detail. But not sure, if this works also here...

BRotondi 16 May 2010 08:25

And perhaps this one is also interesting for some users: You can change the title of any php block by customising $this->blockinfo['title'] with any html code. Including images, links, ... :)

Here an example, how to use this for navigating: vbMediaWiki, Missiologie. with php-code

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Of course more automation is possible here. Only a first step.

AK47 Nemesis 16 May 2010 19:19

Quote:

Originally Posted by BRotondi (Post 2037259)
Have a look at the plugins "Product : EveryWhere Sidebar". Perhaps you should simply add another one for you frontpage. Read "Instructions for custom pages"? Perhaps also this helps.

Where would I hook it to? And you have any idea what exact code to use for the plugin?

Quote:

Originally Posted by almannai (Post 2037306)
I think you should register variables as instructed in the vba_cmps_include_template.php file. I'm guessing as I don't know how vba works

There's nothing like those 2 needed lines, so I have no idea where to put it in.


All times are GMT. The time now is 09:28.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2001 - , vbulletin.org. All rights reserved.