Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2011-11-03 18:29:07

jaydenblair@live.co.uk
Member
From: United Kingdom
Registered: 2011-10-30
Posts: 369
Website

website news mod

what would i need to do to change the amout of news is shown on the front page of the website http://dirtydirtyangels.com/
i only want to show 3-5 lines then it asks if you want to read more but atm it gose down half the page and makes the website look werid
thanks for your help

Offline

#2 2011-11-03 19:06:35

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: website news mod

You can use the same thing we use on the video view page. The code would look something like this:

<script type="text/javascript" src="<?php echo TPL_REL; ?>/js/jquery.truncator.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$(".news").truncate({max_length: 200, more: '... Read More', less: 'Less'});
});
</script>

You need to add this to templates/your-template/frontpage.tpl.php


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#3 2011-11-03 21:36:59

jaydenblair@live.co.uk
Member
From: United Kingdom
Registered: 2011-10-30
Posts: 369
Website

Re: website news mod

where abouts would i put it?

Offline

#4 2011-11-03 21:38:40

jaydenblair@live.co.uk
Member
From: United Kingdom
Registered: 2011-10-30
Posts: 369
Website

Re: website news mod

and would it make ir about 3 - 5 lines?
thanks.

Offline

#5 2011-11-03 23:01:36

Coscast
Member
From: Germany
Registered: 2010-10-03
Posts: 546

Re: website news mod

Just try it.

Add that code from Symtab above this:

<div id="right" class="width-760">
            <?php echo w('news_header'); ?>

I dunno if that works, but it's worth a try smile

The example from symtab would limit the news to 200 chars before "more" smile

Last edited by Coscast (2011-11-04 02:08:38)


sgt-halfsize-banner.jpg

Offline

#6 2011-11-04 10:02:30

jaydenblair@live.co.uk
Member
From: United Kingdom
Registered: 2011-10-30
Posts: 369
Website

Re: website news mod

thanks guys smile

Offline

#7 2012-06-20 06:44:12

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: website news mod

It will show even if character length is less than 200.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB