The housekeeping doesnt work.You click Hot Randoms Edit then Go!Then it says saved succesfully
The housekeeping doesnt work.You click Hot Randoms Edit then Go!Then it says saved succesfully
Just make a table like cms_campaigns
and then do it like iJames' staff picks
ID
Name
Image
URL
Desc
then in HK make a "add" and a "manage"
then on the page
[php]
<div class="habblet-container ">
<div class="cbb clearfix orange ">
<h2 class="title">Hot Campaigns
</h2>
<div id="hotcampaigns-habblet-list-container">
<ul id="hotcampaigns-habblet-list">
<?php
$getcampaigns = mysql_query("select * from cms_campaigns");
while($campaigns = mysql_fetch_assoc($getcampaigns)) {
?>
<li class="even">
<div class="hotcampaign-container">
<a href="<?php echo $campaigns['url']; ?>"><img src="<?php echo $campaigns['image']; ?>" align="left" alt="" /></a>
<h3><?php echo $campaigns['name']; ?></h3>
<p><?php echo $campaigns['desc']; ?></p>
<p class="link"><a href="<?php echo $campaigns['url']; ?>">Go there
[quote=handyandy160;5022844]Just make a table like cms_campaigns
and then do it like iJames' staff picks
ID
Name
Image
URL
Desc
then in HK make a "add" and a "manage"
then on the page
[php]
<div class="habblet-container ">
<div class="cbb clearfix orange ">
<h2 class="title">Hot Campaigns
</h2>
<div id="hotcampaigns-habblet-list-container">
<ul id="hotcampaigns-habblet-list">
<?php
$getcampaigns = mysql_query("select * from cms_campaigns");
while($campaigns = mysql_fetch_assoc($getcampaigns)) {
?>
<li class="even">
<div class="hotcampaign-container">
<a href="<?php echo $campaigns['url']; ?>"><img src="<?php echo $campaigns['image']; ?>" align="left" alt="" /></a>
<h3><?php echo $campaigns['name']; ?></h3>
<p><?php echo $campaigns['desc']; ?></p>
<p class="link"><a href="<?php echo $campaigns['url']; ?>">Go there
[quote=handyandy160;5022844]Just make a table like cms_campaigns
and then do it like iJames' staff picks
ID
Name
Image
URL
Desc
then in HK make a "add" and a "manage"
then on the page
[php]
<div class="habblet-container ">
<div class="cbb clearfix orange ">
<h2 class="title">Hot Campaigns
</h2>
<div id="hotcampaigns-habblet-list-container">
<ul id="hotcampaigns-habblet-list">
<?php
$getcampaigns = mysql_query("select * from cms_campaigns");
while($campaigns = mysql_fetch_assoc($getcampaigns)) {
?>
<li class="even">
<div class="hotcampaign-container">
<a href="<?php echo $campaigns['url']; ?>"><img src="<?php echo $campaigns['image']; ?>" align="left" alt="" /></a>
<h3><?php echo $campaigns['name']; ?></h3>
<p><?php echo $campaigns['desc']; ?></p>
<p class="link"><a href="<?php echo $campaigns['url']; ?>">Go there
Yes, I think thats the best way to do it Ricky.
No problem on the explaination
@Cornelius, do whatever you like :P
wait instead of us doing all this copy paste and upload and u make the files for us and then like release it and we upload it to the rite spot?
this looks great hope you can finish the Housekeeping way soon.
Here i leave the style.css for it:
Just add it to your style.css at web-gallery/v2/styles/style.cssCode:/* Hot campaigns */ #hotcampaigns-habblet-list-container { padding: 5px 5px 0 5px; } #hotcampaigns-habblet-list-container p { padding: 5px; } #hotcampaigns-habblet-list { list-style-type: none; margin: 0; padding: 0; } #hotcampaigns-habblet-list li { float: left; clear: both; width: 100%; } #hotcampaigns-habblet-list li div.hotcampaign-container { padding: 5px 10px; } #hotcampaigns-habblet-list li.even:hover { background-color: #dceafa; } #hotcampaigns-habblet-list li.odd:hover { background-color: #f1f8ff; } #hotcampaigns-habblet-list li p.link { margin: 0; padding: 0; text-align: right; } #hotcampaigns-habblet-list li p.link a { color:#399001; } #hotcampaigns-habblet-list li p { margin: 0; padding: 0; } #hotcampaigns-habblet-list li h3 { font-size: 13px; margin: 5px 0 0 0; padding: 0; } #hotcampaigns-habblet-list li img { margin: 5px 5px 5px 0; }
[quote=handyandy160;5022844]Just make a table like cms_campaigns
and then do it like iJames' staff picks
ID
Name
Image
URL
Desc
then in HK make a "add" and a "manage"
then on the page
[php]
<div class="habblet-container ">
<div class="cbb clearfix orange ">
<h2 class="title">Hot Campaigns
</h2>
<div id="hotcampaigns-habblet-list-container">
<ul id="hotcampaigns-habblet-list">
<?php
$getcampaigns = mysql_query("select * from cms_campaigns");
while($campaigns = mysql_fetch_assoc($getcampaigns)) {
?>
<li class="even">
<div class="hotcampaign-container">
<a href="<?php echo $campaigns['url']; ?>"><img src="<?php echo $campaigns['image']; ?>" align="left" alt="" /></a>
<h3><?php echo $campaigns['name']; ?></h3>
<p><?php echo $campaigns['desc']; ?></p>
<p class="link"><a href="<?php echo $campaigns['url']; ?>">Go there
You rly don't need a beta lulz, It's a simple bit of code, I done it pretty much the same was as Andy!
It's a simple php while loop, I've got to say, If you can't code basic php, you should be releasing a script like this :)
Then, all you have to do for the housekeeping is edit the recommended groups to coincide with your SQL, and it's really that simple.
Many thanks,
iJames.
Sql insertion code ?
I almost got it :P
Should be done in a bit
You can give us the whole pack?
I can't test if it
Nice...
SQL INSERTION COE ?
erro enter
postssssssssss
SQL is in Download? [sql.sql] Click Here to Download
What are you talking about, stop posting shit!
Sorry for Double Post, but here is the Fix (It works, because I tested it):
Me.php:
Housekeeping/Index.php:PHP Code:<div class="habblet-container ">
<div class="cbb clearfix orange ">
<h2 class="title">Hot Campaigns
</h2>
<div id="hotcampaigns-habblet-list-container">
<ul id="hotcampaigns-habblet-list">
<?php
$getcampaigns = mysql_query("select * from cms_campaigns");
while($campaigns = mysql_fetch_assoc($getcampaigns)) {
?>
<li class="even">
<div class="hotcampaign-container">
<a href="<?php echo $campaigns['url']; ?>"><img src="<?php echo $campaigns['image']; ?>" align="left" alt="" /></a>
<h3><?php echo $campaigns['name']; ?></h3>
<p><?php echo $campaigns['desc']; ?></p>
<p class="link"><a href="<?php echo $campaigns['url']; ?>">Go there »</a></p>
</div>
</li>
<?php } ?>
</ul>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template)) { Rounder.init(); }</script>
Downloadlink: MediaFirePHP Code:} elseif($p == "campaign"){
$tab = 3;
include('campaign.php');
} elseif($p == "campaigns"){
$tab = 3;
include('campaigns.php');
Housekeeping/campaings.php is just an overview, because edit and delete doesn
There are different methods of making it, and I see all of you have different types.
Good Job AresCJ :)
Mark
[quote=Hazzbo@Ragezone;5023956]Sorry for Double Post, but here is the Fix (It works, because I tested it):
Me.php:
Housekeeping/Index.php:PHP Code:<div class="habblet-container ">
<div class="cbb clearfix orange ">
<h2 class="title">Hot Campaigns
</h2>
<div id="hotcampaigns-habblet-list-container">
<ul id="hotcampaigns-habblet-list">
<?php
$getcampaigns = mysql_query("select * from cms_campaigns");
while($campaigns = mysql_fetch_assoc($getcampaigns)) {
?>
<li class="even">
<div class="hotcampaign-container">
<a href="<?php echo $campaigns['url']; ?>"><img src="<?php echo $campaigns['image']; ?>" align="left" alt="" /></a>
<h3><?php echo $campaigns['name']; ?></h3>
<p><?php echo $campaigns['desc']; ?></p>
<p class="link"><a href="<?php echo $campaigns['url']; ?>">Go there »</a></p>
</div>
</li>
<?php } ?>
</ul>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template)) { Rounder.init(); }</script>
Downloadlink: MediaFirePHP Code:} elseif($p == "campaign"){
$tab = 3;
include('campaign.php');
} elseif($p == "campaigns"){
$tab = 3;
include('campaigns.php');
Housekeeping/campaings.php is just an overview, because edit and delete doesn
Where do you put the code in?
Can someone upload a rar with all include?
and a Readme file?
- Thanks - Mark