Jump to content

Use less hard-coding.


Guest Quillz

Recommended Posts

Posted

One thing I'd like for IPB to adopt in the future is to reduce the amount of hard-coded templates. This will make it much easier to edit many common and uncommon aspects of the board, and thus, make customization even easier. Why can't just about little tweak be moved into the skin macros, so editing them is as simple as a click? It's highly impractical going through source file after source file just to change something.

Posted

Dude, what you are griping about is one of the rare forms of self promotion that IPB can get. To be honest, I'm surprised that they haven't made a core file that is necessary for IPB to run properly, popped certain functions in there such as the copyright display, and then Zend encoded it to make it harder for people to remove it without permission.

So be happy that removing the "Powered by" was as easy as it is.

Posted

Dude, what you are griping about is one of the rare forms of self promotion that IPB can get. To be honest, I'm surprised that they haven't made a core file that is necessary for IPB to run properly, popped certain functions in there such as the copyright display, and then Zend encoded it to make it harder for people to remove it without permission.



So be happy that removing the "Powered by" was as easy as it is.



Because not every host uses the Zend Encoder, I know mine doesn't.
Posted

There are alternative ways of making a core file encoded that would work on every host, it was only an example reference to get the point across. :lol:

But you could try something to see if you can use the Zend optimizer. If you're interested, I'll dig the post I made. It works for me, so I'm sharing it with others to help spread the wealth. :D

Posted

...? I wasn't referring to removing the (Powered by Invision Power Board.) I was referring to things such as the seperation in the title bar, the elements of the nav bar, etc. Those are the things I'm trying to change, but I can't because I haven't even found all the source files they are in yet. If they were available to be changed through the image macros, that would be much better.

Posted

There are alternative ways of making a core file encoded that would work on every host, it was only an example reference to get the point across. :lol:



But you could try something to see if you can use the Zend optimizer. If you're interested, I'll dig the post I made. It works for me, so I'm sharing it with others to help spread the wealth. :D



Surely it'd only work if Zend is installed? lol.
Posted

That's not what he's talking about. I understand what you are saying. Here's an example from Forums.php:

$this->nav_extra = "<a href='".$ibforums->base_url."showforum={$row['forum_id']}'>{$row['forum_name']}</a>";

This should be in a template bit but it's not and therefore can't be changed without changing the code in *.php files. Templates should be COMPLETE and code should never output directly. In this case I can't change the style of the <a> tag, add a onmouseover= option or even NOT make it a link at all without hacking code. It think this suggestion is a given and I agree.

Posted

That's not what he's talking about. I understand what you are saying. Here's an example from Forums.php:



$this->nav_extra = "<a href='".$ibforums->base_url."showforum={$row['forum_id']}'>{$row['forum_name']}</a>";



This should be in a template bit but it's not and therefore can't be changed without changing the code in *.php files. Templates should be COMPLETE and code should never output directly. In this case I can't change the style of the <a> tag, add a onmouseover= option or even NOT make it a link at all without hacking code. It think this suggestion is a given and I agree.

Glad you understand and agree :thumbsup:
Posted

$this->nav_extra = "<a href='".$ibforums->base_url."showforum={$row['forum_id']}'>{$row['forum_name']}</a>";



This should be in a template bit but it's not and therefore can't be changed without changing the code in *.php files. Templates should be COMPLETE and code should never output directly. In this case I can't change the style of the <a> tag, add a onmouseover= option or even NOT make it a link at all without hacking code.


Yeah you can.

<td class="row2">{$data['_queued_img']}<b>[b]<a href="{ipb.script_url}showforum={$data['id']}">{$data['name']}</a>[/b]</b><br /><span class="forumdesc">{$data['description']}{$data['show_subforums']}<br /><i>{$data['moderator']}</i></span>{$data['_queued_info']}</td>


An example of it in the skins.
Posted

One that will cancel my account if I do anything to it that I shouldn't do, like making all my PHP's run with more than the predefined memory, etc.

:)

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...