Welcome Guest, Not a member yet? Register   Sign In
Using CodeIgniter to Generate a Forum Signature
#1

[eluser]Unknown[/eluser]
Hey guys,
This is my first post so please bare with me if this has been covered already. I've tried scouring the forums and have not found a solution/similar question.

What I am trying to do is allow users to create forum signatures that calls a function in my controller that simply returns an image.

This is my (very simple) Signature controller thus far:

Code:
class Signature extends Controller{
    
        function Signature(){
            parent::Controller();
            $this->load->helper('url');
        }
        
        function index(){
            return base_url().'assets/images/loading.gif">';
        }
    
    }

Now what I want this to do when it is called is simply return the image so that it can be used in forum signatures that support the img tag.

In my own forum (for testing purposes), I've tested this out and cannot get it working. The tag is as such:

Code:
[img]http://www.domain.com/whatever/signature[/img]
Is it possible to have this automatically return with the image so that the image path will be recognized by the img tag? I don't know if this is out of scope for CodeIgniter support, but I figured I'd give it a shot to see if anyone has ever tried doing something like this.

Thanks alot for reading! Smile




Theme © iAndrew 2016 - Forum software by © MyBB