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
xGSTQ
Involved
Involved



Joined: Feb 03, 2006
Posts: 269

PostPosted: Mon Feb 27, 2012 12:05 pm Reply with quote

Hi Troops

Im looking at how to move the "tags" from the top of the news article to the bottom Razz

Image of the current layout im working with

Image

Is it possible to move the tags to below, ive looked in the modules/News/article.php and found the $showtags if statement, and was wondering if its possible to move it or not

Ped
 
View user's profile Send private message Send e-mail
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Mon Feb 27, 2012 12:54 pm Reply with quote

In News/index.php find
Code:


$hometext = '<br />' . $taglink . $hometext;


and change to
Code:


$hometext = '<br />' . $hometext . $taglink;

_________________
Tricked Out News 
View user's profile Send private message Send e-mail Visit poster's website
xGSTQ







PostPosted: Mon Feb 27, 2012 2:22 pm Reply with quote

Cheers nuken

indeed your are the tricked out news master Wink

It worked...

I actually wanted to move it via the theme.php but by moving it below the article it actually causes me more work because I added the "read more" as an image and removed the read more on the formatstory with some substr - 30

So its actually counter productive, its no deal nice feature BTW
 
xGSTQ







PostPosted: Mon Feb 27, 2012 2:56 pm Reply with quote

Totally of topic on this one, kind off

Just noticed when adding news using the source code using the attribute

Code:
ref="some text"


on a link it was getting stripped so I added it to the rnconfig.php

Code:
'a' => array('class' => 1, 'style' => 1, 'ref' => 1, 'id' => 1, 'href' => 1, 'target' => 1, 'title' => array('minlen' => 4, 'maxlen' => 120)),
 
nuken







PostPosted: Mon Feb 27, 2012 2:59 pm Reply with quote

I wanted to add all of the feature through the theme.php, but that would require every theme to be edited. This was the easiest way to work with all themes.
 
xGSTQ







PostPosted: Mon Feb 27, 2012 3:17 pm Reply with quote

nuken wrote:
I wanted to add all of the feature through the theme.php, but that would require every theme to be edited. This was the easiest way to work with all themes.


Yeah i can imagine, I want to be able to style the news article via the theme.php Laughing

Ive had to remove the

$thetext = substr("$thetext", 0, -87);

because if you didn't have any text in the Extended Text box it stripped the text from the Story Text catch 22 Laughing

Would have been nice to be able to move stuff around via the theme.php, maybe in the next update Shocked

Tricked out News is a huge advance on the old News Module, lots of cool features... well done
 
spasticdonkey
RavenNuke(tm) Development Team



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

PostPosted: Mon Feb 27, 2012 3:40 pm Reply with quote

exactly the kind of thing smarty templates could do, hmmmm Wink
 
View user's profile Send private message Visit poster's website
nuken







PostPosted: Mon Feb 27, 2012 3:57 pm Reply with quote

Funny you say that Spastic.... I was thinking about smarty on the way home from work today. I could see a default module level tpl file that could be overridden by a theme based tpl file that would add a whole new level of customization to RavenNuke....
 
xGSTQ







PostPosted: Tue Feb 28, 2012 1:38 am Reply with quote

spasticdonkey wrote:
exactly the kind of thing smarty templates could do, hmmmm Wink


jeee wizz, now that would be something Smarty could do well....

I'm liking that idea

Why didn't you suggest it before !!! lol
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Tue Feb 28, 2012 11:39 am Reply with quote

Hmm, my cage is being rattled again Wink
 
View user's profile Send private message Send e-mail
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 ©