is it possible to add new code to post/catalog creation? #259

Closed
opened 2022-07-31 06:51:55 +00:00 by Ghost · 1 comment

Hi, not sure if this is the correct place to ask about this, but...

Is it possible to add new code to the already existing one everyime you create a post or the catalog is generated? I have this issue that everytime I post something, both the catalog and the new thread are set to a pre-defined default style/code (the index too for some reason, it resets).

I was hoping to be able to add this php code:

<?php
define( 'RESTRICTED', true );
require_once( 'auth.php' );
?>

As I'm trying to make a pseudo registration based IB, you don't actually sign up to it to post, nor need an username/email/password -- but you need to log in to another site to get access to the IB. I already tested if such thing works manually injecting the code to the already created .php files (I managed to change the post/catalog/index creation extension to php) and it does work; if you aren't logged in, you are redirected to the home page where you need to sign up or log in.

I just need to be able to generate the new php files with the php code automatically injected to them.

In any case, thank you for your time.

NOTE: I barely now anything about coding/programming. I'm trying to learn by actually writing code or merging already existing ones together rather than studying using tutorials/books. If I get lost, I look up for the solution; but I didn't find anything about this issue -- so I'm completely lost.

Hi, not sure if this is the correct place to ask about this, but... Is it possible to add new code to the already existing one everyime you create a post or the catalog is generated? I have this issue that everytime I post something, both the catalog and the new thread are set to a pre-defined default style/code (the index too for some reason, it resets). I was hoping to be able to add this php code: ``` <?php define( 'RESTRICTED', true ); require_once( 'auth.php' ); ?> ``` As I'm trying to make a pseudo registration based IB, you don't actually sign up to it to post, nor need an username/email/password -- but you need to log in to another site to get access to the IB. I already tested if such thing works manually injecting the code to the already created .php files (I managed to change the post/catalog/index creation extension to php) and it does work; if you aren't logged in, you are redirected to the home page where you need to sign up or log in. I just need to be able to generate the new php files with the php code automatically injected to them. In any case, thank you for your time. NOTE: I barely now anything about coding/programming. I'm trying to learn by actually writing code or merging already existing ones together rather than studying using tutorials/books. If I get lost, I look up for the solution; but I didn't find anything about this issue -- so I'm completely lost.
Owner

Hi, if you need to modify TinyIB, you should check your changes into the local git repository, so they are not overwritten when TinyIB is updated.

You should also only make modifications to .php files as the .html files are overwritten every time TinyIB updates a page.

If you're looking for help on how to actually implement this beyond the above, a PHP development community forum would be a more appropriate place to ask.

Hi, if you need to modify TinyIB, you should check your changes into the local git repository, so they are not overwritten when TinyIB is updated. You should also only make modifications to .php files as the .html files are overwritten every time TinyIB updates a page. If you're looking for help on how to actually implement this beyond the above, a PHP development community forum would be a more appropriate place to ask.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tslocum/tinyib#259
No description provided.