Welcome Guest, Not a member yet? Register   Sign In
  drop down menu
Posted by: El Forum - 11-02-2008, 09:58 AM - Replies (6)

[eluser]brian5522[/eluser]
hello,






Now i diceded to have the country to have dropdown menu for choosing which country to choose but i dont know how.

Thanks.


  stepping through the code.
Posted by: El Forum - 11-02-2008, 09:52 AM - Replies (10)

[eluser]jtingato[/eluser]
Here's a noob question for ya.
Is there a way to step through the PHP code line by line class by class file by file so I can watch the flow of execution.

Kind of like in a visual basic editing encironment? That would really help me understand things.

If so, any recommendations on programs to use? I do have PHPedit, but I don't think it can open file on a server; only local. Maybe I am mistaken.
Thanks in advance.


  Most Simple Template Library
Posted by: El Forum - 11-02-2008, 09:52 AM - No Replies

[eluser]Jérôme Jaglale[/eluser]
The most simple template library for CodeIgniter has been updated and improved for CodeIgniter 1.7.

PHP and CodeIgniter are straightforward, we need to template the same way!

This template "library”, with its 5 lines of code is easy to use, understand and upgrade to match your needs. Give it a try.


  Submit botton not showing up in POST
Posted by: El Forum - 11-02-2008, 09:38 AM - Replies (5)

[eluser]jtingato[/eluser]
I have never seen this before and it has me perplexed.
I have taken over a previously designed site ( I always hate that) which was
created using CodeIgniter. I have not used CodeIgniter before, so I am a noob.
Does CI somehow filter the POST array?

There is a form on a PHP page with a JS script for creating a sketch of some
clothing. The form accepts several choices from combo boxes with an "order" and Save function. The action of the form is to a function "sketch/doSave", which need to determine whether Save or order was clicked. The form is as follows below:

NOTE: I have redirected the form action to a php file that just uses print_r to
print the POST array. Everything shows up in the array except the submit
buttons.

************Print_r results***********
Array
(
[base] => UT300
[baseColor] => Black
[baseFabric] => L0000
[neck] => N100
[sleeve] =>
[sleeveColor] => None Available
[sleeveFabric] => None Available
[sleeveInsertColor] => None Available
[sleeveInsertFabric] => None Available
[lowertorso] =>
[lowertorsoColor] => None Available
[lowertorsoFabric] => None Available
[lowertorsoInsertColor] => None Available
[lowertorsoInsertFabric] => None Available
)
**********************************************

Where is the [save]= "Save" ?

If I copy just the button portion of the form to another php file and run it
it shows up in the POST array.

Any ideas? Please.


****************** FORM CODE*********************************
<form action="<?=site_url('postshow.php')?>" id="sketchForm" method="post">

<fieldset>

<legend>Sketch Form</legend>

&lt;!------------------------------------------------------------------------------------------------&gt;

&lt;!-- Start Button Box --&gt;

<div class="buttonBox">

&lt;input name="save" type="submit" id="save" accesskey="s" value="Save"&gt; .

&lt;input name="order" type="submit" id="order" accesskey="o" value="Order"&gt; .

&lt;input name="reset" type="button" id="reset" accesskey="r" value="Reset"&gt;

</div>

&lt;!-- End Button Box --&gt;

&lt;!------------------------------------------------------------------------------------------------&gt;

&lt;!-- Start Details Box --&gt;

<div id="details">

<div id="baseBox">

&lt;!-- Create and fill combo boxes--&gt;

<div id="baseCombo">

<label for="base">Base</label>

<select name="base" id="base" class="required main">

<option value="none" selected>-- Select a Base --</option>

&lt;?=$baseOptions?&gt;

</select>

</div>

&lt;!-- End Base Combo --&gt;

&lt;!-- Create and fill more combo boxes --&gt; ....


  combine like and get_where search statements
Posted by: El Forum - 11-02-2008, 09:22 AM - Replies (17)

[eluser]Philipp Datz[/eluser]
hello,

im having a problem restricting search results to a specific condition.
my controller-code looks as follws:

$this->db->like('title', $query);
$this->db->or_like('body', $query);
$results_news = $this->db->get('news');

now i have to restrict the results to news, which are published.
simple thing i thought, but combining it with a
$this->db->where('published', 1); statement doesnt work.
neither before the like, nor changing the get to get_where.

is it posible to do this?

with kind regards, philipp


  Blogmer 1.0 Released - blog system with documentation
Posted by: El Forum - 11-02-2008, 06:12 AM - Replies (21)

[eluser]Yash[/eluser]
We have crafted Blogmer with Innovative ideas, unique features and most importantly user friendly installation.
Blogmer is an open source blog package developed on codeigniter framework for incorporating blog feature in standard PHP based websites. The package uses MySQL database for backend operations. It not only comes with all the useful features but also easy to configure and install.
Present package is primarily meant for individual, small and medium size enterprises.

Choose Blogmer if you looking for:

* open source php based blog
* CodeIgniter based blog.
* Search engine friendly URL's. Understand SEO more acurately.
* Nice clean url.
* Supports lots of features such as
o WYSIWYG Editor
o Theme support
o Instant Publishing
o Manage Contents
o New Template System
o User Comments
o lots more features ...
* Supports many blog permissions such as
o BLOG Name
o BLOG Title
o BLOG Maintained By
o Allow guest to access blog
o Show Recent Comments Section
o Show Recent Posts Section
o Show Calendar
o Enable Comments
o Enable Registration
o Enable Guest Comment
o Show Categories Section
o Show Archives Section
o and lots more permission...

and lots more features...

What's New in Version this release

There are many big changes in this release. More features , easy to manage code and many bugs are fixed.

Some attarctive changes are :

* New Template System
* Jquery Based Installer


and also there are many small changes as well.

What's most exciting this time

Clear and precised documentation .
Easy to install and manage.
Plathora of themes with easy installation.
RSS and Feed support

**********************************************************************
Visit the [url="http://www.speedovation.org/"]Blogmer Homepage[/url]

View [url="http://www.speedovation.org/doc"]Blogmer Documentation[/url]

View the [url="http://www.speedovation.org/doc/html_files/changes_log.html"]Change Log[/url]
******************************************************************


  rc14.2 not picking up date fields in table
Posted by: El Forum - 11-02-2008, 06:11 AM - No Replies

[eluser]fourcs[/eluser]
What do I have to do to get date fields recognized so I can edit them with the datepicker? These fields aren't cited at all in the field list.


  Secure remember me function?
Posted by: El Forum - 11-02-2008, 05:59 AM - Replies (7)

[eluser]Adam Griffiths[/eluser]
I am in the middle of developing an authentication library. I have had the login feature for some time now but now I am adding in a remember me function.

I use the term function as loosely as possible, it's not a function just a few extra lines of code. Anyway, it sets a cookie with a hash of the users username. I was thinking of checking for this cookie in the "logged_in" function, and then setting session variables. But then I realised it was open to many security holes.

I need to get around the question "What happens if a script kiddie starts stealing cookies?" They could have access to the whole system.

Any ideas on methods to securely keep people logged in for multiple sessions?

Thanks.


  To do a query before inserting data in mySQL
Posted by: El Forum - 11-02-2008, 05:30 AM - Replies (12)

[eluser]ambf[/eluser]
Hi!

I'm new here and need help ASAP!

I have a form and need to save it in the database. (Works fine!)
But before to save the new data in the database I need to run a query in the database to see if the email inserted at the form is already registered in the database.

How should I do the query??

here is my controller:


&lt;?php

class Form extends Controller {


function form()
{
parent::Controller();
}



function display()
{
$data['query'] = $this->db->get('contact');
$this->load->view('display', $data);
}


function index()
{
$this->load->helper(array('form', 'url'));

$this->load->library('validation');

$rules['field_01'] = "required";
$rules['field_02'] = "required";
$rules['field_03'] = "required";
$rules['field_04'] = "required|valid_email";
$rules['field_05'] = "required|max_length[2]";
$rules['field_06'] = "required";
$rules['field_07'] = "required";



$this->validation->set_rules($rules);





if ($this->validation->run() == FALSE)
{
$this->load->view('myform');
}
else
{
$this->db->insert('contact', $_POST);
$this->load->view('formsuccess', $_POST);
}
}
}
?&gt;


  Any way of doing this shorter? (splitting an array)
Posted by: El Forum - 11-02-2008, 03:59 AM - Replies (4)

[eluser]Bramme[/eluser]
Hey all

I'm working on a more advanced version of my first auth lib. I've got a method that looks like this:

Code:
function generate_user_fields()
    {
        $this->user_fields = $this->CI->db->list_fields($this->users_table);
        $this->no_access[] = $this->id_column;
        for ($i = 0; $i < count($this->user_fields); $i++)
        {
            if (in_array($this->user_fields[$i], $this->no_access)) {
                unset($this->user_fields[$i]);
            }
        }
    }
I wondered if there was no array function that would do this automatically for me... I've went through the php documentation (rather quickly) and the only function I saw that could come close is array_filter, which still needs a user made callback...


And a quick additional question: which function does the language library use again to replace the %s in strings with a value. I found it once but forgot Sad


Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Latest Threads
Limiting Stack Trace Erro...
by byrallier
1 hour ago
Bug with sessions CI 4.5....
by ALTITUDE_DEV
2 hours ago
codeigniter 3.0.1 equiped...
by JustJohnQ
6 hours ago
Display a custom error if...
by b126
9 hours ago
Type error in SYSTEMPATH\...
by DXArc
9 hours ago
v4.5.1 Bug Fix Released
by LP_bnss
11 hours ago
Retaining search variable...
by Bosborne
Today, 03:20 AM
Getting supportedLocales ...
by InsiteFX
Today, 12:24 AM
composer didn't update to...
by Sarog
Yesterday, 03:56 PM
Pipe on url modified in %
by kenjis
Yesterday, 02:52 PM

Forum Statistics
» Members: 85,077
» Latest member: gxknight
» Forum threads: 77,572
» Forum posts: 375,955

Full Statistics

Search Forums

(Advanced Search)


Theme © iAndrew 2016 - Forum software by © MyBB