Hi Ragezone,
I cannot seem to change the news images even from my db in the cms_news table and also because when I use hk it does not have a add image button so it just post's a single image which is this: http://prntscr.com/4amora
Printable View
Hi Ragezone,
I cannot seem to change the news images even from my db in the cms_news table and also because when I use hk it does not have a add image button so it just post's a single image which is this: http://prntscr.com/4amora
Probably because your me.php file is looking for a spesific image and not a variable that defines the image you chose in the db
any idea how to fix it??
Code:<div class="promo-container" style="background-image: url({url}/app/tpl/skins/Habbo/images/web_promo/promo_wbk.png)"> <div class="promo-content-container">
<div class="promo-content">
<div class="title"><?php echo $newsobject['title']; ?></div>
<div class="body"><?php echo $newsobject['shortstory']; ?></div>
</div>
</div>
<div class="promo-link-container">
<div class="enter-hotel-btn" // I found this release on another forum, I just fixed it up abit.>
<div class="open enter-btn">
<a href="{url}/index.php?url=news&id=<?php echo $newsobject['id']; ?>">Read the full article »</a>
<b></b>
</div>
</div>
<div style="color:#FFF;margin-top:25px;margin-left:10px;">Posted on: <b><?php echo date('F d, Y', $newsobject['published']); ?></b></div>
</div>
</div>
As you can see, it is only searching for a image from your folders
<div class="promo-container" style="background-image: url({url}/app/tpl/skins/Habbo/images/web_promo/promo_wbk.png)">
You need to make something like this $newsobject['image']
I would suggest you try to copy it from some other cms
Try changing:
To:Code:{url}/app/tpl/skins/Habbo/images/web_promo/promo_wbk.png
Replace the <image column name here> with the column name in the database that stores the image data.Code:{url}/app/tpl/skins/Habbo/images/web_promo<?php echo $newsobject['<image column name here>']; ?>
Just image
Not the table, the column in cms_news
so the code would be
because the column name is 'image' and plus it's still not working i get this http://prntscr.com/4b3615Code:url({url}/app/tpl/skins/Habbo/images/web_promo<?php echo $newsobject['<image>']; ?>)">
try without the "<>"
<?php echo $newsobject['image']; ?>
You need to change the link to your direct news article directory. Or create an new directory.
I got it to work in the me.php but when i click community it's the same thing and i tried the same thing and it gave me a blank page.
The code in community.php should be the same as the me.php was before you changed it. Make sure you have the exact same code as the me page has now
If that doesn't work. The file where $newsobject is defined is probably not included in community.php