vBulletin Mods

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

soundbarrierpro 08 Mar 2008 20:47

Can I have the php pages set outside the forum root. Basically at the host root?

jambo_1969 09 Mar 2008 14:18

Amazing !

Works perfectly - even managed to get it into the Navbar

:D

robertpro2a 20 Mar 2008 05:15

Thank you to the original poster for providing this source code.

I have successfully installed the test page. Is there a way to only allow the test page to load if the user is logged in? I allow guests to browse my forums; but I do not want them to be able to browse my test page.

Regards,
Robert

amcd 20 Mar 2008 10:12

Quote:

Originally Posted by robertpro2a (Post 1469319)
Thank you to the original poster for providing this source code.

I have successfully installed the test page. Is there a way to only allow the test page to load if the user is logged in? I allow guests to browse my forums; but I do not want them to be able to browse my test page.

Regards,
Robert

Read through the thread. It has been discussed.

dismas 28 Mar 2008 01:27

I keep running into parse errors for some reason. I don't know why though since I've used this writeup before to add pages to another of my forums. On this other forum, I'm having issues. The forums are with different hosting companies. Would that make a difference?

The first error that I got said that there was a parse error due to an unexpected ~ on line 4. I took the tilde out and then it told me this:


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

Line 8 is the last line here:


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


Lynne 28 Mar 2008 01:43

Quote:

Originally Posted by dismas (Post 1476315)
I keep running into parse errors for some reason. I don't know why though since I've used this writeup before to add pages to another of my forums. On this other forum, I'm having issues. The forums are with different hosting companies. Would that make a difference?

The first error that I got said that there was a parse error due to an unexpected ~ on line 4. I took the tilde out and then it told me this:


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

Line 8 is the last line here:


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

Um....
define('THIS_SCRIPT',+'writeups');+//+change+this+depending+on+your+filename

You've got a + after the ; and before the // You can't do that. And I don't know about the + before 'writeups' either.

dismas 28 Mar 2008 01:59

Actually, I have no idea where the + came from. I did a straight copy/paste and the + is not in there.

Lynne 28 Mar 2008 04:59

Quote:

Originally Posted by dismas (Post 1476327)
Actually, I have no idea where the + came from. I did a straight copy/paste and the + is not in there.

What are you using to edit the page? You need to use something like bbedit/notepad not word. If you don't use a plain text editor, then it could be adding extra characters which would then cause the problems you are seeing.

dismas 28 Mar 2008 05:49

Actually, it's funny that you say that since it is BBEdit that I used. I even tried copying and pasting the php from this thread into a text document in TextEdit and still, the same errors came up.

Lynne 28 Mar 2008 16:32

Quote:

Originally Posted by dismas (Post 1476469)
Actually, it's funny that you say that since it is BBEdit that I used. I even tried copying and pasting the php from this thread into a text document in TextEdit and still, the same errors came up.

So you copy/pasted what was in the first post into a page and tried it on that site and you got the errors?

(Is this thread the best place to discuss this or would it be better off in it's own thread where more people can come and help?)

dismas 28 Mar 2008 17:52

Nevermind... I don't know what I have set different but it's the version of BBEdit that is screwing this up somehow. (Although I'm not sure why I got the same results with TextEdit)

What I was doing last night was on my MacBook.

I just tried to create the custom page again on my G4 tower and it worked fine. The G4 has BBEdit version 7 on it while the MacBook as the updated ver. 8.

Well, it's either that or my FTP software is doing something funky... Both of the computers have the same version of that but maybe one is sending the file in a different manner...

Either way, this is my issue to fix... Sorry for wasting everyone's time.

--------------- Added 28 Mar 2008 at 17:58 ---------------

Quote:

Originally Posted by VeoMorphine (Post 483072)


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

that makes it so usergroup 6 5 and 7 can download that file.

Oh, one more question... Where would this code segment go? Would it just replace this part:

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


RetroDreams 30 Mar 2008 02:28

How do you adapt this article to add queries and pull data from the database? Is there an additional article out there? I've searched but came up empty.

Opserty 30 Mar 2008 13:46

Quote:

Originally Posted by RetroDreams (Post 1478001)
How do you adapt this article to add queries and pull data from the database? Is there an additional article out there? I've searched but came up empty.

You just add the PHP you need to the PHP page...

RetroDreams 30 Mar 2008 18:54

Yeah, I end up figuring it out with trial and error. My problem was I didn't realize you needed a separate template for looping but I got it squared away.

dfc005 02 Apr 2008 12:44

So, I'm thinking of implementing this into my forum but I have a question, do you have to edit any vbulletin files to make this work? Or is it just templates and then creating my own php files?


All times are GMT. The time now is 11:47.

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