vBulletin Mods

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

paulomt1 23 Feb 2006 03:09

I need add this code to php file but doesn't work.

$ch = curl_init ("http://www.domain.name?".$QueryString);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_exec ($ch);

if(curl_error($ch))
echo "Error processing request";

curl_close ($ch);


But if I comment this line it works, but is not a vbulletin page anymore :-(
eval('print_output("' . fetch_template('my_template') . '");');

I've solved the problem.

Barakat 24 Mar 2006 21:54

loook i made this .... but need ur help .
hi !

i have a little problem in reading and viewing some html from my database which i make it .... acually iam trying to make some differnt hack which can read templates from the database instead to include it to the style templates

the idea comes to me when i was trying to add some html templates to the style and i saw that its from the stupidity to add a houndred templates to a styles so it will make the forum style very heavy for me . any way here is the idea ....

i create that


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

and add for every id and content a unique number with a full html template.

i have more than 100 id with 100 full html text pages for that .
so i make a php file with a name of test.php and include that code inside it :


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

www.forum/test.php?id=1
while browseing the file , a blank page appears to me !!!1

so ...........

if i include 'test_h' template to the style it will open it nicely but i need to read from my database by its id so to browse is as its browsed from the style it self:-

now if i want to read the templates from my styles i just make that changes

// pre-cache templates used by all actions


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

and add that code instead of the main script corner


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


and off couse the test_h template is included and it tooks a style like that :-




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

P.S i tried also to include the functions in a function_test file and upload it to the includes but it did not works .......

Eagle Creek 24 Mar 2006 21:59

Hi Guys!

I read this:
http://www.vbulletin.org/forum/showthread.php?t=98009

But I can't get it working.

It's about this page:
http://www.nucia.nl/forum/donatie.php

So what I do is:
Quote:

Plugin:
Product: vBulletin
Hook Location: online_location_process
Title: My Custom Location (Part1)
Plugin PHP Code:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

[b]Plugin is Active: Yes
Quote:

Plugin:
Product: vBulletin
Hook Location: online_location_unknown
Title: My Custom Location (Part2)
Plugin PHP Code:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Plugin is Active: Yes
But it keeps saying 'unknow location'. Can somebody tell me what I'm doing wrong?

Cebby 24 Mar 2006 22:27

Mine does that, but the page looks good and works - that's the important part to me. The location thing is nothing more than an annoyance at the moment.

blackwidow 06 Apr 2006 07:17

how can i let only people that are logged in see this page?, and if not logged in it will take them to the log in page, or the page of choice.
*sorry for the newbie question*

captainandy 09 Apr 2006 05:03

Guessing some have more constructive things to do than nail others - or some of us don't really grow up huh?

Jordan17 10 Apr 2006 19:08

Quote:

Originally Posted by blackwidow
how can i let only people that are logged in see this page?, and if not logged in it will take them to the log in page, or the page of choice.
*sorry for the newbie question*

I would like this too. At the moment anyone can view the page, but I would like to restrict it to members only.

Freesteyelz 11 Apr 2006 02:50

blackwidow and Jordan17: Try somehting like this:


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


egyptsons 18 Apr 2006 16:45

thanks :)

funinthesun 14 May 2006 00:02

I made the php file and the template exactly as you described and when I point my url to test.php I get this

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

What have I done wrong?

Adrian Schneider 14 May 2006 00:11

Quote:

Originally Posted by funinthesun
I made the php file and the template exactly as you described and when I point my url to test.php I get this

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

What have I done wrong?

Post your PHP file and your template.

funinthesun 14 May 2006 01:07

My PHP file

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

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


Adrian Schneider 14 May 2006 01:20

Your PHP file shouldn't have any HTML in it!
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


funinthesun 14 May 2006 01:57

Doh! How stupid am I! It's late and I'm falling asleep, please forgive me ;)

Adrian Schneider 14 May 2006 02:46

Quote:

Originally Posted by funinthesun
Doh! How stupid am I! It's late and I'm falling asleep, please forgive me ;)

lol

Good luck!


All times are GMT. The time now is 00:38.

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