CodeIgniter Forums
trouble with the forum - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: trouble with the forum (/showthread.php?tid=77762)

Pages: 1 2


trouble with the forum - richb201 - 10-15-2020

I am trying to search for an old response to one of my queries regarding using temporary files in SQL. The search feature on this forum seems to be broken. I think it was InsiteFX who sent me a link on how to use temporary files in SQL. But I can't get the search feature to work nor can I send a direct email to InsiteFX. Can anyone point me to the link he suggested?


RE: trouble with the forum - InsiteFX - 10-15-2020

It wasn't files it was tables, here's the link.

MySQL Temporary Table


RE: trouble with the forum - richb201 - 10-15-2020

thanks. Is anyone else having a problem with the forum search feature?

MySQL Error


RE: trouble with the forum - InsiteFX - 10-16-2020

Yep, it's doing the same here for me Search is not working.


RE: trouble with the forum - richb201 - 10-16-2020

(10-16-2020, 01:22 PM)InsiteFX Wrote: Yep, it's doing the same here for me Search is not working.
Thnx Insite. I am starting my application by typing "localhost" at the browser command line. What I actually need to add a parameter so I would type either localhost?type=1 or localhost?type=2. This will cause a different logo to appear in my view. When I type http://localhost/1 I get a 404 error. I'd prefer to run the exact same code and just change the logo that displays. I see where in the template I can switch which logo gets used, but I am not sure a) how to get the 1 or 2 into the program b) how to get $logo1 or $logo2  to be used. 

 $logo1=<img src="<?php echo base_url(); ?>assets/themes/default/images/new_blue_logo_sub240x240.png" style="float:left;margin-top:5px;z-index:5" alt="logo"/>
 $logo2=<img src="<?php echo base_url(); ?>assets/themes/default/images/output-onlinepngtools (8).png" style="float:left;margin-top:5px;z-index:5alt="logo"/>

to run based on that parameter. 



RE: trouble with the forum - InsiteFX - 10-16-2020

You can try something like this not tested and I am not sure if it will work on the index method.

PHP Code:
$routes->get('/(:num)''Home::index/$1');
$routes->get('/''Home::index'); 



RE: trouble with the forum - kelapamuda - 10-16-2020

(10-15-2020, 02:20 PM)richb201 Wrote: thanks. Is anyone else having a problem with the forum search feature?

MySQL Error
Yups,,me too


RE: trouble with the forum - richb201 - 10-16-2020

(10-16-2020, 03:24 PM)InsiteFX Wrote: You can try something like this not tested and I am not sure if it will work on the index method.

PHP Code:
$routes->get('/(:num)''Home::index/$1');
$routes->get('/''Home::index'); 
Thx. Where do I put such a thing? I tried dropping it in the top of index.php


$routes->get('/(:num)', 'Home::index/$1');

But $routes is not found, so I guess I need to put it after invoking the URL helper?

In looking at the docs I see "example.com/index.php/news/article/my_article".

So in my case localhost/index.php/1  
So I guess I am missing the method. Perhaps if I did it this way:
localhost/index.php/logo/1  and created a logo class? 

But where would I put the logo.php function? Perhaps I need to create a logo.php file with two functions

1{} and 2{}  ??
I sure am confused!
 


RE: trouble with the forum - InsiteFX - 10-17-2020

Is the logo an image or what?


RE: trouble with the forum - richb201 - 10-17-2020

yeah, it is a png