Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1513

PostPosted: Wed May 02, 2012 5:17 pm Reply with quote

hey guys!

i found a little thing to tweak. what i mean is the putpoll listing in admin formulars of the news module.

Image

for a better view without the ugly space afer the count of option "10", use this tweak:

File:modules/News/admin/index.php

function putpoll

find:
Code:
   for($i = 1; $i <= 12; $i++) {

   if (!isset($optionText[$i])) { $optionText[$i] = ''; }
      echo '<li style="list-style:none">'._OPTION.' '.$i.': <input type="text" name="optionText['.$i.']" size="50" maxlength="50" value="'.$optionText[$i].'" /></li>';
   }

change it to:
Code:
   for($i = 1; $i <= 12; $i++) {

   if (!isset($optionText[$i])) { $optionText[$i] = ''; }
      echo '<li style="list-style:none">'._OPTION.' '.(strlen($i)>1 ? "" : "0").$i.': <input type="text" name="optionText['.$i.']" size="50" maxlength="50" value="'.$optionText[$i].'" /></li>';
   }


if you are change this line, now it counts the numbers befor 10 with a 0 at the beginning:

Image

Wink
 
View user's profile Send private message
spasticdonkey
RavenNuke(tm) Development Team



Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA

PostPosted: Wed May 02, 2012 5:45 pm Reply with quote

that does look better, thanks!
 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

View next topic
View previous topic
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 vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©