New Credits Page

Status
Not open for further replies.
Junior Spellweaver
Joined
Apr 8, 2009
Messages
191
Reaction score
0
Hey Everyone

I found this Credits Page on yifan_lu's PhpRetro site.I then wanted to try and make it.I did'nt Ripped you can see by the coding.

Picture:
Suzushima - New Credits Page - RaGEZONE Forums


SQL made by Habbzo@Ragezone:
Code:
INSERT INTO `cms_content` (`contentkey`, `contentvalue`, `setting_title`, `setting_desc`, `fieldtype`, `category`) VALUES
('credits1-color', 'green', 'Credits Content Box 1 Color', 'Only valid colors defined in CSS such as ''orange'', ''blue'', etc', '1', 3),
('credits3', 'There are a few ways to get Credits. Credits are the main source of the Hotel. If you don\\''t have credits you can\\''t buy anything. Here are a few ways on how to get credits. ', 'Credits Content Box 3', 'The text within a content box on the credits page.', '1', 3),
('credits3-heading', 'How to get Credits', 'Credits Heading 3', 'The Header text within a content box on the Credits page.', '1', 3),
('credits3-color', 'blue', 'Credits Content Color 3', 'The Color of the 3 Credits Content Box.', '1', 3),
('credits4-1/2', 'The Easiest Way', 'Credits Content Box 4', 'The text within a content box on the credits page.', '1', 3),
('credits4-2/2', 'Ask a Staff member', 'Credits Content Box 4 (Second)', 'The text within a content box on the credits page.', '1', 3),
('credits4-text(1/2)', 'Staff members are all over the hotel. Ask one of them and they\\''ll give you a voucher.Once you have a voucher you may Redeem it.', 'Credits Text Content Box 4', 'The text within a content box on the credits page.', '1', 3),
('credits4-text(2/2)', '<b>Here\\''s How to do this:</b><br /><br />Find a Staff member in \r\n\r\nthe Hotel and ask him with kindness.', 'Credits Text Content Box 4 (Second)', 'The text within a content box on the credits page.', '1', 3),
('credits5-1/2', 'Other way', 'Credits Content Box 5', 'The text within a content box on the credits page.', '1', 3),
('credits5-2/2', 'Refer a Friend', 'Credits Content Box 5 (Second)', 'The text within a content box on the credits page.', '1', 3),
('credits5-text(1/2)', 'Refer a friend to this hotel and earn some credits.', 'Credits Text Content Box 5', 'The text within a content box on the credits page.', '1', 3),
('credits5-text(2/2)', '<b>Here\\''s How to do This: </b><br /><br />Get your link on the front page and send it to your friends. When they sign up, you get credits!', 'Credits Content Box Text 5 (Second)', 'The text within a content box on the credits page.', '1', 3),
('purse-text', 'Your purse', 'Heading Purse', 'The Heading from the Purse on credits.php.', '1', 3),
('purse-color', 'brown', 'Purse Heading Color', 'The Heading Color of the Purse on credits.php.', '1', 3);
Download:



Mirror:


Credits:
70% to yifan_lu for idea.
30% to me for coding.

If yifan_lu doesnt want me to release cause it was kinda his idea.I will take d/l link out.​
 
Last edited:
Why don't you do a WHILE loop into the database, thats what yifan's doing
PHP:
<? $sql = mysql_query("SELECT * FROM cms_credititems");
while($row = mysql_fetch_assoc($sql){ ?>
<div id="method-full-<?php echo $row['id']; ?>" class="credits-method-full">

							<?php echo $row['text']; ?>

					</div>
					<script type="text/javascript">
					$("method-show-<?php echo $row['id']; ?>").show();
					$("method-full-<?php echo $row['id']; ?>").hide();
					</script>
<? } 
// DONT USE THIS SCRIPT JUST A QUICK ONE AND IT WILL POSSIBLY ERROR LULZ.
?>
 
Hey Everyone

I found this Credits Page on yifan_lu's PhpRetro site.I then wanted to try and make it.I did'nt Ripped you can see by the coding.

Picture:
Suzushima - New Credits Page - RaGEZONE Forums


Download:



Mirror:


Credits:
70% to yifan_lu for idea.
30% to me for coding.

If yifan_lu doesnt want me to release cause it was kinda his idea.I will take d/l link out.​

Awsome man you really wokring on these things :thumbup::thumbup::thumbup::thumbup:
 
Thanks and yes iJames ill make a loop when I got time :D: Im working on a few Addons since like the main people coding PHP is iJames, Yifan, Sisija and thats pretty much it.
 
Tanks I'm now working on a little Addon which is Enable Trading and Enabling it.I will release it with something else becauses its a small code.
 
Status
Not open for further replies.
Back