Need Code

  • cynical_tear
  • Newbie
  • Newbie
  • cynical_tear
  • Posts: 8
  • Loc: India

Post 3+ Months Ago

I am looking to have a code which can give a drop-down menu exactly same as the one that comes when we click FORUM JUMP on http://forums.digitalpoint.com/ website... I am not able to make out how is it done... Can any one please help me with the code..
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • BooGiE_MaN
  • Proficient
  • Proficient
  • User avatar
  • Posts: 387
  • Loc: Cape Town, South Africa

Post 3+ Months Ago

I didnt see it on that website but I thin kthis is what you want to do?


<select onchange="location.href=this.value;">
<option value="forumurl.html">Forum Name</option>
<option value="forum2.html">Forum 2</option>
<option value="etc.html">Etc</option>
</select>
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Posts: 2733
  • Loc: Nashville, TN

Post 3+ Months Ago

vBMenu is actually what you're looking for. It's identifiable by the function name in the script piece next to the Forum Jump anchor:

Code: [ Select ]
 
vbmenu_register("navbar_forumjump");
 
  1.  
  2. vbmenu_register("navbar_forumjump");
  3.  
  • cynical_tear
  • Newbie
  • Newbie
  • cynical_tear
  • Posts: 8
  • Loc: India

Post 3+ Months Ago

got it. Thanks all0t
  • ezura
  • Newbie
  • Newbie
  • ezura
  • Posts: 7

Post 3+ Months Ago

hello there....
can u help me to get the time stamp coding....
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Posts: 2733
  • Loc: Nashville, TN

Post 3+ Months Ago

ezura wrote:
hello there....
can u help me to get the time stamp coding....


Can you be a bit more specific?
  • ezura
  • Newbie
  • Newbie
  • ezura
  • Posts: 7

Post 3+ Months Ago

i was doing the election system for my university...then the election system will be only available start from 8.00 am until 5.00 pm...after 5.01 pm the system will be close...can u teach me how to do the coding by using the time stamp?
tq
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Posts: 2733
  • Loc: Nashville, TN

Post 3+ Months Ago

Sure - are you using PHP (I'm assuming you're doing this server-side)? If you're using a different language, then let me know which.
  • ezura
  • Newbie
  • Newbie
  • ezura
  • Posts: 7

Post 3+ Months Ago

yes im using PHP.yes ur right.
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Posts: 2733
  • Loc: Nashville, TN

Post 3+ Months Ago

Code: [ Select ]
 
<?php
 
$currTime = Date(G);
if ($currTime >= 8 && $currTime <= 17) {
    echo "Business hours!";
} else {
    echo "Outside of business hours";
}
 
?>
 
  1.  
  2. <?php
  3.  
  4. $currTime = Date(G);
  5. if ($currTime >= 8 && $currTime <= 17) {
  6.     echo "Business hours!";
  7. } else {
  8.     echo "Outside of business hours";
  9. }
  10.  
  11. ?>
  12.  
  • ezura
  • Newbie
  • Newbie
  • ezura
  • Posts: 7

Post 3+ Months Ago

where should i put the coding? is it at the index?
  • ezura
  • Newbie
  • Newbie
  • ezura
  • Posts: 7

Post 3+ Months Ago

and how do i want to know the time stamp is running correctly?
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Posts: 2733
  • Loc: Nashville, TN

Post 3+ Months Ago

If you have an entry-level file for the system, something like an index.php, then you could allow/deny access from that entry point, but you would also need to check at the top of every affected page (via require, i would imagine - keep it simple) to make sure users don't skip the entry and hit the page directly.

And I don't understand why you need to check the timestamp for correctness?
  • ezura
  • Newbie
  • Newbie
  • ezura
  • Posts: 7

Post 3+ Months Ago

i have entered the coding into my system in the index.php....and how do i know the time stamp is correctly running for that according time?
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Posts: 2733
  • Loc: Nashville, TN

Post 3+ Months Ago

Well, you can't use my code snippet directly, you need to apply it to your case. You're new to programming, no? I don't know that I would recommend that you blindly start adding code to your application without an understanding of what it is...
  • ezura
  • Newbie
  • Newbie
  • ezura
  • Posts: 7

Post 3+ Months Ago

im new in php huhuhu

Post Information

  • Total Posts in this topic: 16 posts
  • Users browsing this forum: No registered users and 112 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.