HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


ocp2: Where do i get 'funcs.php'

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#2356 (In Topic #511)

Fan in action

ocp2: Where do i get 'funcs.php'

I'm trying to use the "hack" for IPB where I can show the flagrant text on my forums.

Unfortunatley, there is no longer a 'funcs.php' file to link/require_once to….

Where can I find the relevant file?

ocProducts :wub: :wub:

Click here to drop by my website!
Back to the top
 
Posted
Rating:
#2357
Avatar

Try…

Code

global $FILE_BASE,$RELATIVE_PATH;
$FILE_BASE='/home/defender/public_html'; // Or whatever it should be
$RELATIVE_PATH='';
require_once($FILE_BASE.'/sources/global.php');

This is a bit of a hack, as ocPortal2 was not designed to be tunneled into like this.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#2358

Fan in action

:lol: Nope ;)

It gives me a whole lot of xdebug tables.  :(

ocProducts :wub: :wub:

Click here to drop by my website!
Back to the top
 
Posted
Rating:
#2387
Avatar

I just tried it myself, and it does work. It's funny really, those errors are PHP notices complaining about IPB… ocPortal turns on full error reporting but IPB does the opposite and at the start of the script turns it off because it can't cope. You need to add this line to the end of the lines I gave before…

Code

error_reporting  (E_ERROR | E_WARNING | E_PARSE);


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#2778

Fan in action

Hmm. I must be doing something wrong….

Now I get this 900 pages of bug tables :(

Sigh. Can't post it :D It's twice as big as the max ammount of characters allowed.
BAH!!!! Can't upload the .txt file either :lol: can't go higher than 19.5kb  :eek:

Ok. There. Zipped it :rolleyes:

This is what I put in the functions.php file (IPB forums)
Am I supposed to put something for relative path? What would go there?  :confused:

Code

global $FILE_BASE,$RELATIVE_PATH;
$FILE_BASE='/home/defender/public_html'; // Or whatever it should be
$RELATIVE_PATH='';
require_once($FILE_BASE.'/sources/global.php');

error_reporting  (E_ERROR | E_WARNING | E_PARSE);



ocProducts :wub: :wub:

Click here to drop by my website!
Back to the top
 
Posted
Rating:
#2786
Avatar

The " " in my post is due to a bug in the ipb->vb conversion our forums just went through. That line should just be…

Code

error_reporting(E_ERROR | E_WARNING | E_PARSE);


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#2807

Fan in action

Ok. Now I get this, what does ocportal2 use instead of 'get_table' stuff?

Fatal error: Call to undefined function: get_table_start() in /home/defender/public_html/forums/sources/functions.php on line 2133
 
Call Stack
# Function Location
1 {main}() /home/defender/public_html/forums/index.php:0
2 require() /home/defender/public_html/forums/index.php:409
3 boards->boards() /home/defender/public_html/forums/sources/Boards.php:27
4 display->do_output() /home/defender/public_html/forums/sources/Boards.php:446

ocProducts :wub: :wub:

Click here to drop by my website!
Back to the top
 
Posted
Rating:
#2857
Avatar

Simple answer is - Don't. Use the forums own templating system to style your flagrant text.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#2883

Fan in action

cool :)

many thx once again Chris :) <= going to have to start putting that in my sig :D ;)

ocProducts :wub: :wub:

Click here to drop by my website!
Back to the top
 
Posted
Rating:
#2884

Fan in action

:mad: @ Invision Power Board!

:lol: Sigh. *Turns on the Chris-Signal*

This is getting insane… Everytime I get it to work a bit, something goes wrong :lol:

Code

<div align='right'>
<table bgcolor="E4EAF2" border="1" bordercolor="#352A66"><% FLAGRANT %></table></div>

I don't know why It shows up like this. All I did was replace <% TAB_BEGIN %> with that whole <table thing and <% TAB_END %> with </table>.  :confused:  :confused:  :confused:



ocProducts :wub: :wub:

Click here to drop by my website!
Back to the top
 
Posted
Rating:
#2887
Avatar

If I remember correctly TAB_BEGIN and TAB_END were my doing. Try something like…

Code

<div align='right'>
<table bgcolor="E4EAF2" border="1" bordercolor="#352A66">
<tr>
<td>
<% FLAGRANT %>
</td>
</tr>
</table>
</div>

Tables have to have a row and a column inside them ;). Alternatively you could style the div to look like a box but I'm not gonna explain advanced CSS today ;).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#2900

Fan in action

Yay!! :lol:

Many Many, Many Many Many, Many Many Many Many thanks :)

ocProducts :wub: :wub:

Click here to drop by my website!
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: