Jump to content


AnotherAndrew

Member Since 21 Nov 2011
Offline Last Active May 21 2013 01:00 PM
-----

Topics I've Started

Useful jquery plugins snippet site

03 May 2013 - 06:39 PM

Check it out this page with useful jquery plugins. Might help you!


Calling logout from within a wordpress install

24 April 2013 - 02:28 PM

I'm developing a site for a client in a private directory on my web host that is running wordpress. In the clients site, I have a members section that requires a login. I'm having trouble with the logout url which when called will go to the wordpress logout screen when called. This is what I have for code:

 

<div class="login-message">Hello <?php echo $page->title; ?>. Welcome back. <a class="logout" href="?logout=1">Logout?</a></div>

 

I know that it will be fine in a live site but I need to show this functioning as intended for the client. Does anyone have any experience or suggestions on how to resolve this?


Site down, "too many connections"

02 April 2013 - 06:59 PM

My site suddenly went down. I haven't changed anything in days. I'm getting this message:

 

Fatal error: Exception: DB connect error 1040 - Too many connections (in /home/vg005web07/01/12/1031201/web/wire/core/ProcessWire.php line 96) #0 /home/vg005web07/01/12/1031201/web/wire/core/ProcessWire.php(46): ProcessWire->load(Object(Config)) #1 /home/vg005web07/01/12/1031201/web/index.php(166): ProcessWire->__construct(Object(Config)) #2 {main} in /home/vg005web07/01/12/1031201/web/index.php on line 203

 

Does anyone know what this means?


Fields and context drop down

31 March 2013 - 07:18 PM

I just noticed today the drop down select for context on fields in the admin.

What is this for?

Page select for a member section

26 March 2013 - 07:15 PM

I have a situation where I need a client to be able to select from a pre-existing group of pages to include in a member's page of a site. For example, consider this structure:

 

home

category 1

--cat 1 content 1

--cat 1 content 2

category 2

--cat2 content 1

--cat2 content 2

members

--bob

--andrew

 

So would it be possible for a client to choose on the page "bob" to show the page "--cat 1 content 1" and any other page in that category and possibly also "--cat 2 content 1"?

 

The member's pages are hidden from the public and require a login to view "bob" and "andrew". Meaning only user "bob" can login to "bob".

 

Would this be possible by using the "pages" field?