Quick Login   
 
Register AdminFusion Tutorials
 
Featured Sponsors


One.com Domain and Hosting


Register
Forum of the Month
Australian Webmaster
fotm

A webmaster forum specifically catering for Australian site owners. We discuss site development, marketing and management issues.

Tag Cloud
Latest Threads
Forum Stats
7,846 Members
164,851 Posts
39 Users Online

Please welcome our newest member, discotoast!

Affiliates
Go Back AdminFusion » Management » Graphics and Design » Two state buttons in php
Welcome to the AdminFusion. AdminFusion is the ultimate resource for forum administrators and moderators. With exclusive articles, interviews with the experts, free downloadable skins, and the revolutionary post exchange system - PostFusion, AdminFusion is the place to go for all of your forum needs.  By joining AdminFusion, you will become part of a thriving admin community and immediately gain access to all of these resources. Registration is fast, simple and absolutely free so please join us today!
Want more than our forums? Try these: Post Fusion Forum Matrix
Old 09-14-2007, 02:49 AM   #1

Title: Member

Points: 1,061, Level: 8Points: 1,061, Level: 8Points: 1,061, Level: 8
Level up: 9%, 89 Points neededLevel up: 9%, 89 Points neededLevel up: 9%, 89 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Sep 2007

Posts: 101

Location: US

Brandr has a spectacular aura aboutBrandr has a spectacular aura about
 
 
Two state buttons in php

I have never seen a vBulletin forum which featured two state buttons: Reply, edit, sendpm, etc.
Of course it is a simple matter to place the necessary java script in the forum display template, but integrating a two state button with the php 'if conditions' coding is beyond my expertise at the moment.

Are there forums out there which are employing two state buttons in the show thread template: reply button, multiquote button, etc. and would this require a majour piece of php coding?

I noticed the header of this forum has a really slick two state navbar. I am sure some of the links relate to php 'if conditions'. If anyone has any information related to the topic of two state buttons in php -I'd be very appreciative and interested to hear from you.

I made a few crude, preliminary two state vBull buttons to give you an idea what I am on about. HERE<



Best regards.

B.
Reply With Quote
Old 09-14-2007, 04:50 AM   #2

Ryan's Avatar

Title: Administrator

Points: 47,649, Level: 67Points: 47,649, Level: 67Points: 47,649, Level: 67
Level up: 68%, 701 Points neededLevel up: 68%, 701 Points neededLevel up: 68%, 701 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Sep 2005

Posts: 10,246

Location: Athens, GA

Ryan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond reputeRyan has a reputation beyond repute
 
 
I'm not sure what good php conditionals would do for you in this case...In any case, our header uses javascript to get that rollover effect. I would imagine the best and easiest way to do this in posts would also be to use javascript.

I like the idea of "two state" buttons

I'm like you...I've never seen that done
__________________
...some super-sweet signature
Reply With Quote
Old 09-14-2007, 04:53 AM   #3

BamaStangGuy's Avatar



Title: Forum Enthusiast

Points: 14,699, Level: 36Points: 14,699, Level: 36Points: 14,699, Level: 36
Level up: 37%, 151 Points neededLevel up: 37%, 151 Points neededLevel up: 37%, 151 Points needed
Activity: 8%Activity: 8%Activity: 8%

Join Date: Sep 2005

Posts: 2,478

Location: Alabama

BamaStangGuy has a reputation beyond reputeBamaStangGuy has a reputation beyond reputeBamaStangGuy has a reputation beyond reputeBamaStangGuy has a reputation beyond reputeBamaStangGuy has a reputation beyond reputeBamaStangGuy has a reputation beyond reputeBamaStangGuy has a reputation beyond reputeBamaStangGuy has a reputation beyond reputeBamaStangGuy has a reputation beyond reputeBamaStangGuy has a reputation beyond reputeBamaStangGuy has a reputation beyond reputeBamaStangGuy has a reputation beyond repute
Send a message via AIM to BamaStangGuy  
 
Looks like you could just use javascripts onmouseover function? Unless I am missing something.
__________________
Ford Mustang Forums - F-Series Trucks
Reply With Quote
Old 09-14-2007, 05:19 AM   #4

Title: Member

Points: 1,061, Level: 8Points: 1,061, Level: 8Points: 1,061, Level: 8
Level up: 9%, 89 Points neededLevel up: 9%, 89 Points neededLevel up: 9%, 89 Points needed
Activity: 0%Activity: 0%Activity: 0%

Join Date: Sep 2007

Posts: 101

Location: US

Brandr has a spectacular aura aboutBrandr has a spectacular aura about
 
 
Quote:
Originally Posted by BamaStangGuy View Post
Looks like you could just use javascripts onmouseover function? Unless I am missing something.
It is more likely that I am missing something.
The problem for me, is how to make a two state button link to an 'if condition' link.
You can easily link a two state button to a simple url such as: memberslist.php
But how do you incorporate a two state button when the url is conditional for each user, thread or post? When I log out of a forum, I am not simply logging out with logout.php but

anyforum.com/forum/login.php?do=logout&logouthash=823d093b8c7773ee589 d21ea2cc7f808
If anyone can get a button like one of these HERE< to function properly in their asigned task on a vBulletin, I'd be glad to see it.
I am determined to see two state reply buttons by 2008!...lol

Best regards.

B.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

 
Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP 4 script, to PHP 5. Jolteon Off Topic 7 02-04-2007 03:10 AM
Yahoo Lays Out Welcome Mat For PHP Devs shellspeare Graphics and Design 0 03-01-2006 09:08 AM
php Resource List gprime Graphics and Design 6 01-24-2006 05:01 PM

AdminFusion

All times are GMT +1. The time now is 08:51 AM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0 © 2005-2008 AdminFusion - All Rights Reserved



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72